04-28-2011
Traceroute Query
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 around 20K pairs of IP addresses.
When I've done some messing around with traceroute before to some of the addresses, some of the probes time out (as normal) on some of the hops, but some will just keep timing out until the maximum TTL is reached.
What I need to do to is be able to say "after * timeouts, stop the traceroute", is this possible? I want to avoid setting a max TTL if poss so as not to miss out some of the further away hosts.
I had a look through the man pages but didn't see anything that might help...
TIA
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I understand the concept of traceroute - can anyone explain the output to me e.g. 39ms 39ms 39ms are these the times for each trip it takes? Assuming each machine is pinged 3 times.
and how does the RTT work? Is this the time it takes from one machine to another because it doesn't look like... (6 Replies)
Discussion started by: justine petrie
6 Replies
2. Shell Programming and Scripting
hello all-
I am soon to convert a large scale ftp server and my problem is this. There are currently over 50,000 ftp profiles (each one within an individual file) that I need to determine which of the 2 interfaces it is traveling to get to its destination.
My plans were that I will loop thru... (2 Replies)
Discussion started by: hedrict
2 Replies
3. 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
4. Solaris
Can somebody tell why 2 and 3 hops(147.149.129.21) are repeated two times?
corizon@rds894a016 : /usr/sbin/traceroute 147.149.129.21
traceroute: Warning: Multiple interfaces found; using 10.187.37.35 @ e1000g1075000:4
traceroute to 147.149.129.21 (147.149.129.21), 30 hops max, 40 byte packets
... (1 Reply)
Discussion started by: bvvkrishna
1 Replies
5. 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
6. 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
7. IP Networking
I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies
8. 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
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 OSX
traceroute6
TRACEROUTE6(8) BSD System Manager's Manual TRACEROUTE6(8)
NAME
traceroute6 -- print the route IPv6 packets will take to a network node
SYNOPSIS
traceroute6 [-dIlnNrvU] [-f firsthop] [-g gateway] [-m hoplimit] [-p port] [-q probes] [-s src] [-w waittime] target [datalen]
DESCRIPTION
The traceroute6 utility uses the IPv6 protocol hop limit field to elicit an ICMPv6 TIME_EXCEEDED response from each gateway along the path to
some host.
The only mandatory parameter is the destination host name or IPv6 address. The default probe datagram carries 12 bytes of payload, in addi-
tion to the IPv6 header. The size of the payload can be specified by giving a length (in bytes) after the destination host name.
Other options are:
-d Debug mode.
-f firsthop
Specify how many hops to skip in trace.
-g gateway
Specify intermediate gateway (traceroute6 uses routing header).
-I Use ICMP6 ECHO instead of UDP datagrams.
-l Print both host hostnames and numeric addresses. Normally traceroute6 prints only hostnames if -n is not specified, and only numeric
addresses if -n is specified.
-m hoplimit
Specify maximum hoplimit, up to 255. The default is 30 hops.
-n Do not resolve numeric address to hostname.
-N Use a packet with no upper layer header for the probes, instead of UDP datagrams.
-p port
Set UDP port number to port.
-q probes
Set the number of probe per hop count to probes.
-r Bypass the normal routing tables and send directly to a host on an attached network. If the host is not on a directly-connected net-
work, an error is returned. This option corresponds to the SO_DONTROUTE socket option; it can be used to ping a local host through
an interface that has no route through it (e.g., after the interface was dropped by a routing daemon).
-s src Src specifies the source IPv6 address to be used.
-U Use UDP datagrams for the probes. This is the default.
-v Be verbose.
-w waittime
Specify the delay time between probes.
This program prints the route to the given destination and the round-trip time to each gateway, in the same manner as traceroute.
Here is a list of possible annotations after the round-trip time for each gateway:
!N Destination Unreachable - No Route to Host.
!P Destination Unreachable - Administratively Prohibited.
!S Destination Unreachable - Not a Neighbour.
!A Destination Unreachable - Address Unreachable.
! This is printed if the hop limit is <= 1 on a port unreachable message. This means that the packet got to the destination, but
that the reply had a hop limit that was just large enough to allow it to get back to the source of the traceroute6. This was
more interesting in the IPv4 case, where some IP stack bugs could be identified by this behaviour.
RETURN VALUES
The traceroute6 utility will exit with 0 on success, and non-zero on errors.
SEE ALSO
ping(8), ping6(8), traceroute(8)
HISTORY
The traceroute6 utility first appeared in WIDE hydrangea IPv6 protocol stack kit.
BSD
May 17, 1998 BSD