Chapters0/30 ▾
Chapter 1 · Lesson 1 of 5
The OSI and TCP/IP models: layers, data units and devices
1 min read
The OSI model has seven layers. As data moves down the stack, each layer adds its own header and gives the unit a new name. Learn the names, because the exam asks for them directly.
| OSI layer | Data unit | TCP/IP layer |
|---|---|---|
| 5-7 Session, Presentation, Application | Data | Application |
| 4 Transport | Segment (TCP) or datagram (UDP) | Transport |
| 3 Network | Packet | Internet |
| 2 Data Link | Frame | Link |
| 1 Physical | Bits | Link |
A device works at the highest layer it has to read to make its decision.
A load balancer that only looks at IP addresses and TCP or UDP ports is Layer 4. If it must read a URL path, such as sending /video requests to one pool and /login requests to another, it has to open the HTTP request, which makes it Layer 7. Placement matters too: an IDS fed by a mirror (SPAN) port sees only a copy, so it can alert but never block, while an IPS sits inline and can drop traffic.
Check yourself
1. As data from a TCP-based application is passed down the stack, what is the protocol data unit called at the Transport layer, and what is it called at the Network layer immediately below it?
2. The OSI model defines separate Session, Presentation and Application layers. How are those three sets of functions represented in the four-layer TCP/IP model?
Facts checked 2026-11-16 · Sources: CompTIA Network+ certification overview, RFC 1122: Requirements for Internet Hosts (TCP/IP layering)
CompTIA Network+ cheat sheet: every key fact on one page →