BING(8)
π BING(8) π
okay bestie, buckle UP, because we're about to talk about bing β the System Manager's Manual icon we all needed π
β¨ NAME β¨
bing β compute point to point throughput using two sizes of ICMP ECHO_REQUEST packets to pairs of remote hosts. no cap, that's literally what it does π«Ά
πΈ SYNOPSIS πΈ
bing [-dDnrRPvVwz] [-c count] [-e samples] [-f samplefile] [-i wait]
[-p pattern] [-s small packetsize] [-S big packetsize]
[-u size increment] host1 host2 [...]
look at all those lil flags, she's so versatile π β¨
π¦ DESCRIPTION π¦
so here's the vibe: bing figures out the bandwidth on a point-to-point link by yeeting ICMP ECHO_REQUEST packets out into the world π and measuring their roundtrip times for different packet sizes on each end of the link. it's giving science, it's giving measurement, it's giving obsessed π₯
host1 is supposed to be the nearest end of the link, while host2 is the other end. like, one is home base and the other is the far-away bestie π β‘οΈπ
The options are as follows β and bestie, there are MANY, so let's gooo:
-c countβ stop aftercountresets of the stats. only useful in conjunction with the-eoption, fr fr. defaults to1.-dβ set theSO_DEBUGoption on the socket being used. just a lil debug moment π-Dβ display the measured throughput at every received packet. by default it's only displayed when the computed value changes, which itself changes only when the minimum roundtrip time for one of the packet sizes changes. so yeah,-Dis the "tell me EVERYTHING, I'm nosy" flag π-e samplesβ reset stats after sendingsamplesECHO_REQUEST packets.-f samplefileβ saves the bandwidth measurements to the filesamplefile. receipts!! π-i waitβ waitwaitseconds for each ECHO_REPLY packet. the default is to wait for four seconds β³-nβ numeric output only. no attempt will be made to lookup symbolic names for host addresses. we're keeping it raw numbers only, no names, periodt π―-Pβ be pedantic regarding round-trip times. okay so normally,bingassumes that the roundtrip time for a small packet should always be smaller than the roundtrip time for a big packet to the same host, that for a given size the roundtrip time forhost1should always be smaller than the roundtrip time forhost2, and that the increase in the roundtrip time betweenhost1andhost2should always be bigger for big packets than for small packets.bingtakes advantage of this to better determine the minimum roundtrip times. Option-Pdisables this behaviour, in the unlikely event it could be of any use someday. even IP/X25 links are not weird enough to require this, though π-p patternβ you may specify up to 16 βpadβ bytes to fill out the packet you send. this is useful for diagnosing data-dependent problems in a network. for example,-p ffwill cause the sent packet to be filled with all ones. custom padding? we love a customizable queen π-Rβ record route. includes theRECORD_ROUTEoption in the ECHO_REQUEST packet and displays the route buffer on returned packets. note that the IP header is only large enough for nine such routes. many hosts ignore or discard this option, lowkey rude of them π-rβ bypass the normal routing tables and send directly to a host on an attached network. if the host is not on a directly-attached network, an error is returned. this option can be used to ping a local host through an interface that has no route through it (e.g., after the interface was dropped byrouted(8)). going off the beaten path, main character energy π-s packetsizeβ specifies the number of data bytes to be sent in the small packets. the default and minimum value is8.-S packetsizeβ specifies the number of data bytes to be sent in the big packets. the default is108. the size should be chosen so that big packet roundtrip times are long enough to be accurately measured (depending on clock resolution and number of hops). big packet supremacy π«Ά-u size incrementβ specifies thatbingshould start sending packets of the size of smallpacketsizeand then increase the size bysize incrementuntil it reaches bigpacketsize. a lil glow-up arc for your packets β¨-vβ verbose output. ICMP packets other thanECHO_RESPONSEthat are received are listed. spill the tea β-Vβ very verbose output. the roundtrip time of each received echo is displayed. even MORE tea, we're spilling the whole kettle π«-wβ display possible warnings about roundtrip times all the time. by default, warnings are printed only at the end. early warning system, we love to see it β οΈ-zβ fill packets with uncompressible (pseudo-random) data. chaos mode, but make it β¨intentionalβ¨
Round-trip times and packet loss statistics are computed. if duplicate packets are received, they are not included in the packet loss calculation, although the round trip time of these packets is used in calculating the minimum/average/maximum round-trip time numbers. when the specified number of loops have been made or if the program is terminated with a SIGINT, a brief summary is displayed π
This program is intended for use in network testing, measurement and management. Because of the load it can impose on the network, it is unwise to use bing during normal operations or from automated scripts.
bestie. seriously. don't run this on a busy network or from a cron job, she's LOUD and she will stress out your network. this is a "we're doing a controlled experiment" tool, not a "just vibing in prod" tool π
π BUGS π
- Many Hosts and Gateways ignore the
RECORD_ROUTEoption. not me finding out the hard way π - The maximum IP header length is too small for options like
RECORD_ROUTEto be completely useful. There's not much that that can be done about this, however. it's giving "we tried" π - Some of the final stats (average throughputs) almost never give a even marginally correct result. so like... don't trust those numbers too hard, bestie π
π SEE ALSO π
netstat(1), ifconfig(8), ping(8), routed(8), traceroute(8)
π AUTHOR π
Pierre Beyssac <pb@fasterix.freenix.fr>
okay that's the whole page, you ate it, you understood it, you're a networking icon now πβ¨
Debian πΈ April 3, 1995 β and that's the BING(8) energy, bestie. go measure some throughput ππ¦
π¦ where this page comes from
- debian bookworm: bing 1.3.5-5 Β· BSD-4-Clause
- ubuntu jammy: bing 1.3.5-4 Β· BSD-4-Clause
- ubuntu noble: bing 1.3.5-5 Β· BSD-4-Clause
- Copyright (c) 1985, 1991 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms