The Internet Layer, chapter 13 of 36
Living with Two Protocols
On our network the IPv4 SYN that the earlier chapters followed is never sent. IPv6 wins the race in about 12 ms.
The resolver has answered twice: 192.0.2.80 for the A query and 2001:db8:c000:80::80 for the AAAA query. The laptop has two ways to reach one server and no way to know in advance which of them works. A browser on this laptop sends the IPv6 SYN first and starts a timer of a few hundred milliseconds. The IPv4 SYN leaves only if that timer expires, and on our network the SYN-ACK is back after about 12 ms.
- 131 s
- what a black-holed IPv6 address costs Python's
socket.create_connection()on Linux without a timeout - 9 to 20 percent
- of 6to4 connection attempts failed on dual-stack web servers, each costing 7 to 20 seconds
- 28 March 2026
- the first day Google counted half of its users on IPv6, a Saturday
The Happy Eyeballs race
Time runs from the A answer, with the Resolution Delay of RFC 8305 and the Connection Attempt Delay of the RFC or a deployed client. Delay the AAAA answer, slow or drop the IPv6 SYN, and see which SYNs leave and which family wins.
Which SYN leaves first?
Brian Carpenter named the problem in August 1994: knowing that a host has both addresses "gives no information about black holes" (RFC 1671). For almost two decades dual-stack applications tried IPv6 first, and if its path was broken, they waited many seconds for TCP to give up before they tried IPv4.
RFC 6555 of April 2012 and its revision RFC 8305 race instead. The client sorts the addresses with RFC 6724, which puts our global IPv6 address first, and starts the next attempt after a Connection Attempt Delay of 250 ms unless the first has succeeded (RFC 8305, Section 5).
Why does the laptop need two stacks at all?
IPv6 cannot talk to IPv4 on the wire, so without a translator on the path a host that wants peers of both kinds must speak both protocols. RFC 1752, published in January 1995, asked for a transition working group, NGTRANS, with Bob Gilligan of Sun as one co-chair and the other named as "xxx of yyy". The group was to "complete its work around the end of 1994 and disband at that time" (RFC 1752, Section 16.1).
In 2011 the DS-Lite authors recorded that a dual-stack transition before IPv4 ran out "has not happened" (RFC 6333, Section 1).
How did IPv6 cross networks that did not carry it?
A configured tunnel puts the IPv6 packet behind an IPv4 header with protocol number 41 (RFC 4213, Section 3). 6to4 made the endpoints automatic: every site with a global IPv4 address got 2002:V4ADDR::/48, so our router would own 2002:c633:644d::/48. The outbound relay had the anycast address 192.88.99.1, and the two directions usually crossed different relays (RFC 7526, Section 3).
One design survived because the ISP ran both ends. Free put it into production in five weeks in 2007 and offered IPv6 to more than 1.5 million customers through a Freebox software update. It was standardized as 6rd.
What happens when the ISP has no IPv4 addresses left to give?
The tunnel turns around: an operator can build an access network that carries only IPv6 and deliver IPv4 across it as a service. DS-Lite wraps the private IPv4 packet in IPv6 with next header 4 and leaves the NAT to the ISP's AFTR. Thousands of customers send the same private addresses, so the AFTR's table also records the IPv6 source of each tunnel (RFC 6333, Section 6.6).
MAP-E and MAP-T move the state into the home router, with a fixed set of ports. In a 2010 study, Google Maps lost tiles at a limit of 15 sessions, and iTunes alone opened 230 to 270 (RFC 9313, Section 4.2).
Can a network drop IPv4 and still reach IPv4 servers?
Only by translating. The replacement for NAT-PT came in pieces in 2010 and 2011. RFC 6052, Section 2.1 reserves 64:ff9b::/96, so our server becomes 64:ff9b::c000:250. Because 0x0064 plus 0xff9b is 0xffff, zero in one's complement, an address on that prefix adds the same amount to a transport checksum as the bare IPv4 address (RFC 6052, Section 4.2).
The translated SYN leaves without DF. An IPv6 sender never has to handle a path MTU below 1280, which is 1260 on the IPv4 side, so IPv4 routers on narrower links must be free to fragment the smaller packets (RFC 7915, Section 5).
Why has it taken thirty years?
An organization that adds IPv6 gains little until the others have it too, as John Curran wrote in 2008. RFC 9386, Section 5.1.1 adds that carrier-grade NAT likely lets fixed operators supply IPv4 "for more years to come".
Over the four weeks to 10 November 2026, the IPv6 share of Google users averaged 50.1 percent on weekends and 47.0 percent on weekdays. That day France stood at 87.6 percent and China at 7.9 [GoogleStats2026]. RFC 9386, Section 2.4 traces the Indian figure, 73.5 percent that day, to the decision of the operator Reliance Jio to move its network to IPv6.
The book keeps asking
This chapter has 5,872 words and 9 questions. These 3 are answered only in the book and the audiobook.
- What about software that only speaks IPv4?
- How does a host learn the translator's prefix?
- How does a network tell a host that it may skip IPv4?
Open the sources
- RFC 4213 Basic Transition Mechanisms for IPv6 Hosts and Routers
- RFC 8305 Happy Eyeballs Version 2: Better Connectivity Using Concurrency
- RFC 6052 IPv6 Addressing of IPv4/IPv6 Translators
- RFC 6146 Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers
- RFC 6147 DNS64: DNS Extensions for Network Address Translation from IPv6 Clients to IPv4 Servers
- RFC 6877 464XLAT: Combination of Stateful and Stateless Translation
- RFC 9313 Pros and Cons of IPv6 Transition Technologies for IPv4-as-a-Service (IPv4aaS)
- RFC 8925 IPv6-Only Preferred Option for DHCPv4
All 60 documents this chapter cites, each with a link to its publisher and a copy kept here.
