Traceroute and My Traceroute (MTR) are network diagnostic tools that can reveal helpful information about the route and latency of packets across an IP network. MTR incorporates both traceroute and ping programs.

If you are experiencing latency or other network issues, our network engineers will most likely request that you provide a bi-directional, 100-count MTR. In other words, they are wanting to see which routers are being utilized in your network request both from your server to your remote location and from your remote location to your server. The 100-count MTR shows the average time it takes for round-trip ICMP (ping) traffic to each router and the amount of packet loss experienced at each router.

Outlined below are the procedures for obtaining MTR data on Linux, Windows and MacOS machines.

Note: you will often have to combine multiple methods below to provide in order to retrieve and share output to and from your server and local computer.

Windows:

Traceroute: 

To perform a traceroute (without ping data), perform the following steps:

  1. Open the Start menu
  2. Click on Run (or the search box if Run is not present)
  3. Type cmd and then press the Enter key to open a command prompt
  4. At the prompt, type tracert <hostname.com/IP> and press the Enter key
    1. For example, tracert google.com or tracert 8.8.8.8
  5. To copy the output, right click anywhere in the cmd window and select Mark. You can now use your mouse to select the text you want to copy and then right-click with your mouse. Paste the copied output by pressing Ctrl + V. You can also press the Enter key to copy all of the output and paste by pressing Ctrl + V.










MTR:

Windows utilizes a program called WinMTR to obtain MTR data. Listed below are steps to install and to obtain bi-directional MTRs using WinMTR. You will need to follow the instructions below on both your PC (or the PC experiencing connectivity issues to/from the server) and on your Windows server.

  1. In your browser, navigate to https://sourceforge.net/projects/winmtr/files/WinMTR-v092.zip/download and select the download link next to the corresponding bit version of the program. Note: most 100TB.com services utilize a 64-bit operating system.
  2. Follow the prompts to download the WinMTR .zip file.
  3. In Windows Explorer, right-click the WinMTR .zip file and select “Extract All…” to extract the application file.

4. Double click to launch WinMTR.


5. In the “Host:” field:

a.  If running from your PC, enter the IP address or hostname of your Windows server and click Start. Let the MTR run until 100 appears in both the Sent and Recv columns.

 b.  If running from your Windows Server, enter the IP address of your PC. Note: you can obtain your local IP address by performing a Google search for “IP”, or by visiting a site such as http://whatismyip.org/. Let the MTR run until 100 appears in both the Sent and Recv columns then click Stop.

6.  Select Copy HTML to the clipboard to copy and paste the results into the support ticket.

Linux:

Downloading and Installing MTR and Traceroute:

 

Most Linux distributions come with traceroute and MTR installed by default. In order to use them, access your server’s command line via SSH or an IPMI/iKVM console.

If your Linux machine does not have traceroute or MTR installed, they can be easily downloaded installed by your distribution’s software package manger. Run the commands below for your server’s Linux distribution.

Debian/Ubuntu Systems:

  1. apt-get update

  2. apt-get upgrade

  3. apt-get install traceroute

  4. apt-get install mtr-tiny

 CentOS/Red Hat Systems:

  1. yum install mtr

  2. yum install traceroute


Using MTR and traceroute:

Once the MTR and traceroute utilities are installed, they can be used in the same way across most Linux distributions.

  1. To run traceroute on your Linux server, type traceroute <IP address of your local computer or test location> and press Enter to run the traceroute.

For example: traceroute 8.8.8.8

2. To run a 100-count MTR on your Linux server, type mtr -c100 -r <IP address of your local computer or test location> and press Enter. For example mtr -c100 -r 8.8.8.8. Note: It will look like nothing is happening for a couple of minutes. The -c100 and -r flags enable MTR to perform a 100-count test and present it in a report form so you can easily copy and paste the output into a ticket.


MacOS:

Traceroute

  1. Launch Network Utility. Note: you can do this through Spotlight by typing “Network Utility” and hitting enter.
  2. Click the tab titled Traceroute.
  3. Enter your server’s IP address or the server hostname (if it is a fully qualified domain name) and click Trace

4. To copy the output, click on the box below and press ⌘ + A, followed by ⌘ + C.

MTR

 The MTR installer for MAC can be found here: http://macappstore.org/mtr/

  1. Open the .pkg file by using a secondary click and selecting Open from the menu. Alternatively, select the .pkg and select File > Open.
  2. Follow the prompts to finish installing MTR.

3. Once finished, launch Terminal. Note: this is found in Applications > Utilities > Terminal. Alternatively, you can search Spotlight to find and launch Terminal.

4. On the terminal, type sudo /usr/local/sbin/mtr -c100 -r <IP address or hostname> and hit enter. Note: you must have administrator privileges to run MTR.

5. Type your password and press enter. Note: it will look like nothing is entered while typing your password.

 

Note: To permanently save the alias, run this:

open ~/.bash_profile

add to the .bash_profile:

 alias mtr=/usr/local/sbin/mtr