PDU#
PDU (Protocol Data Unit) is a single unit of information transmitted among peer entities of a computer network. It consists of protocol-specific control information (header) and user data (payload).
PDU by Layer#
The name of the PDU changes depending on the layer of the OSI model.
| Layer | Name | Description |
|---|---|---|
| L4 (Transport) | Segment / Datagram | Segment for TCP (connection-oriented) and Datagram for UDP (connectionless) |
| L3 (Network) | Packet | Contains IP addresses for routing across networks |
| L2 (Data Link) | Frame | Contains MAC addresses for delivery within a local network |
| L1 (Physical) | Bit | Raw binary data transmitted over a physical medium |
Relationship (Encapsulation)#
As data moves down the stack, each layer adds its own header to the PDU from the layer above, a process known as Encapsulation.
- Segment (L4) $\rightarrow$ Encapsulated into Packet (L3)
- Packet (L3) $\rightarrow$ Encapsulated into Frame (L2)
- Frame (L2) $\rightarrow$ Transmitted as Bits (L1)