The OSI Model is one of the most important networking concepts on the CompTIA A+ exam. It breaks networking into 7 layers so we can understand how data moves from one device to another — and how to diagnose what went wrong when it doesn't.
The 7 Layers at a Glance
How It Appears on the A+ Exam
| Concept | OSI Layer | Why |
|---|---|---|
| Port numbers | Layer 4 — Transport | TCP/UDP operate here |
| IP addresses | Layer 3 — Network | Routing between networks |
| MAC addresses | Layer 2 — Data Link | Switching within a network |
| Cables / signals | Layer 1 — Physical | Hardware-level transmission |
Real Troubleshooting Examples
The exam loves asking you to identify which layer a problem or component belongs to. Memorize: cables = Layer 1, MAC = Layer 2, IP = Layer 3, TCP/UDP = Layer 4, and HTTP/DNS = Layer 7.
When in doubt, work bottom-up — start at Layer 1 (is it plugged in?) and work your way up.
OSI Model — Network+ Deep Dive: Protocols at Each Layer
The Network+ exam maps specific protocols, devices, and technologies to OSI layers. You need to know not just what each layer does, but which protocols live there and what devices operate at each layer.
| Layer | Name | Protocols | Devices | PDU |
|---|---|---|---|---|
| 7 | Application | HTTP, HTTPS, FTP, SMTP, DNS, DHCP, SNMP, SSH, Telnet, LDAP | Proxy, Load balancer, NGFW | Data |
| 6 | Presentation | TLS/SSL, JPEG, MPEG, ASCII, encryption formats | — | Data |
| 5 | Session | NetBIOS, RPC, SQL sessions, NFS | — | Data |
| 4 | Transport | TCP, UDP, TLS (session establishment) | Firewall (ports) | Segment |
| 3 | Network | IP (IPv4/IPv6), ICMP, OSPF, BGP, RIP, EIGRP, IPsec | Router, Layer 3 switch | Packet |
| 2 | Data Link | Ethernet, Wi-Fi (802.11), ARP, PPP, STP, VLANs (802.1Q) | Switch, Bridge, WAP | Frame |
| 1 | Physical | Ethernet (physical), USB, Bluetooth (physical), DSL | Hub, Repeater, Cable, NIC | Bit |
Encapsulation — How Data Travels Down the Stack
When data is sent, each layer adds its own header (and sometimes trailer). This is called encapsulation. On the receiving end, each layer strips its header — called de-encapsulation.
Layer 4 [TCP/UDP Header] + Data ← adds port numbers → Segment
Layer 3 [IP Header] + Segment ← adds IP addresses → Packet
Layer 2 [Ethernet Header] + Packet + [FCS Trailer] ← adds MAC → Frame
Layer 1 101001011... ← Frame converted to bits on wire
OSI Model — Security+ Attack Mapping
Security+ maps attacks to the OSI layer where they occur. Understanding which layer an attack targets tells you which layer the defence needs to operate at.
| Layer | Attack | How It Targets This Layer | Defence Layer |
|---|---|---|---|
| 7 — Application | SQL injection, XSS, CSRF | Exploits application logic and input handling | WAF, input validation, secure coding |
| 7 — Application | Phishing, social engineering | Targets the human user of the application | User training, email filtering |
| 6 — Presentation | SSL stripping, downgrade attacks | Forces plaintext by removing TLS encryption | HSTS, TLS pinning, strong cipher policy |
| 5 — Session | Session hijacking, replay attack | Steals or replays valid session tokens | Encrypted sessions, short token lifetimes |
| 4 — Transport | SYN flood, port scanning | Exploits TCP handshake or probes open ports | SYN cookies, firewall port filtering |
| 3 — Network | IP spoofing, route poisoning, DDoS | Forges source IPs or manipulates routing tables | BCP38, OSPF authentication, rate limiting |
| 2 — Data Link | ARP spoofing, MAC flooding, VLAN hopping | Poisons ARP cache or floods switch CAM table | DAI, port security, private VLANs |
| 1 — Physical | Wiretapping, jamming, hardware keylogger | Intercepts or disrupts physical medium | Physical security, fibre (harder to tap), TEMPEST shielding |
Network+ and Security+ Exam Scenarios
Related Networking Articles
Preparing for the A+ Exam?
See the books, practice exams, and free resources that actually work.