How to Remember the OSI Model for Network+ and Security+
17 November 2026
The OSI model comes up in CompTIA Network+, Security+ and A+, and it's one of those topics that feels confusing until it clicks. Here's how to remember the seven layers and, more importantly, how to use them in exam questions.
The seven layers
From the bottom up:
- 1. Physical: sends raw bits over cables or radio
- 2. Data Link: frames and MAC addresses on the local network
- 3. Network: IP addresses and routing between networks
- 4. Transport: TCP and UDP, ports and reliable delivery
- 5. Session: opens, manages and closes sessions
- 6. Presentation: formats, encrypts and compresses data
- 7. Application: network services for applications, such as HTTP and DNS
Use a mnemonic
Pick one direction and stick with it.
- From layer 1 up: Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application)
- From layer 7 down: All People Seem To Need Data Processing
Link each layer to one thing you know
A list of names is hard to remember. A list of names tied to real things is much easier.
- Layer 1: hubs, cables and repeaters
- Layer 2: switches and MAC addresses
- Layer 3: routers and IP addresses
- Layer 4: TCP, UDP and port numbers
If you remember that a switch works at layer 2 and a router at layer 3, the rest falls into place around them.
Remember the data units
Each of the lower layers has its own name for a piece of data:
- Layer 1: bit
- Layer 2: frame
- Layer 3: packet
- Layer 4: segment for TCP, datagram for UDP
How exam questions use the OSI model
Exams rarely ask you to list the layers. Instead, they describe a problem and ask which layer it belongs to.
- A cable is unplugged or damaged: layer 1
- A device is on the wrong VLAN: layer 2
- A wrong IP address or a missing route: layer 3
- A firewall is blocking a port: layer 4
In troubleshooting questions, a good habit is to start at layer 1 and work up. A surprising number of "network problems" turn out to be a loose cable.
Compare it with the TCP/IP model
The TCP/IP model has four layers. Its Application layer covers OSI layers 5 to 7, Transport matches layer 4, Internet matches layer 3, and Network Access covers layers 1 and 2.
Practise
Keep the free OSI model cheat sheet open while you study and search any term. Learn the ports that go with layer 4 from the common ports list, then test yourself with the free Network+ mock test.
Test yourself for free
Master networking for Network+.