Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Tracing route of ip address tracert etc.

  • 03-06-2008 2:41am
    #1
    Registered Users, Registered Users 2 Posts: 7,501 ✭✭✭


    Hi just a quick question. Not sure it belongs in the programmming thread but here it goes.

    Why does running a tracert take so long to return the information for each stop along the way?


Comments

  • Registered Users, Registered Users 2 Posts: 5,401 ✭✭✭DublinDilbert


    Hi just a quick question. Not sure it belongs in the programmming thread but here it goes.

    Why does running a tracert take so long to return the information for each stop along the way?

    Well from memory its using error messages generated when the TTL field reaches zero. The error message usually contains the host name, which tracert will display to the user.

    So the first ICMP request tracert sends out with TTL = 1, the first router this hits decrements the TTL to 0 then sends back a message saying can't route this any further... the next ICMP request is sent out with TTL = 2, the second router will set the TTL = 0, and return an error message etc...


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    I think actually what he's referring to is the reverse dnslookup that's done for each node along the way.

    It basically attempts to query by IP address to find the name of each host. Reverse lookups can be a bit slower than normal lookups, but in reality you tend to see a delay in cases where it's tougher to do a reverse lookup, such as for internal IP addresses, because the program may have to wait for the lookup to time out.

    In Windows, if you run tracert with the -d parameter, it won't do a lookup for each host and should run faster.


Advertisement