IP option 18, Traceroute

Description Glossary RFCs Publications Obsolete RFCs

Description:

Protocol suite: TCP/IP.
Protocol type:Connectionless network layer protocol.
Option length:12 bytes.
Related ICMP message: Traceroute.
Host implementation:
Router implementation:
Links: IANA: IP option numbers.

RFC 1393, page 2:

The presence of this option in an ICMP Echo (or any other) packet, hereinafter referred to as the outbound packet, will cause a router to send the newly defined ICMP Traceroute message to the originator of the outbound packet. In this way, the path of the outbound packet will be logged by the originator with only n+1 (instead of 2n) packets. This algorithm does not suffer from a changing path and allows the response to the outbound packet, hereinafter refered to as the return packet, to be traced provided the outbound packet's destination preserves the IP Traceroute option in the return packet.


MAC header IP header IP option 18

IP option 18:

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type Length ID Number
Outbound Hop Count Return Hop Count
Originator IP Address

Type. 8 bits. Set to 82.

00 01 02 03 04 05 06 07
C Class Option

C, Copy flag. 1 bit. Cleared to 0.
This option is not to be copied into all fragments.

Class. 2 bits. Set to 2.
A debugging and measurement option.

Option. 5 bits. Set to 18.
The IP option number.

Length. 8 bits. Set to 12.
Total length of the option.

ID Number. 16 bits.
An arbitrary number used by the originator of the outbound packet to identify the ICMP Traceroute messages. It is NOT related to the ID number in the IP header.

Outbound Hop Count. 16 bits.
The number of routers through which the outbound packet has passed. This field is not incremented by the outbound packet's destination.

Return Hop Count. 16 bits.
The number of routers through which the return packet has passed. This field is not incremented by the return packet's destination.

Originator IP Address. 32 bits.
The IP address of the originator of the outbound packet. This is needed so routers can know where to send the ICMP Traceroute message for return packets. It is also needed for outbound packets which have a Source Route option.


Glossary:


RFCs:

[RFC 1393] Traceroute Using an IP Option.


Publications:


Obsolete RFCs:


Description Glossary RFCs Publications Obsolete RFCs