The short version

  • DNS hands you a candidate, not a promise: an A or AAAA record can be perfectly correct while the path to it is a black hole.
  • RFC 6555 (2012) kept IPv6 as the preferred family but put a hard ceiling on how long that preference could hold a user hostage. RFC 8305 (2017) turned the trick into a pipeline: parallel DNS, RFC 6724 sorting, interleaved families, staggered attempts.
  • The first handshake to finish wins one connection—not an argument. Happy Eyeballs made the dual-stack tax survivable, and in doing so made it permanent.

A correct address, a dead path

The problem had a number before it had a nickname. RFC 1671, published in 1994, asked the awkward question every dual-stack operator would rather avoid: what should a host do when DNS cheerfully returns two families and one of them leads into a wall? The record was right. The host, the tunnel, the peering session, the middle mile—something in between—simply was not carrying the protocol that day.

Serial logic made that gap expensive. Put IPv6 first, as policy demanded, and the application would fire a SYN into the void and sit through retransmissions before deigning to try a working IPv4 address. The IPv4-only laptop looked fast. The supposedly superior dual-stack machine looked broken. And users, being rational, did the obvious thing: they switched IPv6 off. A transition mechanism that trains people to disable it is not transitioning anything.

The obvious fixes were worse. Separate ipv6.example hostnames split a namespace that was supposed to be shared. Static whitelists could not chase a fault that moved with every client's route. DNS could advertise an address; it could not watch the path from this machine, at this minute. The missing fact lived at connection time, and nowhere else.

RFC 6555: preference becomes a head start

RFC 6555 standardized Happy Eyeballs in 2012, and its essential move was subtler than the name suggests. It did not declare IPv4 and IPv6 equal. Host address policy still usually prefers IPv6. The algorithm simply refused to let that preference become a long exclusive lease on the user's patience.

A client starts with the preferred candidate. If it does not complete promptly, a second attempt begins over the other family while the first may still be in flight. The attempts are paced, because every extra SYN burns server state, firewall entries, NAT ports and capacity. When one connection succeeds, the losers are abandoned. Preference decides who starts; measured setup decides who serves this connection.

That distinction is economic as much as technical. A pure fastest-path contest would keep unnecessary traffic on shared IPv4 addresses and translators, making legacy capacity harder to retire. An absolute IPv6 rule would punish users for faults outside their control. Happy Eyeballs put a slight thumb on the transition scale—then let failure evidence lift it.

It also treated memory as provisional. A client could remember that one family had failed and skip the repeat delay, but it had to retry the preferred family periodically—the spec suggested roughly ten minutes—and reset when the device joined a new network. Yesterday's broken tunnel earned no authority over today's attachment.

RFC 8305: version two puts DNS in the race

Five years of deployment experience let RFC 8305 replace the sketch with a full pipeline. A and AAAA queries launch almost together, AAAA first. The application need not wait for both. If A arrives first, a recommended 50-millisecond resolution delay gives AAAA a brief chance to keep IPv6's lead; if nothing useful shows up, IPv4 work can begin.

The client then sorts candidates using RFC 6724, a policy that weighs usable source addresses, scope, labels and other host knowledge. Sorting is not a connectivity certificate. It produces an informed order, nothing more.

Happy Eyeballs v2 then interleaves the families. If the list opens with IPv6, the best IPv4 candidate normally slides into second place—no waiting through five unreachable AAAA addresses before one IPv4 address gets a turn. The procedure races the whole candidate set, not one token representative of each protocol.

Attempts begin one at a time and overlap. RFC 8305 recommends 250 milliseconds as the default connection-attempt delay, forbids starting the next attempt within 10 milliseconds, recommends 100 milliseconds as the minimum and two seconds as the maximum. These are empirical, configurable bounds, not laws of nature, and the document expects them to evolve as networks do. History may refine the order—expected round-trip time, a previously used address—but only inside a defensible boundary, and that memory must not leak across interfaces. A hotel network's failure must not demote IPv6 once the laptop is home.

What a winning handshake actually proves

The first successful attempt generally proves that a transport handshake completed. It does not prove that TLS will validate, that HTTP will work, that the application behind every address is consistent, or that large packets will survive the path. RFC 8305 explicitly notes that post-handshake Path MTU failures can stay hidden.

Nor does a winning address authenticate a server. DNS answers change, and successive connections to one hostname may land on different IP addresses. Identity belongs to the application security protocol, not to the race result.

The most important limitation is operational. If IPv6 fails every day while IPv4 wins after a quarter second, nobody complains. The client has converted an outage into a small latency increment—excellent resilience, terrible fault visibility. RFC 8305 therefore calls for independent monitoring of every address family.

The cheerful name for a permanent tax

Here is the part the nickname hides. Happy Eyeballs did not settle the IPv4-versus-IPv6 argument; it built a better boundary between policy and observation. Preference may choose the first experiment. It may not suppress contrary evidence indefinitely.

But read the mechanism honestly and it is an admission. Two address families, two routing tables, two firewall policies, two monitoring stacks, two troubleshooting playbooks, two training tracks—run forever, for zero incremental revenue, so that a race can decide in 250 milliseconds what a quarter century of 'transition' never did. As Lu Heng has argued in his analysis of the permanent dual-stack tax, the destination was always the fiction; the tax is the product. Happy Eyeballs is the engineering that made the tax painless enough to keep paying.

And the arithmetic that supposedly justified the whole migration never held up: at roughly $0.30–$0.50 per address per month against servers costing a hundred times more, IPv4 scarcity is a rounding error, not a constraint—the point Lu Heng makes in his demolition of the 'escape from scarcity' story. The race is not being run to reach a new world. It is being run so nobody has to admit the old one still works.

Sources and limits

The closed record is RFC 1671, RFC 6555, RFC 6724 and RFC 8305. These documents establish the problem, the ordering rules, the connection algorithm, the recommended bounds and the stated limitations. They do not supply current implementation shares, a universally optimal delay, or any evidence that one address family is globally healthier. Happy Eyeballs never claimed otherwise—it just made sure you would not notice.