Internet Control Message Protocol version 6 (ICMPv6) is the implementation of the Internet Control Message Protocol (ICMP) for Internet Protocol version 6 (IPv6).[1] ICMPv6 is an integral part of IPv6 and performs error reporting and diagnostic functions.
ICMPv6 has a framework for extensions to implement new features. Several extensions have been published, defining new ICMPv6 message types as well as new options for existing ICMPv6 message types. For example, Neighbor Discovery Protocol (NDP) is a node discovery protocol based on ICMPv6 which replaces and enhances functions of ARP.[2]Secure Neighbor Discovery (SEND) is an extension of NDP with extra security. Multicast Listener Discovery (MLD) is used by IPv6 routers for discovering multicast listeners on a directly attached link, much like Internet Group Management Protocol (IGMP) is used in IPv4. Multicast Router Discovery (MRD) allows the discovery of multicast routers.
Message types and formats
ICMPv6 messages may be classified as error messages and information messages. ICMPv6 messages are transported by IPv6 packets in which the IPv6 Next Header value for ICMPv6 is set to the value 58.
The ICMPv6 message consists of a header and the protocol payload. The header contains only three fields: type (8 bits), code (8 bits), and checksum (16 bits). type specifies the type of the message. Values in the range from 0 to 127 (high-order bit is 0) indicate an error message, while values in the range from 128 to 255 (high-order bit is 1) indicate an information message. The code field value depends on the message type and provides an additional level of message granularity. The checksum field provides a minimal level of integrity verification for the ICMP message.
ICMPv6 packet
Bit offset
0–7
8–15
16–31
0
Type
Code
Checksum
32
Message body
Types
Control messages are identified by the value in the type field. The code field gives additional context information for the message. Some messages serve the same purpose as the correspondingly named ICMP message types.
Reserved for expansion of ICMPv6 informational messages
Note that the table above is not comprehensive. The current complete list of assigned ICMPv6 types can be found at this link: IANA: ICMPv6 Parameters.
Checksum
ICMPv6 provides a minimal level of message integrity verification by the inclusion of a 16-bit checksum in its header. The checksum is calculated starting with a pseudo-header of IPv6 header fields according to the IPv6 standard,[5] which consists of the source and destination addresses, the packet length and the next header field, the latter of which is set to the value 58. Following this pseudo header, the checksum is continued with the ICMPv6 message. The checksum computation is performed according to Internet protocol standards using 16-bit ones' complement summation, followed by a final ones' complement of the checksum itself and inserting it into the checksum field.[6] Note that this differs from the way it is calculated for IPv4 in ICMP, but is similar to the calculation done in TCP.
ICMPv6 pseudo-header
Bit offset
0 – 7
8–15
16–23
24–31
0
Source address
32
64
96
128
Destination address
160
192
224
256
ICMPv6 length
288
Zeros
Next header
colspan=== Format ===
This article or section is in a state of significant expansion or restructuring. You are welcome to assist in its construction by editing it as well. If this article or section has not been edited in several days, please remove this template. If you are the editor who added this template and you are actively editing, please be sure to replace this template with {{in use}} during the active editing session. Click on the link for template parameters to use.
This article was last edited by Phatom87(talk | contribs) 19 months ago. (Updatetimer)
ICMPv6 Destination Unreachable
Bit offset
0–7
8–15
16–31
0
1
Code
Checksum
32
unused
64
Message body (Variable Size)
ICMPv6 Packet Too Big
Bit offset
0–7
8–15
16–31
0
2
0
Checksum
32
MTU
64
Message body (Variable Size)
ICMPv6 Time Exceeded
Bit offset
0–7
8–15
16–31
0
3
Code
Checksum
32
Unused
64
Message body (Variable Size)
ICMPv6 Parameter Problem
Bit offset
0–7
8–15
16–31
0
4
Code
Checksum
32
Pointer
64
Message body (Variable Size)
ICMPv6 Echo Request
Bit offset
0–7
8–15
16–31
0
128
0
Checksum
32
Identifier
colspan="16 Sequence Number"
64
Message body (Variable Size)
ICMPv6 Echo Reply
Bit offset
0–7
8–15
16–31
0
129
0
Checksum
32
Identifier |colspan="16 Sequence Number"
64
Message body (Variable Size)
ICMPv6 Router Solicitation
Bit offset
0–7
8–15
16–31
0
133
0
Checksum
32
Reserved
64
Options (Variable Size)
ICMPv6 Router Advertisement
Bit offset
0–7
8–15
16–31
0
134
0
Checksum
32
Cur Hop Limit
Managed Address Flag
Other Configuration Flag
Reservered
Router Lifetime
64
Reachable Time
96
Retrans Time
128
Options (Variable Size)
ICMPv6 Neighbor Solicitation
Bit offset
0–7
8–15
16–31
0
135
0
Checksum
32
Reserved
64
Target Address (16 bytes)
192
Options (Variable Size)
ICMPv6 Neighbor Advertisement
Bit offset
0–7
8–15
16–31
0
136
0
Checksum
32
Cur Hop Limit
From Router (R)
Solicited Flag(S)
Override(O)
Reserved
64
Target Address (16 bytes)
192
Options (Variable Size)
ICMPv6 Redirect
Bit offset
0–7
8–15
16–31
0
137
0
Checksum
32
Reserved
64
Target Address (16 bytes)
192
Destination Address (16 bytes)
320
Options (Variable Size)
Message processing
When an ICMPv6 node receives a packet, it must undertake actions that depend on the type of message. The ICMPv6 protocol must limit the number of error messages sent to the same destination to avoid network overloading. For example, if a node continues to forward erroneous packets, ICMP will signal the error to the first packet and then do so periodically, with a fixed minimum period or with a fixed network maximum load. An ICMP error message must never be sent in response to another ICMP error message.