Computer Networking

How the Internet Works

Press Enter on a URL and follow the request: layers, encapsulation, and an educational packet inspector.

The question this module answers · What actually happens after you press Enter?
What Happens When You Press Enter
▶ interactive

Between pressing Enter on `https://engineer-atlas.dev` and seeing a page, a name becomes an address, an address becomes a path, a path carries a connection, the connection is secured, and only then does HTTP say a word — and each step has its own way of failing.

Follow a Web Request Through Every Layer
▶ interactive

The same `GET /` seen at fifteen rungs — browser, socket API, kernel, transport, IP, link, NIC, switch, router, NAT, ISP, internet, server network, server kernel, server process — with the exact state that changes at each one: which headers are added, which addresses are rewritten, and which are never touched.

The Layer Model: TCP/IP First, OSI as a Map
▶ interactive

Networking is stacked because each layer solves one problem for the layer above without knowing what it carries; the four-layer TCP/IP model describes what actually runs, the seven-layer OSI model is a vocabulary — and modern protocols such as TLS, QUIC and ARP refuse to sit in one box.

Encapsulation: Data, Segment, Packet, Frame
▶ interactive

Each layer wraps the one above in a header the layer below never reads: 100 bytes of HTTP become a 120-byte TCP segment, a 140-byte IP packet and a 154-byte Ethernet frame — and the 1500-byte MTU, the MSS derived from it, and path-MTU discovery decide how a large response is cut up so that nothing on the way has to fragment it.

Packet Inspector: Read a Frame Field by Field
▶ interactive

A single captured frame carrying an HTTP request, decoded layer by layer — Ethernet (src MAC, dst MAC, EtherType), IP (src, dst, TTL, protocol), TCP (ports, seq, ack, flags), HTTP — with, for every field, who wrote it, who reads it, and who is allowed to change it.