Networking, DNS & TLS
The TCP three-way handshake
What happens in the first round trip of every TCP connection, and why 'connection refused' and 'timed out' point at different problems.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- Debugging DNS: dig +trace, resolv.conf and systemd-resolvedBeginner · 4 min
Why dig says one thing and your application does another: the search list, ndots and the 127.0.0.53 stub sit between them, and Kubernetes pods make all three matter.
- The TLS 1.3 handshake step by stepBeginner · 5 min
What the client and server actually say to each other in the one round trip before any HTTP is sent, which parts an eavesdropper can read, and which message proves the…
- Congestion controlBeginner · 5 min
Congestion control adjusts sending rate according to network feedback.
- MTU and path MTU discoveryBeginner · 5 min
Why ssh and small requests work while a 20 KB upload hangs forever, and the one ICMP message whose loss causes it.
- UDPBeginner · 5 min
UDP sends datagrams without connection reliability.
- How a name is resolved: stub, recursive, root, TLD, authoritativeBeginner · 5 min
The exact trail from a program's question to an answer, why the first lookup takes 118 ms and the second takes none, and how to see each hop with dig.