How the OSI and TCP/IP models work
medium 40 minA network request is a message wrapped in headers, one per layer, like dolls inside dolls.
Where it shows up
The same pattern appears across everyday software.
"Is it the network?" in an incident
An SRE answers by layer: the hosts have links and routes, DNS resolves, TCP connects, TLS verifies, and the 504s come from the proxy's upstream timeout. That narrows a vague complaint to one team in minutes.
L4 and L7 load balancers
Cloud load balancers come in both kinds. An L4 one forwards TCP or UDP by address and port. An L7 one ends TLS, reads the HTTP request and can route by path. Choosing one is choosing which layers it reads.
Home and mobile NAT
Every phone and laptop at home shares one public address through NAPT. Peer-to-peer calls need extra tricks because nobody outside can start a connection to a private address.
VPN and tunnel MTU problems
A tunnel adds headers, so the inner MTU is smaller. When ICMP is filtered, large transfers hang while small requests work. MSS clamping on the tunnel is the usual fix.
Kubernetes networking
A packet to a Service address is rewritten by netfilter or a similar data path to a Pod address, often wrapped in another header to cross nodes. The same layer questions apply, with more layers of dolls.
Reading a packet capture
Wireshark and tcpdump show the same structure as this page: Ethernet, then IP, then TCP or UDP, then the application. Retransmissions, resets and ICMP messages are read layer by layer.