How the Internet works

Orientation, chapter 2 of 36

From ARPANET to the Internet

The IPv4 header layout in our SYN is the one a TCP meeting at MIT converged on in June 1978.

The first byte of the IPv4 header in our SYN is 0x45. The 5 says that the header is five 32-bit words long, and the 4 is the version number of a layout settled at MIT on 15 and 16 June 1978. The ARPANET, where the work began, had no internet header at all: a host could name a destination IMP and nothing beyond it.

5 bits
of destination in a host's message to its IMP in 1969, enough to name 32 hosts
8 bits
for the network number in 1974, a size that "seems sufficient for the foreseeable future"
2,308 hosts
in host table number 515, February 1986, a file that every host fetched whole

What ran the network, year by year

Drag the year from 1961 to 1995. Bars run from their first dated document or node to their recorded end, and boxes light up with the document behind each part of our connection.

Why build a network out of packets?

Paul Baran of RAND studied command and control under attack. In August 1964 RAND published On Distributed Communications, the first of eleven memoranda on his design: a mesh of unmanned switches that relay message blocks of "perhaps 1024 bits" with no central control point, by a "hot-potato heuristic routing doctrine" [Baran1964].

Leonard Kleinrock and a group at NPL reached packet switching too, and the three groups worked without knowing of each other until 1967. Only the RAND study considered nuclear war. The ARPANET was built for resource sharing, because connecting expensive time-sharing computers cost far less than duplicating them [Leiner2009].

How do you connect networks that know nothing of each other?

Packet radio lost packets to jamming and terrain, and NCP stopped at the first loss. Bob Kahn's Internetting program at ARPA set four ground rules. Each network joins without internal change. Delivery is best effort, and the source retransmits what is lost. Gateways keep no information about individual flows, and there is no global control at the operations level [Leiner2009].

Cerf and Kahn's paper of May 1974 gave the GATEWAY "as small a role as possible" and let it fragment packets for the destination host to reassemble. The network number got 8 bits, enough for 256 networks [Cerf1974].

Why was TCP split in two?

Some services could not live with a reliable stream. XNET, the cross-Internet debugger, had to work while the network was failing, and real-time speech needs packets on time more than every packet [Clark1988]. In August 1977 Jon Postel wrote that the design was "violating the principle of layering" (IEN 2).

At a TCP meeting on 30 and 31 January 1978, Danny Cohen used five minutes meant for the meeting arrangements to complain that TCP-3 was becoming "all things to all people". Cerf proposed to make fragmentation an internet protocol task, and a working group decided it the next morning (IEN 67).

Why did one hosts file stop working?

Practically every host was listed in one table at the NIC at SRI, and every host fetched the whole file, HOSTS.TXT, for example by FTP as user ANONYMOUS with the password GUEST. Paul Mockapetris stated the cost: distributing a new version takes bandwidth "proportional to the square of the number of hosts" (RFC 1034, Section 2.1).

Host table number 152 listed 213 hosts in August 1981, and number 515 listed 2,308 in February 1986. By December 1987 ZONE, a program that walked the new DNS, counted 28,174 (RFC 1296).

How did routing between networks begin?

In October 1982 every new gateway joined one common routing algorithm, and Eric Rosen of BBN explained in RFC 827 why that could not last. His answer was to divide the Internet into autonomous systems with 16-bit numbers, each with its own internal routing as a private matter. AS64500 and AS64505 on our path descend from it.

EGP assumed a tree. BGP, by Kirk Lougheed of cisco and Yakov Rekhter of IBM in June 1989, carries the list of autonomous systems a route has crossed and runs over TCP port 179, because TCP was "present in virtually all commercial routers and hosts" (RFC 1105, Section 1).

How did a research network become a commercial one?

NSF paid less than $3 million of the backbone's roughly $10 million annual cost, and from 1988 to mid-1990 a draft acceptable use policy required that use of the backbone support "scientific research and other scholarly activities" (RFC 1192). Early in 1994 NSF awarded the Network Access Points, where commercial backbones would interconnect, to Sprint, MFS Datanet, and Bellcore.

On 25 April 1995 the peering sessions were taken out of the configuration files, and from midnight on 30 April staff switched off the last nodes one time zone at a time. An ANS engineer remarked that "mostly the NSFNET went away silently" [Harris1996].

HOST A on network 1GATEWAYHOST B on network 2 network 1 packet [internetwork packet]network 2 packet [fragment 1]network 2 packet [fragment 2]acknowledgment, end to end
From the book: The 1974 model: a gateway rewraps and may fragment, the hosts acknowledge end to end

The book keeps asking

This chapter has 5,797 words and 13 questions. These 7 are answered only in the book and the audiobook.

  • What did the IMP promise the hosts?
  • Why are the rules called Requests for Comments?
  • What did NCP do, and what could it not do?
  • What happened on 1 January 1983?
  • What broke as the network grew?
  • Why did TCP/IP win against OSI?
  • How old are the parts of our connection?

Open the sources

  • RFC 1 Host Software 1969, Unknown (pre-dates the status system)
  • RFC 33 New Host-Host Protocol 1970, Unknown (pre-dates the status system)
  • RFC 675 Specification of Internet Transmission Control Program 1974, Historic; obsoleted by RFC 7805
  • [Cerf1974] A Protocol for Packet Network Intercommunication. IEEE Transactions on Communications, Vol. COM-22, No. 5, pp. 637-648 1974, paid
  • IEN 2 Comments on Internet Protocol and TCP. Internet Experiment Note 2, 15 August 1977 1977, free
  • RFC 801 NCP/TCP transition plan 1981, Unknown (pre-dates the status system)
  • RFC 1105 Border Gateway Protocol (BGP) 1989, Experimental; obsoleted by RFC 1163
  • [Harris1996] Retiring the NSFNET Backbone Service: Chronicling the End of an Era. ConneXions, Vol. 10, No. 4, April 1996 1996, free

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

Orientation, chapter 3 of 36

Rough Consensus and Running Code

The Link, chapter 4 of 36

Signals on Copper and Glass

The Link, chapter 5 of 36

Ethernet: Frames, Switches, and the 1500-Byte Legacy

The Link, chapter 6 of 36

Wi-Fi: Ethernet Without the Wire

The Link, chapter 7 of 36

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

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.