What does mdev
mean in ping output (last row below)?
me@callisto ~ % ping -c 1 example.org
PING example.org (192.0.43.10) 56(84) bytes of data.
64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_seq=1 ttl=245 time=119 ms
--- example.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 119.242/119.242/119.242/0.000 ms
It's the standard deviation, essentially an average of how far each ping RTT is from the mean RTT. The higher
mdev
is, the more variable the RTT is (over time).With a high RTT variability, you will have speed issues with bulk transfers (they will take longer than is strictly speaking necessary, as the variability will eventually cause the sender to wait for ACKs) and you will have middling to poor VoIP quality.
From the source code [1]:
and,
we can conclude that:
mdev = SQRT(SUM(RTT*RTT) / N – (SUM(RTT)/N)^2)
which is another formula for calculating the standard deviation (see [2]). This matches Vatine's answer above.
It's the standard deviation - not sure why the label
mdev
has been used for it.mdev is like jitter in telecom terminology, for example in VoIP it doesn't by greater 30 ms between endpoints https://www.ciscopress.com/articles/article.asp?p=357102