Networking/Computing Tips/Tricks

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.

I hope this has helped you learn yet another great Linux tool for networking!


Comments powered by CComment

Find by Tag

4G Networks 5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Analysis Ansible Architecture ARP AToM Baseline BGP Bloom's Taxonomy Broadband Cable cat CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud CMD Coloring Rules Computer Consulting Customer Support Data Center Data Networking DHCPv6 DNS Docker Documentation Dublin-Traceroute dumpcap ECMP Ethernet Ethics Evaluation Field Operations Fragmentation G-MPLS GeoIP Git GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 India Interface Control Internet IoT IPsec IPv4 IPv6 IRINN IS-IS L2VPN L3VPN LDP Linux LLN LoL M-BGP MAC Macro Microsoft mininet Monitoring MPLS mtr MTU Multicast Name Resolution Netcat Netmiko NetMon netsh Networking Network Science nmap Npcap NSE Observations Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Paris-Traceroute Parrot PIM PMTU Policy POTS POTS to Pipes PPP Profile Programming Project Management PW3E Python QoS QUIC Remote Desktop Requirements Resume RIP Routing RPL RSVP Rural SDN Security Service Provider Small Business SONET Speed SS7 SSH SSL Subnetting SYSCTL T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone termshark Testing TLS Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Windows Winpcap Wireless Wireless 5G Wireshark Wireshark Tip WLAN Writing Zenmap ZigBee

Twitter Feed