The OSI model (Open Systems Interconnection Reference model) is a framework that describes the process data takes as it traverses a network. It is a broad overview, not a detailed specification — and it is not the OSI protocol suite. Nearly everything we run today is TCP/IP, but the model applies to any protocol stack, and each layer can host tens or even hundreds of protocols. Its real value is a shared vocabulary: say “layer 4 problem” anywhere in IT and everyone understands. These notes follow Prof. Messer’s Network+ N10-009 video “Understanding the OSI Model” (1.1).
⏱ Video — Understanding the OSI Model (13:41): 0:01 intro to the osi model · 1:28 the seven layers · 2:12 layer 1 — physical · 3:14 layer 2 — data link · 4:27 layer 3 — network · 5:21 layer 4 — transport · 6:12 layer 5 — session · 6:48 layer 6 — presentation · 7:16 layer 7 — application · 7:42 mapping the real world to layers · 9:37 a wireshark protocol decode · 12:34 the decode summary
The seven layers
| # | Layer | What lives here |
|---|---|---|
| 7 | Application | What you see on screen — HTTP, HTTPS, FTP, DNS, POP3 |
| 6 | Presentation | Character encoding, application encryption/decryption (SSL/TLS) |
| 5 | Session | Session initiation, teardown, restart; control protocols, tunneling |
| 4 | Transport | TCP and UDP; segmentation and reassembly of data |
| 3 | Network | IP addresses, subnet masks, routing, fragmentation |
| 2 | Data link | Ethernet frames, MAC addresses, switching |
| 1 | Physical | Signals on the wire: cables, fiber, wireless |
A common mnemonic, top to bottom: All People Seem To Need Data Processing.
Layer by layer
- Layer 1 — Physical: the physical signals sent through cables and fibers. Almost no protocols here — just getting a signal from one part of the network to another. A “physical layer problem” means a bad cable, bad fiber, or wireless interference; troubleshooting means loopback tests, cable and fiber tests, and checking adapter cards.
- Layer 2 — Data link: how two devices on the same network communicate. Also the MAC address layer — MAC = Media Access Control (not the operating system), the hardware address of the network adapter, also called the DLC (Data Link Control) address. Switches forward traffic on the destination MAC address, so this is the switching layer.
- Layer 3 — Network: the routing layer. Routers read the destination IP (Internet Protocol) address to pick the next hop. This layer can also fragment frames into smaller pieces to fit links with smaller limits and reassemble them at the far side. IP addressing, subnet mask, and routing problems all live here.
- Layer 4 — Transport: moving information between devices — the “post office layer”. TCP = Transmission Control Protocol, UDP = User Datagram Protocol. Large payloads are split into smaller segments and rebuilt on the other side.
- Layer 5 — Session: communication management between point A and point B — initiating, stopping, and restarting sessions. Control protocols and tunneling of data within existing data sit here.
- Layer 6 — Presentation: puts data into a format humans can use — character encoding, application encryption and decryption. SSL/TLS encrypt/decrypt happens here, and it is often discussed together with layer 7.
- Layer 7 — Application: the layer you interact with directly. The application itself and its messages: HTTP, HTTPS, FTP, DNS, POP3, and thousands of other application protocols.
Mapping the real world to layers
| If you are talking about… | Layer |
|---|---|
| Cables, fiber, wireless signals | 1 — Physical |
| Ethernet frames, MAC addresses, EUI-48/EUI-64, switching | 2 — Data link |
| IP addresses, subnet masks, routing | 3 — Network |
| TCP or UDP ports | 4 — Transport |
| Session control protocols, tunneling | 5 — Session |
| SSL/TLS encryption of application data | 6 — Presentation |
| The application on the screen | 7 — Application |
Reading a Wireshark decode
Wireshark shows three panes: a frame-by-frame list, a protocol detail tree, and a hex/ASCII dump. In Messer’s example (frame 88, 2,005 bytes) the detail pane reads top-down while the OSI layers go bottom-up:
Frame 88, 2005 bytes on the wire ......... Layer 1 — Physical
Ethernet II, Src MAC → Dst MAC ......... Layer 2 — Data link
Internet Protocol, Src/Dst IP ........ Layer 3 — Network
(72.14.247.19 = googlemail.l.google.com)
Transmission Control Protocol ...... Layer 4 — Transport
Src port → Dst port 443 (HTTPS)
Secure Socket Layer ............ Layers 5–7
(session + presentation + application)SSL encapsulates the top three layers at once, and the application at layer 7 is the Gmail front end sending and receiving mail.
Where attacks live — mental map (beyond the video)
Not from the video — why the layers matter for security.
- Layer 1: cable tapping, device theft, wireless jamming — attacks that need physical access.
- Layer 2: MAC spoofing and switch MAC-table overflow on the local segment (ARP attacks too, once we get to IPv4 addressing).
- Layer 3: IP spoofing, route hijacking, ICMP abuse.
- Layer 4: port scans and SYN floods — “which ports are open” is a layer 4 question.
- Layers 5–7: session hijacking, TLS stripping, and every application attack (injection, XSS) — the layers where users and attackers both live.
Troubleshooting follows the same map: “layer 1 problem” = the signal, “layer 7 problem” = the application — the fastest way to localize a fault.