Networking Protocols: DNS, TCP, and TLS
Lesson Promise
By the end of this lesson, you will understand how DNS turns names into IP addresses, how TCP establishes connections and guarantees delivery, and how TLS encrypts data between two endpoints.
Narration Draft
Part 1 — IP Addresses and Routing (6:00) How IP addresses identify devices. IPv4 vs IPv6. Subnets and CIDR notation (/24 = 256 addresses). How routers use routing tables and how BGP connects the internet.
Part 2 — DNS Resolution (6:00)
The Domain Name System: root servers → TLD servers → authoritative servers. Recursive vs iterative resolution. DNS caching and TTL. The dig command as a debugging tool.
Part 3 — TCP Transport (7:00) TCP's three-way handshake. Sequence numbers and acknowledgments. Flow control and congestion control. Connection teardown.
Part 4 — TLS Security (6:00) TLS handshake: cipher suite negotiation, certificate exchange, key derivation. How certificates establish identity. TLS 1.2 vs 1.3.
Part 5 — Performance Implications (3:00) How TCP connection setup adds latency. TLS handshake cost. Connection reuse (keep-alive) and HTTP/2 multiplexing.
Visual Sequence
- DNS resolution tree: client → recursive resolver → root → TLD → authoritative
- TCP three-way handshake: SYN, SYN-ACK, ACK
- TCP reliability: sequence numbers, cumulative ACK, fast retransmit
- TLS 1.3 handshake: client hello, server hello, key exchange, encrypted traffic
- Connection reuse and HTTP/2 multiplexing on one connection
Companion Material
Related articles
What Happens When You Call an API?
Follow an HTTPS API request from a browser through name resolution, transport, TLS, HTTP, server code, and back.
Ports, Sockets, and Connections
How port numbers distinguish services, how sockets are created and used, and how TCP connections are established and torn down.
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 From the Ground Up
A beginner-friendly walkthrough of what networks are, how packets travel through layers, and the difference between TCP and UDP.
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.