ProtoStackv0.1

Interactive Protocol Visualizer

ISO/OSI 7-Layer Reference Model & TCP/IP Architecture

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

Simulated

Header labels are illustrative; the payload, hex dump, bit string, and CRC-32 are computed from your input.

L7
Application Layer— PDU: Application Data

➔ Adding: HTTP/1.1 Request Header

PACKET STRUCTURE AT LAYER 7 (APPLICATION DATA)Generate Application Payload
L7 APPLICATION DATA{"sensor": "temp-01", "val": 24.5, "unit": "C"}
// Payload byte dump (47 bytes, CRC-32 0xdf6d64a7)47 characters
0000 7b 22 73 65 6e 73 6f 72 22 3a 20 22 74 65 6d 70 {"sensor": "temp
0010 2d 30 31 22 2c 20 22 76 61 6c 22 3a 20 32 34 2e -01", "val": 24.
What happens at Layer 7:

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.

OSI 7-LAYER MODELPDU (DATA UNIT)
TCP/IP Mapping Summary:
Layers 7, 6, 5 (App, Pres, Sess)➔ TCP/IP Application
Layer 4 (Transport)➔ TCP/IP Transport
Layer 3 (Network)➔ TCP/IP Internet
Layers 2 & 1 (Data Link, Physical)➔ TCP/IP Network Access
OSI Layer 7 • Application Layer

Application Layer

Protocol Data UnitData / Message

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.

📬 Real-World Analogy:The content of your handwritten letter (the actual message you want to communicate).

Key Layer Functions

Identifies communication partners and resource availability
Synchronizes application communication
Provides user-facing protocols for web, file transfer, and mail
API serialization (REST, GraphQL, gRPC Protobuf)

Associated Devices & Hardware

Host ComputerSmartphonesIoT Edge DevicesL7 Load BalancersWeb Application Firewalls (WAF)

Protocols at Layer 7

Click to launch interactive session

Knowledge Check & Protocol Quiz

Test your understanding of OSI 7-Layer & TCP/IP Model architecture and packet behaviours.

Q1.What is the Protocol Data Unit (PDU) called at the Network Layer (Layer 3)?

Q2.Which OSI layers are merged into the single "Application Layer" in the practical TCP/IP 4-layer model?

Q3.At which OSI layer do physical MAC hardware addresses and Ethernet switching operate?