How Networking Works
From Bits on a Wire to the Global Internet
Every time you load a web page, dozens of machines you will never see cooperate to move your bytes: a switch learns where your laptop lives, a router picks the next hop, a resolver turns a name into an address, and TCP quietly retransmits whatever got lost along the way.
This series opens up each of those boxes. We start with how bits become frames on a local network, build up to addressing and routing between networks, then look at the transport protocols and everyday services — DHCP, NAT, DNS, HTTP — that make it all usable. Every page has a simulator so you can watch the packets move.
Foundations
How bits become packets — layers, frames, and addresses.
- 001
- 002
- 003
-
004
Beginner IPv4 Addressing & Subnets
Thirty-two bits, one line drawn through them, and everything that follows from where you draw it
-
005
Beginner IPv6: The 128-Bit Internet
Four times the bits, a /64 for every LAN, and hosts that pick their own addresses
Switching & Segmentation
Carving one physical network into many, and keeping it loop-free.
-
006
Intermediate VLANs
One physical switch, several separate networks, and the four bytes that keep them apart
-
007
Intermediate Spanning Tree
How switches find the loops in a network, switch them off, and switch them back on when a cable dies
Routing
How packets find their way between networks — from a single routing table to the whole internet.
-
008
Intermediate Routing Basics
How a router reads one address, picks the most specific route, and passes your packet one hop closer to the other side of the world
-
009
Intermediate Distance-Vector Routing
How routers fill in their tables by telling their neighbours how far away everything is, and why bad news makes them count to infinity
-
010
Intermediate Link-State Routing & OSPF
How routers flood a description of their own links until every one of them holds the same map, then each works out its own shortest paths with Dijkstra
-
011
Intermediate BGP: Routing Between Networks
How tens of thousands of independent networks tell each other which addresses they can reach, choose between routes by business policy rather than distance, and occasionally get it spectacularly wrong
Transport
Getting data from one program to another, reliably or not.
-
012
Intermediate UDP: Datagrams Between Programs
The thinnest possible transport: ports to find the right program, a length, a checksum, and nothing else, and why DNS, games, voice calls and QUIC want exactly that
-
013
Intermediate TCP: A Reliable Byte Stream
How sequence numbers, acknowledgements, timers and a sliding window turn IP's unreliable packets into an ordered stream of bytes, from the three-way handshake to TIME-WAIT
-
014
Advanced Congestion Control: Protecting the Network
How a TCP sender that can only see ACKs, losses and delays works out how fast to send, from the 1986 collapses through slow start, AIMD and fast recovery to CUBIC, BBR, bufferbloat and ECN
Network Services
The protocols that make a network actually usable.
-
015
Intermediate DHCP: Getting an Address Without Asking a Human
How a laptop with no address, no router and no idea where it is ends up with all three, in four broadcast-friendly UDP messages, and what keeps the arrangement going for days
-
016
Intermediate NAT: One Public Address for the Whole House
How R1 lets a dozen private devices share 198.51.100.23, rewriting addresses, ports and checksums on every packet, and what that sharing quietly breaks
-
017
Intermediate DNS: How a Name Becomes an Address
How the laptop's 29-byte question about example.com travels from R1 to the root, .com and example.com's own servers, and how caches, compression pointers, EDNS, DNS64 and DNSSEC fit around it
-
018
Intermediate HTTP: What the Browser Actually Says
The laptop's 37-byte request and the server's 1,256-byte answer decoded byte by byte, then the same exchange carried as HTTP/2 frames with HPACK and as HTTP/3 over QUIC, with caching, HTTPS and head-of-line blocking along the way