# 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”是什么意思?它似乎与实际的数据包传输时间无关。
答案1
统计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