Network engineers describe almost everything by layer: a layer-2 loop, a layer-4 load balancer, a layer-7 firewall. This layer diagram puts the seven-layer OSI model next to the four-layer TCP/IP model with real protocols, and a second diagram shows how one HTTP request is wrapped in headers on its way to the wire.
1. The Diagram
Read bottom-up for sending order. Physical (1) moves bits over a medium; Data Link (2) frames them for one hop using MAC addresses; Network (3) routes packets end to end with IP addresses.
Transport (4). TCP adds ports, ordering and retransmission; UDP adds only ports. This is where a stream of data becomes segments.
Upper three. Session, Presentation and Application are separate in OSI but collapse into one Application layer in TCP/IP. TLS straddles them, which is why people argue about its layer.
Middle column. The TCP/IP model is what the internet actually implements; the green boxes show how its four layers line up with OSI's seven.
2. How to Read It
Element
Meaning
Box with layer number
One OSI layer and the name of its protocol data unit (PDU)
Green tall box
A TCP/IP layer; its height shows which OSI layers it covers
Yellow outline
Transport layer, the first end-to-end layer (TCP or UDP)
Header blocks (encapsulation view)
Bytes added by each layer, drawn left of the payload they wrap
A layer diagram is not UML and not a topology: stacked boxes mean "uses the service of the layer below", not a physical connection. Keep one column per model and align rows so the mapping is visual.
3. Variant: Encapsulation
The same layers drawn as bytes on the wire. The HTTP request is wrapped by a 20-byte TCP header, then a 20-byte IPv4 header, then a 14-byte Ethernet header and a 4-byte frame check sequence. A router removes and rebuilds only the Ethernet part at each hop; the IP and TCP headers travel end to end.
4. Pros, Cons, and When to Use
Pros
Shared vocabulary: "a layer-7 load balancer", "an L2 problem".