上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
5.利用ping命令(-l参数)测试大型数据包传输情况
-l参数用于定义所发送缓冲区的数据包的大小,在默认的情况下,Windows的ping命令发送的数据包大小为32B,也可以自定义,但最大只能发送65500B。
例如:
C:\WINDOWS>ping -l 32768 -n 10 192.168.1.188 ping ing 192.168.1.188 with 32768 bytes of data: Request timed out. Reply from 192.168.1.188: bytes=32768 time=12ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=12ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=12ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 Reply from 192.168.1.188: bytes=32768 time=9ms TTL=64 ping statistics for 192.168.1.188: Packets: Sent = 10,Received = 9,Lost = 1 (10% loss), Approximate round trip times in milli-seconds: Minimum = 9ms,Maximum = 12ms,Average = 9ms
这是向IP地址为192.168.1.188的计算机发送10个大小为32768B的数据包,发送10个,返回9个,丢失1个。返回数据包的最短时间为9ms,最长时间为12ms。