. }( S$ N- J- [& } -n count Number of echo requests to send. ; D( P3 v* z7 b( T+ O 8 D5 L B' l) p. ^2 P0 \
发送count指定的Echo数据包数。 4 i+ ?0 `1 J8 N( _ ) @7 ?9 A4 L- |. P' o$ h
在默认情况下,一般都只发送四个数据包,通过这个命令可以自己定义发送的个数,对衡量网络速度很有帮助,比如我想测试发送50个数据包的返回的平均时间为多少,最快时间为多少,最慢时间为多少就可以通过以下获知: 6 @1 _# H2 m5 G- h
o( r" u7 G, T
C:\>ping -n 50 202.103.96.68 : t9 u& _1 ~4 t( ?7 h4 W0 | g& E
% T3 B! R: y y
Pinging 202.103.96.68 with 32 bytes of data: ) Z' Z# e( @9 x! A9 h$ q* o$ X ! R+ ]: {; J$ A( k* J& a( N. F
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 ) T4 ]8 c8 x8 s0 O* r2 F * x5 N, ~6 c, g1 d9 ?
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 8 G$ }, T' F& V3 L2 _
/ c8 |6 P* I" T! H
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 ]# S! t3 Z# G; Z$ T 5 ?/ [& T/ _! `& K+ M } B Request timed out. - L" q+ ` P$ E1 M! S: k% @- @ 9 l2 L" l! n% R6 {# ?5 f. d
……………… 7 N" b# H, e4 T* O$ Y# L$ h# m4 j; Z 1 `7 O3 I/ A/ u# C0 r5 V$ h
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 & S8 d# ]. T9 N5 X' b9 L% j) y1 L. ?
5 Q! P5 H' X; v& k8 U& v Reply from 202.103.96.68: bytes=32 time=50ms TTL=241 6 y6 s+ m6 x* {+ ^ b $ F+ J- J! r. i! B' q7 F
Ping statistics for 202.103.96.68: 3 @6 e F' R2 n 6 k P2 C. k. C2 G& H Packets: Sent = 50, Received = 48, Lost = 2 (4% loss),Approximate round trip times in milli-seconds: 0 W& c* l$ b: N, T1 d : P; l: A: B$ Z8 I, V6 [
Minimum = 40ms, Maximum = 51ms, Average = 46ms + a: V; \$ ~* V
" Q; K4 O5 u9 P% s h; F. [
从以上我就可以知道在给202.103.96.68发送50个数据包的过程当中,返回了48个,其中有两个由于未知原因丢失,这48个数据包当中返回速度最快为40ms,最慢为51ms,平均速度为46ms。 / W9 d. x9 q3 D9 g$ M# W