The idea: four ICMPv6 messages replace ARP and DHCP

An IPv4 host on a new network asks a DHCP server for an address and uses ARP broadcasts to find MAC addresses. An IPv6 host does both jobs with Neighbor Discovery (RFC 4861): a few ICMPv6 messages sent on the local link. It makes its own link-local address, checks that nobody else has it (Duplicate Address Detection, DAD), asks the router for the network's prefix, builds a global address by itself (SLAAC, RFC 4862), and finds each neighbour's MAC with a Neighbor Solicitation and a Neighbor Advertisement.

Time-down diagram with Host A, Router R and Host B. A sends a DAD Neighbor Solicitation from :: that nobody answers, a Router Solicitation to ff02::2, gets a Router Advertisement with prefix 2001:db8:1::/64, sends a second DAD NS for its SLAAC address, then an NS to B's solicited-node group and gets a unicast Neighbor Advertisement from B.
One host's first seconds on a link: two DAD checks, one RS/RA exchange, then NS/NA to reach a neighbour.

The messages

All of them are ICMPv6 with Hop Limit 255. A receiver drops any NDP packet whose Hop Limit is lower, so it knows the packet was not forwarded by a router from somewhere else.

TypeMessageSent by, toJob
133Router Solicitation (RS)host → ff02::2 (all routers)"Is there a router?"
134Router Advertisement (RA)router → ff02::1 (all nodes), or now and then on its owndefault router, prefixes, flags, lifetimes
135Neighbor Solicitation (NS)host → target's solicited-node group, or unicast"Who has this address?", DAD, and checking a neighbour
136Neighbor Advertisement (NA)target → asker, or ff02::1"I have it; here is my MAC"

A fifth one, Redirect (137), lets a router point a host to a better first hop. The page leaves it out.

An IPv6 address on a LAN is a 64-bit prefix plus a 64-bit interface ID. The classic way to get the ID is modified EUI-64 (RFC 4291): take the 48-bit MAC, put ff:fe in the middle and flip bit 0x02 of the first byte. MAC 52:54:00:12:34:56 gives 5054:00ff:fe12:3456. With the prefix fe80::/64 in front, the host has its link-local address fe80::5054:ff:fe12:3456 before it has heard from anyone. Link-local addresses only work on this one link; routers never forward them. All NDP traffic between hosts and routers uses them.

The MAC 52:54:00:12:34:56 becomes the interface ID 5054:00ff:fe12:3456. Prefix fe80::/64 plus the ID is the link-local address; prefix 2001:db8:1::/64 from the RA plus the ID is the SLAAC address. The last 24 bits 12:34:56 give the solicited-node group ff02::1:ff12:3456 and the Ethernet multicast MAC 33:33:ff:12:34:56.
One MAC gives the interface ID; the ID gives both addresses, and its last 24 bits give the solicited-node group and its multicast MAC.

Solicited-node multicast, not broadcast

IPv6 has no broadcast. For every address it has, a node joins a solicited-node multicast group: ff02::1:ff followed by the last 24 bits of the address. The group maps to an Ethernet multicast MAC: 33:33 plus the last 32 bits of the group. The NIC is told to accept only the groups the host joined, so a frame for 33:33:ff:00:00:20 is dropped by every NIC except those whose address ends in 00:00:20. With ARP, every host on the LAN must read every request. Here R's NIC drops the frame and its CPU never sees it (Demo: ping B, NS and NA instead of ARP). The switch in the model still floods the multicast frame to every port; a switch with MLD snooping would send it only where someone joined.

Duplicate Address Detection

A new address starts tentative. The host may not use it as a source yet. It sends an NS whose target is the tentative address, from the unspecified address ::, to that address's solicited-node group. Then it waits RetransTimer, 1 s (with DupAddrDetectTransmits = 1, the Linux default dad_transmits). No answer: the address becomes preferred (Demo: boot, link-local address and DAD).

