I wanted to know if there is a range which is usually used for destination port that is used in traceroute command. Like the starting address for destination port is 33434. but is there some standard range which is preferred for traceroute ?

link|improve this question
probably a better fit for serverfault. – ObscureRobot Nov 9 '11 at 4:47
did not get you ? – Jiten Shah Nov 9 '11 at 4:55
feedback

migrated from stackoverflow.com Nov 9 '11 at 13:35

This question came from our site for professional and enthusiast programmers.

2 Answers

Traceroute works by sending ICMP packets, which are their own protocol entirely. No ports.

In more detail - traceroute sends ICMP echo packets starting with a TTL of 1. That causes the packet to return a failure at the first router. Then a TTL of 2 - which brings it to the second router. TTL is increased until the destination is reached. The set of routers found along the way is the traced route.

link|improve this answer
We can specify the destination port where the udp packets are send to the destination .(I am going for linux implementaion) . – Jiten Shah Nov 9 '11 at 4:50
Why do you prefer a UDP packet over the standard ICMP echo? – ObscureRobot Nov 9 '11 at 5:00
actually i have a assignment in my college and I need to add some options to it . the orignal code provided to me uses UDP . – Jiten Shah Nov 9 '11 at 5:12
What does the assignment ask you to do? – ObscureRobot Nov 9 '11 at 5:26
to add the port option to the command . It internally uses 33434(default value) as the destination port but I need to add option to the command thru which we can specify the destiantion port . – Jiten Shah Nov 9 '11 at 5:35
show 1 more comment
feedback

After googling I found out that 33434 is the port that is used as the base port for traceroute.

The range goes to 33434 + (max-ttl * numberofprobes - 1), that usually means

  • max-ttl = 30
  • numberofprobes = 3
link|improve this answer
feedback

Your Answer

 
or
required, but never shown