The windows tool tracert and its Linux coun­ter­part, tracer­oute, offer a simple solution for taking a closer look at the routes of data packages. Based on the results, users can find out which par­tic­u­lar stations dis­patched data packages pass through on their way to their re­cip­i­ents and where exactly they run into trouble. Com­pli­cat­ed detours or downed routers are able to be iden­ti­fied this way, thus bringing you one step closer to solving the problem.

Tracer­oute is a command line tool that can be started with a prompt and delivers the user in­for­ma­tion on the paths of data packages within a given network. To this end, the program iden­ti­fies via which routers and internet nodes sent packages follow before ending up with their host. On top of this, the user also receives in­for­ma­tion on the number of stations passed as well as the re­spec­tive response time; this clarifies as to where exactly bot­tle­necks are occurring on the data route. Tracer­oute also informs users in cases where certain routers have not been suc­cess­ful­ly reached. Linux, Unix, and Mac OS users can start the analysis tool by using the command line and entering tracer­oute; on Windows PCs the ap­pli­ca­tion is called tracert.

How does tracer­oute work?

Tracer­oute, or tracert, sends small data packages with limited time to live (TTL) to the target host. Contrary to what its name may imply, TTL does not actually deal with any sort of time units. Instead, it focuses on the maximum number of stations, or hops, that a given online data package is allowed to cover. Every passed router au­to­mat­i­cal­ly reduces the TTL’s value by 1. In order to request an answer from the accessed router, tracert sends automatic pings (ICMP), while tracer­oute, as pro­grammed by default, sends UDP packages. The router that is reached first on the way to the target host receives a package with a TTL of 1. Following this, the router devalues the TTL to 0.

As a result, the data package is no longer forwarded, and the router instead sends the answer ‘Time to live exceeded in transit’ along with its IP address back to the original exit server. Tracert records this in­for­ma­tion along with the transfer duration and then repeats the process with a TTL raised by the value of 1. This process is repeated until either the target host or the defined maximum number of hops, i.e. the defined TTL, is reached. The located host then sends the message ‘Port un­reach­able’ and ter­mi­nates reg­is­ter­ing the IP trace route. Following its default settings, a total of three packages is sent to each host, which is why tracer­oute displays three response time state­ments, all of which are issued to the mil­lisec­ond.

Detecting tracer­oute online

Those wishing to forego the task of dealing with the command line are able to utilize tracer­oute online. Many websites offer the option of tracking the route to the targeted IP address and, to a certain extent, even work with visual tracer­oute tools that clearly display gathered in­for­ma­tion. In most cases, the sender address is the web server on which the used website is hosted (not the address of the re­spec­tive user). Here is a list of sites that enable trace route tracking:

Tracer­oute – how to get things done using the command tool

In order for the data package to get analyzed using this method, the command line has to be opened. This functions in different ways depending on the operating system in use. Entering the command line can only be carried out by using the keyboard. Commands need to be manually entered and are executed with the ‘Enter’ button.

The following is an in­tro­duc­tion on how to use tracert and tracer­oute.

Execute tracert on Windows operating systems

Users of Windows systems first need to enter the tracert command in cmd.exe, which is also known as the Windows command prompt. cmd.exe opens a window with the command line and input prompt and displays an extended version of the command line in­ter­preter from MS-DOS. The easiest way to start cmd.exe is with the keyboard shortcut ‘Window logo key’ + ‘R’. After entering ‘cmd’ into the opened text box and pushing the ‘Enter’ button, the Windows input prompt opens and the tracert command is now ready to be put in. Tracking the route to the target host is started with the following command:

tracert www.address-of-the-target-host.com

If known, the IP address of the target can be given instead of the domain. Tracking can be further con­fig­ured with the following entries:

  1. In­ter­me­di­ate addresses will not be resolved to host names.
tracert -d www.address-of-the-target-host.com
  1. Determine the maximum number of hops (stations)
tracert -h NUMBER www.address-of-the-target-host.com
  1. Loose Source Route’ according to the host list (only IPv4)
tracert -j www.address-of-the-target-host.com
  1. Time limit for an answer in mil­lisec­onds
tracert -w NUMBER www.address-of-the-target-host.com
  1. Trace round-trip path (only IPv6)
tracert -R  www.address-of-the-target-host.com
  1. For using source addresses (only IPv6)
tracert -S  www.address-of-the-target-host.com
  1. Force use of IPv4
tracert -4  www.address-of-the-target-host.com
  1. Force use of IPv6
tracert -6  www.address-of-the-target-host.com

In place of the word ‘NUMBER’ enter the desired value as a number. Entering a com­bi­na­tion of the commands can be achieved by sep­a­rat­ing them with spaces in front of the target address. 

Starting tracer­oute on UNIX operating systems

Linux operating systems and Mac OS X are based on Unix and both contain command lines that allow the user to control the system via input prompt. Newer versions of OS X have important command line di­ag­nos­tic tools, such as tracer­oute, in­te­grat­ed in the Network Utility ap­pli­ca­tion; these can be chosen through a graphical user interface. The easiest way to access this network service is via the search function Spotlight, which is carried out by selecting the very first hit located after the entry ‘Network Utility’. Tracer­oute is started through the following command:

traceroute www.address-of-the-target-host.com

Those working directly in the terminal while using Linux operating systems are able to configure the Tracer­oute:

  1. Addresses will not be ter­mi­nat­ed in host names
traceroute -n www.addresses-of-the-target-host.com
  1. Determine the maximum number of hops (stations)
traceroute -m NUMBER www.address-of-the-target-host.com
  1. Define the number of probe packages per hop
traceroute -q NUMBER www.address-of-the-target-host.com
  1. Time limit for an answer in seconds
traceroute -w NUMBER www.address-of-the-target-host.com
  1. Specify the TTL with which to start
traceroute -f NUMBER www.address-of-the-target-host.com
  1. Use ICMP Echo for probes
traceroute -I www.address-of-the-target-host.com
  1. Force use of IPv4
traceroute -4 www.address-of-the-target-host.com
  1. Force use of IPv6
traceroute -6 www.address-of-the-target-host.com

As is the case with Windows, these options can also be combined with one another. Linux or Unix systems offer many further settings that can be found on the site com­put­er­hope.com.

Using tracer­oute for a first check for network problems

Tracer­oute for Linux/Mac and tracert for Windows can be of sig­nif­i­cant help when solving network-related issues. The command line tool provides insight on whether or not sent packages have taken the ap­pro­pri­ate routes on the way to their re­spec­tive goals. Cum­ber­some data paths or packages that failed to arrive are often in­dica­tive of router issues. Using tracert also allows users to determine the location of a slowed-down station. Due to faulty routing diagrams, a routing loop may occur. The tracer­oute protocol can discover such mishaps in cases where the same router appears multiple times.

External factors, such as firewalls and re-routing during periods of high traffic, can influence the result of data package tracking; this can lead to incorrect results being displayed.

Go to Main Menu