▸Protocol notes for this page (click to expand)

NDP (Neighbor Discovery Protocol)

What it is for

NDP does ARP's basic job: given an IPv6 address, find the matching MAC. It runs over ICMPv6 and has no EtherType of its own.

It also handles jobs ARP never had: finding routers (RA), autoconfiguring addresses (SLAAC) and duplicate address detection (DAD).

NDP uses multicast

An ARP request is broadcast, so every host CPU in the broadcast domain must process it.

An NDP request goes to a solicited-node multicast address derived from the low 24 bits of the target IPv6 address, so usually only the target receives it.

On a subnet of the same size, one to two orders of magnitude fewer hosts receive an NDP request than an ARP request.

Common misconceptions

NDP uses multicast, while ARP uses broadcast. If the switches do not run MLD snooping, those multicasts are flooded to every port like broadcast and the advantage of multicast is lost.

Blocking ICMPv6 affects addressing: NDP messages are ICMPv6 messages, so with ICMPv6 blocked, hosts on the same subnet cannot resolve each other's addresses.

SLAAC does not fully replace DHCPv6: SLAAC provides an address and a gateway but (in its original form) no DNS, so the two are often used together.