Computer Networking

What actually happens when one machine communicates with another? Ethernet, IP, routing, NAT, DNS, UDP, TCP, TLS, HTTP/1.1 → HTTP/3, WebSockets, proxies, load balancers, CDNs, firewalls — taught by following one web request from the browser through the kernel, the NIC, routers and the internet to a server process, and back.

Your path through Computer Networking

0 of 22 Foundation lessons done
0 of 67 lessons done overall
Start: What Happens When You Press Enter →

Then follow the stages in order

Each stage builds on the ones before it. Labs and simulators sit right after the lessons they exercise. Open a stage to see its lessons. Full roadmap with goals →

  1. Network basics0 of 9 lessons done
    1. What Happens When You Press EnterFoundation≈ 10 min
    2. Follow a Web Request Through Every LayerFoundation≈ 20 min
    3. The Layer Model: TCP/IP First, OSI as a MapFoundation≈ 10 min
    4. Encapsulation: Data, Segment, Packet, FrameFoundation≈ 10 min
    5. Packet Inspector: Read a Frame Field by FieldFoundation≈ 10 min
    6. Ethernet: Delivery on One Local NetworkFoundation≈ 10 min
    7. MAC Addresses: Identity for One HopFoundation≈ 5 min
    8. ARP and Neighbor Discovery: From an IP to a Local MACFoundation≈ 10 min
    9. Switches vs RoutersFoundation≈ 10 min
  2. IP0 of 4 lessons done
    1. IP: Best-Effort Delivery Between MachinesFoundation≈ 15 min
    2. IPv4: 32 Bits, Networks and HostsFoundation≈ 5 min
    3. IPv6: Not Just Bigger AddressesFoundation≈ 10 min
    4. Ports: Addressing a Process, Not a MachineFoundation≈ 10 min
  3. Subnetting0 of 2 lessons done
    1. Subnetting: Splitting an Address SpaceFoundation≈ 10 min
    2. NAT: Many Private Hosts Behind One Public AddressFoundation≈ 10 min
  4. Routing0 of 3 lessons done
    1. Routing: From a Destination IP to a Next HopFoundation≈ 10 min
    2. The Routing Table and Longest-Prefix MatchFoundation≈ 10 min
    3. Internet Routing: Autonomous Systems and BGPFoundation≈ 10 min
  5. DNS0 of 4 lessons done
    1. DNS: Why Names Need a Distributed DatabaseFoundation≈ 10 min
    2. Following One Lookup Through Every CacheFoundation≈ 15 min
    3. DNS Record Types and What They Are ForFoundation≈ 15 min
    4. DNS Failure Modes: What Each One Looks LikeFoundation≈ 10 min
  6. UDP0 of 1 lessons done
    1. UDP: Datagrams and the Contract You ChooseIntermediate≈ 10 min
  7. TCP0 of 8 lessons done
    1. TCP: A Reliable Ordered Byte Stream over an Unreliable NetworkIntermediate≈ 10 min
    2. The Three-Way HandshakeIntermediate≈ 10 min
    3. Sequence Numbers, ACKs and ReassemblyIntermediate≈ 10 min
    4. Packet Loss: Duplicate ACKs, Fast Retransmit and the RTOIntermediate≈ 15 min
    5. Flow Control: The Receive WindowIntermediate≈ 10 min
    6. Congestion Control: Protecting the NetworkIntermediate≈ 10 min
    7. Head-of-Line BlockingIntermediate≈ 10 min
    8. The Connection Lifecycle: Close, Reset, TIME_WAIT, CLOSE_WAITIntermediate≈ 15 min
  8. TLS0 of 3 lessons done
    1. Why TLS ExistsIntermediate≈ 10 min
    2. The TLS HandshakeIntermediate≈ 15 min
    3. Certificates and the Chain of TrustIntermediate≈ 15 min
  9. HTTP0 of 5 lessons done
    1. HTTP: Requests, Responses, Headers and Status CodesIntermediate≈ 15 min
    2. The Lifecycle of One HTTP RequestIntermediate≈ 5 min
    3. HTTP/1.1: Persistent Connections and Their LimitsIntermediate≈ 5 min
    4. Keep-Alive and Connection ReuseIntermediate≈ 10 min
    5. Connection PoolingIntermediate≈ 10 min
  10. HTTP/2 & HTTP/30 of 5 lessons done
    1. HTTP/2: Streams on One ConnectionIntermediate≈ 10 min
    2. HTTP/3 and QUICIntermediate≈ 10 min
    3. HTTP/1.1 vs HTTP/2 vs HTTP/3Intermediate≈ 10 min
    4. WebSocketsIntermediate≈ 10 min
    5. Polling vs Long Polling vs SSE vs WebSocketsIntermediate≈ 10 min
  11. Sockets0 of 3 lessons done
    1. Network NamespacesAdvanced≈ 10 min
    2. Container NetworkingAdvanced≈ 10 min
    3. The Socket: A Descriptor With Two Kernel Buffers Behind ItAdvanced≈ 15 min
  12. Proxies / Load balancing0 of 5 lessons done
    1. Forward and Reverse ProxiesAdvanced≈ 10 min
    2. Load Balancers: L4 vs L7Advanced≈ 15 min
    3. FirewallsAdvanced≈ 10 min
    4. VPNs and TunnelsAdvanced≈ 10 min
    5. Kubernetes Networking, Just EnoughAdvanced≈ 10 min
  13. CDNs0 of 5 lessons done
    1. CDNs: The Networking ViewAdvanced≈ 10 min
    2. Latency: Same Machine to Cross-ContinentAdvanced≈ 10 min
    3. Bandwidth vs LatencyAdvanced≈ 10 min
    4. Throughput: Requests, Packets and Bytes per SecondAdvanced≈ 10 min
    5. Where the Time Goes: The Request TimelineAdvanced≈ 15 min
  14. Network debugging0 of 11 lessons done
    1. Why Can’t I Connect?Advanced≈ 15 min
    2. The Tools, and Which Layer Each One AnswersAdvanced≈ 15 min
    3. ping: What an Echo Actually ProvesAdvanced≈ 10 min
    4. traceroute: Discovering the Path Hop by HopAdvanced≈ 10 min
    5. DNS Debugging: Who Answered, and With What?Advanced≈ 10 min
    6. TCP Debugging: Reading the Handshake on the WireAdvanced≈ 10 min
    7. TLS Debugging: Why the Certificate Is "Invalid"Advanced≈ 10 min
    8. HTTP Debugging: 502, 503 and 504 Are Different FailuresAdvanced≈ 10 min
    9. Capstone: What Happens When You Visit https://example.comAdvanced≈ 10 min
    10. Follow One PacketAdvanced≈ 10 min
    11. Network Failure Lab: Predict, Inject, Observe, DiagnoseAdvanced≈ 15 min
  15. Distributed-system networking0 of 4 lessons done
    1. Follow send() Through the OS to recv()Advanced≈ 15 min
    2. The Buffer ChainAdvanced≈ 10 min
    3. What Happens When the Receiver Is SlowAdvanced≈ 10 min
    4. Capstone: Three Seconds from WarsawAdvanced≈ 15 min

