Networking/Computing Tips/Tricks

Rate this content:
5 of 5 - 1 votes
Thank you for rating this article.

Since we published the Linux Networking Commands article in October 2017, I have had several comments that I should have included the "My Trace Route" command.  Ofcourse, readers were correct, but I felt that this tool deserved its own article.

Some of you, depending on what version of Linux you use may not have even heard of this tool, or you may not have the tool in your distribution (for example Ubuntu - yes, Parrot - no, at least as of the writing of this article).

So what is 'mtr' or My Trace Route?  According to the man pages it combines ping and traceroute.  It looks for low TTL values and then continually pings those addresses showing a real time screen update displaying round trip times and packet loss information.

In a recent class, one of my students was complaining about speed of their connection to the CellStream Web Site from their student server.  So I decided to use mtr on their Student Server (which is running Linux to test it.  First there are a number of command line options:


You can clearly see that it has IPv4 and IPv6 options with the -4 and -6 command line switches.

So what does it look like and how does it work?

Simple - just open a terminal and type 'mtr'.  That's it:


This will keep updating.  To quit hit 'q' or CTRL-C.

So what are we looking at?

First, we have a trace route to the web site (at Digital Ocean in NYC) from the location of the student server (at Rackspace).  We see it took 12 hops.  Not bad.

Then the program essentially pings each of the hops and after each round, updates the chart.

After 26 rounds, I took the screen shot.  There was no packet loss (awesome).  Then in columns we see the milliseconds to ping and respond from each of the hops.  While it is clear that there is some delay in the telia network we are still well under 50 milliseconds.

So the network looks OK to me, it must be server delay.  Now the next step would have been to get a packet capture of all this, but at that point the student was happy.

Since there were 21 students (plus me) probably all hitting up the cellstream server at the same step in the labs, that made sense.

Beware of certain problems you can encounter.  For example - I tried to use mtr in a location that was IPv6 and IPv4 on a virtual Linux machine, and here is what I got:


You can see that I am going one hop - inside my virtual machine host and that is it!  For success in the VM environment make sure you have network settings that allow your VM to have an IP outside your host machine.

One comment before I close.  There is no detection of Equal Cost Multipath here.  To read more about ECMP and traceroute options - check out my article here.

I hope this has helped you learn yet another great Linux tool for networking!  I hope you find this article and its content helpful.  Comments are welcomed below.  If you would like to see more articles like this, please support us by clicking the patron link where you will receive free bonus access to courses and more, or simply buying us a cup of coffee!, and all comments are welcome!


Add comment


Did you learn something?
Did I save you time? 

Buy me a coffeeBuy me a coffee!

Find by Tag

5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az ACL Addressing Analysis Ansible Architecture ARP Assessment AToM Backup Bandwidth BGP Bibliography Biography Briefings CBRS CellStream Cellular Central Office Cheat Sheet Chrome Cisco Clock Cloud Computer Consulting CPI Data Center Data Networking Decryption DHCPv4 DHCPv6 Display Filter DNS Documentation ECMP EIGRP Ethernet Flipping the Certification Model Follow Me Fragmentation Git GNS3 Google GQUIC Hands-On History Home Network HTTPS ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 In A Day Internet IOS Classic IoT IPv4 IPv6 L2 Switch L2VPN L3VPN LDP Learning Services Linux LLN Logging LoL M-BGP MAC MAC OSx Macro Microsoft mininet Monitoring Monitor Mode MPLS Multicast Name Resolution Netflow NetMon netsh Networking Network Science nmap Npcap nslookup Online Learning Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX Parrot pcap pcap-ng PIM Ping Policy Port Mirror POTS POTS to Pipes PPP Profile Profiles Programming Project Management Python QoS QUIC Requirements RFC RIP Routing RPL RSVP Rural SAS SDN Security Self Certification Service Provider Small Business Smartport SONET Span Port SSH SSL Subnetting T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telnet Terminal TLS Tools Traceroute Traffic Analysis Traffic Engineering Training Travel Troubleshooting Tunnel Utility Video Virtualbox Virtualization Voice VoIP VXLAN Webex Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Wi-Fi 6/6E Windows Wireless Wireless 5G Wireshark Wireshark Tip WLAN ZigBee Zoom

Twitter Feed