Duplicate address detection

Also known as: DAD

On this page 7

Duplicate address detection (DAD) is the procedure an IPv6 node runs to confirm that a unicast address is not already in use on the attached link before it assigns that address to an interface. In address configuration for networking, DAD is defined in RFC 4862 as part of stateless address autoconfiguration and relies on messages of the Neighbor Discovery Protocol.

DAD exists because IPv6 hosts frequently generate their own addresses through SLAAC, privacy extensions or link-local formation, with no central server to guarantee uniqueness. A brief probe before use prevents the silent traffic misdelivery that two hosts with the same address would otherwise cause.

DAD works by asking the link whether anyone already owns the candidate address. While the check runs, the address is held in the tentative state: the node may not use it as a source address and processes only Neighbor Discovery messages addressed to it.

The node first joins the solicited-node multicast group derived from the tentative address, which is ff02::1:ff followed by the last 24 bits of the address. It then sends a Neighbor Solicitation whose target is the tentative address and whose source is the unspecified address ::, because it may not yet claim any address of its own.

If no reply arrives within the wait time, the address becomes preferred and usable. If a Neighbor Advertisement for the target arrives, or another node sends its own Neighbor Solicitation for the same target, the address is a duplicate and the node must not use it.

The following table lists the steps of a standard DAD run.

StepActionPurpose
1. Tentative assignmentMark address tentativeBlock normal use during the check
2. Join multicast groupJoin solicited-node groupHear probes from other nodes
3. Random delayWait up to 1 s before the first probeAvoid synchronized collisions after power loss
4. Send probeNeighbor Solicitation from ::Ask whether the address is taken
5. WaitRetransTimer, default 1 sAllow owners to respond
6. DecidePreferred or duplicateAssign or reject the address
Steps of a duplicate address detection run

Parameters, states and timing

The behavior of DAD is controlled by a few interface parameters. The most important is DupAddrDetectTransmits, which sets how many probes are sent; its default is one, and a value of zero disables DAD on the interface.

With default settings, an address becomes usable after roughly one to two seconds. That delay is acceptable for desktops but noticeable for fast-booting containers and virtual machines, which led to the Optimistic DAD extension in RFC 4429.

The table below summarizes the parameters and their usual values.

ParameterDefaultEffect
DupAddrDetectTransmits1Number of probes; 0 disables DAD
RetransTimer1,000 msWait after each probe
Initial random delay0 to 1,000 msSpreads probes after mass reboots
Tentative stateUntil check endsAddress cannot be used as a source
Optimistic flagOffAllows limited use during the check
Duplicate address detection parameters

On Linux, the per-interface setting dad_transmits maps to DupAddrDetectTransmits, and a failed check marks the address dadfailed in the output of the ip addr command. Windows reports a duplicate as an address in the duplicate state and logs a system event.

Duplicate address detection compared with IPv4 conflict checks

IPv4 has no mandatory equivalent built into the protocol, but RFC 5227 defines IPv4 address conflict detection using ARP probes. A host sends ARP requests with a sender IP of 0.0.0.0 and the candidate address as the target, then announces the address with a gratuitous ARP after the check succeeds.

The main difference is that IPv6 makes the check part of every address assignment, while IPv4 relies on implementations and on DHCP servers, which sometimes ping an address before leasing it. APIPA in IPv4 uses ARP probing to pick a free link-local address in 169.254.0.0/16.

The comparison below shows how the mechanisms relate.

MechanismProtocolProbe messageMandatory
IPv6 DADIPv6Neighbor SolicitationYes, per RFC 4862
IPv4 ACDIPv4ARP probeNo, recommended
APIPA probingIPv4 link-localARP probeYes, per RFC 3927
DHCP server pingIPv4ICMP echoNo, vendor option
DHCPv6 DECLINEIPv6Client message after DADYes when DAD fails
DAD and related conflict checks

What happens when an address is a duplicate

When DAD finds a conflict, the node must not assign the address and should log the event for the administrator. The consequences depend on how the address was created.

  • Link-local address from a MAC-based identifier: the node may disable IPv6 on the interface, because a duplicate usually signals a duplicated hardware address.
  • SLAAC address with privacy extensions: the node generates a new random interface identifier and retries a limited number of times.
  • Stable opaque identifier per RFC 7217: the node increments a counter and derives a fresh identifier.
  • DHCPv6-assigned address: the client sends a DECLINE message so the server marks the address unavailable.

Limitations and operational pitfalls

DAD is not a guarantee of lasting uniqueness. It checks only at assignment time, so a host that joins later with a statically configured duplicate, or two network segments that merge, can still produce conflicts that DAD never sees.

DAD can also fail falsely. On links where a switch or interface loops multicast back to the sender, a node may hear its own probe and declare a duplicate. Some wireless and virtual switching environments, and bonded interfaces during failover, show this symptom.

Finally, DAD can be abused for denial of service: an attacker on the link who answers every probe prevents victims from obtaining addresses. Defenses include RA Guard and SAVI on access switches, SEND where deployed, and monitoring for unusual Neighbor Advertisement volumes.

In simple terms

Duplicate address detection is like calling out a name in a room before you write it on your badge. If someone answers that the name is already theirs, you pick another one.

A computer does the same with its network address. It asks the local network whether anyone already uses that address, waits about a second, and only then starts using it. This short check keeps two devices from receiving each other’s traffic.

A practical example

A network administrator at a university laboratory clones a virtual machine template to build 40 test servers. Shortly after startup, several clones show IPv6 addresses marked dadfailed, and their link-local addresses do not work.

Investigation shows that the template was cloned without regenerating MAC addresses, so the clones formed identical link-local addresses through modified EUI-64. DAD correctly detected the conflicts and prevented the duplicate addresses from being used, which kept the original server reachable.

The administrator regenerates the MAC addresses and switches the guests to stable opaque interface identifiers. After a restart every clone passes DAD within about one second, and the event log becomes the team’s early warning for future cloning mistakes.