Networking From the Ground Up
Lesson Promise
By the end of this lesson, you will understand what a network is, how IP addresses and ports identify endpoints, how data is packaged into packets, and how the network stack's layers work together to deliver data from one machine to another.
Narration Draft
Part 1 — What Is a Network? (3:00) A network connects computers so they can exchange data. Explain IP addresses (like street addresses), ports (like apartment numbers), and packets (like envelopes). Show how a web request is split into many packets.
Part 2 — The Client-Server Model (3:00) The client asks, the server responds. Explain the request-response cycle, sockets, and stateful vs stateless servers. Why most services centralize in servers rather than using peer-to-peer.
Part 3 — Network Layers (5:00) The five-layer model: Application (HTTP), Transport (TCP), Network (IP), Link (Ethernet), Physical (cable/radio). Each layer adds a header (encapsulation). Trace a packet through all five layers — what each header contains and what each layer contributes.
Part 4 — TCP vs UDP (4:00) TCP: connection-oriented, reliable, ordered. UDP: connectionless, best-effort, fast. When to use each. The three-way handshake for TCP.
Visual Sequence
- Computers connected by roads — analogy for a network
- IP address as street address, port as apartment number
- Data split into packets with headers and sequence numbers
- Five-layer encapsulation diagram: HTTP → TCP segment → IP packet → Ethernet frame → bits
- TCP three-way handshake animation
- TCP reliability: sequence numbers, ACKs, retransmission
Companion Material
Related articles
Ports, Sockets, and Connections
How port numbers distinguish services, how sockets are created and used, and how TCP connections are established and torn down.
What Is a Network?
A network is a system that connects computers so they can exchange data. Learn about IP addresses, ports, packets, and the client-server model.
CDNs and Anycast Routing
How content delivery networks place edge servers near users and how anycast uses BGP to route to the nearest replica.
More in Networking
Advanced Networking: HTTP/2, CDNs, and TLS
How HTTP/2 multiplexing fixes head-of-line blocking, how CDNs and anycast route users to the nearest edge, and how TLS secures connections.
DetailsNetworking Protocols: DNS, TCP, and TLS
Dive into how DNS resolves hostnames, how TCP establishes reliable connections, and how TLS encrypts data in transit.
DetailsThe Full Lifecycle of an HTTPS API Request
A planned visual lesson tracing one API call through DNS, transport, TLS, HTTP, edge routing, server code, and the response.
DetailsNew lessons by email
Get new articles and notes on the systems behind everyday software.
One technical dispatch per week. No noise.
Not started
Sign in to save your learning progress.