在使用 ping 测试网络稳定性时,请求在每次回复的 MAX-TIME-TO-WAIT 之前超时。
我注意到在 500 毫秒之前超时的行。
COMMAND>ping google.com -n 20 -w 500
Pinging google.com [<google-ip>] with 32 bytes of data:
Reply from <google-ip>: bytes=32 time=21ms TTL=55
Reply from <google-ip>: bytes=32 time=13ms TTL=55
Reply from <google-ip>: bytes=32 time=18ms TTL=55
Reply from <google-ip>: bytes=32 time=16ms TTL=55
Reply from <google-ip>: bytes=32 time=10ms TTL=55
Reply from <google-ip>: bytes=32 time=17ms TTL=55
Reply from <google-ip>: bytes=32 time=20ms TTL=55
Request timed out.
Request timed out.
Reply from <google-ip>: bytes=32 time=117ms TTL=55
Request timed out. <---***timed out before 500ms***
Request timed out. <---***timed out before 500ms***
Request timed out. <---***timed out before 500ms***
Request timed out. <---***timed out before 500ms***
Request timed out. <---***timed out before 500ms***
Request timed out. <---***timed out before 500ms***
Request timed out.
Request timed out.
Reply from <google-ip>: bytes=32 time=453ms TTL=55
Reply from <google-ip>: bytes=32 time=23ms TTL=55
Ping statistics for <my-ip-addr>:
Packets: Sent = 20, Received = 10, Lost = 10 (50% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 453ms, Average = 70ms
感谢您对@YLearn 的编辑,很抱歉,这是本论坛上的第一个问题。关于IP地址,我错误地全部替换了(使用<*.*.*.*>)。关于超时,我敏锐地观察了它们,我确信它们都发生在眨眼之间,这不应该发生,因为 -w 设置为 500 毫秒,这是人为注意到的。关于使用 ping 测试外部网络稳定性的观点。现在,我的困惑是导致请求在 500 毫秒之前超时的原因。路径中靠近目的地的路由器是否有某种机制可以将数据包丢失通知源,从而导致超时?