One message, several wrappers
Each layer adds only what its job requires.
An application creates data. A transport protocol adds conversation information, the network layer adds source and destination IP (Internet Protocol) addresses, and the link layer prepares a frame for one local hop.
At the next router, the old frame is removed and a new frame is built for the next link. The packet can continue while the local wrapper changes.
Build the model
Four useful names
Data
The application message or payload.
Segment or datagram
Transport data with the rules of TCP or UDP.
Packet
Network-layer data with IP source and destination addresses.
Frame
Link-layer data prepared for one local connection.
At the destination
Decapsulation reveals the original message.
When the frame reaches the destination device, the link layer checks and removes its local wrapper. The network layer processes the IP header, and the transport layer delivers the remaining payload to the correct application endpoint.
The receiver therefore reverses the sender's packaging steps. At a router, only the local frame is removed and rebuilt; at the final host, each layer consumes the header meant for it.
Mini experiment
Build the frame
Add each wrapper and observe which information belongs to the local hop.
Data is the innermost content of the exchange.
Knowledge check
Test your encapsulation model
Answer five questions. The answer order changes each time.