BING(8) | System Manager's Manual | BING(8) |
bing
— compute
point to point throughput using two sizes of ICMP ECHO_REQUEST packets to
pairs of remote hosts.
bing |
[-dDnrRPvVwz ] [-c
count] [-e
samples] [-f
samplefile] [-i
wait] [-p
pattern] [-s
small packetsize] [-S
big packetsize] [-u
size increment] host1
host2 [...] |
Bing
determines bandwidth on a
point-to-point link by sending ICMP ECHO_REQUEST packets and measuring their
roundtrip times for different packet sizes on each end of the link.
host1 is supposed to be the nearest end of the link, while host2 is the other end.
The options are as follows:
-c
count-e
option. Defaults to
1.-d
SO_DEBUG
option on the socket being
used.-D
-e
samples-f
samplefile-i
wait-n
-P
Normally, bing
assumes 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 for host1
should always be
smaller than the roundtrip time for host2,
and
that the increase in the roundtrip time between
host1
and host2
should
always be bigger for big packets than for small packets.
Bing
takes advantage of this to better
determine the minimum roundtrip times.
Option -P
disables 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-p ff
” will cause the sent
packet to be filled with all ones.-R
-r
-s
packetsize-S
packetsize-u
size incrementbing
should start sending packets
of the size of small packetsize and then increase
the size by size increment until it reaches
big packetsize.-v
-V
-w
-z
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.
Many Hosts and Gateways ignore the RECORD_ROUTE option.
The maximum IP header length is too small for options like RECORD_ROUTE to be completely useful. There's not much that that can be done about this, however.
Some of the final stats (average throughputs) almost never give a even marginally correct result.
Pierre Beyssac <pb@fasterix.freenix.fr>
April 3, 1995 | Debian |