Computer Networks Workbook

51 topics across foundations, non-functional requirements, building blocks, full system designs, and public postmortems. Every system uses the same 7-step interview walk-through; every building block has a consistent design template.

32 Foundational 18 Intermediate 1 Advanced 7 topics RSS

Foundations

8 items

What the Internet is, the layered models (OSI and TCP/IP), encapsulation, and the access-network families that make up the last mile.

HTTP, cookies and sessions, DNS, email (SMTP/POP/IMAP), BitTorrent — the protocols engineers touch every day.

  • What Is the Application Layer?

    What apps actually do on top of the transport layer — process-to-process messaging, architectures, and the protocols you'll meet.

    Concept Foundational
  • Client-Server vs Peer-to-Peer

    Two app-layer architectures, their scaling shapes, and the hybrid (BitTorrent + trackers) that combines them.

    Concept Foundational
  • HTTP — Requests, Responses, Status Codes, Headers

    The protocol most engineers know best. Methods, status families, the headers that actually matter, persistent connections.

    Building Block Foundational
  • Cookies and Session Management

    Stateful sessions over a stateless protocol, Set-Cookie / Cookie headers, SameSite, Secure, HttpOnly, and the alternatives.

    Building Block Foundational
  • DNS — Hierarchy, Records, and Query Resolution

    Root → TLD → authoritative → recursive; A / AAAA / CNAME / MX / NS / TXT; the recursive resolution walk.

    Building Block Foundational
  • Email — SMTP, POP, IMAP

    Three protocols for one job. Why SMTP is push, POP/IMAP are pull, and where modern alternatives took over.

    Building Block Foundational
  • BitTorrent

    Tracker + swarm + pieces + tit-for-tat. The protocol that made P2P scale and still teaches the patterns.

    System Intermediate

Transport Layer

7 items

UDP and TCP — multiplexing, reliable delivery, flow control, congestion control, the algorithms that make the Internet work.

Network Layer

12 items

IP (v4 and v6), ICMP, ARP, DHCP, NAT, intradomain (OSPF) and interdomain (BGP) routing.

  • What Is the Network Layer?

    Forwarding vs routing, the control plane vs the data plane — what turns 'a wire between two hosts' into 'the Internet'.

    Concept Foundational
  • IPv4 — Addressing, Subnets, Fragmentation

    32-bit addresses, classless inter-domain routing (CIDR), subnet masks, fragmentation, the IPv4 header.

    Building Block Foundational
  • IPv6 — Why and How

    128-bit addresses, simplified header, no fragmentation by routers, IPv4 exhaustion as the forcing function.

    Building Block Intermediate
  • ICMP — The Internet's Control Channel

    ping, traceroute, destination-unreachable, time-exceeded, redirect — how the network tells you what went wrong.

    Building Block Foundational
  • ARP — Address Resolution Protocol

    Mapping IPv4 addresses to MAC addresses inside a subnet. The cache, the request/reply, and the spoofing risk.

    Building Block Foundational
  • DHCP — Dynamic Host Configuration

    DISCOVER / OFFER / REQUEST / ACK. The four-way handshake that gets your laptop an IP address.

    Building Block Foundational
  • NAT and Firewalls

    Why everyone is behind a NAT, how it breaks the end-to-end principle, and the firewall stances (stateful vs stateless) you'll meet.

    Building Block Intermediate
  • Static vs Dynamic Routing

    Hand-edited tables vs protocols that converge. When each is correct, and the operational cost of choosing wrong.

    Concept Intermediate
  • Distance-Vector Routing and RIP

    Bellman-Ford on the control plane — each router advertises distances to its neighbours, count-to-infinity, split-horizon, poison-reverse, and why RIP capped at 15 hops.

    Building Block Intermediate
  • Intradomain Routing — OSPF

    Link-state routing inside an AS, Dijkstra's algorithm, hello protocol, area hierarchies — the routing protocol of enterprises and ISPs.

    Building Block Intermediate
  • Interdomain Routing — BGP

    Path-vector routing between ASes, policy-based selection, the trust model that makes BGP both essential and fragile.

    Building Block Advanced
  • The Life of a Packet — End to End

    A single HTTP request from address-bar keypress to rendered page — ARP, DHCP, DNS, IP, TCP, HTTP and back, narrated layer by layer.

    System Intermediate

ping, traceroute, tcpdump, curl, dig — and Python socket programming for UDP and TCP.

Public network-layer postmortems — Cloudflare 2019 regex outage, Facebook 2021 BGP withdrawal, AWS us-east-1 S3 2017.

Search ESC

Keyboard shortcuts

Shortcuts are disabled while typing in inputs.