Communication Networks · Visualized
OSI Model & Encapsulation
Reference Models
The OSI and TCP/IP layer stacks — how every piece of data is wrapped, addressed and unwrapped.
2 interactive subtopics — each one animated, step-through and explained.
OSI Model & Encapsulation
Reference ModelsThe OSI model splits networking into seven cooperating layers, each serving the one above and using the one below. When you send data, every layer adds its own header (encapsulation); on the receiver the headers are stripped in reverse order (de-encapsulation). Layering lets engineers change one piece — say Wi-Fi instead of Ethernet — without touching the rest.
How OSI Model Works
- L7 Application produces the data (HTTP request, email…).
- L6 Presentation formats it (encoding, TLS encryption, compression).
- L5 Session manages the dialogue between the two programs.
- L4 Transport adds port numbers → Segment; L3 adds IP addresses → Packet.
- L2 Data Link adds MAC addresses + error trailer → Frame; L1 Physical sends raw bits over the medium.
- The receiver peels the headers bottom-up until only the original data reaches the peer application.
OSI Model Worked Example
Try it: Play — watch “Hello” descend the sender stack gaining headers, cross the wire as bits, and climb the receiver stack losing them.
Data → [TH]Data segment → [IPH][TH]Data packet → [FH][IPH][TH]Data FCS frame → bits. Each header is written by exactly one layer and read by the same layer on the far side.
OSI Model: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.