Debugging with mtr

Last updated December 15, 2016

For diagnostics and debugging in the Fastly network, we think the mtr tool offers a great way to test network speed, evaluate performance, and perform connection diagnostics. The program's source and installation instructions live in GitHub.

While mtr provides a number of practical uses for network engineering needs, the following command works well:

mtr -c 20 -w -r www.example.com

Be sure to replace www.example.com with the hostname of the domain you're working with. The command will generate the network hops to the destination you specify, any packet loss experienced, and aggregate connection statistics.

For example, if we wanted to test the network connection from Fastly's San Francisco office to the CDN, we would use the above command for www.fastly.com. The following output would appear: