- 论坛徽章:
- 0
|
示例:\r\nC:\\>ping -a 192.168.1.21\r\nPinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data: \r\nReply from 192.168.1.21: bytes=32 time<10ms TTL=254 \r\nReply from 192.168.1.21: bytes=32 time<10ms TTL=254 \r\nReply from 192.168.1.21: bytes=32 time<10ms TTL=254 \r\nReply from 192.168.1.21: bytes=32 time<10ms TTL=254 \r\nPing statistics for 192.168.1.21: \r\nPackets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: \r\nMinimum = 0ms, Maximum = 0ms, Average = 0ms \r\n从上面就可以知道IP为192.168.1.21的计算机NetBios名为iceblood.yofor.com。 \r\n-n count Number of echo requests to send. \r\n发送count指定的Echo数据包数。 \r\n 在默认情况下,一般都只发送四个数据包,通过这个命令可以自己定义发送的个数,对衡量网络速度很有帮助,比如我想测试发送50个数据包的返回的平均时间为多少,最快时间为多少,最慢时间为多少就可以通过以下获知: \r\nC:\\>ping -n 50 202.103.96.68 \r\nPinging 202.103.96.68 with 32 bytes of data: \r\nReply from 202.103.96.68: bytes=32 time=50ms TTL=241 \r\nReply from 202.103.96.68: bytes=32 time=50ms TTL=241 \r\nReply from 202.103.96.68: bytes=32 time=50ms TTL=241 \r\nRequest timed out. \r\n……………… \r\nReply from 202.103.96.68: bytes=32 time=50ms TTL=241 \r\nReply from 202.103.96.68: bytes=32 time=50ms TTL=241 \r\nPing statistics for 202.103.96.68: \r\nPackets: Sent = 50, Received = 48, Lost = 2 (4% loss),Approximate round trip times in milli-seconds: \r\nMinimum = 40ms, Maximum = 51ms, Average = 46ms \r\n 从以上我就可以知道在给202.103.96.68发送50个数据包的过程当中,返回了48个,其中有两个由于未知原因丢失,这48个数据包当中返回速度最快为40ms,最慢为51ms,平均速度为46ms。 |
|