IPv4 Address Conflict Detection (ACD)
acronymKept in this browser · My desk
Stands for: IPv4 Address Conflict Detection
The procedure of RFC 5227 (July 2008) by which an IPv4 host checks with ARP probes that an address is free before using it, announces it, and keeps watching for other hosts that claim it.
An ARP Probe is a broadcast request with an all-zero sender IP address, so that it does not pollute other hosts' caches; an ARP Announcement is the same packet with the address being claimed as both sender and target. A host sends three probes at random intervals of one to two seconds and two announcements two seconds apart, and treats any later ARP packet carrying its own IP address with another hardware address as a conflict.
What it is. Address conflict detection (ACD) is the procedure of RFC (Request for Comments) 5227, written by Stuart Cheshire of Apple and published in July 2008, by which an IPv4 host uses ARP (Address Resolution Protocol) probes to check that an address is free before using it, announces it, and keeps watching for other hosts that claim it. It updates RFC 826, and it exists because the older habit, a single gratuitous ARP at start-up, did not actually prevent duplicates.
Why it was needed. The RFC's historical note answers readers who thought gratuitous ARP, as Stevens described it in 1994, already provided duplicate detection. It did not: a host sends one announcement when its interface comes up, the existing holder of the address logs an error, and the newcomer carries on, often without noticing. Both then use the same address and keep resetting each other's TCP connections, and an administrator usually has to walk to the machines, because neither can hold a connection long enough to be fixed over the network.
The two packets. An ARP Probe is a broadcast request with an all-zero sender IP address, so that it does not pollute other hosts' caches; the target hardware address is ignored and should be zero, and the target IP address is the one being tested. An ARP Announcement is the same packet with the address being claimed as both sender and target. Written out with documentation addresses, a probe for 192.0.2.10 from 00-00-5E-00-53-0A carries opcode 00 01, sender 00 00 5E 00 53 0A and 00 00 00 00, target 00 00 00 00 00 00 and C0 00 02 0A; the announcement carries C0 00 02 0A in both IP fields. Wireshark marks them with arp.isprobe and arp.isannouncement, fields it has had since version 3.2.0.
The timing. A host waits a random time up to PROBE_WAIT (1 second), sends PROBE_NUM (3) probes spaced randomly between PROBE_MIN (1) and PROBE_MAX (2) seconds, waits ANNOUNCE_WAIT (2 seconds), then sends ANNOUNCE_NUM (2) announcements ANNOUNCE_INTERVAL (2 seconds) apart; after MAX_CONFLICTS (10) conflicts it slows to one attempt per RATE_LIMIT_INTERVAL (60 seconds). A worked timeline: wait 0.6 s, probes at 0.6, 2.1 and 3.4 s, silence until 5.4 s, announcements at 5.4 and 7.4 s; the host may use the address from the first announcement. During probing, any ARP packet whose sender IP is the probed address means the address is taken, and a probe from another host for the same target means two hosts are trying at once; either way the host must pick again.
Defence and its limits. On a conflict a host may give the address up, defend it once with an announcement if it has seen no other conflict within ten seconds, or, if it must never give it up, such as a default router, defend it and log the offending hardware address for an administrator. The RFC is explicit that this makes the ARP vulnerability no worse and in some ways better, and equally explicit that a malicious host can answer every request with its own address; conflict detection sees broadcast claims, not unicast replies aimed at a victim.
Where it came from and where it is used. The procedure generalizes the probing of IPv4 link-local addressing, RFC 3927 (May 2005), in which a host with no other configuration picks a random 169.254/16 address and probes it with ARP; RFC 5227 notes that with ACD in place half the work of link-local addressing is already done. DHCP (Dynamic Host Configuration Protocol) asked for something similar much earlier: RFC 2131 (March 1997) says a client SHOULD make a final check of the address it was given, for example with ARP, and MUST send DHCPDECLINE and start again if it is in use, waiting at least ten seconds. From a shell, iputils arping -D performs a duplicate-address check with a sender address of 0.0.0.0 and exits with 0 when no reply arrives.
IPv6 does it differently. IPv6 hosts run Duplicate Address Detection (DAD, RFC 4862, September 2007) on every tentative address with Neighbor Solicitations; DupAddrDetectTransmits defaults to 1, and setting it to 0 turns the check off. The aim is the same, but it rides on Neighbor Discovery rather than ARP.
Misreadings. ACD is not a security mechanism: it detects honest mistakes and noisy attackers, not a careful one. Gratuitous ARP and ACD announcements are the same packet, so a capture of one announcement proves nothing about whether probing came first. Neighbours: ARP, gratuitous ARP, the ARP cache, ARP poisoning, DHCP and DAD.
Also known as: acd, address conflict detection, arp probe, rfc 5227, detecção de conflito de endereço
Sources
- RFC 5227, IPv4 Address Conflict Detection, Stuart Cheshire (Apple), July 2008 (read 2026-11-23): ARP Probe (sender IP all zero) and ARP Announcement (sender and target IP the announced address); constants PROBE_WAIT 1 s, PROBE_NUM 3, ANNOUNCE_NUM 2, DEFEND_INTERVAL 10 s; ongoing detection of conflicting packets; a default router should log and inform an administrator; section 5: a malicious host can answer every request with its own hardware address
- RFC 826, An Ethernet Address Resolution Protocol, David C. Plummer, November 1982 (read 2026-11-23): the reception algorithm merges the sender's protocol and hardware addresses into an existing table entry before the opcode is examined, and a new hardware address supersedes the old one; no authentication
- IETF, RFC 3927, Dynamic Configuration of IPv4 Link-Local Addresses, S. Cheshire (Apple Computer), B. Aboba (Microsoft) and E. Guttman (Sun Microsystems), May 2005 (read 2026-11-23): random addresses in 169.254/16 probed with ARP before use; PROBE_WAIT, PROBE_NUM, PROBE_MIN and PROBE_MAX, ANNOUNCE_WAIT, MAX_CONFLICTS and RATE_LIMIT_INTERVAL; defence within DEFEND_INTERVAL
- IETF, RFC 2131, Dynamic Host Configuration Protocol, R. Droms, March 1997 (read 2026-11-23): after DHCPACK the client SHOULD make a final check of the address, for example with ARP, and MUST send DHCPDECLINE and restart if it is in use, waiting at least ten seconds
- IETF, RFC 4862, IPv6 Stateless Address Autoconfiguration, S. Thomson, T. Narten and T. Jinmei, September 2007 (read 2026-11-23): Duplicate Address Detection with Neighbor Solicitations on a tentative address; DupAddrDetectTransmits defaults to 1 and zero disables the check
- arping(8), iputils, Alexey Kuznetsov, Debian bookworm manual page (read 2026-11-23): -D duplicate address detection mode with sender address 0.0.0.0, exit status 0 when no reply arrives (citing RFC 2131 4.4.1); -U and -A unsolicited ARP to update neighbours' caches; not to be installed set-uid root because it lets a user modify neighbours' ARP caches
- Wireshark, Display Filter Reference: Address Resolution Protocol (read 2026-11-23): arp.opcode, arp.isgratuitous, arp.isprobe and arp.isannouncement (the last two since 3.2.0), arp.duplicate-address-detected and arp.packet-storm-detected
- IETF, RFC 5737, IPv4 Address Blocks Reserved for Documentation, J. Arkko, M. Cotton and L. Vegoda, January 2010, Informational (read 2026-11-23): 192.0.2.0/24 (TEST-NET-1), 198.51.100.0/24 (TEST-NET-2) and 203.0.113.0/24 (TEST-NET-3) for documentation