Protocol flows

Packet journey with encapsulation

One packet travels from a client through a switch, a router and the internet to a server, gaining and losing a header at every hop.

Client subnet 192.0.2.0/24Server subnet 203.0.113.0/24LAN segmentLAN segmentUplinkUplinkWANWANServer subnetServer subnetClient192.0.2.10Client — 192.0.2.10Access switch192.0.2.2Access switch — 192.0.2.2Edge router192.0.2.1Edge router — 192.0.2.1InternetInternetWeb server203.0.113.20Web server — 203.0.113.20
Legend

Current step

Data at the application layer

The application produces the payload. There is no network header of any kind yet.

PDU
Data
Addressing used
None
Layer
Application
Each layer wraps the layer above it. The switch only ever reads the frame, the router rewrites the frame at every hop but leaves the IP packet intact except for the hop limit, and the server unwraps everything back to the original data.

Documentation example: addresses use the RFC 5737 ranges and ASNs use the reserved private range. Nothing here connects to a real network.

Tags

  • protocols
  • encapsulation
  • tcp-ip
  • routing
  • ethernet

Lessons using this diagram