How configuration reaches the host

SLAAC means Stateless Address Autoconfiguration. A router advertises suitable prefixes; a host constructs its own addresses. Stateful DHCPv6 instead assigns addresses from a server. Manual configuration is another option.

A host sends a Router Solicitation (RS) to ff02::2. Routers send Router Advertisements (RA), either in response or periodically without a request. Hosts solicit; routers advertise.

An RA is a packet containing fields and options. The router’s configuration determines its advertised values. The host’s operating system parses the packet and updates its address list, on-link information, default-router list and other settings according to its implementation and policy.

Flags are bits with separate jobs

FlagLocationMeaning when set
M: ManagedMain RAAddresses available through DHCPv6
O: Other configurationMain RAOther configuration available through DHCPv6
A: AutonomousPrefix Information optionThis prefix may be used for autonomous address configuration
L: On-linkPrefix Information optionThis prefix is on-link

Added example:

RA main section: M=0, O=1, Router Lifetime=1800
Prefix option:   2001:db8:42:7::/64, A=1, L=1

The host may construct 2001:db8:42:7::25, check it for duplicates, record the prefix as on-link, obtain extra settings through DHCPv6 and use the advertising router as a default router for the advertised interval.

A answers “may I construct an address?” L answers “may I attempt direct delivery to this prefix?” L=0 makes no on-link assertion; it is not an explicit declaration that the prefix is off-link. Multiple prefix options can carry different A/L settings. DHCPv6 availability does not inherently disable SLAAC.

Default-router discovery comes from RA, not DHCPv6. A positive Router Lifetime offers the sender as a default router. A zero lifetime does not invalidate all the other information in the advertisement. DNS can come from an RA RDNSS option or DHCPv6. An RA MTU option can advertise a link MTU; link-layer-address options can supply relevant MAC information.

Duplicate Address Detection

A constructed address is initially tentative. Before probing, the host joins its corresponding solicited-node group and enables reception of the matching Ethernet traffic.

The DAD Neighbor Solicitation uses:

Source IPv6: ::
Target:      proposed address
Destination: proposed address's solicited-node multicast group

:: means there is no established usable source address for this check. The candidate is a target, not yet an address the host can claim as its normal source. A response claiming the address, or a conflicting DAD solicitation, indicates a duplicate. If probing completes without conflict, the address can become usable. Probe counts and timers are implementation/configuration details; the method is not an unconditional guarantee that no duplicate can ever occur.

Lifetimes

TimerExpiry effect
Router LifetimeStop using this router as a default router unless refreshed
Preferred LifetimeAddress becomes deprecated; prefer other suitable addresses for new communication
Valid LifetimeAddress becomes invalid and must no longer be used

If an address is preferred for one hour and valid for two, without refresh it is preferred during hour one, deprecated during hour two and invalid afterwards. Existing communication can continue with a deprecated address while it remains valid. Preferred Lifetime must not exceed Valid Lifetime.

The on-link prefix also has a validity timer derived from advertised prefix information; address validity and on-link status are distinct state. A router’s expiry does not automatically invalidate an address. Lifetimes support gradual renumbering: new connections can use a new prefix while older addresses remain valid temporarily.

Stateful DHCPv6 exchange

Client -> Solicit   -> Server: discover available servers
Client <- Advertise <- Server: offer configuration
Client -> Request   -> Server: choose/request an offer
Client <- Reply     <- Server: return assigned configuration

The initial Solicit uses ff02::1:2 to reach local DHCPv6 servers and relay agents. This is the usual four-message exchange, not every permitted DHCPv6 exchange. DHCPv6 Advertise is a different message from ICMPv6 Router Advertisement, even if one physical device performs both roles. The slides also name Release and Reconfigure.

Stateless DHCPv6 supplies additional settings while SLAAC supplies the address; its information exchange is not the four-step address-allocation conversation above.

Lecture 03 - IPv6, PDF pages 76-97. Bit-to-host-action walkthrough, lifetimes example and qualifications are added explanation.