mrt is a very useful Linux command line utility for diagnosing networking problems. It’s basically of a combination of ping and traceroute in one. It’s best feature is to show an average traceroute over a period of time. You might already have it installed, but if you don’t you can with these commands.
Ubuntu/Debian
apt-get install mtr-tiny
Redhat/CentOS
yum install mtr
MacOS (with homebrew)
$ brew install mtr
Basic Options
-r – short for report
-w – shot entire host names
–no-dns – show ips only, don’t do hostname lookups on the ips
–c 100 – run continuous for 100 pings. Recommended for better a better average.
Testing Network Quality
mtr -rw -c 10 google.com
Start: Mon Nov 14 01:56:34 2016
HOST: util Loss% Snt Last Avg Best Wrst StDev
1.|– 45.55.128.253 0.0% 10 0.3 0.9 0.3 5.6 1.5
2.|– 138.197.248.48 0.0% 10 0.3 0.9 0.3 3.5 0.7
3.|– 162.243.188.255 0.0% 10 1.1 1.1 1.0 1.1 0.0
4.|– 216.239.50.108 0.0% 10 1.4 2.2 1.4 9.5 2.4
5.|– 209.85.253.111 0.0% 10 2.0 2.0 1.9 2.1 0.0
6.|– lga25s40-in-f14.1e100.net 0.0% 10 1.8 1.9 1.8 2.0 0.0
Official MTR website.