The OSI and TCP/IP models
Two reference models describe the layered structure of networks. OSI has seven academic layers; TCP/IP has four practical ones. This chapter explains both, maps them to each other, and shows where every networking topic lives in the stack.
What you'll learn
- List the seven OSI layers in order, top down and bottom up.
- Map each OSI layer to its equivalent TCP/IP layer.
- Place common protocols (HTTP, TCP, IP, Ethernet, Wi-Fi) on the correct layer.
The seven OSI layers
Memorize the order. The two classic mnemonics are 'All People Seem To Need Data Processing' (top down) and 'Please Do Not Throw Sausage Pizza Away' (bottom up). You don't need to learn every protocol name in the table yet; they are examples, and the important ones get their own chapters. For now, learn the seven layers and what each one does.
| # | Layer | Job | Examples |
|---|---|---|---|
| 7 | Application | User-facing protocols | HTTP, DNS, SSH, SMTP |
| 6 | Presentation | Encoding, encryption, compression | TLS, JPEG, ASCII |
| 5 | Session | Open/close conversations | NetBIOS, RPC |
| 4 | Transport | End-to-end delivery, ports | TCP, UDP |
| 3 | Network | Logical addressing, routing | IPv4, IPv6, ICMP |
| 2 | Data Link | Frame on local segment, MAC | Ethernet, 802.11, ARP |
| 1 | Physical | Bits on the wire | Cabling, fiber, radio |
Why TCP/IP collapses some of those layers
Real-world networks ran on TCP/IP long before OSI was finalized, and TCP/IP combines several OSI layers because no protocol on the Internet actually uses them separately. The four-layer TCP/IP model is what working engineers reach for in conversation.
| TCP/IP layer | Equivalent OSI layers | Examples |
|---|---|---|
| Application | 5–7 | HTTP, DNS, FTP, SSH |
| Transport | 4 | TCP, UDP |
| Internet | 3 | IPv4, IPv6, ICMP |
| Network access | 1–2 | Ethernet, 802.11, PPP |
9 more sections in this chapter, plus a 4-question quiz and a hands-on lab.
Create a free account to read Chapter 1.2 — The OSI and TCP/IP models
You can see the title, summary, and learning objectives. To read the chapter and build the labs, create a free account — Module 1 is fully readable on the free plan.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time