Control, diagnostics and errors

ICMPv6 is carried in IPv6 with Next Header 58. Its messages have Type, Code, Checksum and message-specific data. Error message types are below 128; informational types are 128 and above. It supports more than ping: it underpins Neighbor Discovery, router discovery and multicast membership. Functions performed separately by ARP and IGMP in IPv4 move into the IPv6 control architecture.

MessageTypePurpose
Destination Unreachable1Delivery failure; Code gives a more specific reason
Packet Too Big2Report an outgoing-link MTU constraint
Time Exceeded3Hop Limit expiry or reassembly timeout
Parameter Problem4Invalid/unprocessable header information
Echo Request / Reply128 / 129Ping diagnostics
Router Solicitation / Advertisement133 / 134Request/announce router and configuration information
Neighbor Solicitation / Advertisement135 / 136Neighbor resolution and related discovery functions
Redirect137Inform a host about a better first hop for a destination

Redirect example

Before: Laptop -> Router A -> Router B -> Destination
After:  Laptop ------------> Router B -> Destination

Router A can advise the host to use Router B directly if B is an appropriate on-link next hop. A redirect can also identify the destination itself as on-link. This changes next-hop knowledge for the destination, rather than replacing general RA-based configuration. This diagram is added explanation.

Multicast Listener Discovery

MLD tells multicast routers whether an attached link has interested receivers for a group. Multicast routing protocols perform the separate job of finding forwarding paths between routers/networks.

The source introduces MLDv1:

MessageTypeRole
Listener Query130Router asks about local membership
Listener Report131Receiver reports group interest
Listener Done132Departure signal; router can check for remaining listeners

General queries use ff02::1. Version-specific destination rules matter: MLDv1 reports are sent to the reported multicast group; Done is sent to ff02::2. The source’s statement that reports go to all routers should not be copied as a general rule. Other MLD versions differ, so the v1 table is not an exhaustive modern message list.

If A and B listen to group G and A leaves, forwarding must continue while B is still interested. Routers need group presence on an attached link; this is not necessarily a permanent complete list of all individual receivers.

A switch implementing MLD snooping can observe membership traffic and select ports for multicast delivery. Without suitable filtering it may forward more broadly. A multicast MAC is a group destination, not a list of receiver MACs and not a security boundary.

Lecture 03 - IPv6, PDF pages 65-74 and 91-93. Version distinctions, scenario and diagrams are added study clarification.

MLDv1 destination correction checked against RFC 2710, section 4.