how/network
7 layers: what TCP adds, what IP adds, what Ethernet adds. Why "layers" are not theory but concrete bytes in a packet.
The OSI model splits the network stack into 7 layers, each of which handles its own job and stays out of the others'. When your browser makes an HTTP request, that request goes down the stack, picking up its own header at each layer (encapsulation), travels across the wire to the server, and there comes back up, shedding a header at each layer (decapsulation).
Layers are not a textbook abstraction. They are real bytes that
you can see in tcpdump. Understanding this splits DevOps people into
those who fix the network and those who guess.
Press ▶ to watch an HTTP request go through all 7 layers and back.
On the left is the sender's stack, on the right the receiver's. At the bottom both sides are joined by the wire (L1 = the physical layer).
The idea: each layer talks to its mirror on the other side. The sender's TCP "talks" to the receiver's TCP, IP to IP, and so on. Because of this you can change the implementation of any layer independently of the rest. TCP does not care how exactly the bits run down the wire.
recap
What to remember:
This is the base on which every other explainer is built: DHCP, ARP, DNS, NAT, routing, each works at its own layer.