If a node already owns the address, it defends it with an NA. Because the NS came from ::, it cannot reply to the asker directly, so it sends the NA to all nodes, ff02::1, with S=0. The new host then marks the address duplicate (Linux shows dadfailed). When the address came from the MAC, as here, two machines share a MAC (a cloned virtual machine is the usual cause), and RFC 4862 says the host should stop IPv6 on that interface. Linux does that only with accept_dad = 2 (Demo: DAD conflict, a cloned VM).

Router Advertisement and SLAAC

Routers send RAs every 200–600 s on their own, but a booting host does not wait: it sends an RS to ff02::2. The RS carries the host's MAC, so the router learns it without asking. The RA answers from the router's link-local address, here fe80::1 (Demo: Router Advertisement and SLAAC).

RA fieldValue hereWhat the host does
Router Lifetime1800 suses fe80::1 as default router for 1800 s (0 would mean "not a default router")
M, O flags0, 0M=1 would say "get addresses from DHCPv6", O=1 "get other settings (DNS) from DHCPv6"
Cur Hop Limit64Hop Limit for the host's own packets
Reachable Time, Retrans Timer0, 00 = not set: the host keeps its defaults, 30 s and 1 s
Prefix Information2001:db8:1::/64, L=1, A=1L=1: the prefix is on this link (talk to those addresses directly). A=1: build an address from it
Valid / Preferred Lifetime2592000 s / 604800 suse the address for new connections for 7 days, keep it for 30; each RA restarts both

With A=1 the host puts the prefix in front of its interface ID: 2001:db8:1::5054:ff:fe12:3456. That address is tentative too, so DAD runs again. Its solicited-node group is the same one, because the last 24 bits did not change. Without any RA the host has only its link-local address, and a ping to 2001:db8:1::20 fails at once with "Network is unreachable": no prefix says the address is on-link, and no default router could forward it (Demo: ping before any RA, no route).

Finding a neighbour's MAC, and the neighbour cache

To send to 2001:db8:1::20 the host first checks its prefix list: the address is on-link, so the next hop is B itself. With no cache entry it creates one in INCOMPLETE, queues the packet, and sends an NS to B's solicited-node group ff02::1:ff00:20, with its own MAC in a Source Link-Layer Address option. B learns A's MAC from that option and answers with a unicast NA: S=1 (solicited), O=1 (override), and its MAC in a Target Link-Layer Address option. A solicited NA proves that B is reachable now, so the entry becomes REACHABLE and the queued packet leaves.

Neighbour cache states: INCOMPLETE goes to REACHABLE on a solicited NA; REACHABLE goes to STALE after 30 s; sending on a STALE entry goes to DELAY; after 5 s without confirmation DELAY goes to PROBE, which sends a unicast NS; a solicited NA returns it to REACHABLE.
An entry is trusted for 30 s, then kept but doubted (STALE), and checked again with a unicast NS only when it is used.
StateMeaningLeaves it when
INCOMPLETENS sent, no MAC yet; packets waita solicited NA arrives (or 3 NS go unanswered: the entry is deleted)
REACHABLEconfirmed in the last ReachableTime (30 s)30 s pass → STALE
STALEMAC known, not confirmed; also the start state of an entry learned from someone else's RS, RA or NSa packet is sent to it → DELAY
DELAYsending on trust, waiting 5 s for a confirmation (a TCP ACK counts; a ping reply does not)confirmed → REACHABLE, or 5 s → PROBE
PROBEunicast NS to the cached MACa solicited NA → REACHABLE (3 failed probes: the entry is deleted)

So a cached MAC is never thrown away just because it is old. It is checked in the background the next time it is used (Demo: cache ages, STALE, DELAY, PROBE). How ARP Finds a MAC Address shows the same states in Linux's ARP cache for IPv4, and IPv4 vs IPv6 sets SLAAC beside DHCP. See also How a Device Gets an IP Address for how an IPv4 host gets its address from a server instead.

What the page leaves out

