05-27-2002
The traceroute program constructs an ip datagram addressed to the destination that you specify. But it sets the TTL to one and sends it out. The first router in the path to the destination gets this datagram and decrements the TTL. When is sees that the TTL just became zero, it discards the datagram. It also sends ICMP error back to the source. When traceoute gets the ICMP error, it calculates how long this took and displays the result. It repeats this process two more times. So you get three numbers for the first hop.
Next it sets the TTL to 2 and send out three more datagrams, and prints out 3 more results. This is line two of the display.
And so on, until it reaches the destination or it reaches the max hops.
Those numbers that are being displayed are called the RTT's for each hop.
No the numbers are not cumulative. Routers, especially in a WAN environment have variable loads. What you want to do is look for anything unusual. To know what "unusual" is, you need to run traceroute a lot when stuff is working ok.
9 More Discussions You Might Find Interesting
1. Programming
how we can use traceroute in unix c
so how we can get the output of traceroute command in c
thank u,inadvance
sree (3 Replies)
Discussion started by: phani_sree
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
Can any one suggest me an add on feature for the traceroute command.
Thanks in advance.
Regards,
Selvi (4 Replies)
Discussion started by: salvi
4 Replies
3. IP Networking
This is the output that I get every so often when trying to do a traceroute to the web server whenever it's inaccessible:
traceroute to 64.40.98.181 (64.40.98.181), 30 hops max, 40 byte packets
1 207.97.207.194 (207.97.207.194) 2.625 ms 2.840 ms 2.968 ms
2 core1-5.iad1.rackspace.com... (6 Replies)
Discussion started by: gaspol
6 Replies
4. Shell Programming and Scripting
Good day. I am doing an enq -WA (AIX), to get a list of the print queues, I then compare that to the /etc/hosts file to 'match' the IP address associated with the print queues. What I want to do is to run a traceroute with up to 5 hops, and perform an output to a file with some "specific items".... (0 Replies)
Discussion started by: smurphy_it
0 Replies
5. UNIX for Dummies Questions & Answers
Good afternoon
Can anyone explain traceroutes to me and when it would be necessary/what situations would call one to use it? (2 Replies)
Discussion started by: iamnew2solaris
2 Replies
6. UNIX for Advanced & Expert Users
Hi Colleagues,
Somebody can explain me and send me examples about traceroute, I know is for network but I need anderstand your funcionality.
Thank you for advanced. (2 Replies)
Discussion started by: systemoper
2 Replies
7. Shell Programming and Scripting
This script is giving weird output
#!/bin/bash
NETPATH=(`/bin/traceroute -n 4.2.2.2 | awk '{print $2}'`)
for i in "${NETPATH}"
do
echo $i
done
The output:
to
11.11.11.1
1.1.1.1
99.111.208.2
traceroute_test.sh
traceroute_test.sh (7 Replies)
Discussion started by: thumbs
7 Replies
8. UNIX for Dummies Questions & Answers
Hi guys,
Quick traceroute query.
As part of some research I'm doing I need to send a traceroute to an equal number of IPv4 and IPv6 addresses on the net and basically capture the number of hops, and intermediate IP addresses from the traces.
This all needs to be automated as there are... (2 Replies)
Discussion started by: churchill
2 Replies
9. IP Networking
I have some question about traceroute:
1. Can we hide our computer from traceroute? (2 Replies)
Discussion started by: budiantho_indra
2 Replies
LEARN ABOUT DEBIAN
inetutils-traceroute
TRACEROUTE(1) User Commands TRACEROUTE(1)
NAME
traceroute - Trace the route to a host
SYNOPSIS
traceroute [OPTION...] HOST
DESCRIPTION
Print the route packets trace to network host.
-M, --type=METHOD
use METHOD (`icmp' or `udp') for traceroute operations
-p, --port=PORT
use destination PORT port (default: 33434)
-q, --tries=NUM
send NUM probe packets per hop (default: 3)
--resolve-hostnames
resolve hostnames
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
AUTHOR
Written by Elian Gidoni.
REPORTING BUGS
Report bugs to <bug-inetutils@gnu.org>.
COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for traceroute is maintained as a Texinfo manual. If the info and traceroute programs are properly installed at
your site, the command
info traceroute
should give you access to the complete manual.
GNU inetutils 1.9 December 2011 TRACEROUTE(1)