Networking Forums

Networking Forums > Computer Networking > Linux Networking > trace routing question

Reply
Thread Tools Display Modes

trace routing question

 
 
alexk
Guest
Posts: n/a

 
      12-26-2004, 07:39 PM

I've a novice tracert/tracerout question:

Since the packet can take multiple routes each time, how does tracert
performs its job ? Is it running on top of TCP and establishes
predefined virtual circuit, so the packets with given TTL count will
travel each time same route ?

Any links to tracert explanation that consider this topic,
would be greatly appreciated - I couldn't find, by "googling" anything,
except repeated explanations about interpreting the command output.
Thank you great deal,
Alex

 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      12-27-2004, 12:53 AM
alexk wrote:
> I've a novice tracert/tracerout question:
>
> Since the packet can take multiple routes each time, how does tracert
> performs its job ? Is it running on top of TCP and establishes
> predefined virtual circuit, so the packets with given TTL count will
> travel each time same route ?
>
> Any links to tracert explanation that consider this topic,
> would be greatly appreciated - I couldn't find, by "googling" anything,
> except repeated explanations about interpreting the command output.
> Thank you great deal,
> Alex


The following paragraph in the manual page for traceroute answers your
questions:

This program attempts to trace the route an IP packet would follow to
some internet host by launching UDP probe packets with a small ttl
(time to live) then listening for an ICMP "time exceeded" reply from a
gateway. We start our probes with a ttl of one and increase by one
until we get an ICMP "port unreachable" (which means we got to "host")
or hit a max (which defaults to 30 hops & can be changed with the -m
flag). Three probes (change with -q flag) are sent at each ttl setting
and a line is printed showing the ttl, address of the gateway and round
trip time of each probe. If the probe answers come from different
gateways, the address of each responding system will be printed. If
there is no response within a 5 sec. timeout interval (changed with the
-w flag), a "*" is printed for that probe.
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      12-27-2004, 09:49 PM
In article <(E-Mail Removed). com>, alexk wrote:

>I've a novice tracert/tracerout question:


TRACERT (and 'tracerout') are the semi-broken microsoft version of the
Unix 'traceroute' command. While similar, they really are different.

>Since the packet can take multiple routes each time, how does tracert
>performs its job ?


"can take" does not mean it must take different routes. Generally, routing
doesn't shift from path to path very quickly. If the routing does change
during a trace, the Unix version of traceroute will print out the "new"
address that is responding.

>Is it running on top of TCP and establishes predefined virtual circuit,
>so the packets with given TTL count will travel each time same route ?


No. The windoze version of tracert uses ICMP Echo Requests and increments
the Time To Live st each step. The Unix version _can_ be made to use ICMP
Echo Requests (see the '-I' option) but defaults to using UDP packets. There
is a similar program called 'tcptraceroute' that uses TCP packets, but this
is not commonly found in *nix distributions.

>Any links to tracert explanation that consider this topic,
>would be greatly appreciated - I couldn't find, by "googling" anything,
>except repeated explanations about interpreting the command output.


The concept of traceroute is quite simple, and is well explained in the
man page. All it's doing is sending a packet with an intentionally small
time to live, and depending on the intermediate routers to send back an
ICMP Time Exceeded message. What traceroute is showing is the results
of routing decisions at intermediate stages, and THAT can be a very
complex subject, especially when there are multiple routes available.
The terms you are looking for are 'dynamic routing', and there are a
number of protocols dealing with this - such as RIP, OSPF, BGP, and so on.
For more details on that, see the Adv-Routing-HOWTO and NET3-4-HOWTO

-rw-rw-r-- 1 gferg ldp 297491 Sep 4 2003 Adv-Routing-HOWTO
-rw-rw-r-- 1 gferg ldp 203891 Sep 29 09:00 NET3-4-HOWTO

which are available from the Linux Documentation Project
(http://en.tldp.org/HOWTO/HOWTO-INDEX/howtos.html).

Old guy

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing Question Jeff Smith Linux Networking 3 07-08-2009 02:06 AM
Routing question iphtashu.Fitz@gmail.com Linux Networking 5 07-22-2006 04:04 PM
Routing question fraculator@gmail.com Linux Networking 3 04-22-2005 10:03 PM
Routing Question Coenraad Loubser Linux Networking 5 01-19-2005 09:44 PM
Question about routing Przemo Karlikowski Windows Networking 9 08-17-2004 11:23 PM



1 2 3 4 5 6 7 8 9 10 11