How the Internet works

The Link, chapter 7 of 36

The Last Mile: DSL, Cable, Fiber, and Mobile

To find a new ONU, the OLT makes every other home on the fiber fall silent for a suggested 250 microseconds.

Our SYN leaves the home router's WAN port as a 74-byte Ethernet frame from 198.51.100.77, and half a meter later, inside the optical network termination on the wall, it stops. The fiber that leaves the house is shared with up to 63 other homes. The box may not send a byte until a line terminal kilometers away has told it at which instant of which 125-microsecond frame to begin.

9.95328 Gbit/s
the XGS-PON line rate both ways, four times SDH's STM-16
1492 bytes
the largest PPP MTU that PPPoE leaves inside a 1500-byte Ethernet payload
~1000 ms
modem-to-CMTS round trip under load on early DOCSIS 3.0, in CableLabs' orders of magnitude

Sixty-four homes on one fiber

Change what the homes on our 1:64 PON want to send and watch the OLT fill the 125-microsecond upstream frame by the figure's own sharing rule. Switch to DSL, cable, or 5G to compare.

How do 64 homes share one fiber?

A passive splitter is glass, with no power and no buffer. Every ONU receives every downstream frame, and no ONU can hear another, so carrier sense is impossible. The OLT schedules the upstream itself: every downstream frame carries a bandwidth map that tells each ONU when to start and stop.

XGS-PON divides the 125-microsecond upstream frame into 9,720 instants, each worth a 16-byte block at 9.95328 Gbit/s (ITU-T G.9807.1, Clause C.8.1.1.2.3). An equalization delay from a round-trip measurement lets bursts from 2 km and 20 km land in their slots (ITU-T G.984.3, Clause 10.1.1).

What does our SYN look like inside the PON?

The ONU strips the preamble and the start frame delimiter and puts the rest, FCS included, into an XGEM frame. The header 01 38 04 01 00 00 37 51 holds a 14-bit payload length of 78, a key index of 00 for no encryption, the port-ID 1025 (our choice), and the last-fragment bit. Padding with 0x55 makes our 74-byte frame 88 bytes.

No delimiter separates XGEM frames. A receiver steps from header to header by the length and checks each step with the HEC, a BCH(63, 12, 2) code plus a parity bit that corrects any two bit errors and detects three (ITU-T G.9807.1, Clause C.A.1).

Why would an ISP run PPP over fiber?

When DSL arrived, ISPs wanted to keep the dial-up session behind modems that were simple bridges. RFC 2516, Section 1 names a goal: access control and billing similar to dial-up services. PPPoE adds a discovery stage with EtherType 0x8863, in which the client and the access concentrator agree on a 16-bit session ID (RFC 2516, Section 5), and then carries PPP in frames of type 0x8864.

Our ISP uses IPoE, and our SYN carries an MSS of 1460. On PPPoE it would read 1452.

Who says yes, and how does it prove it?

The BNG asks a RADIUS server. The protocol was first designed in 1991 for dial-up [Goldberg2024], and RFC 2865 defines it today. The Access-Request carries the user name, the password or CHAP response, and the line identity. The Access-Accept returns the address, the speed profile, and timers.

RADIUS runs over UDP to port 1812. RFC 2865, Section 2.4 ends its defense of UDP: "Without TCP we would still probably be using tin cans connected by string. But for this particular protocol, UDP is a better choice."

Why is latency under load an access-network problem?

The bottleneck is typically the access link, where the shaper that enforces the contract sits ([CableLabs2019], Section 1). A TCP sender raises its rate until a queue builds there, so one upload delays every other packet. In CableLabs' orders of magnitude, the modem-to-CMTS round trip under load fell from about 1000 ms on early DOCSIS 3.0 to about 1 ms with Low Latency DOCSIS.

Low Latency DOCSIS gives each direction two queues that share one rate. Packets with the Non-Queue-Building DSCP 45 (RFC 9956, Section 4) enter the low-latency queue. When a flow's queuing score is too high, its arriving packets go to the classic one (RFC 9957, Section 2.2.2).

What happens to the packet when it leaves from a phone?

The base station wraps it in GTP-U, which runs over UDP to port 2152 (3GPP TS 29.281, Clause 4.4.2.3). A Tunnel Endpoint Identifier, chosen by the receiver, names the tunnel, and in 5G a PDU Session Container carries the QoS flow identifier.

The tunnel costs 44 bytes. With IPsec over IPv6 the 5G architecture counts 142 octets in the worst case and, for a 1500-octet transport MTU, suggests a UE link MTU of 1358 (3GPP TS 23.501, Clause 5.6.10.4). A phone that follows the advice announces an MSS of 1318.

CPE (client)BNG (access concentrator) PADI, to broadcastPADO, with AC-NamePADRPADS, session ID 0x2a17LCP, CHAP, IPCP in 0x8864
From the book: PPPoE discovery and session setup between the home router and the BNG

The book keeps asking

This chapter has 5,641 words and 10 questions. These 4 are answered only in the book and the audiobook.

  • What lies between the home router and the Internet?
  • What does the BNG know about us?
  • What would be different on a telephone line?
  • And on a cable television network?

Open the sources

  • ITU-T G.9807.1 Rec. ITU-T G.9807.1 (02/2023), 10-Gigabit-capable symmetric passive optical network (XGS-PON) 2023, free
  • ITU-T G.984.3 Rec. ITU-T G.984.3 (01/2014), Gigabit-capable passive optical networks (G-PON): Transmission convergence layer specification 2014, free
  • RFC 2516 A Method for Transmitting PPP Over Ethernet (PPPoE) 1999, Informational
  • RFC 2865 Remote Authentication Dial In User Service (RADIUS) 2000, Draft Standard
  • ITU-T G.993.2 Rec. ITU-T G.993.2 (02/2019), Very high speed digital subscriber line transceivers 2 (VDSL2) 2019, free
  • [CableLabs2020] Data-Over-Cable Service Interface Specifications, DOCSIS 4.0 Physical Layer Specification, CM-SP-PHYv4.0-I02-200429 (29 April 2020) 2020, free download under CableLabs license terms (no registration needed in November 2026)
  • 3GPP TS 29.281 3GPP TS 29.281 V19.2.0 (2025-09), General Packet Radio System (GPRS) Tunnelling Protocol User Plane (GTPv1-U), Release 19 2025, free
  • 3GPP TS 23.501 3GPP TS 23.501 V20.3.0 (2026-09), System architecture for the 5G System (5GS); Stage 2, Release 20 2026, free

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

The Internet Layer, chapter 8 of 36

IPv4: The Datagram

The Internet Layer, chapter 9 of 36

Finding the Neighbor: ARP, ICMP, and DHCP

The Internet Layer, chapter 10 of 36

IPv6: The Second Attempt

The Internet Layer, chapter 11 of 36

MTU, Fragmentation, and the Black Hole

The Internet Layer, chapter 12 of 36

NAT, CGNAT, and the Middlebox Internet

The Internet Layer, chapter 13 of 36

Living with Two Protocols

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.