sub*_*bbu 2 networking latency ping
ping返回的延迟是什么意思?
即下面的'时间'
C:\Users\guest>ping -n 2 www.google.com
Pinging www.google.com [62.252.60.89] with 32 bytes of data:
Reply from 62.252.60.89: bytes=32 time=11ms TTL=58
Reply from 62.252.60.89: bytes=32 time=15ms TTL=58
Ping statistics for 62.252.60.89:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 11ms, Maximum = 15ms, Average = 13ms
Run Code Online (Sandbox Code Playgroud)
这是发送请求和接收响应之间的时间(也称为"往返时间").通常,对于本地主机或本地网络,这只是几毫秒,但对于例如卫星传输而言可能非常大(相对).
如果它可能超过一秒,您可能必须提高超时,以便不将其检测为丢失的数据包.
下图显示了这个想法.
SENDER RECEIVER
| |
ping request |\ |
^ | \ |
| | \ |
latency -+ | \| ping received
| | /| ping response
| | / |
v | / |
ping response |/ |
received | |