The OSI model, layer by layer

The OSI model splits networking into seven layers so you can reason about where a problem or an attack lives. Real networks run TCP/IP, but exams still think in OSI. Learn the layers, the data unit at each one, and which device works where, and a whole family of questions gets easy.

The seven layers

LayerNameWhat it doesExamplesData unit
7ApplicationProvides network services directly to the user and the application. This is where protocols your software actually speaks live.HTTP, HTTPS, DNS, SMTP, FTPData
6PresentationFormats data so both ends understand it: encoding, compression, and encryption.TLS, JPEG, ASCII, MPEGData
5SessionOpens, manages, and closes conversations between applications, including checkpointing and recovery.NetBIOS, RPC, SIP session controlData
4TransportEnd to end delivery between hosts. Segments the data, adds port numbers, and handles reliability and flow control.TCP, UDPSegment (TCP), datagram (UDP)
3NetworkLogical addressing and routing. Moves packets between different networks and picks the path.IP, ICMP, routersPacket
2Data LinkFraming and delivery on the local link, using MAC addresses. Handles error detection for the hop.Ethernet, switches, VLANs, PPPFrame
1PhysicalRaw bits over a medium: cables, signals, radio waves, and the hardware that pushes them.Cat 6 cable, fiber, hubs, repeatersBit

Remembering the order

Top down, from layer 7 to layer 1: Please Do Not Throw Sausage Pizza Away.

Say it as: Please (Physical) Do (Data Link) Not (Network) Throw (Transport) Sausage (Session) Pizza (Presentation) Away (Application), from the wire up to the app.

How OSI maps to the TCP/IP model

The internet actually runs on the four layer TCP/IP model. Exams expect you to translate between the two without thinking.

TCP/IP layerCovers OSI layersWhat lives there
Application7, 6, and 5HTTP, DNS, TLS, and everything the software touches directly
Transport4TCP and UDP, with their port numbers
Internet3IP addressing and routing
Network Access2 and 1Ethernet, MAC addresses, and the physical medium

The OSI facts exams love to test

More cheat sheets

Common ports

The ports Security+, Network+, and CCNA expect you to know cold, with the one fact that matters for each.

Open the ports cheat sheet →

Acronyms glossary

97 security acronyms across all 11 certs, each with a one line plain English meaning.

Open the glossary →

Which cert should you take?

Five questions, one recommendation. Match the cert to your experience and your goal.

Take the cert finder →

OSI questions show up in nearly every exam here. Premium unlocks all 2,200 practice questions.

Go Premium: $12/year