OSI vs TCP/IP Model: What the CCNA Actually Asks
Every CCNA asks you to name the layer — here's the pattern behind all of them. Both models, layer by layer, how they map to each other, a full encapsulation walkthrough, and the exact question patterns the exam uses when it asks "which layer does X happen at".
Why two models?
The OSI model (Open Systems Interconnection) is a 7-layer reference framework created by the ISO. It describes what should happen at each stage of communication, but no one actually builds it directly — it's a teaching and troubleshooting framework. The TCP/IP model is a 4-layer model that describes what the internet actually runs on (TCP, IP and friends). It came first historically, and the OSI model was mapped onto it later.
The CCNA 200-301 tests both. The exam rarely asks you to recite layers in isolation — instead it asks you to place something at a layer: a protocol, a device, an address type, a failure symptom. Once you can slot anything into its layer, the questions answer themselves.
The OSI model, top to bottom
Layers are numbered 1–7, but network engineers usually reason top-down from the user to the wire. The classic mnemonic (top to bottom) is All People Seem To Need Data Processing. Reverse it for the bottom-up "Please Do Not Throw Sausage Pizza Away".
| # | Layer | Job | Example protocols / tech | Devices |
|---|---|---|---|---|
| 7 | Application | The interface applications use to access network services. Not the apps themselves — the protocols they call. | HTTP, HTTPS, DNS, FTP, SMTP, SNMP, Telnet | — |
| 6 | Presentation | Data formatting, translation, encryption, compression. Makes sure both sides "read" the data the same way. | TLS/SSL, JPEG, MPEG, ASCII | — |
| 5 | Session | Establishes, manages and terminates sessions/connections between devices. | NetBIOS, SIP, sockets | — |
| 4 | Transport | End-to-end delivery: breaks data into segments (TCP) or datagrams (UDP), handles reliability, sequencing and port numbers. | TCP, UDP | Firewalls (stateful) |
| 3 | Network | Logical addressing and routing. Turns segments into packets with a source and destination IP address. | IPv4, IPv6, ICMP, OSPF, EIGRP, BGP | Routers |
| 2 | Data Link | Physical addressing and delivery on the local segment. Turns packets into frames with source/destination MAC addresses. | Ethernet, 802.1Q (VLANs), PPP, ARP | Switches |
| 1 | Physical | Raw bits on the wire: cables, connectors, signalling, hubs. If it carries electricity or light, it's Layer 1. | Copper, fibre, 802.11 radio | Hubs, repeaters, cables |
The TCP/IP model and the mapping
The TCP/IP model has only 4 layers. Its Application layer merges OSI layers 7, 6 and 5 into one, and its Network Access (also called "Link") layer merges OSI layers 2 and 1. That's the whole mapping — if you know the OSI layers, you can place anything in the TCP/IP model too.
| TCP/IP layer | Equivalent OSI layers | Key protocols | Data unit |
|---|---|---|---|
| Application | 7 Application, 6 Presentation, 5 Session | HTTP, DNS, FTP, TLS, DHCP, SMTP | Data |
| Transport | 4 Transport | TCP, UDP | Segment / datagram |
| Internet | 3 Network | IP, ICMP, OSPF, ARP* | Packet |
| Network Access | 2 Data Link, 1 Physical | Ethernet, 802.11, PPP | Frame / bits |
*ARP is the exam's favourite edge case: it resolves IP addresses to MAC addresses, so it lives between layers 2 and 3. CCNA materials usually place it at Layer 2 or at the Internet layer — either way, remember it bridges IP and MAC.
Encapsulation and decapsulation, step by step
When you load a webpage, your computer wraps the data with a new header at every layer on the way down (encapsulation), and the receiving side strips each header on the way back up (decapsulation). Learn this sequence cold — it appears on nearly every CCNA.
- Application layer (7): your browser creates an HTTP GET request — this is just data.
- Transport layer (4): TCP adds its header (source and destination port numbers, sequence numbers). The data is now a segment. Note port 80 for HTTP or 443 for HTTPS lives here.
- Network layer (3): IP adds its header (source and destination IP addresses). The segment is now a packet.
- Data Link layer (2): Ethernet adds its header (source and destination MAC addresses) plus a frame-check trailer. The packet is now a frame.
- Physical layer (1): the frame is converted to bits and transmitted as electrical, optical or radio signals.
On the receiving side, each layer removes its own header and hands the payload up. If a header is malformed or a checksum fails at any layer, the data is dropped there — which is exactly why troubleshooting by layer works: find the lowest layer that's broken and fix it there.
Remember the names: segment (L4), packet (L3), frame (L2), bits (L1).
The exam loves asking "what is the data unit called at Layer 3?" The answer is a packet. Layer 4: segment. Layer 2: frame. Layer 1: bits. Drill these four pairs until they're reflex — see our CCNA flashcards for a full drill set.
The exam patterns
CCNA layer questions fall into a handful of repeatable patterns. Learn the patterns and the answers become mechanical:
- "Which layer does X happen at?" — IP addressing/routing: Layer 3. MAC addressing/switching: Layer 2. Ports/TCP/UDP: Layer 4. Encryption: Layer 6. Session setup: Layer 5. Cabling/hubs: Layer 1.
- Device-to-layer mapping — Hub: Layer 1. Switch: Layer 2. Router: Layer 3. Multilayer switch: Layers 2 and 3. Firewall with stateful inspection: Layer 4 (plus layers 3 and 7 on modern NGFWs).
- Address-to-layer mapping — IP address: Layer 3 (logical, routable). MAC address: Layer 2 (physical, local segment only). Port number: Layer 4 (identifies the application/service). The trap question pairs "which address does a switch use?" → MAC, Layer 2 — never IP.
- TCP vs UDP — both are Layer 4. TCP is reliable, connection-oriented, slower: use it for HTTP(S), FTP, SMTP, SSH — anything that can't lose data. UDP is fast, connectionless, no guarantees: use it for DNS queries, DHCP, VoIP, video streaming — anything where speed beats reliability. The exam's phrasing is usually "which protocol would be used for…" — pick UDP for speed, TCP for reliability.
- Encapsulation order — data → segment → packet → frame → bits going down; reverse going up. Headers are added at layers 4, 3 and 2; the layer-2 trailer (FCS) is the only trailer.
- Troubleshooting by layer — "user can't reach the internet, but can ping the local gateway": Layers 1–2 are fine, the problem is at Layer 3 or above (default gateway, routing, DNS — DNS is Layer 7). Always start from the bottom and work up.
For how switching actually uses Layer 2 on a real network, read our CCNA switching fundamentals guide; for where firewalls and ACLs fit into the layers, see CCNA network security fundamentals.
Quick-fire practice questions
Five exam-style questions in the classic "name the layer" format. Answer out loud, then click to reveal.
Q1. A router forwards a packet toward its destination network. Which OSI layer is it operating at, and which address does it use?
Layer 3 (Network), using the IP address. Routers make forwarding decisions on the destination IP in the Layer 3 header. A switch, by contrast, forwards at Layer 2 using MAC addresses.
Q2. During encapsulation, the Transport layer adds its header to the data. What is the resulting data unit called, and what addressing does the new header carry?
A segment, carrying source and destination port numbers. The port numbers identify the application (e.g. 443 for HTTPS). TCP segments add sequence and acknowledgement fields; UDP datagrams don't.
Q3. Which TCP/IP model layer corresponds to OSI layers 5, 6 and 7 combined, and name two protocols that live there.
The TCP/IP Application layer. It merges OSI's Application, Presentation and Session layers. Protocols include HTTP, DNS, FTP, DHCP, SMTP, SNMP and TLS.
Q4. A network engineer says "the frame has the wrong destination MAC." Which layer is the problem at, and which device type works primarily at that layer?
Layer 2 (Data Link). Frames and MAC addresses are Layer 2 concepts. Switches forward frames at Layer 2 — this is also why MAC address tables (CAM tables) are a Layer 2 topic.
Q5. VoIP traffic needs low latency and can tolerate occasional lost packets. Should it use TCP or UDP, and at which OSI layer does this choice sit?
UDP, at Layer 4 (Transport). Both TCP and UDP are Layer 4 protocols; UDP is connectionless with no retransmission overhead, which is why real-time traffic (VoIP, streaming, DNS) uses it. Anything needing guaranteed delivery (HTTP, FTP, email) uses TCP instead.
Keep drilling
Layer questions reward repetition more than reading. Test yourself against the full question bank with our CCNA 200-301 practice questions, drill the protocol-to-layer pairs with flashcards, then go deeper into the layers that matter most: switching (Layer 2) and security across the layers.
More study guides: Switching fundamentals Network security fundamentals Practice questions Flashcards
Know your layers? Prove it.
The OSI and TCP/IP models underpin every topic on the CCNA 200-301. Take the free 25-question mock test — no sign-up — and see how the exam really asks about layers. One subscription (£5/month or £39/year) unlocks all 370 exam-style questions, 20 in-browser labs and 300 flashcards across all 10 certifications.
Start the free mock test →