Follow one operation through every layer

The defining experience: no “Client → Server” and stop. Every arrow can be expanded until you reach the hardware.

  1. Browser→
  2. DNS→
  3. TCP / QUIC→
  4. TLS→
  5. HTTP→
  6. Socket→
  7. Kernel→
  8. Network interface→
  9. Router→
  10. Internet→
  11. Server NIC→
  12. Kernel→
  13. Socket→
  14. Application
Learn → Visualize → Inspect → Simulate
Every mechanism is derived from the constraint it solves, then shown as a stepped simulation you can run, pause, step and reset.
Break → Debug → Practice → Interview
Labs let you exhaust memory, deadlock threads, drop packets and expire certificates; challenges make you find the root cause across layers.
Accuracy over slogans
Sections are labelled CONCEPTUAL · LINUX · UNIX-STYLE · WINDOWS · IPV4 · IPV6 · SIMULATED · RUNTIME-SPECIFIC so you always know whether you are reading a model or an implementation.

Start here

Journeys

“What actually happens when I…?” — zoom from four boxes to the full internals.

Modules

0/80 lessons mastered
How the Internet Works0/5
Press Enter on a URL and follow the request: layers, encapsulation, and an educational packet inspector.
What actually happens after you press Enter?
Ethernet, MAC & the Link Layer0/4
Local delivery: frames, MAC addresses, switches, broadcast domains, ARP for IPv4 and neighbor discovery for IPv6; switches versus routers.
I know the IP address. How does the frame find the right cable?
IP, IPv4, IPv6, Subnets, NAT & Ports0/6
Best-effort packet delivery, address structure, CIDR and subnetting, why IPv6 exists, NAT translation tables and what a port really is.
How does `192.168.1.42` know whether `10.0.0.7` is next door or across the world?
Routing0/3
Routing tables, longest-prefix match, next hops, and how the internet is stitched together from autonomous systems with BGP.
A router sees a destination IP and has three matching routes. Which wins, and why?
DNS0/4
From a name to an address: caches, recursive resolvers, root, TLD and authoritative servers, record types, TTLs — and a failure simulator.
Where does the IP for `engineer-atlas.dev` actually come from, and who is allowed to be wrong about it?
UDP0/1
Datagrams over IP with no connection, no ordering and no retransmission — and why DNS, real-time media and QUIC choose exactly that.
Why would anyone want a transport that can lose your data?
TCP0/8
A reliable ordered byte stream over an unreliable network: the handshake, sequence numbers, acknowledgments, loss recovery, flow control, congestion control, head-of-line blocking and the connection lifecycle.
How do you build a reliable stream out of packets that can be lost, duplicated and reordered?
TLS & Certificates0/3
TCP gives transport but not confidentiality or identity: the handshake, key agreement, certificates and the chain of trust.
How does my browser know it is talking to the real server, and not the coffee-shop Wi-Fi?
HTTP/1.1, HTTP/2 & HTTP/30/8
Requests, responses, headers and status codes; then the evolution from HTTP/1.1 through HTTP/2 multiplexing to HTTP/3 over QUIC; keep-alive and connection pooling.
Why did HTTP need three redesigns of its transport?
WebSockets, SSE & Polling0/2
Getting data from the server without asking: polling, server-sent events and WebSockets compared on directionality, infrastructure, reconnection and scale.
The server has news. How does it tell a browser that only ever asks?
Proxies, Load Balancers & CDNs0/3
Forward vs reverse proxies, L4 vs L7 balancing, health checks, and the networking view of a CDN: DNS, edge locations, caches and geographic distance.
When the client connects to "the server", what is it actually connected to?
Firewalls & VPNs0/2
Rules that allow or deny traffic by address, port and protocol; stateful inspection; encrypted tunnels.
A ping fails but the service works. What is a firewall actually blocking?
Container & Kubernetes Networking0/3
Network namespaces, virtual interfaces, bridges, and just enough Kubernetes to understand pod IPs, services, ingress and network policies.
Two containers on one host both bind port 80. How is that not a conflict?
Network Performance0/4
RTT, bandwidth, loss, retransmission, connection and TLS setup, queueing — and why a request is slow while the server CPU sits idle.
The server is idle and the request still takes 800 ms. Where did the time go?
Network Debugging & Capstone0/9
"Why can’t I connect?" as a layered procedure, the tools and which layer each answers, DNS/TCP/TLS/HTTP debugging — and the capstone: what happens when you visit `https://example.com`.
Connection timed out. Which of the nine layers failed?
Packet Lab0/2
Follow one packet hop by hop and inspect its state, then inject failures — loss, latency, DNS outage, expired certificate, blocked port — and predict the behaviour.
What changes in the packet at each hop, and what happens when a hop fails?
OS + Networking Together0/13
Follow `send()` through the socket API, the kernel, the transport stack and the NIC to a server that wakes up in `recv()`; build a tiny server from blocking to event-driven; buffers, backpressure, zero-copy and a combined failure simulator.
What actually happens between writing `send()` and another machine’s process waking up?

Connected to the other domains

These domains are one map, not isolated courses.