9-6
Stinger®
Administration Guide
Working with IP Traffic
Tracing IP routes
Tracing IP routes
The
traceroute
command is useful for locating slow routers or diagnosing IP routing
problems. It traces the route an IP packet takes by launching UDP probe packets with
a low time-to-live (TTL) value and then listening for an ICMP
time exceeded
reply
from a router. For example, the following sample command traces the route to the
host
techpubs
:
admin>
traceroute techpubs
traceroute to techpubs (10.65.212.19), 30 hops max, 0 byte packets
1 techpubs.abc.com (10.65.212.19) 0 ms 0 ms 0 ms
Probes start with a TTL of 1 and increase by 1 until one of the following conditions
occurs:
The Stinger unit receives an ICMP
port unreachable
message. (The UDP port in
the probe packets is set to an unlikely value, such as 33434, because the target
host is not intended to process the packets. A
port unreachable
message
indicates that the packets reached the target host and were rejected.)
The TTL value reaches the maximum value. (By default, the maximum TTL is set
to 30.) You can use the
-m
option to specify a different TTL. For example:
admin>
traceroute -m 60 techpubs
traceroute to techpubs (10.65.212.19), 60 hops max, 0 byte packets
1 techpubs.abc.com (10.65.212.19) 0 ms 0 ms 0 ms
The
traceroute
command sends three probes at each TTL setting. The second line of
output shows the address of the router and the round-trip time of each probe. If the
probe answers come from different gateways, the address of each responding system
is shown. If there is no response within a 3-second timeout interval, the second line
of output is an asterisk.
For the details of the
traceroute
command, see the
Stinger Reference
.
Displaying IP protocol statistics
The
netstat
command displays the Stinger IP interface and routing tables, protocol
statistics, and active sockets. By default (without an argument), the
netstat
command reports information about UDP and TCP socket information. For an
explanation of the output fields, see the
Stinger Reference
.
admin>
netstat
udp:
-Socket- Local Port InQLen InQMax InQDrops Total Rx
1/c 0 1023 0 1 0 0
1/c 1 520 0 0 0 15510
1/c 2 7 0 32 0 0
1/c 3 123 0 32 0 0
1/c 4 5150 0 256 0 0
1/c 5 1022 0 128 0 0
1/c 6 161 0 32 0 0
1/c 7 1797 0 128 0 22
1/8 0 1018 0 128 0 0
1/8 1 20108 0 32 0 0
1/8 2 1008 0 128 0 0
1/8 3 1798 0 128 0 0
Summary of Contents for Stinger
Page 1: ...Stinger Administration Guide Part Number 7820 0712 008 For software version 9 7 0 August 2004 ...
Page 4: ......
Page 16: ......
Page 18: ......
Page 62: ......
Page 82: ......
Page 96: ......
Page 182: ......
Page 218: ......
Page 236: ......
Page 252: ......
Page 288: ......
Page 350: ......
Page 362: ......
Page 374: ......