对于Windows下ping命令相信大家已经再熟悉不过了,但是能把ping的功能发挥到最大的人却并不是很多,当然我也并不是说我可以让ping发挥最大的功能,我也只不过经常用ping这个工具,也总结了一些小经验,现在和大家分享一下。 4 f1 K0 L: {2 i$ Q1 I! n3 b
, Z5 q- G! H5 v) K' ?
现在我就参照ping命令的帮助说明来给大家说说我使用ping时会用到的技巧,ping只有在安装了TCP/IP协议以后才可以使用: : y% g- k- y C ?% g ! j7 b& t" k2 l! K) m* ]2 H
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j computer-list] [-k computer-list]] [-w timeout] destination-list 2 g* M8 ~/ s3 i D8 u5 R ) G* d5 ~# k9 b1 P Options: 1 y- k; T2 Z+ M$ R5 ]
! i6 y! Q$ @4 l' u& q -t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C. 7 O7 u/ T% f& G3 K; ?- n
6 _9 n& y, G! z% H' y: u4 } Pinging 202.103.96.68 with 32 bytes of data: % W! c9 V9 K# e) k' F* q c
9 j/ G+ Z- E! w- R. P* U" s8 n Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 $ Y7 w0 _' ~+ j0 [6 N
6 z9 f+ a0 H' O7 {1 {! |
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 " Q- m0 i/ v6 h- t* J2 P# C. U
0 V, l& H1 y, i, H- r9 P
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 ! J' i2 T8 \( ?6 U* y; V. `; G
7 D5 A }8 a. v" Q& [! [) _ Request timed out. ) V; E! M+ N7 l# I . P. P( }- d& ~5 W& ^1 D
……………… W# Z' _" @" `1 O: a$ b; I 1 G% u8 b4 p; i
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 ) @2 g3 V0 G* s3 Z
- Q* m4 V7 \& c* F9 l. v8 Q
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 * Q0 b) d4 `5 _) ~! j
5 F7 _; K* H" V( C
Ping statistics for 202.103.96.68: % p( v8 a% Z7 z: Y: q) n5 _) ]" E
% W& X: w" R3 p- X! I Packets: Sent = 50, Received = 48, Lost = 2 (4% loss),Approximate round trip times in milli-seconds: 2 P% P; Y7 }( E3 y 0 U D0 R- {1 S, x t9 i/ e" U
Minimum = 40ms, Maximum = 51ms, Average = 46ms . ^; R7 y P1 c p4 n + o( u, f1 M* c 从以上我就可以知道在给202.103.96.68发送50个数据包的过程当中,返回了48个,其中有两个由于未知原因丢失,这48个数据包当中返回速度最快为40ms,最慢为51ms,平均速度为46ms。 / r' b; j8 @. _0 i
! w+ i( A- j. z- E1 Z
-l size Send buffer size. # q" V2 S+ }+ _4 F* J! v+ p, ^: f
% t' a, T- \2 f+ M: U
定义echo数据包大小。作者: 冷雨清心 时间: 2008-9-25 15:54