Series

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.

How to read this series: Start with the foundations — every later article assumes you know how encapsulation, Ethernet, ARP, and subnets work. After that, the sections can be read in any order. For what happens on top of TCP when a connection is encrypted, see the TLS article in the Encryption series.

Foundations

How bits become packets — layers, frames, and addresses.

  1. 001
    Beginner Layers & Encapsulation

    How a few bytes of HTTP become a frame on the wire

    32 min
  2. 002
    Beginner Ethernet & Switching

    Frames, MAC addresses, and how a switch learns where everyone lives

    39 min
  3. 003
    Beginner ARP: From IP to MAC

    How a host finds out who is behind an IP address on its own network

    49 min
  4. 004
    Beginner IPv4 Addressing & Subnets

    Thirty-two bits, one line drawn through them, and everything that follows from where you draw it

    49 min
  5. 005
    Beginner IPv6: The 128-Bit Internet

    Four times the bits, a /64 for every LAN, and hosts that pick their own addresses

    62 min

Switching & Segmentation

Carving one physical network into many, and keeping it loop-free.

  1. 006
    Intermediate VLANs

    One physical switch, several separate networks, and the four bytes that keep them apart

    58 min
  2. 007
    Intermediate Spanning Tree

    How switches find the loops in a network, switch them off, and switch them back on when a cable dies

    75 min

Routing

How packets find their way between networks — from a single routing table to the whole internet.

  1. 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

    75 min
  2. 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

    59 min
  3. 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

    79 min
  4. 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

    96 min

Transport

Getting data from one program to another, reliably or not.

  1. 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

    67 min
  2. 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

    77 min
  3. 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

    75 min

Network Services

The protocols that make a network actually usable.

  1. 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

    93 min
  2. 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

    84 min
  3. 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

    93 min
  4. 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

    98 min