Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does traceroute work? [closed]

It seems almost magical. What is the traceroute command doing in order to map out the entire path to some other node on the Internet?

like image 813
raldi Avatar asked Oct 17 '08 07:10

raldi


People also ask

Is it illegal to run traceroute?

Currently hosting with Big Brain Global Networks But no - it's not illegal under the laws of any country I'm aware of. That said: The college will have house-rules for use of its network, and by using any college computers, or one of your own connected to their network, you agree to work within them.

Why does a traceroute stop?

In some cases, the traceroute will get stuck if there is a problem with one of the devices in the path. In other cases, the traceroute may take a long time due to an extremely long path or slow network speeds. In these cases, you may need to end the traceroute before it is finished mapping the entire network path.

Will traceroute work if ping is blocked?

By default traceroute sends UDP packets to track the route to a given host, while ping uses ICMP. But traceroute works processing ICMP packets returned by the routers in the route to the destination host. This means that if you only block outgoing ICMP packets, ping won't work but traceroute will.

What happens if tracert time out?

There are several reasons why a “Request timed out” message may appear at the end of a traceroute, such as in Hops 17 through 19. The destination's firewall or other security device is blocking the request.


1 Answers

traceroute sets the TTL (Time To LIve) field to 1 and increments it for every hop. the routers receiving the message decrement this value and when it reaches 0 they reply a message that the TTL has reached zero. With this reply the client knowns who's in between. do this iteratively until your destination and you got the (at least one of them) route

like image 164
Joachim Kerschbaumer Avatar answered Oct 04 '22 16:10

Joachim Kerschbaumer