tracert/traceroute
?The tracert
command (in Windows) or traceroute
command (in Linux or Mac) is a network analysis tool that can be used to know the path a
The time duration for this transfer to happen is also recorded with the
traceroute
commandThe tracerroute
command allows you to:
The routes followed by a packet could be tracked with the traceroute
command in real-time using the IP addresses of the different
traceroute
commandThe traceroute
command returns the number of hops encountered by the packet on its way to its destination. The tracert
command will also return the IP addresses of all the
Although many routers on the internet today are set to block the
tracert
messages automatically, the result of the command is inaccurate most of the time.
tracert
It can determine the cause of a response delay in a network.
It determines the routing loops present in a network pathway across nodes that send and receive packets.
It finds the location of failed points in the network while packets move from source to destination.
tracert
command resultLet’s explore what the returned result of a tracert
command means. To do this, we head straight to our command prompt or terminal.
Let’s create a traceroute
to educative.io. We do this by entering the following command in our terminal or command prompt:
tracert www.educative.io
traceroute www. educative.io
The output might look like the diagram below:
traceroute
From the example above, the result appears to have five columns.
The first column from the left represents the serial number of the hop count.
The second, third, and fourth columns are the time it took for the traditional three tracert
command to reach a hop.
The last column represents the IP addresses of all hops encountered.
The rows each represent information about individual hops.
The first row 1
is the address of the device. It connects the network from which this command was made to the internet. This is called the network internet gateway.
The second row 2
is usually the address of the router from which the
Rows 3
-9
are all hops of other networks, some global networks, and other third-party internet business organizations. Some still belong to your ISP.
Usually, the one before the last, in this case 10
, is the hop address of the network the device is hosting. Therefore, www.educative.io can be located.
The last row 11
is the IP of the device (server) hosting the website educative.io.
For a compelling diagnosis of your network, try to combine the tracert
command with the ping
command to get the best results.
Suppose you have problems with timeout
or unreachable error
messages for a site you hosted.
Before running to your ISP or the hosting company to make complaints, you can run some basic checks with the tracert
and then the ping
commands to discover what the problem is.
Note: You can also use it to know where the network delays are and which path is faulty in your local network. You can start diagnosis from there. Type the command
tracert
, without any address, in the command prompt, and you will view the differenttracert
options which can help you refine yourtracert
output.