progressively incremented for subsequent packets. A router will decrement the time-to-live as a
packet traverses it. If the value becomes zero, the packet is dropped by the router and an ICMP
time-exceeded message is sent back to the source which sends another packet with a time-to-live
of 2 in order to reach the next router. The incrementing of the time-to-live continues until the
intended destination is reached. The ICMP time-exceeded messages sent back by the routers
between the source and destination provide the basis for the traceroute output.
A traceroute command is found on many other systems such as Microsoft Windows™. Like
Windows, NetDefendOS sends its traceroute packets as ICMP ping messages. The basic form of
the CLI command in NetDefendOS is:
gw-world:/> traceroute <destination>
The <destination> can be an IPv4 or IPv6 address, for example:
gw-world:/> traceroute 192.168.4.1
Or it can be a DNS resolvable Fully Qualified Domain Name (FQDN), for example:
gw-world:/> traceroute server.example.com
When using traceroute with an FQDN then at least one DNS server must have been configured in
NetDefendOS to perform the resolution. Doing this is described in Section 3.10, “DNS”.
Traceroute Output
Below is some typical output from traceroute using the default settings with the destination
specified as an FQDN:
gw-world:/> traceroute server.example.com
Tracing server.example.com [10.194.40.247], 30 hops max, 32 bytes of data
Hop# RTT RTT RTT Host
1 10 ms 10 ms 10 ms 10.4.16.1
2 10 ms 10 ms 10 ms 10.4.0.2
3 10 ms 0 ms 10 ms 10.194.40.247
Trace complete.
Here, each line of output corresponds to an attempt by traceroute to reach the next router.
By default, traceroute tries 3 times for each router hop and the Round Trip Time for each attempt
expressed in milliseconds is shown under a corresponding RTT heading. There were two routers
in the path to the target destination in the above output (hop number 1 and hop number 2). The
final hop (number 3) is the destination which was DNS resolved as the IPv4 address
10.194.40.247.
The Route Can Change
Given the dynamic nature of a packet switch network, it is possible for consecutive packets sent
by the traceroute command to pass through different sets of routers. It is difficult to know that
this is occurring and it is not indicated in the traceroute command output.
It is possible that different routers could respond for a given hop value. The address displayed at
the end of lines of traceroute output under the Host column is always the router that dealt with
the last ICMP message sent for that hop.
Traceroute Options
The following are some of the important options for the traceroute command:
Chapter 2: Management and Maintenance
129