Skip to main content

3. Message Formats

ICMP Router Advertisement Message

       0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Num Addrs |Addr Entry Size| Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router Address[1] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preference Level[1] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router Address[2] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preference Level[2] |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| . |
| . |
| . |

IP Fields:

  • Source Address: An IP address belonging to the interface from which this message is sent.

  • Destination Address: The configured AdvertisementAddress or the IP address of a neighboring host.

  • Time-to-Live: 1 if the Destination Address is an IP multicast address; at least 1 otherwise.

ICMP Fields:

  • Type: 9

  • Code: 0

  • Checksum: The 16-bit one's complement of the one's complement sum of the ICMP message, starting with the ICMP Type. For computing the checksum, the Checksum field is set to 0.

  • Num Addrs: The number of router addresses advertised in this message.

  • Addr Entry Size: The number of 32-bit words of information per each router address (2, in the version of the protocol described here).

  • Lifetime: The maximum number of seconds that the router addresses may be considered valid.

  • Router Address[i], i = 1..Num Addrs: The sending router's IP address(es) on the interface from which this message is sent.

  • Preference Level[i], i = 1..Num Addrs: The preferability of each Router Address[i] as a default router address, relative to other router addresses on the same subnet. A signed, twos-complement value; higher values mean more preferable.

ICMP Router Solicitation Message

       0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

IP Fields:

  • Source Address: An IP address belonging to the interface from which this message is sent, or 0.

  • Destination Address: The configured SolicitationAddress.

  • Time-to-Live: 1 if the Destination Address is an IP multicast address; at least 1 otherwise.

ICMP Fields:

  • Type: 10

  • Code: 0

  • Checksum: The 16-bit one's complement of the one's complement sum of the ICMP message, starting with the ICMP Type. For computing the checksum, the Checksum field is set to 0.

  • Reserved: Sent as 0; ignored on reception.