The OSI model: 7 layers in 5 minutes
This lesson is open to everyone. The other lessons open with a package: sign in or sign up, then choose a package.
Key points
- The OSI model splits networking into 7 layers so that a problem can be investigated piece by piece.
- Layer 1 Physical: cables and signals. Layer 2 Data Link: MAC addresses and the frame.
- Layer 3 Network: IP addresses and the packet. Routers work here.
- Layer 4 Transport: TCP and UDP, port numbers and the segment.
- Troubleshooting usually goes from the bottom up: first the cable, then IP.
Why do we need a model?
If a website does not open, the cause may be a cable or DNS. The OSI model splits this big problem into 7 small parts. You check each part separately and quickly narrow down where to look.
How to remember them
From the bottom up: Physical, Data Link, Network, Transport, Session, Presentation, Application. A famous mnemonic: "Please Do Not Throw Sausage Pizza Away".
The name of the data at each layer
As data goes down, each layer adds its own header. This is called encapsulation. That is why the same data has a different name at each layer:
| Layer | Name of the data (PDU) | Device |
|---|---|---|
| 4 Transport | Segment (TCP) / Datagram (UDP) | Firewall (port rules) |
| 3 Network | Packet | Router |
| 2 Data Link | Frame | Switch |
| 1 Physical | Bit | Cable, hub |
In practice: when a user says "there is no internet", check Layer 1 first: is the cable plugged in, is the port light on? Then Layer 2: is the switch port up? Then Layer 3: did the computer get an IP address, can it ping the gateway?
The TCP/IP model
In real life the 4-layer TCP/IP model is used very often. In it, OSI layers 5, 6 and 7 are combined into one Application layer, and layers 1 and 2 into the Link layer. The CCNA asks about both models.
Check yourself
5 questions · answers are shown instantly · 3 correct answers complete the lesson
1At which layer does a switch work?
2TCP and UDP are protocols of which layer?
3What is the data called at Layer 3?
4Which address does a router use to make its decision?
5A user says "there is no internet". Which layer is it logical to start with?
Comments
Sign in to comment.