Ping
ping統計時間含義
# ping -c 3 amsterdam.voip.ms PING amsterdam.voip.ms (37.58.88.242) 56(84) bytes of data. 64 bytes from f2.58.3a25.ip4.static.sl-reverse.com (37.58.88.242): icmp_seq=1 ttl=52 time=98.5 ms 64 bytes from f2.58.3a25.ip4.static.sl-reverse.com (37.58.88.242): icmp_seq=2 ttl=52 time=89.8 ms 64 bytes from f2.58.3a25.ip4.static.sl-reverse.com (37.58.88.242): icmp_seq=3 ttl=52 time=91.9 ms --- amsterdam.voip.ms ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 89.827/93.439/98.558/3.720 ms
“時間2001ms”是什麼意思?它似乎與實際的數據包傳輸時間無關。
統計數據是發送和接收回顯數據包所花費的
time
總時間,包括每個數據包之間的延遲:$ time ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.039 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.039 ms ^C --- 127.0.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.039/0.042/0.049/0.007 ms real 0m2.362s user 0m0.000s sys 0m0.000s