views:

226

answers:

2

What is meant by latency which is returned by ping

A: 

Ping measures the round-trip delay, i.e. the time it takes for network packets to go from the sending hos A, to the destination host B, and back again.

unwind
+5  A: 

It's the time between sending the request and receiving the response. Typically this is only a few milliseconds for localhost or the local network but can be very large (relatively) for satellite transmissions, for example.

If it's likely to be more than one second, you may have to bump up the timeout so as to not detect it as a lost packet.

The following diagram shows you the idea.

    SENDER               RECEIVER
                  |    |
    ping request  |\   |
             ^    | \  |
             |    |  \ |
    latency -+    |   \| ping received
             |    |   /| ping response
             |    |  / |
             v    | /  |
    ping response |/   |
    received      |    |

paxdiablo
ascii art is always +1
jj33