Summary

  • RFC 5227, July 2008, addresses the case where "two hosts on the same link attempt to use the same IPv4 address at the same time", and offers a precaution taken in advance plus a mechanism for detecting the clash afterwards.
  • The timings are fixed: a random delay of up to a second, three probes spaced between one and two seconds apart, two announcements two seconds apart, ten conflicts before rate limiting, sixty seconds between further attempts, and ten seconds as the minimum interval between defensive announcements.

An address with no registry behind it

Some IPv4 addresses are handed out by a server that remembers what it gave you. Others are chosen locally: a link-local address invented by the host, a static configuration typed in by an administrator, an address restored from an old lease. For those, no database holds the answer to "is anyone else using this", and the only place the answer exists is the wire.

RFC 5227 takes that seriously without inventing anything. It does not change a single rule of ARP, not the packet format and not the meaning of a field. It takes the existing request-and-reply mechanism and specifies a polite way to use it for asking a question the protocol was not designed to answer.

Three probes, then two announcements

The sequence is short enough to state in one sentence and precise enough to implement identically everywhere. Wait up to a second at random, send three probes with between one and two seconds between them, then wait two seconds and send two announcements two seconds apart.

The randomness in the first delay matters because the failure mode is symmetric. Two machines that start at the same instant and probe on the same schedule can pass each other's packets without ever noticing; a random offset makes that less likely. The three probes matter for the same reason: one lost packet should not decide whether an address is free.

The announcement is the other half. Probing asks whether the address is in use; announcing tells the link that it now is. A host that only asked and never spoke would leave the others to discover the change by collision.

Defending is a right with a limit

Section 2.4 is where the document stops being arithmetic and starts being political. If a conflicting packet arrives while the host is already using the address, and it has not sent a defensive announcement within the last ten seconds, it may defend: record the time, broadcast one announcement, and go quiet.

The limit is the interesting part. If a second conflicting packet arrives inside that ten-second window, the host "MUST immediately cease using this address and signal an error". The memo gives the reason: otherwise two hosts could get stuck in an endless loop, each defending the same address forever.

So the protocol settles the dispute by counting defences. The first claimant to notice a conflict gets one public restatement of its claim. If the world answers again, it gives up and reports the problem rather than escalating. There is no tie-break by seniority, no priority field, no negotiation: the tie is broken by refusing to argue.

Rate limiting the unlucky

Ten conflicts are tolerated before the host slows down, and after that it waits sixty seconds between attempts. That cap is a kindness to the rest of the link. A misconfigured host on a network where the address is genuinely in use will otherwise spend its life probing, colliding, backing off and starting over, filling the segment with packets that carry no useful news.

Read together, the constants describe a temperament. The host is patient before it claims, loud twice when it claims, briefly stubborn when challenged, and then quiet. Nothing in the protocol enforces any of that beyond the packets themselves; a badly written stack can ignore every number and still interoperate badly with everyone else.

What the wire can be asked

The interesting claim in RFC 5227 is epistemic rather than technical. An address is a resource whose occupancy is knowable by asking, and the asking has a cost that the protocol budgets: a second of delay, three packets, two announcements, one defence. That budget is the difference between detection and a storm.

It also marks out what ARP cannot do. A probe answered by silence is not proof that an address is free; it is the absence of evidence at that moment, on that link, from hosts that were listening. The memo's own phrasing keeps the modesty: the mechanism lets a host detect "after the fact" and lets a host or administrator "respond to rectify the problem". Detection, not arbitration.