引用:
原帖由 共产国际 于 2006-4-29 15:10 发表
从楼主的问题引申到一个问题,理论上通过长度为1500字节的数据应该没有time out的提示。我试了一下我们单位的局域网。发现ping网关包的最大长度并不是1500,而是比这个值小,最大为1472。到了1473后就完全time ou ...
这个值跟MTU有关,你可以尝试ping 跟你在同一内网的主同,一般来讲,这是不会丢包的!
请看我的测试:
Pinging 192.168.22.101 with 1500 bytes of data:
Reply from 192.168.22.101: bytes=1500 time<10ms TTL=64
Reply from 192.168.22.101: bytes=1500 time<10ms TTL=64
Reply from 192.168.22.101: bytes=1500 time<10ms TTL=64
Reply from 192.168.22.101: bytes=1500 time<10ms TTL=64
Ping statistics for 192.168.22.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
但如果是ping 网关,就丢包:
Pinging 192.168.22.1 with 1500 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.22.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
所以想过去,应该是我自己的网关的MTU没有1500