How Network Layers Work — OSI & TCP/IP
Explore the theoretical 7-layer OSI model and the practical 4-layer TCP/IP stack. Learn how data transforms through encapsulation down the wire and decapsulation back up to application code.
Interactive Encapsulation Simulator
Step through headers added at each layer down to the physical wire.
Encapsulation & Decapsulation Model
SimulatedHeader labels are illustrative; the payload, hex dump, bit string, and CRC-32 are computed from your input.
➔ Adding: HTTP/1.1 Request Header
User browser creates the HTTP request payload: `GET /telemetry HTTP/1.1\r\nHost: api.iot.org`.
OSI 7-Layer vs. TCP/IP Architecture Comparison
Click any layer to inspect its PDU, core hardware, and protocol mappings.
Application Layer
The Application layer is closest to the end user. It enables software applications to communicate over the network. When you visit a website, send an email, or query an IoT sensor, application layer protocols format and initiate the request.
Key Layer Functions
Associated Devices & Hardware
Knowledge Check & Protocol Quiz
Test your understanding of OSI 7-Layer & TCP/IP Model architecture and packet behaviours.