The TCP/IP Model and Encapsulation
The OSI model is the classroom map; the TCP/IP model is the one the internet was actually built on. Kite Studio's router manual, Linux networking commands and most vendor docs speak in TCP/IP terms, so you need to translate between the two fluently — and to see how every layer wraps the one above it.
The rule
Four layers, each wrapping the one above: headers on the way down, off on the way up.
| TCP/IP layer | Matches OSI | What lives there |
|---|---|---|
| Application | 7, 6, 5 | HTTP, DNS, SMTP, SSH, TLS |
| Transport | 4 | TCP, UDP, port numbers |
| Internet | 3 | IP, ICMP, routers |
| Network Access (also called Link) | 2, 1 | Ethernet, Wi-Fi, MAC addresses, cables and radio |
Some books split Network Access into separate Data Link and Physical layers and call it a five-layer model; the idea is the same.
Encapsulation is how the layers cooperate. On the sending side, each layer takes what the layer above handed it, treats it as an opaque payload, and adds its own header in front:
- Application: the HTTP request itself — the data.
- Transport: adds a TCP header with source and destination ports → a segment.
- Internet: adds an IP header with source and destination IP → a packet.
- Network Access: adds an Ethernet header with MACs and a trailer with a checksum → a frame, sent as bits.
The receiver does the reverse — decapsulation — each layer reading and removing only its own header, then passing the rest up. No layer needs to understand the others' headers.