How the Internet works

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.

IPv4-only appCLAT (laptop or CPE)IPv4 serverPLAT: NAT64 in AS64500 IPv4IPv6, statelessIPv4, stateful
From the book: 464XLAT: an IPv4-only application on an IPv6-only network

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 2005, Proposed Standard
  • RFC 8305 Happy Eyeballs Version 2: Better Connectivity Using Concurrency 2017, Proposed Standard
  • RFC 6052 IPv6 Addressing of IPv4/IPv6 Translators 2010, Proposed Standard
  • RFC 6146 Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers 2011, Proposed Standard
  • RFC 6147 DNS64: DNS Extensions for Network Address Translation from IPv6 Clients to IPv4 Servers 2011, Proposed Standard
  • RFC 6877 464XLAT: Combination of Stateful and Stateless Translation 2013, Informational
  • RFC 9313 Pros and Cons of IPv6 Transition Technologies for IPv4-as-a-Service (IPv4aaS) 2022, Informational
  • RFC 8925 IPv6-Only Preferred Option for DHCPv4 2020, Proposed Standard

All 60 documents this chapter cites, each with a link to its publisher and a copy kept here.

Routing, chapter 14 of 36

Inside One Network: Forwarding, OSPF, and IS-IS

Routing, chapter 15 of 36

BGP: The Protocol That Holds It Together

Routing, chapter 16 of 36

Peering, Transit, and the Money

Routing, chapter 17 of 36

Securing the Routing System

Routing, chapter 18 of 36

MPLS and Segment Routing

Routing, chapter 19 of 36

Anycast and CDNs

Transport, chapter 20 of 36

UDP: Eight Bytes of Header

Transport, chapter 21 of 36

TCP: The Connection

Transport, chapter 22 of 36

Congestion Control: From Collapse to BBR

Transport, chapter 23 of 36

Beyond TCP: SCTP, DCCP, and Multipath

Names and Trust, chapter 24 of 36

DNS: The Namespace and the Wire Format

Names and Trust, chapter 25 of 36

Resolvers, DNSSEC, and Encrypted DNS

Names and Trust, chapter 26 of 36

TLS 1.3: The Handshake

Names and Trust, chapter 27 of 36

Certificates and the Web PKI

Applications, chapter 28 of 36

HTTP: Semantics and HTTP/1.1

Applications, chapter 29 of 36

HTTP/2: Multiplexing over One Connection

Applications, chapter 30 of 36

QUIC: A Transport in Userspace

Applications, chapter 31 of 36

HTTP/3: The Web on QUIC

Applications, chapter 32 of 36

Mail: SMTP and Forty Years of Patches

Applications, chapter 33 of 36

Time, Shells, and Files: NTP, SSH, Telnet, and FTP

The Whole Path, chapter 34 of 36

Measuring and Debugging the Path

The Whole Path, chapter 35 of 36

The Whole Journey, Byte by Byte

The Whole Path, chapter 36 of 36

Ossification and What Comes Next

You have reached the server. The book goes further.

Everything on this site is a short version. Follow the Packet is the long one: 36 chapters and about 280,000 words, with every protocol fact traced to the section of the standard that defines it, every byte dump built by a script you can run, and a directory of more than a thousand cited documents. It comes as a printable book and as an audiobook.

Hear how chapter 1 opens. 70 seconds, narrated by a synthetic voice.

Get the book or the audiobook Read the start of chapter 1 Browse every source

Cover of Follow the Packet: How the Internet Works, Layer by Layer, from ARPANET to QUIC, by Wolfgang Kerschbaumer

The signup uses double opt-in. Every message includes an unsubscribe link.

Published by Sysinit Press. The public addresses, AS numbers and names of the scenario come from ranges reserved for documentation, and the home network uses private addresses, so the site describes no real network. RFC texts are copied unchanged from the RFC Editor.