$ ping -c5 ns.uu.net
PING ns.uu.net (137.39.1.3) from 172.16.12.3 : 56(84) bytes of data.
64 bytes from ns.UU.NET (137.39.1.3): icmp_seq=0 ttl=244 time=98.283 msec
64 bytes from ns.UU.NET (137.39.1.3): icmp_seq=1 ttl=244 time=94.114 msec
64 bytes from ns.UU.NET (137.39.1.3): icmp_seq=2 ttl=244 time=66.565 msec
64 bytes from ns.UU.NET (137.39.1.3): icmp_seq=3 ttl=244 time=24.301 msec
64 bytes from ns.UU.NET (137.39.1.3): icmp_seq=4 ttl=244 time=37.060 msec
--- ns.uu.net ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round trip min/avg/max/mdev = 24.301/64.064/98.283/29.634 ms
Both tests show a good wide area network link to
ns.uu.net with no packet loss and a fast
response. The round trip between almond and
ns.uu.net took an average of only 24.3
milliseconds. A small packet loss, and a round trip time an order of
magnitude higher, would not be abnormal for a connection made across
a wide area network. The statistics displayed by the
ping command can indicate low-level network
problems. The key statistics are:
-
The sequence in which the packets are arriving, as shown by the ICMP
sequence number (icmp_seq) displayed for each
packet.
-
How long it takes a packet to make the round trip, displayed in
milliseconds after the string time=.
-
The percentage of packets lost, displayed in a summary line at the
end of the ping output.
If the packet loss is high, the response time is very slow, or
packets are arriving out of order, there could be a network hardware
problem. If you see these conditions when communicating over great
distances on a wide area network, there is nothing to worry about.
TCP/IP was designed to deal with unreliable networks, and some wide
area networks suffer a lot of packet loss. But if these problems are
seen on a local area network, they indicate trouble.
On a local network cable segment, the round trip time should be near
0, there should be little or no packet loss, and the packets should
arrive in order. If these things are not true, there is a problem
with the network hardware. On an Ethernet, the problem could be
improper cable termination, a bad cable segment, or a bad piece of
"active" hardware, such as a hub, switch, or transceiver.
Check the cable with a cable tester as described earlier. Good hubs
and switches often have built-in diagnostic software that can be
checked. Cheap hubs and transceivers may require the "brute
force" method of disconnecting individual pieces of hardware
until the problem goes away.
The results of a simple ping test, even if the
ping is successful, can help you direct further
testing toward the most likely causes of the problem. But other
diagnostic tools are needed to examine the problem more closely and
find the underlying cause.