IP destination versus Ethernet destination
For a remote server, the packet’s destination IPv6 address remains the server’s address in ordinary forwarding. The Ethernet destination is the next-hop router’s MAC. Each router removes the incoming frame, decreases Hop Limit and encapsulates the packet for the outgoing link. Not every link technology uses Ethernet.
For an on-link printer, the next hop is the printer itself. The host needs the printer’s MAC address, not a router’s MAC.
Finding a neighbor’s MAC
Neighbor Discovery uses ICMPv6 rather than IPv4 ARP. In ordinary address resolution:
- The sender checks its neighbor cache.
- If needed, it sends a Neighbor Solicitation naming the complete target IPv6 address, normally to the target’s solicited-node multicast group.
- The owner returns a Neighbor Advertisement, normally directly to the requester for this exchange, supplying its link-layer address.
- The sender caches the mapping and sends data to the individual destination MAC. It need not multicast a question for every packet.
Two mappings with different bit counts
Added worked example:
Target: 2001:db8:42:7::1234:5678
Target's last 24 bits: 34:5678
Solicited-node IPv6 group: ff02::1:ff34:5678
Group's last 32 bits: ff34:5678
Ethernet multicast MAC: 33:33:ff:34:56:78The solicited-node prefix is ff02::1:ff00:0/104, followed by the unicast address’s lowest 24 bits. The Ethernet multicast mapping is 33:33 followed by the multicast IPv6 address’s lowest 32 bits.
For ff02::1:ffab:cdef, the MAC is 33:33:ff:ab:cd:ef. MAC notation uses six two-digit hexadecimal bytes, rather than IPv6’s four-digit groups.
Multiple target addresses can share their last 24 bits and therefore the same solicited-node group. The full Target Address in the solicitation distinguishes the actual query. Multicast-to-MAC mapping can also map multiple IP groups to the same MAC, so IP filtering still matters.
How one MAC reaches several devices
A multicast MAC is a group destination. A frame contains one destination MAC, not a list of each receiver’s personal MAC.
Sender: one frame to 33:33:ff:ab:cd:ef
|
Ethernet network
/ | \
A B CSeveral network interfaces can be configured to accept this group MAC. A switch may copy the frame to the relevant ports. MLD snooping can improve selection; without appropriate filtering, multicast may be forwarded broadly within the link. Group membership is not an access-control guarantee.
Source and related
Lecture 03 - IPv6, PDF pages 53-63. Packet walks, mapping calculations and Ethernet distribution explanation are added study material.