Networking essentials
DNS, TCP vs UDP, TLS handshakes, load balancing, CIDR. Most "app is down" pages are actually network questions.
The mental model
Think of the network as the postal system for your packets. **DNS** is the phone book: you know the name api.example.com, but you need the street address 203.0.113.10 before anything can be delivered. **IP** is the address itself, and **CIDR** is how a city carves itself into neighbourhoods — 10.0.0.0/16 is a whole city, 10.0.1.0/24 a single street inside it. TCP is registered post: numbered envelopes, signed receipts, and the sender re-sends anything that never got acknowledged. UDP is dropping a postcard in a mailbox — cheaper and faster, no receipt, no re-send. TLS is putting the letter in a tamper-evident envelope after you have checked the recipient's ID card, which a trusted authority signed.
A load balancer is the reception desk in the lobby: everyone addresses the building, and reception decides which of the twelve identical clerks upstairs actually handles this visitor — and quietly stops sending work to the clerk who stopped answering.
Why this matters for DevOps: most pages that read "the app is down" are network questions in disguise. The app process is fine; the name resolves to the old IP, the security group drops the packet, the certificate expired, or the load balancer marked every target unhealthy. Being able to walk the path — name → address → route → port → handshake → response — turns a two-hour mystery into a five-minute fix.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision