The TSO TRACERTE command is useful for debugging various network problems. The Tracerte command sends UDP requests with varying TTL (time-to-live) or hop count values and then waits for the routers between the local and remote hosts to send TTL-exceeded messages.
>>-TRACERTE-----------------------------------------------------> >--+-?---------------------------------------------+----------->< '-host_name--+------------+--+----------------+-' '-packetSize-' '-(--| Options |-' Options .------------------------. V | |----+--------------------+-+-----------------------------------| +-Addrtype--+-ipv4-+-+ | '-ipv6-' | +-DEBUG--------------+ +-Intf --interface---+ +-Limdisp------------+ | .-30--. | +-MAX--+-----+-------+ | '-hop-' | +-NOName-------------+ +-NORoute------------+ | .-33434-. | +-PORT--+-------+----+ | '-num---' | +-Srcip --srcAddr----+ +-TCP --tcpname------+ | .-0---. | +-Tos--+-----+-------+ | '-tos-' | | .-3--------. | +-TRY--+----------+--+ | '-attempts-' | +-Verbose------------+ | .-5-------. | '-WAIT--+---------+--' '-seconds-'
If the host_name value is specified as a host name (not an IP address), the command invokes the resolver to obtain an IP address for the host_name value. The command uses the first IP address that is returned by the resolver. You can use the ADDRTYPE option to determine whether the command requests only IPv4 or only IPv6 IP addresses from the resolver. If you do not specify the ADDRTYPE option, the INTF and SRCIP options can also be used to determine whether the command requests only IPv4 or only IPv6 IP addresses from the resolver. If neither ADDRTYPE, INTF, or SRCIP are specified, then the command does not request a specific type of IP address from the resolver; IPv4 and IPv6 IP addresses can be returned by the resolver.
When using IPv6 link-local addresses, you can provide scope information with the IP address or host name. To specify scope information, add a percent character (%) after the host_name value, followed by the scope information (usually an interface name). See the examples that follow for an example of using the command with scope information. For a more complete explanation about the use of scope information, see the support for scope information in the z/OS Communications Server: IPv6 Network and Application Design Guide.
For IPv4 destinations, the packet size value must be between 1 and 65 495 bytes. The 65 495 value is the maximum IP packet size (65 535) minus the default probe packet size (40). The default probe packet size includes the IP header, UDP header, and default UDP data.
For IPv6 destinations, the packet size value must be between 1 and 65 515 bytes. The 65 515 value is the maximum UDP data size (65 535) minus the default UDP probe packet size (20). The default probe packet size includes the UDP header, and default UDP data. The IPv6 IP header is added later, before the packet is sent and its size is not included in the packetSize value.
If additional IP headers are dynamically added later to the outbound probe packet then the actual size of the packet is increased.
If the ADDRTYPE option is not specified, see the description of the host_name parameter for information on how the host_name value is resolved to an IP address.
If the destination host is specified as a host name and the ADDRTYPE option is not specified, the address type of the INTF value is used to determine whether the host name is resolved to an IPv4 or IPv6 IP address.
For example, in the default case, the source port number is 33 434. The destination port number in the first outbound probe packet is the default port value of 33 434 plus one, or 33 435. The destination port number is incremented by 1 for each subsequent outbound probe packet.
If the destination host is specified as a host name and the ADDRTYPE option is not specified, the address type of the SRCIP value is used to determine whether the host name should be resolved to an IPv4 or IPv6 IP address.
Restriction: You cannot specify scope information for the source IP address.
HOP NAME (IP_ADDRESS) NUM ms !FLAG
The
values displayed are: Value | Description |
---|---|
HOP | The hop limit value used in the outbound probe packets. |
NAME | If the source IP address in the received Internet Control Message Protocol (ICMP) response can be found in the host site tables, NAME displays the name associated with the source IP address. The host name displayed might include scope information representing the interface over which the ICMP response was received. |
IP_ADDRESS | The source IP address from the received ICMP response. |
NUM | The elapsed time between when the probe packet was sent out and when the ICMP response to that probe packet was received. |
! | An exclamation point without one of the FLAG values below indicates that the received hop limit was less than or equal to 1. Otherwise, an exclamation point is followed by one of the values below. |
FLAG | This is an optional field. It is
present only if one of the following events occurs. Unless otherwise
indicated the flags apply to both IPv4 and IPv6 destinations.
|
tracerte cyst.watson.ibm.com
CS V2R1: Traceroute to CYST.WATSON.IBM.COM (9.2.91.34)
1 9.67.22.2 (9.67.22.2) 67 ms 53 ms 60 ms
2 * * *
3 9.67.1.5 (9.67.1.5) 119 ms 83 ms 65 ms
4 9.3.8.14 (9.3.8.14) 77 ms 80 ms 87 ms
5 9.158.1.1 (9.158.1.1) 94 ms 89 ms 85 ms
6 9.31.3.1 (9.31.3.1) 189 ms 197 ms *
7 * * 9.31.16.2 (9.31.16.2) 954 ms
8 129.34.31.33 (129.34.31.33) 164 ms 181 ms 216 ms
9 9.2.95.1 (9.2.95.1) 198 ms 182 ms 178 ms
10 9.2.91.34 (9.2.91.34) 178 ms 187 ms *
tracerte 129.35.130.09
CS V2R1: Traceroute to 129.35.130.09 (129.35.130.9)
1 9.67.22.2 (9.67.22.2) 61 ms 62 ms 56 ms
2 * * *
3 9.67.1.5 (9.67.1.5) 74 ms 73 ms 80 ms
4 9.3.8.1 (9.3.8.1) 182 ms 200 ms 184 ms
5 129.35.208.2 (129.35.208.2) 170 ms 167 ms 163 ms
6 * 129.35.208.2 (129.35.208.2) 192 ms !H 157 ms !H
tracerte 129.45.45.45
CS V2R1: Traceroute to 129.45.45.45 (129.45.45.45)
1 9.67.22.2 (9.67.22.2) 320 ms 56 ms 71 ms
2 * * *
3 9.67.1.5 (9.67.1.5) 67 ms 64 ms 65 ms
4 9.67.1.5 (9.67.1.5) 171 ms !N 68 ms !N 61 ms !N
tracerte EVANS
CS V2R1: Traceroute to EVANS (9.67.30.25)
1 BART (9.67.60.85) 20 ms 56 ms 71 ms
2 BUZZ (9.67.60.84) 55 ms 56 ms 54 ms
3 EVANS (9.67.30.25) 67 ms 64 ms 65 ms
tracerte linuxipv62.tcp
CS V2R1: Traceroute to LINUXIPV62.TCP.raleigh.ibm.com
at IPv6 address: 2001:0DB8::1:9:67:114:44
1 2001:0DB8::206:2aff:fe66:c800
(2001:0DB8::206:2aff:fe66:c800) 2 ms 3 ms *
2 2001:0DB8::1:9:67:114:44
(2001:0DB8::1:9:67:114:44) 2 ms 2 ms 2 ms
tracerte fe80::12:1:2%mpc6221
CS V2R1: Traceroute to FE80::12:1:2
at IPv6 address: fe80::12:1:2
1 fe80::12:1:2%MPC6221
(fe80::12:1:2) 62 ms 1 ms 0 ms
tracerte 2001:0DB8::1:9:67:114:47
CS V2R1: Traceroute to 2001:0DB8::1:9:67:114:47
at IPv6 address: 2001:0DB8::1:9:67:114:47
1 2001:0DB8::206:2aff:fe66:c800
(2001:0DB8::206:2aff:fe66:c800) 3 ms !R * 2 ms !R