Networking, DNS & TLS
TCP vs UDP: when each one is used
Why a video call tolerates lost packets while a file download repairs them, and how to see the difference with three lines of Python.
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
- The local network: MAC addresses, ARP, default gateway and routesBeginner · 5 min
Why a machine can reach its neighbour but not the internet, and the two small tables that decide where every packet goes first.
- Ports and sockets: one IP, many servicesBeginner · 5 min
How one server address can run a website, SSH and a database at once, and why starting a second copy of a service fails with 'Address already in use'.
- DNS: why names exist and who answersBeginner · 5 min
The worldwide phone book that turns app.example.com into an address, who holds each page of it, and why so many outages turn out to be DNS.
- DNS record types: A, AAAA, CNAME, MX, TXT, NSBeginner · 5 min
What each line in a DNS zone means, which record to pick for a website, an alias and email, and the two small mistakes that quietly break them.
- dig, nslookup and /etc/hostsBeginner · 5 min
How to read a dig answer in ten seconds, and why dig can show a correct address while curl still reaches the wrong server because of one line in /etc/hosts.
- HTTP: requests, methods, status codes and headersBeginner · 5 min
What a request and a response actually contain, and how three digits tell you whether to look at the client, the proxy or the app.