What is the OSI 7-Layer Model?
The OSI 7-layer model, told as a story about splitting the whole process of sending a package into 7 stages.
Sending one package seems to take so many steps.Packing, addressing, sorting, shipping, confirming… it's hard to tell whose job is whose.
Without splitting the process, one person carries everything.With each stage owned separately, changing one leaves the others untouched.
OSI 7 layers = splitting the delivery process into 7 stages.Each stage handles only its own job, then hands off to the next.
Each of the 7 stages, application down to physical, gets one line.The top (7) handles content and format; the bottom (1) handles the actual road.
Devices along the way don't read all 7 stages.Devices along the way read only as far as they need to choose where to send.
OSI 7 layers = a model that splits the whole process of sending data into 7 independent stages, each with its own job.
The OSI 7-layer model is a reference model that splits network communication into physical (1), data link (2), network (3), transport (4), session (5), presentation (6), and application (7) layers. Each layer uses the service of the layer below and provides a service to the layer above; data gets wrapped (encapsulated) at each layer when sent, and unwrapped at each layer when received.
When grown-ups say it
- Application/Presentation/Session (7-5)
- The upper stages deciding content, wrapping, and the talk's start/end. The stages closest to what people actually see.
- Transport Layer (4)
- The stage choosing registered or plain mail. The transport layer gets its own deeper page. → the stage that splits ports and picks reliability
- Network Layer (3)
- The stage deciding which town to send to. Addressing and zoning belong to this layer. → splitting the town into smaller zip-code zones
- Data Link/Physical (2-1)
- Handing to the next building, and the actual road or wire. The bottommost stages, where signals actually flow.
- Encapsulation
- Adding a wrapper at each stage. Added on the way out, peeled off on the way in.
- L4 Switch
- The sorter who picks a counter after checking only up to layer 4. A concrete example of a device referencing these layers. → the sorter who checks the port
- Circuit vs Packet Switching
- A dedicated road, or splitting the envelope into pieces. The actual transport method at the lower layers. → a dedicated road, or splitting it into pieces
- TCP/IP Model
- A simpler model that groups the same idea into just 4 stages. The actual internet follows this simpler model instead.