Network Bytes · Episode 11 · CCNA 1.0
The OSI model: 7 layers
Every message you send goes down seven layers and back up seven on the other side. Here's what each OSI layer does, and one silly sentence to remember them all.
Why split networking into layers?
Sending a message across a network involves a lot of separate jobs: turning bits into electrical, light or radio signals, getting a frame to the next device, finding a route across many networks, making sure nothing goes missing, and finally showing you a web page. The OSI (Open Systems Interconnection) model, published by the International Organization for Standardization (ISO) in 1984, gives each of those jobs its own layer.
Each layer only deals with its own job and hands its work to the layer right above or below it. That way the people building Wi-Fi chips and the people building web browsers don't need to know each other's details.
Down seven, up seven
When you send a message, it starts at the top layer on your device and works its way down: each layer adds what it needs before handing it on. At the bottom, it leaves as signals on a cable or over the air. On the other side, the receiving device works back up through the same seven layers, each one unwrapping its part, until the message reaches the app.
The seven layers, bottom up
- Physical: cables, radio and signals, the raw bits on the wire or in the air
- Data Link: getting data from one device to the next on the same network (MAC addresses, switches)
- Network: IP addresses and finding a route between networks (routers)
- Transport: making sure it all arrives, splitting data up and putting it back together (TCP, UDP)
- Session: opening, keeping and closing the conversation between two devices
- Presentation: formats and encryption, so both sides understand the data
- Application: what your apps speak, such as HTTP for web pages or DNS for names
To remember them from the bottom up: Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application).
Which layer is it?
The real everyday use of the OSI model is troubleshooting. When something breaks, network techs ask "which layer is it?" An unplugged cable or a dead Wi-Fi radio is a Layer 1 problem. A wrong IP address or a missing route is Layer 3. A website that loads but shows an error is usually Layer 7. Naming the layer narrows down where to look.
Try it yourself
Troubleshoot your own connection bottom up. Is the Wi-Fi icon or the cable light on (Layer 1)? Open a command prompt (Windows) or Terminal (Mac) and run ping 8.8.8.8 to see if packets reach the internet by IP address (Layer 3). Then open a web page in your browser (Layer 7). The first step that fails tells you which layer to look at.
Good to know
- OSI is a reference model from ISO (1984). The internet actually runs on the simpler TCP/IP model, which comes up in a later episode, but OSI layer numbers are still how network engineers talk ("a Layer 2 switch", "a Layer 7 firewall").
- The one-line jobs for each layer are simplified. Real protocols don't always fit neatly into exactly one layer.
For CCNA learners
This sits under CCNA 200-301 exam section 1.0, Network Fundamentals: know the seven OSI layers in order and what each one does, because devices and protocols are described by their layer throughout the exam.
Test your knowledge
Quick quiz: The OSI model: 7 layers
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- Cloudflare Learning Center, "What is the OSI model?": ISO's seven-layer framework, what each layer does, used for troubleshooting
- IBM, "What is the OSI model?": seven layers, each communicating with the layers above and below
- Cisco, CCNA 200-301 v1.1 exam topics: network fundamentals
Video transcript
Seven layers. One silly sentence to remember them all.
Every message you send goes down seven layers, then back up seven on the other side. That's the OSI model. Each layer has one job.
From the bottom: one, Physical: cables and signals. Two, Data Link: device to device. Three, Network: IP addresses and routes. Four, Transport: making sure it all arrives. Five, Session: keeping the conversation open. Six, Presentation: formats and encryption. Seven, Application: what your apps speak.
To remember them bottom up: Please Do Not Throw Sausage Pizza Away.
When something breaks, techs ask: which layer is it?
That's your bite. Next: what the bottom half and the top half do.