Tracing to the server

How tracing works, what commands need to be executed to obtain an Internet route between two tested points.

Table of Contents

No headings found

Tracing to the server

Traceroute (tracert or traceroute command) is a program for determining the route of data from your computer to the selected server. With its help, you can see how many nodes the data passes and on which of them the problem occurs if the site does not load or the server does not respond.

In this article, we will understand how the program works, how to trace the route on different operating systems.

How tracing works

The traceroute command sends three data packets with a TTL=1 parameter along the chain towards the end server. This parameter means the number of nodes that the packets can pass, and with each communication node it decreases by 1. The node that receives the packets with TTL=0 returns a message to the computer that they cannot go further. Traceroute records the address of the node, as well as the time it took for each packet to pass.

Next, traceroute sends three packets again, but with TTL=2. The first node decreases the TTL and sends them to the next node. Then everything is repeated with TTL=3, TTL=4 and so on until the packets reach their destination. When the packets reach the end node and it returns a message that the packets cannot go further, the trace is considered complete.

In Linux and MacOS operating systems, the tracing utility is called traceroute. In Windows, the tracert utility is used. Let's show how these utilities work.

Tracing the route to the server

On a computer, tracing is done on the command line.

Windows

Press the Win+R key combination and in the window that opens, enter the cmd command.

Изображение

This will open a command prompt. To do a trace, use tracert. You can specify the server address as its IP address or domain name:

tracert ip_address_server

Изображение

In the traceroute results, you will see a list of all the nodes on the path to the server you are routing to.

Linux or Mac OS

On Mac OS, go to the Applications section in the Finder sidebar, then go to the Utilities folder and open the Terminal application.

On Linux, open Terminal with the Ctrl+Alt+T key combination.

In Terminal, to start a traceroute, use the traceroute command along with the domain name or IP address of the server:

traceroute address_server

Изображение

Traceroute results

In the traceroute results you will see a list of all nodes on the way to the server you are routing to, for example:

traceroute to xserver.cloud (193.203.50.50), 30 hops max, 60 byte packets
1 rs2-de.xsv.cl (195.211.40.250) 0.249 ms 0.292 ms 0.353 ms
2 212.83.62.57 (212.83.62.57) 0.124 ms 0.264 ms 0.270 ms
3 ae2-0.bb02.fra01.net.23m.com (62.113.192.81) 0.367 ms 0.483 ms 0.453 ms
4 ae72.edge9.Frankfurt1.Level3.net (62.67.110.45) 7.957 ms 7.964 ms 0.286 ms
5 ae2.3223.ear7.frf1.neo.colt.net (171.75.9.179) 0.274 ms 0.279 ms 0.263 ms
6 ae9.cr6-fra6.ip4.gtt.net (213.39.30.113) 0.302 ms 0.321 ms 0.294 ms
7 ip4.gtt.net (154.14.67.30) 7.307 ms 7.291 ms 7.287 ms
8 a2b-2-nl.xsv.cl (31.134.201.150) 7.749 ms 7.775 ms
9 xserver.cloud (193.203.50.50) 7.682 ms 7.667 ms 7.653 ms

Now you know what network tracing is and how to do it on your computer.

Article Tags