The MLD reports a host sends when it joins a group, and MLD snooping in switches; the random delays before the first NS or RS (up to 1 s) and before a solicited RA (up to 0.5 s); stable random interface IDs (RFC 7217) and temporary privacy addresses (RFC 8981), which most systems use today instead of EUI-64; optimistic DAD; DNS servers in the RA (RDNSS) and DHCPv6 when M or O is set; Redirect messages; unsolicited RAs, router lifetime 0 and prefix deprecation; the full neighbour state machines of R and B; and NDP security (SEND, RA Guard on switches).

On the mind map

Open the Networking mind mapNetworkingLayers & links: frames on one local networkLayers & linksIP & routing: packets hop between networksIP & routingCore services: address, name and timeCore servicesTCP, UDP & sockets: end to end between two portsTCP, UDP & socketsHTTP & TLS: what a browser does per requestHTTP & TLSAPIs & push: how apps talk to serversAPIs & pushProxies & edge: boxes in the middle of the pathProxies & edgeContainers: virtual networks from Linux partsContainersReal-time media: voice and video over UDPReal-time mediaSecurity at the edge: filter traffic at the borderSecurity at the edgeRouter forwardingRouter forwardinglongest prefix match picks the next hopMPLS label switchingMPLS label switchingpush at edge, swap in core, pop before lastVRRP / HSRP failoverVRRP / HSRP failoverBackup takes over the gateway in 3.6 sSDN and OpenFlowSDN and OpenFlowcontroller writes rules, switch looks upTracerouteTracerouteTTL 1, 2, 3: each hop sends Time ExceededNATNATmaps private IP:port to one public IPFTP active vs passiveFTP active vs passivePORT breaks behind NAT; PASV connects outIPv4 vs IPv6IPv4 vs IPv632 vs 128 bits; SLAAC, no NAT neededIPv6 Neighbor DiscoveryNS/NA to solicited-node group, not broadcastAnycast and BGPAnycast and BGPsame prefix announced from many sitesOSPF and BGP policyOSPF and BGP policyPolicy first, then path, then IGP costDistance vector vs link stateDistance vector vs link stateRIP shares distances; OSPF floods the mapSubnets and CIDRSubnets and CIDR/24 = mask: same subnet? ARP, else routerVLSM PlanningVLSM PlanningLargest first: no gaps, one summary routeRouter queues and AQMRouter queues and AQMFull buffers add delay; drop earlyDelay, loss, throughputDelay, loss, throughputSlowest link sets pace; full buffer dropsOpen the Networking mind mapNetworkingpackets hop between networksIP & routingRouter forwardingRouter forwardinglongest prefix match picks the next hopMPLS label switchingMPLS label switchingpush at edge, swap in core, pop before lastVRRP / HSRP failoverVRRP / HSRP failoverBackup takes over the gateway in 3.6 sSDN and OpenFlowSDN and OpenFlowcontroller writes rules, switch looks upTracerouteTracerouteTTL 1, 2, 3: each hop sends Time ExceededNATNATmaps private IP:port to one public IPFTP active vs passiveFTP active vs passivePORT breaks behind NAT; PASV connects outIPv4 vs IPv6IPv4 vs IPv632 vs 128 bits; SLAAC, no NAT neededIPv6 Neighbor DiscoveryNS/NA to solicited-node group, not broadcastAnycast and BGPAnycast and BGPsame prefix announced from many sitesOSPF and BGP policyOSPF and BGP policyPolicy first, then path, then IGP costDistance vector vs link stateDistance vector vs link stateRIP shares distances; OSPF floods the mapSubnets and CIDRSubnets and CIDR/24 = mask: same subnet? ARP, else routerVLSM PlanningVLSM PlanningLargest first: no gaps, one summary routeRouter queues and AQMRouter queues and AQMFull buffers add delay; drop earlyDelay, loss, throughputDelay, loss, throughputSlowest link sets pace; full buffer drops
This page on the Networking mind map · 83 pages in 10 branches · open it to see the whole map and test yourself in recall mode.