Networking, DNS & TLS
TCP states: ESTABLISHED, TIME_WAIT and CLOSE_WAIT
Read the State column of ss like a thermometer: TIME-WAIT in the thousands is usually the protocol working, while a few dozen growing CLOSE-WAIT sockets are a bug in your own program.
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
- Subnet planning: carve a /16 into /24s and /26sBeginner · 5 min
How to spend a /16 so that the load balancer, the app tier and a future partner network all fit, and why the plan has to exist before the first subnet does.
- Routing tables, next hop and longest prefix matchBeginner · 5 min
Why a stopgap route for one /24 quietly steals traffic from a /16, and how to ask the kernel which route a packet will take before you send anything.
- tcpdump: capture and read packetsBeginner · 5 min
Settle 'is the packet even leaving this host?' in one command, and learn to read the three flag letters that tell you whether the other side answered.
- Authoritative DNS: NS delegation, SOA and registrarsBeginner · 5 min
The Intern stage showed who answers a DNS query. This lesson shows who is allowed to, and why identical records in the wrong place change nothing.
- 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…