← CS Visual Lab · Computer Networks

📦 Layers and encapsulation

💡 The ideaData goes down the TCP/IP layers and each layer adds its own header: Application data → Transport segment (ports) → Network packet (IP addresses) → Data-link frame (MAC addresses) → bits on the wire. The receiver removes them in reverse.
🏠 In real lifeSending a gift: you wrap it (application), put it in a box with the room number (transport port), write the house address (IP), and the courier adds its own label for the next hub (MAC).

🎬 Watch it work

Step 1 of 6
Application layer
DATA

The browser creates an HTTP request: GET /internship. This is the data.

✅ Check yourself (2 of 3 to pass)

1. Port numbers are in which layer's header?
2. The unit of data at the network layer is a:
3. MAC addresses are used at the:
Next: TCP three-way handshake →Get a free certificate in Computer Networks