IPv6 NDP: router discovery (RS/RA), NS/NA and DAD
Sign in to read this lesson
IPv6 hosts also need a unique address, a default gateway and a DNS server, but there is no ARP: NDP (Neighbor Discovery Protocol) replaces it. NDP uses ICMPv6 messages. In router discovery the host sends a Router Solicitation to all routers (FF02::2), and the router answers with a Router Advertisement carrying its link-local address and the subnet's prefix. NS and NA replace the ARP request/reply; the NS is sent to the solicited-node multicast address. With DAD, before using a unicast address the device sends an NS for it; if an NA comes back, the address is already taken.
What you will learn
- IPv6 has no ARP; NDP (Neighbor Discovery Protocol) replaces it. NDP uses ICMPv6 messages: RS, RA, NS, NA, Redirect.
- Router discovery: the host sends an RS (Router Solicitation) to FF02::2 (all routers); the router answers with an RA (Router Advertisement) carrying its link-local address and the subnet's prefix. Routers also send RAs periodically to FF02::1.
- MAC address discovery: NS (Neighbor Solicitation) = ARP request, NA (Neighbor Advertisement) = ARP reply. The NS goes to the solicited-node multicast address. The answer is stored in the neighbor cache.
- DAD (Duplicate Address Detection): before a unicast address is used, an NS is sent for it. If an NA comes back, the address is a duplicate and is not used. DAD runs for all unicast addresses (link-local too), when they are configured and every time the interface comes up.
- The four jobs of NDP: router discovery, MAC address discovery, DAD and SLAAC (next lesson).
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.