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.

LayerNameDescription
L4 (Transport)Segment / DatagramSegment for TCP (connection-oriented) and Datagram for UDP (connectionless)
L3 (Network)PacketContains IP addresses for routing across networks
L2 (Data Link)FrameContains MAC addresses for delivery within a local network
L1 (Physical)BitRaw 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)