OSI & TCP/IP Models – CompTIA Network+ Study Guide
Overview
The OSI (Open Systems Interconnection) and TCP/IP models are foundational frameworks for understanding how data travels across networks. The OSI model provides a 7-layer theoretical reference, while the TCP/IP model is the practical 4-layer framework used in real-world networking. Mastering these models — including their layers, PDUs, protocols, and devices — is essential for the CompTIA Network+ exam.
---
OSI Model Layers & Functions
The Seven Layers at a Glance
> Mnemonic (Layer 1→7): "Please Do Not Throw Sausage Pizza Away"
> Mnemonic (Layer 7→1): "All People Seem To Need Data Processing"
| Layer | Name | PDU | Key Function |
|-------|------|-----|-------------|
| 7 | Application | Data | User-facing network services |
| 6 | Presentation | Data | Translation, encryption, compression |
| 5 | Session | Data | Session setup, management, teardown |
| 4 | Transport | Segment / Datagram | End-to-end delivery, segmentation |
| 3 | Network | Packet | Logical addressing, routing |
| 2 | Data Link | Frame | MAC addressing, error detection |
| 1 | Physical | Bits | Raw bit transmission |
---
Layer 1 – Physical
Layer 2 – Data Link
- LLC (Logical Link Control): Interfaces with Layer 3
- MAC (Media Access Control): Handles hardware addressing
Layer 3 – Network
Layer 4 – Transport
- TCP – Connection-oriented, reliable, ordered delivery, acknowledgments
- UDP – Connectionless, faster, unreliable delivery
Layer 5 – Session
Layer 6 – Presentation
Layer 7 – Application
---
Key Terms – OSI Model
---
Watch Out For – OSI Layers
> ⚠️ Layer 2 vs. Layer 3 Switches: A standard switch = Layer 2 (MAC addresses only). A Layer 3 switch can ALSO route using IP addresses — it combines switch + router functionality.
> ⚠️ ARP lives at the boundary: ARP is often listed as Layer 2 or Layer 3 — it resolves IP addresses (L3) to MAC addresses (L2). On the exam, expect either answer depending on context.
> ⚠️ TLS/SSL = Layer 6, NOT Layer 7: Students frequently place encryption at the Application layer. It belongs at the Presentation layer.
> ⚠️ Routers use IP addresses; Switches use MAC addresses. Don't mix these up on device/layer questions.
---
Encapsulation & Protocol Data Units (PDUs)
Encapsulation Process (Sending – Top to Bottom)
Each layer adds a header (and Layer 2 adds a trailer) to the data before passing it down:
```
Application Data
↓ [+ L7/L6/L5 headers]
Transport Layer → Segment (TCP) or Datagram (UDP)
↓ [+ L4 header]
Network Layer → Packet
↓ [+ L3 header]
Data Link Layer → Frame [+ L3 header + CRC trailer]
↓ [+ L2 header + trailer]
Physical Layer → Bits (0s and 1s)
```
De-encapsulation Process (Receiving – Bottom to Top)
PDU Quick Reference
| OSI Layer | PDU Name | Contains |
|-----------|----------|---------|
| Layer 4 (Transport) | Segment (TCP) / Datagram (UDP) | Source/dest ports, sequence numbers |
| Layer 3 (Network) | Packet | Source/dest IP addresses |
| Layer 2 (Data Link) | Frame | Source/dest MAC addresses + CRC trailer |
| Layer 1 (Physical) | Bits | Raw 0s and 1s |
---
Key Terms – Encapsulation
---
Watch Out For – Encapsulation
> ⚠️ Only Layer 2 adds a TRAILER. All other layers add only headers. The CRC trailer is unique to the Data Link layer.
> ⚠️ PDU names matter on the exam. Know: Bits (L1) → Frame (L2) → Packet (L3) → Segment/Datagram (L4). Mixing these up is a common mistake.
> ⚠️ TCP = Segment | UDP = Datagram. Both are Layer 4, but use different PDU names.
---
TCP/IP Model
Four Layers & OSI Mapping
| TCP/IP Layer | OSI Equivalent | Key Protocols |
|-------------|---------------|--------------|
| Application | OSI Layers 5, 6, 7 | HTTP, FTP, DNS, SMTP, DHCP |
| Transport | OSI Layer 4 | TCP, UDP |
| Internet | OSI Layer 3 | IP, ICMP, ARP |
| Network Access (Link) | OSI Layers 1 & 2 | Ethernet, Wi-Fi |
Layer Descriptions
#### Network Access Layer (Link Layer)
#### Internet Layer
#### Transport Layer
#### Application Layer
---
Key Terms – TCP/IP
---
Watch Out For – TCP/IP Model
> ⚠️ TCP/IP Application layer ≠ OSI Application layer. The TCP/IP Application layer includes Session (L5), Presentation (L6), AND Application (L7) from the OSI model.
> ⚠️ TCP/IP has 4 layers; OSI has 7. Don't mix up layer numbers between the two models on the same question.
> ⚠️ The bottom TCP/IP layer has multiple names: Network Access, Link, or Network Interface layer — all refer to the same layer.
---
Protocols & Layer Mapping
Protocol Reference Chart
| Protocol | OSI Layer | TCP/IP Layer | Port(s) | Notes |
|----------|-----------|-------------|---------|-------|
| HTTP | L7 Application | Application | TCP 80 | Web traffic |
| HTTPS | L7 Application | Application | TCP 443 | Secure web (uses TLS) |
| DNS | L7 Application | Application | UDP/TCP 53 | UDP for queries; TCP for zone transfers |
| FTP | L7 Application | Application | TCP 20/21 | File transfers |
| SMTP | L7 Application | Application | TCP 25 | Email sending |
| TLS/SSL | L6 Presentation | Application | — | Encryption/decryption |
| TCP | L4 Transport | Transport | — | Reliable, connection-oriented |
| UDP | L4 Transport | Transport | — | Fast, connectionless |
| IP | L3 Network | Internet | — | Logical addressing + routing |
| ICMP | L3 Network | Internet | — | Ping, traceroute, error reporting |
| ARP | L2/L3 boundary | Internet/Network Access | — | IP → MAC resolution |
| Ethernet | L2 Data Link | Network Access | — | MAC addressing + framing |
---
TCP vs. UDP Comparison
| Feature | TCP | UDP |
|---------|-----|-----|
| Connection type | Connection-oriented | Connectionless |
| Reliability | Reliable (acknowledgments) | Unreliable (no ACKs) |
| Speed | Slower | Faster |
| Order | Ordered delivery | No guaranteed order |
| Use cases | HTTP, FTP, email | DNS, VoIP, video streaming |
| PDU name | Segment | Datagram |
---
Network Devices by OSI Layer
| Device | OSI Layer | Addressing Used |
|--------|-----------|----------------|
| Hub / Repeater | Layer 1 | None (broadcasts all) |
| Switch (L2) | Layer 2 | MAC addresses |
| Switch (L3) | Layers 2–3 | MAC + IP addresses |
| Router | Layer 3 | IP addresses |
| Firewall (NGFW) | Layers 3–7 | IP, ports, application data |
| Proxy / Load Balancer | Layer 7 | Application content |
---
Key Terms – Protocols
---
Watch Out For – Protocols
> ⚠️ DNS uses BOTH UDP and TCP port 53. UDP for standard queries; TCP for zone transfers and large responses. Know BOTH.
> ⚠️ ICMP has no port number. It operates at Layer 3 and is not TCP or UDP — it won't have a port number on the exam.
> ⚠️ HTTP = port 80 (not encrypted); HTTPS = port 443 (encrypted with TLS/SSL). Don't confuse the two.
> ⚠️ Ping uses ICMP, not TCP/UDP. It's a Layer 3 tool, not a Transport layer tool.
> ⚠️ A hub is NOT a switch. Hubs operate at Layer 1 (broadcast all data); switches operate at Layer 2 (forward based on MAC tables).
---
Quick Review Checklist
Before your exam, make sure you can confidently answer each of the following:
OSI Model
Encapsulation & PDUs
TCP/IP Model
Protocols & Layer Mapping
---
Study Tip: When answering OSI questions on the exam, use the mnemonic to quickly orient yourself, then work from the device or protocol to its layer. Practice mapping protocols, devices, AND PDUs together for each layer.