Why we layer, and where the model lies
Layering is a contract about ownership. Each layer treats what sits above it as opaque bytes it must deliver, and what sits below it as a pipe whose internals are none of its business. Ethernet moves frames across one link. IP moves packets across networks. TCP turns a lossy packet service into an ordered byte stream.
The seven-layer OSI model is a teaching device, not a description of the internet. The stack that actually shipped is the four-layer model of RFC 1122: link, internet, transport, application. Even that leaks:
- TLS sits between transport and application and belongs cleanly to neither.
- NAT is a layer 3 box that rewrites layer 4 port numbers to do its job.
- MPLS is routinely nicknamed "layer 2.5" because it fits nowhere.
- A VPN carries IP inside IP, so the whole stack nests twice.
Treat layering as a map of who owns which header, not a law of physics.

