Skip to the workspace
Pebellslearn by building
The OSI and TCP/IP Models  ›  Capstone Project

The TCP/IP Model and Encapsulation

Internet 16 minThe TCP/IP model uses four layers, and each layer wraps the data from the layer above in its own header on the way down and removes it on the way up.

network engineer / The TCP/IP Model and Encapsulation

Explore each scene at your own pace.

01 · The rule

The rule

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:

  1. Application: the HTTP request itself — the data.
  2. Transport: adds a TCP header with source and destination ports → a segment.
  3. Internet: adds an IP header with source and destination IP → a packet.
  4. 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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.