Loading content...
When network professionals discuss data flowing through networks, they use precise terminology that reflects which layer's perspective they're taking. A database query doesn't simply become "a packet"—it transforms through multiple representations as it traverses the network stack.
The formal term for data at any given layer is a Protocol Data Unit (PDU). Understanding PDUs isn't just academic precision—it's essential for:
This page establishes the complete PDU vocabulary and shows how data transforms as it moves through the network stack.
By the end of this page, you will understand Protocol Data Units at every network layer, know when to use each term precisely, and be able to trace data transformations from application message to physical bits. You'll gain the vocabulary that distinguishes casual users from network professionals.
A Protocol Data Unit (PDU) is the fundamental unit of data at a specific protocol layer. It consists of:
Expressed mathematically:
PDU_n = Header_n + SDU_n + Trailer_n (if applicable)
where SDU_n = PDU_(n+1) (the PDU from the layer above)
The Recursive Nature:
This relationship is beautifully recursive. The TCP segment (Layer 4 PDU) becomes the IP packet's payload (Layer 3 SDU). The IP packet (Layer 3 PDU) becomes the Ethernet frame's payload (Layer 2 SDU). Each layer treats the PDU from above as an opaque blob of data—the SDU.
Why This Matters:
This abstraction enables layer independence. The IP layer doesn't know or care whether its payload is TCP, UDP, ICMP, or something else entirely. It simply receives an SDU, adds its header to create a PDU, and passes it down. This is the power of encapsulation realized through PDUs.
The same data has different names depending on perspective. From TCP's perspective, it creates a 'segment' (PDU). From IP's perspective, that segment is its 'payload' (SDU). The transformation is purely conceptual—the actual bytes don't change until headers are added.
The PDU Hierarchy:
Each layer's PDU has a specific name that reflects its function:
These aren't arbitrary—each name reflects the layer's purpose and processing model.
Let's examine the standard PDU terminology for both the OSI and TCP/IP models.
| OSI Layer | TCP/IP Layer | PDU Name | Description |
|---|---|---|---|
| 7 - Application | Application | Data / Message | Application-meaningful information |
| 6 - Presentation | Application | Data | Formatted/encrypted data |
| 5 - Session | Application | Data | Session-managed data |
| 4 - Transport | Transport | Segment (TCP) / Datagram (UDP) | End-to-end delivery unit |
| 3 - Network | Internet | Packet / Datagram | Routed unit across networks |
| 2 - Data Link | Network Access | Frame | Local delivery unit on single link |
| 1 - Physical | Network Access | Bits / Symbols | Physical signal representation |
Layer 7 - Application Data:
At the application layer, data takes application-specific forms:
The generic term is "data" or "message," but each protocol defines its own structure.
Layer 4 - Transport PDUs:
Segment (TCP): TCP organizes data as a continuous byte stream but transmits it in segments. Each segment contains a portion of the stream plus TCP header. The term "segment" reflects TCP's segmentation of application data.
Datagram (UDP): UDP messages are discrete, self-contained units. Each UDP datagram is independent—there's no stream concept, no ordering guarantee, no relationship to other datagrams. The term "datagram" emphasizes this independence.
Layer 3 - Network PDUs:
Packet: The general term for a Layer 3 PDU. An IP packet contains the IP header plus its payload (typically a transport segment).
Datagram: Sometimes used interchangeably with packet, especially for connectionless protocols. IPv4 is technically called the "Internet Datagram" in RFC 791.
Layer 2 - Data Link PDUs:
Frame: A complete Layer 2 unit including header, payload, and trailer. The term "frame" suggests a boundary or container—framing the data for transmission. Ethernet frames, Wi-Fi frames, PPP frames are all examples.
Layer 1 - Physical PDUs:
Bits: The fundamental unit of digital information (0 or 1).
Symbols: In multi-level signaling, a symbol may represent multiple bits. For example, QAM-256 encodes 8 bits per symbol.
While these are the standard terms, you'll encounter variations. Some call any network data a 'packet.' In casual usage, 'frame' and 'packet' are sometimes confused. In professional contexts, precision matters—using the wrong term can mislead debugging efforts.
Let's trace the complete transformation of application data into physical signals, showing each PDU transition.
Step-by-Step Transformation:
Step 1: Application → Transport
The application creates data (e.g., an HTTP request). It passes this to the transport layer via a socket. The transport layer:
Step 2: Transport → Network
The transport PDU becomes the network layer's payload (SDU). The network layer:
Step 3: Network → Data Link
The IP packet becomes the data link layer's payload (SDU). The data link layer:
Step 4: Data Link → Physical
The frame is converted to physical signals:
The Reverse at the Receiver:
At the destination, the process reverses (decapsulation):
In Wireshark, captured 'packets' are actually complete frames. The display shows the nested PDU structure—you can expand each layer to see its header. The 'Frame' section shows Layer 2, 'IP' shows Layer 3, 'TCP' shows Layer 4, and protocol-specific sections show Layer 7.
Each layer has size constraints on its PDU, creating a cascade of limitations that affect network performance.
Maximum Transmission Unit (MTU):
The MTU is the largest PDU that a data link layer can transmit. It varies by technology:
| Technology | MTU (bytes) | Notes |
|---|---|---|
| Ethernet | 1500 | Standard; most common |
| Ethernet (Jumbo) | 9000 | Data centers; requires end-to-end support |
| PPPoE | 1492 | 8-byte PPPoE header reduces effective MTU |
| Token Ring | 4464 | Legacy; rarely used |
| FDDI | 4352 | Fiber distributed data interface |
| ATM AAL5 | 9180 | Asynchronous Transfer Mode |
| IPv6 minimum | 1280 | All IPv6 links must support at least this |
The Cascading Effect:
MTU constrains all inner PDUs:
Fragmentation:
When a packet exceeds the path MTU, fragmentation occurs:
IPv4 Fragmentation:
IPv6 No Fragmentation by Routers:
Path MTU Discovery (PMTUD):
Hosts discover the smallest MTU on the path:
Problems with PMTUD:
Fragmentation hurts performance: additional header overhead, reassembly delays, increased vulnerability to loss (losing one fragment loses entire packet), and router processing overhead. Avoid fragmentation through proper MSS negotiation and PMTUD.
Different network devices process different PDUs. Understanding this is crucial for network design and troubleshooting.
Layer 1 - Hubs and Repeaters:
Process: Bits
Layer 2 - Switches and Bridges:
Process: Frames
Layer 3 - Routers:
Process: Packets
Layer 4 - Firewalls and Load Balancers:
Process: Segments/Datagrams
| Device | Layer | PDU Processed | Key Actions |
|---|---|---|---|
| Hub/Repeater | 1 | Bits | Signal regeneration, broadcast to all ports |
| Switch | 2 | Frame | MAC learning, selective forwarding, VLAN tagging |
| Router | 3 | Packet | IP routing, TTL decrement, fragmentation if needed |
| Firewall | 3-4 | Packet + Segment | Access control, stateful inspection, NAT |
| Load Balancer | 4-7 | All PDUs | Traffic distribution, health checking, SSL termination |
| Application Proxy | 7 | Data/Message | Full content inspection, caching, modification |
Key Insight: Frame Reconstruction at Each Hop:
When a packet traverses multiple networks:
The IP packet remains constant (except TTL), but frames change at every hop. This is the fundamental difference between Layer 2 and Layer 3 addressing:
Network Address Translation (NAT) modifies IP addresses and port numbers as packets traverse a NAT device. This violates the 'IP addresses are unchanged' principle but is necessary for IPv4 address conservation. NAT devices must track connections to properly rewrite return traffic.
Protocol overhead—the bytes consumed by headers and trailers—directly impacts network efficiency. Understanding PDU efficiency helps optimize applications and protocols.
Calculating Protocol Overhead:
For a standard TCP/IP transmission over Ethernet:
| Layer | Component | Bytes | Purpose |
|---|---|---|---|
| 2 | Ethernet Preamble + SFD | 8 | Clock synchronization, frame start |
| 2 | Ethernet Header | 14 | MAC addresses, EtherType |
| 2 | Ethernet FCS | 4 | Error detection |
| 2 | Inter-Frame Gap | 12 | Minimum spacing between frames |
| 3 | IPv4 Header | 20 | IP addressing, routing |
| 4 | TCP Header | 20 | Port addressing, reliability |
| 4 | TCP Options (typical) | 12 | Timestamps, etc. |
| Total Overhead | 90 | For each frame transmitted |
Efficiency Calculation:
For maximum-size Ethernet frame (1500 bytes payload):
For minimum-size Ethernet frame (46 bytes payload + padding):
The Small Message Problem:
For interactive applications (SSH keystrokes, game inputs, TCP ACKs):
This is why:
Jumbo Frames and Efficiency:
With 9000-byte jumbo frames:
Data centers use jumbo frames to maximize efficiency for large transfers.
Protocol efficiency should influence application design. Sending many small messages is inefficient; batching improves throughput. However, larger messages increase latency. The optimal message size balances throughput efficiency against latency requirements.
Modern protocols sometimes blur traditional layer boundaries to improve efficiency or provide new features.
QUIC: Merging Transport and Security:
Google's QUIC protocol (now HTTP/3) combines:
QUIC PDU structure:
Why merge layers? Reduces round-trips, enables 0-RTT connection establishment, and allows encryption of more metadata.
HTTP/2 and HTTP/3 Framing:
HTTP/2 introduced its own framing layer:
The HTTP/2 frame is an application-layer PDU that doesn't map to traditional layers.
MPLS: Shim Layer Between 2 and 3:
Multiprotocol Label Switching inserts a label stack between Ethernet and IP:
The MPLS label isn't quite Layer 2 or Layer 3—it's sometimes called "Layer 2.5."
| Protocol | PDU Name | Description |
|---|---|---|
| QUIC | QUIC Packet | Contains encrypted frames within UDP datagram |
| HTTP/2 | Frame | Type-specific unit (DATA, HEADERS, PING, etc.) |
| WebSocket | Frame | Data or control frame over single TCP connection |
| MPLS | Label Stack Entry | 32-bit label + control fields |
| gRPC | Message | Protobuf-encoded request/response |
| VXLAN | VXLAN Segment | L2 frame encapsulated in UDP |
Tunneling Creates Nested PDUs:
VPNs and overlay networks create deeply nested PDU structures:
VXLAN Example:
This is encapsulation inside encapsulation—sometimes called "inception networking."
GRE Tunneling:
The inner packet is transported across networks that may not understand its addressing scheme.
Modern protocols often violate strict layering for practical benefits: QUIC encrypts transport headers, HTTP/2 multiplexes at Layer 7, NAT modifies Layer 3/4. These 'violations' reflect the reality that clean layering sometimes conflicts with performance, security, or deployment constraints.
Protocol Data Units provide the vocabulary for precise discussion of network data. Let's consolidate the key points:
What's Next:
Now that you understand how data is named and structured at each layer, the next page examines the reverse process: decapsulation—how receiving hosts strip away layers to recover the original application data, and how intermediate devices partially decapsulate to make forwarding decisions.
You now understand Protocol Data Units—the formal terminology for data at each network layer. You can distinguish segments from packets from frames, understand size constraints (MTU, MSS), and recognize how different devices process different PDUs. This precision is essential for professional network discussion and debugging.