Vol. I · No. 46The reference sectionSat, 10 Oct 2026
The two models, side by side

The stack, layer by layer.

Two maps of the same territory. The OSI model splits the network into seven teaching layers; the TCP/IP model collapses them into the four the internet actually runs on. Every protocol and device on this site is filed by where it sits here.

Choose a layer to trace it through the page — its band in TCP/IP, its entry in the detail list, its plate in both stacks and the box it adds when the data is wrapped all light together. Choose it again, or press Esc, to let go.

OSI · 7 layers
TCP/IP · 4 layers
OSI · 7 layers
7
Where apps meet the network.
HTTP · DNS · SMTP
6
Encoding, encryption, compression.
TLS · JPEG · ASCII
5
Opens, manages and closes conversations.
Sockets · RPC · NetBIOS
4
End-to-end delivery between two processes.
TCP · UDP · QUIC
3
Routing packets between networks by IP.
IP · ICMP · OSPF · Router, L3 switch
2
Framing and local MAC addressing.
Ethernet · ARP · Switch, NIC
1
Raw bits on the medium.
Cables · signals · Hub, Repeater
TCP/IP · 4 layers
Application
Everything from the app down to encryption and sessions — OSI layers 5 through 7 in one.
HTTP · DNS · TLS · SMTP
Transport
The same layer, same name in both models.
TCP · UDP · QUIC
Internet
OSI’s Network layer — addressing and routing.
IP · ICMP · routing
Link · Network Access
Framing and the physical medium together — OSI layers 1 and 2.
Ethernet · Wi-Fi · ARP

Data travels down the stack on the way out and back up on the way in — each layer adding, then stripping, its own header. Layer assignments are the classic teaching model; many real devices span several at once.

The seven layers, in detail

7  Application
HTTP · DNS · SMTP
The layer users and programs actually touch.

Provides network services straight to applications — web requests, email, file transfer, name lookups — and defines the format of the messages they exchange.

6  Presentation
TLS · JPEG · ASCII
The translator of the stack.

Converts data into a form both ends agree on — character encoding, serialization, compression, and the encryption and decryption that keep it private.

5  Session
Sockets · RPC · NetBIOS
The conversation manager.

Opens, coordinates and closes the dialogue between two hosts — setup, checkpoints and teardown — so a long exchange stays organised.

4  Transport
TCP · UDP · QUIC
End-to-end delivery between programs.

Splits data into segments and addresses them to a port. TCP guarantees order and reliability; UDP drops the guarantees for raw speed.

3  Network
IP · ICMP · OSPF · Router
The layer that spans networks.

Adds IP addresses and routes each packet across networks toward its destination, choosing a path one hop at a time.

2  Data Link
Ethernet · ARP · Switch
The local delivery layer.

Frames the bits, addresses them by MAC on the local link, and checks for errors — moving data between directly connected nodes.

1  Physical
Cables · signals · Hub
The raw medium.

Turns bits into signals — voltage, light or radio — and defines the cables, connectors and timing that carry them on the wire.

Sender and receiver

Data travels down the sender's stack — each layer wrapping the last in its own header — crosses the wire, then travels up the receiver's stack, each layer stripping the header meant for it.

SENDER · encapsulate↓
↑RECEIVER · decapsulate
Application7
Data
7Application
Presentation6
Data
6Presentation
Session5
Data
5Session
Transport4
Segment
4Transport
Network3
Packet
3Network
Data Link2
Frame
2Data Link
Physical1
Bits
1Physical
The physical medium — the actual cable, fibre or radio the bits cross

The bits leave the sender's Physical layer, cross the medium, and arrive at the receiver's Physical layer — then climb back up, header by header, until the application reads the original data.

How the data gets wrapped

Going down, each layer takes what it's handed and puts it in its own box — adding a header in front. The application's data becomes the payload inside the transport's box, inside the network's box, inside the frame.

Application
Data
the message
Transport
TCP hdr
Data
= Segment
Network
IP hdr
TCP hdr
Data
= Packet
Data Link
Frame hdr
IP hdr
TCP hdr
Data
Trailer
= Frame
Physical
1001 0110 1110 0100 1011 0010 1101 0011 0110 1001 0100 1110
= Bits

At the receiver it runs in reverse — each layer opens its box, reads and removes its header, and hands the payload up until only the original data is left.

Why two models?

OSI — the teaching map

Seven clean layers that make it easy to reason about where a job belongs. Great for learning; no network runs exactly this way.

TCP/IP — the working map

Four layers that describe what the internet actually implements. OSI’s top three fold into one Application layer.

Encapsulation

Each layer wraps the one above in its own header on the way out, and unwraps it on the way in — a packet inside a frame inside a signal.