Why split networking into layers?

Explore the layers

Watch encapsulation happen

Step through what happens when your browser sends a request: the data picks up a header at each layer on the way out, travels across the wire, then gets unwrapped one layer at a time on the other end.

Sender
Receiver

Presentation and Session (L5–L6) don't add their own header in this simplified view — they hand data straight to Transport. Also, in reality, if the finished frame is bigger than the link's MTU, it has to be split into multiple packets before it can be sent — a process called fragmentation.

OSI vs. TCP/IP: two models, one idea

The Internet was actually built on the 4-layer TCP/IP model. The 7-layer OSI model came from a separate, mostly unimplemented standardization effort — but its terminology stuck because it's more granular and easier to teach layer-by-layer.

OSI (7 layers)TCP/IP (4 layers)
7. ApplicationApplication
6. Presentation
5. Session
4. TransportTransport
3. NetworkInternet
2. Data LinkNetwork Access
1. Physical

Common gotchas