Networking conceptsBeginner26 min read

What Is PDU in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

A PDU is simply a chunk of data that gets passed through different layers of a network model. Each layer has its own name for that chunk, like a packet at the network layer or a frame at the data link layer. Think of it as data wrapped in different envelopes depending on where it is in the journey.

Commonly Confused With

PDUvsPacket

A packet is the PDU at Layer 3 (Network) and includes IP addresses. It is encapsulated inside a frame at Layer 2. The key difference is that a packet is routed across networks, while a frame only travels within a single broadcast domain.

A packet carries your data across the internet from one country to another, while a frame carries that packet only from your computer to the local router.

PDUvsSegment

A segment is the PDU at the transport layer for TCP. It includes port numbers and sequence numbers, and is used for reliable communication. The PDU is a more general term; a segment is a specific type of PDU.

When you download a file, TCP splits the data into segments, each numbered so they can be reassembled in order.

PDUvsDatagram

A datagram is the transport layer PDU for UDP. It is simpler than a segment with no guaranteed delivery. Both datagrams and segments are PDUs, but at the same layer they differ in reliability and header fields.

A VoIP call uses UDP datagrams to transmit voice data quickly, even if some packets get lost.

PDUvsPacket vs Frame

Packet refers to Layer 3 PDU with IP headers; frame refers to Layer 2 PDU with MAC headers and trailer. A frame contains a packet as its payload. They operate at different layers and are used by different devices (routers use packets, switches use frames).

A switch looks at the frame to forward based on MAC address. A router looks at the packet to route based on IP address.

Must Know for Exams

The PDU concept is a fundamental topic in several major IT certification exams. For CompTIA Network+ (N10-008), the exam objectives explicitly list the OSI model and encapsulation types. Candidates must know which PDU corresponds to each layer: data at the application, presentation, and session layers, segment at the transport layer, packet at the network layer, frame at the data link layer, and bits at the physical layer.

Questions often appear as multiple-choice where you are given a scenario and asked to identify the PDU at a specific layer or the layer at which a particular PDU exists. For example, a question might say, 'A technician is analyzing a network trace and sees MAC addresses in the header. What is the PDU being examined?'

The correct answer is frame, because MAC addresses are part of the data link layer. CompTIA Security+ also touches on PDUs when discussing packet filtering and stateful inspection, as firewalls inspect transport layer segments and network layer packets. Cisco CCNA (200-301) places greater emphasis on encapsulation and decapsulation, especially in the context of routing and switching.

CCNA exam questions often describe a data packet traveling from a host to a server and ask you to identify the changes in PDU format at each hop through different devices (like a switch vs. a router). A typical scenario: 'A host sends a frame to a switch.

The switch forwards it out a different port. Which parts of the PDU remain unchanged?' The answer is the source and destination MAC addresses are updated only when crossing a router, not a switch.

For AWS certifications, such as the AWS Certified Advanced Networking - Specialty, understanding PDUs helps with VPC design, security group rules (which are stateful at the transport layer), and network ACLs (which are stateless and evaluate packet headers). In all these exams, candidates who confuse the terms segment, packet, and frame often lose points. The exam trap is that when a question says packet, it usually means the network layer PDU, but some questions may use the term generically.

You must read carefully. Another exam pattern is to provide a diagram of the OSI model with arrows showing encapsulation and ask you to label the PDU at each layer. Or a question might ask, 'Which PDU type contains the sequence number?'

That is the segment, because TCP uses sequence numbers for ordering. The key to exam success is to memorize the PDU names and their associated layers, understand which headers are added at each step, and practice applying this to realistic network topologies. Because PDUs appear in almost all networking exam objectives, ignoring this concept is a sure way to miss multiple questions.

Simple Meaning

Imagine you are sending a letter to a friend across the country. The letter itself is your original message. To send it, you put it in an envelope with an address, drop it at a post office, and the postal service sorts it into a mail bag, then loads it onto a truck, and so on.

Each step wraps or unwraps your letter in something new: the envelope, the mail bag, the truck container. In networking, a PDU is like the data at each of these stages. At the start, your application generates a message that is just the pure content.

When you want to send it over the internet, that message gets broken down and wrapped in layer after layer of information, like destination addresses, error checks, and sequence numbers. Each layer has its own PDU name: for the application layer it is data, for the transport layer it is a segment (TCP) or datagram (UDP), for the network layer it is a packet, for the data link layer it is a frame, and for the physical layer it is bits. So when an IT professional says PDU, they are talking about the data unit at a specific layer of the networking model.

This concept is crucial because it helps us understand how data is prepared, addressed, and transmitted reliably across different networks. Without the structured wrapping of PDUs, your email or video stream would never reach its destination in the right order. Every time you stream a movie, send an email, or browse a website, the data is continuously being wrapped and unwrapped as PDUs from your device, through routers and switches, to the server.

The PDU concept is the foundation for troubleshooting network issues, because if you know which layer you are working on, you know exactly what kind of envelope you should be inspecting. For a beginner, the easiest way to get this is: the same message takes different forms as it travels, and each form has a special name. That is the PDU.

Full Technical Definition

In computer networking, a Protocol Data Unit (PDU) is a discrete unit of data that is transmitted across a network at a specific layer of the OSI (Open Systems Interconnection) model or the TCP/IP model. The PDU includes both the upper-layer data (payload) and the protocol-specific header (and sometimes trailer) information added by the layer in question. The OSI model defines seven layers, and each layer has a unique PDU name.

At Layer 7 (Application), the PDU is simply called "data" or application data. At Layer 6 (Presentation), it is also data, as the layer primarily handles formatting and encryption. At Layer 5 (Session), it is data as well, managing dialog control.

At Layer 4 (Transport), the PDU is called a segment when using TCP (Transmission Control Protocol) or a datagram when using UDP (User Datagram Protocol). This layer adds a header containing source and destination port numbers, sequence numbers for TCP, and checksums for error detection. At Layer 3 (Network), the PDU is called a packet or IP datagram.

The network layer header includes logical addressing, such as IPv4 or IPv6 source and destination IP addresses, as well as Time-to-Live (TTL) and protocol identification. At Layer 2 (Data Link), the PDU is called a frame. The frame includes the Layer 3 packet as its payload, plus a header with MAC addresses, and a trailer which often contains a Frame Check Sequence (FCS) for error detection using CRC (Cyclic Redundancy Check).

At Layer 1 (Physical), the PDU is raw bits, representing the data as electrical, optical, or radio signals. Each layer only understands its own PDU format. When a host sends data, the application data is passed down the stack.

Each layer adds its own header (encapsulation), and the receiving host removes headers (decapsulation) in reverse order. This layered PDU structure enables modularity, allowing different hardware and software from different vendors to interoperate as long as they follow the same encapsulation rules. In the TCP/IP model, which is more practical for modern internet, the same concept applies but with four layers.

At the Application layer, the PDU is data; at the Transport layer, it's a segment or datagram; at the Internet layer, it's a packet; and at the Network Access layer, it's a frame. Network devices use these PDUs to make forwarding decisions. For example, a router inspects the packet's destination IP address to decide the next hop, while a switch inspects the frame's destination MAC address to forward within a local network.

Understanding PDUs is essential for network troubleshooting, tools like Wireshark capture and display PDUs at different layers, allowing engineers to inspect headers and identify misconfigurations, packet loss, or security issues. Exam objectives for CompTIA Network+ and Cisco CCNA often require students to match PDUs to the correct OSI layer and to understand encapsulation and decapsulation processes.

Real-Life Example

Think of sending a package through a courier service. You have a fragile item you want to send to a friend. First, you wrap the item in bubble wrap. That bubble wrap is like the first layer of protection, similar to the application layer where your data is just raw content.

Then you place it in a small box with your friend's name and address on the outside, and you put in a note with your own return address. That small box is like a transport layer segment, it carries source and destination information (ports) and can be tracked with a sequence number. Next, you take that small box and put it into a larger shipping container that goes on a truck.

The shipping container has its own label with the city and region, comparable to the network layer packet that holds IP addresses. The truck is like the data link layer frame, which handles the local delivery within your neighborhood, and the driver follows a route guided by the physical layer bits, like the roads and roadsigns. When the package arrives, the truck driver checks the container label, drops it at a sorting facility, the container is opened, the small box is taken out, and it is handed to a local delivery person who then brings it to your friend's door.

Your friend unwraps the bubble wrap and gets the original item. In this analogy, each step of wrapping and unwrapping is like encapsulation and decapsulation in networking. The item itself is the payload, and each wrapper is a header or trailer added by a different layer.

If any part of the address is wrong or the package gets damaged, it is like a PDU having an error, which would be caught by checksums in the frame or segment. This real-life example shows that PDUs are not just abstract concepts, they are the actual packaging that ensures your data arrives intact, in the right order, and to the right person. In IT, when a network technician says they are looking at a packet header, they are reading the shipping label on that package to figure out where it came from and where it is going.

Why This Term Matters

Understanding the concept of PDU is critical for anyone working in IT, especially in networking, because it provides a universal language to describe data at each stage of transmission. When you troubleshoot a network issue, you need to know which layer you are dealing with. For example, if a user cannot access a website, the problem could be at any layer.

At the application layer, the PDU might be corrupted or the application itself may be misconfigured. At the transport layer, a firewall may be blocking a specific port, which means a segment is being dropped. At the network layer, an IP address could be wrong, causing packets to be sent to the wrong destination.

At the data link layer, a switch might have a faulty cable, so frames are not reaching the router. Using the PDU terminology helps technicians isolate issues by identifying exactly which wrapper is broken. The concept of PDU is foundational for network performance analysis.

When you measure latency or throughput, you are measuring how long it takes for PDUs of a certain size to be transmitted and acknowledged. For instance, MTU (Maximum Transmission Unit) determines the maximum size of a frame payload, and if a packet exceeds that size, it must be fragmented, that is, broken into smaller PDUs. This affects speed and efficiency.

Security professionals also rely on PDU understanding when configuring firewall rules or intrusion detection systems because these tools inspect packet, segment, or frame headers to allow or block traffic. When studying for IT certifications like CompTIA Network+, Cisco CCNA, or AWS Certified Advanced Networking, PDU concepts appear repeatedly in questions about encapsulation, OSI model layers, and network device functions. Without a solid grasp of PDUs, you will struggle to understand how routers, switches, and firewalls actually process data.

In short, PDU is the core building block of all network communication. Knowing it means you can speak the same technical language as other IT professionals and effectively diagnose, design, and secure networks.

How It Appears in Exam Questions

Exam questions on PDUs come in several distinct patterns. The most common is the direct identification question: 'At which OSI layer is a frame the PDU?' The answer is Layer 2 (Data Link).

Another common format is the encapsulation sequence question: 'A web browser sends a request. Order the PDUs from the top layer to the bottom.' You would then order: data (Application), segment (Transport), packet (Network), frame (Data Link), bits (Physical).

The multiple-choice options might list these in a scrambled order, and you need to select the correct sequence. Scenario-based questions are also frequent. For example: 'A network administrator is capturing traffic with Wireshark and sees an IP header with a source address of 192.

168.1.1 and a destination address of 10.0.0.1. What type of PDU is being examined?' Since the IP header is at the network layer, the PDU is a packet. Or: 'A switch receives a frame and checks the destination MAC address to make a forwarding decision.

At which OSI layer does this device operate?' The answer is Layer 2. Troubleshooting scenarios also appear: 'A user reports that they can ping a server by IP address but not by hostname.

At which layer might the problem exist?' This involves understanding that name resolution uses DNS (Application layer), so the PDU at that layer is data, and the issue could be DNS misconfiguration. Another pattern involves the concept of encapsulation: 'When a host sends data, at which layer does the header contain the source IP address?'

That is the network layer, so the PDU is a packet. Some questions test your knowledge of PDU size limits: 'If a packet is larger than the MTU, what must happen?' The answer is fragmentation, which breaks the packet into smaller PDUs at the network layer.

For advanced exams like CCNA, questions may ask about the differences between a segment and a datagram. For instance: 'Which transport layer PDU is used by a connectionless protocol?' The answer is datagram (UDP).

For a connection-oriented protocol, it's segment (TCP). Performance-related questions also involve PDUs: 'If the average PDU size is increased, what is the impact on throughput?' Typically, larger PDUs improve throughput because headers are amortized over more data, but they increase the risk of retransmission upon error.

Finally, some exam questions present a network diagram with routers and switches and ask you to trace the PDU changes: 'When a host sends data to another host across a router, which fields in the PDU change at each device?' At the router, the source and destination MAC addresses change, but the source and destination IP addresses remain the same (unless NAT is involved). At a switch, only the source MAC address of the frame changes as it is updated upon exiting the switch.

Being comfortable with these question types is essential for exam success.

Practise PDU Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

Imagine you are a new IT support technician at a company called BrightTech. An employee named Maria calls you and says, 'I can't get to the company website. It just says connection timed out.'

You start investigating. First, you check if Maria can reach the company server by pinging its IP address. She can do that successfully. That tells you the network layer (packets) is working, the IP addresses are correct and the route is there.

Next, you ask Maria to try accessing a different website instead. That works, so it's not a general internet issue. Now you think about the application layer, perhaps the web server is not responding on port 80 or 443.

You ask Maria to type the full URL including https:// and she still times out. You decide to look at the transport layer PDUs: segments. You check the firewall on the server to see if port 443 is allowed.

It is. Then you check the server's local firewall. It is also open. You then suspect a problem at the data link layer. You remotely check the switch port that Maria's PC is connected to.

The switch shows the link is up, but there are many CRC errors in the frame check sequence. This means frames (Layer 2 PDUs) are being corrupted due to a bad cable or interference. You ask Maria to try a different network port, and suddenly the website loads.

The problem was a damaged Ethernet cable, causing corrupted frames that resulted in retransmissions and eventual timeouts at the application layer. In this scenario, you used PDU knowledge to isolate the problem layer by layer. You started at the network layer (ping), moved to transport (port), and finally found the issue at the data link layer (frame errors).

Understanding PDUs allowed you to systematically troubleshoot and fix the problem in minutes rather than randomly guessing. For an exam, a similar scenario might be presented, and you would need to identify at which layer the problem is most likely occurring based on the symptoms given. For example, if a user can ping but cannot browse, the issue is likely at the transport or application layer.

If the user cannot even ping, the issue is at the network layer or below. This real scenario demonstrates why knowing PDUs is not just academic, it is a practical troubleshooting skill that saves time and effort in the real world.

Common Mistakes

Thinking that a packet and a frame are the same thing.

A packet is the PDU at Layer 3 (Network) and includes IP headers, while a frame is the PDU at Layer 2 (Data Link) and includes MAC headers and a trailer. They are different layers with different addressing and functions.

Remember: packet = IP address, frame = MAC address. Use the phrase 'IP in a packet, MAC in a frame'.

Confusing the PDU names for TCP vs UDP at the transport layer.

Both are Layer 4 PDUs, but TCP uses the term segment, while UDP uses the term datagram. Calling a UDP PDU a segment is technically incorrect, though commonly misused.

Associate TCP with 'segment' (both start with 'S'? Actually easier: think of TCP as reliable and it 'segments' data. UDP is faster and sends a 'datagram' like a telegram.)

Believing that PDUs only apply to the OSI model and not to real-world networks.

The TCP/IP model also uses PDUs, just with fewer layers. Real network devices operate on PDUs all the time. For example, a router processes packets, and a switch processes frames.

Understand that PDU is a universal concept that applies to any layered network model, including the internet.

Forgetting that the trailer is part of the PDU at the data link layer.

The frame includes both a header and a trailer (like FCS). Many students only think of headers, but the trailer is critical for error detection.

Draw a frame as [Header][Payload][Trailer]. The trailer is like a checksum at the end of the frame.

Assuming the PDU changes only when crossing network devices.

PDU encapsulation also happens within the same host when sending data. The data is wrapped at each layer in the sender's OS stack, and unwrapped at the receiver's stack, regardless of whether it passes through a router.

Remember that encapsulation/decapsulation occurs on the endpoints, not just on intermediate devices.

Exam Trap — Don't Get Fooled

{"trap":"In an exam, a question might say: 'What is the PDU at Layer 4 of the OSI model?' and the answer choices include both 'segment' and 'datagram'. Both are technically Layer 4 PDUs, but which one is correct depends on the protocol (TCP vs UDP).

The trap is that the question doesn't specify the protocol, so the safest answer is segment because TCP is more commonly tested, or the answer may be 'segment or datagram' if that option exists.","why_learners_choose_it":"Learners often automatically choose 'segment' because they memorized that layer 4 is segment, without remembering that UDP uses datagram. If the exam question is from a TCP-only scenario, segment is correct, but a general question expects either both or the specific one."

,"how_to_avoid_it":"Read the question carefully to see if it implies connection-oriented (TCP) vs connectionless (UDP). Also, look for any phrase like 'reliable communication' or 'connection-oriented' which points to segment. If the question simply says 'Layer 4', and both options are present, the correct answer is often 'segment or datagram' because layer 4 includes both.

In many official exams, the answer is segment when they talk about the OSI model generically, but it's a known trick."

Step-by-Step Breakdown

1

Application creates data

The user's application, like a web browser, generates data. This is the original message, like a request for a webpage. At this stage, the PDU is just called data. No headers have been added yet.

2

Transport layer encapsulation

The transport layer (Layer 4) takes the data and adds a header. If using TCP, it creates a segment with source and destination ports, sequence numbers, and a checksum. If using UDP, it creates a datagram. This header allows the destination to know which application should receive the data.

3

Network layer encapsulation

The network layer (Layer 3) takes the segment or datagram and adds its own header, forming a packet. This header includes the source and destination IP addresses. This allows the packet to be routed across multiple networks to the correct destination.

4

Data link layer encapsulation

The data link layer (Layer 2) takes the packet and adds a header (with MAC addresses) and a trailer (FCS for error checking). This forms a frame. The frame is the PDU that travels over the physical medium within a local network segment.

5

Physical layer transmission

The physical layer (Layer 1) converts the frame into a stream of bits (electrical signals, light pulses, or radio waves) and sends them over the physical medium. At this layer, the PDU is just bits. No further encapsulation occurs.

6

Decapsulation at the receiver

The receiving device reads the bits, reassembles them into a frame, checks the FCS, removes the frame header and trailer to retrieve the packet, removes the packet header to get the segment/datagram, removes the transport header to finally get the original data for the application.

Practical Mini-Lesson

For IT professionals working with networks, understanding PDUs is essential for both configuration and troubleshooting. When you configure a firewall, you are often working with PDUs at specific layers. For example, a firewall rule might say 'allow TCP segments from any source port 80 to destination port 443', that rule inspects the transport layer PDU (the segment) to make a decision.

Similarly, access control lists (ACLs) on routers filter packets based on IP addresses, meaning they inspect the network layer PDU. In practice, tools like Wireshark capture entire PDUs and display them layer by layer. If you see in Wireshark a frame with a destination MAC address of FF:FF:FF:FF:FF:FF, that is a broadcast frame.

Knowing this tells you the frame is meant for all devices on the local network, which could be an ARP request. When troubleshooting performance, MTU (Maximum Transmission Unit) issues arise. Suppose a packet is larger than the MTU of a link.

It will be fragmented into smaller packets at Layer 3. Each fragment becomes its own PDU with an IP header, and they must be reassembled at the destination. If fragmentation is misconfigured or a firewall blocks fragments, communication fails.

Another common scenario is VLAN tagging, which adds a 4-byte tag to the Ethernet frame header. That frame becomes a tagged frame, and switches use the VLAN ID in the tag to forward within the correct VLAN. This is a modification at Layer 2, so it affects the frame PDU.

For wireless networks, the frame structure is different. For example, a 802.11 wireless frame has four address fields, unlike Ethernet's two. Understanding these differences is key when setting up secure wireless.

On the command line, you can use 'ping' which sends IP packets, and if you look at the packet headers with tcpdump, you see the IP source and destination. 'traceroute' uses packets with varying TTL values to map the path. In a corporate network, a network engineer might capture frames on a switch port to debug why a server is not receiving traffic.

They would examine the frame's destination MAC to see if it matches the server, and the packet's destination IP to check routing. They might also check the TCP segment's sequence numbers to see if there are retransmissions, indicating packet loss. For certification exams, you should practice identifying the PDU at each layer from a hex dump or from protocol descriptions.

For example, a question might show an Ethernet frame header with 'Type 0x0800' meaning the payload is an IPv4 packet. The practical takeaway is: when you are working in IT, you are constantly handling PDUs, whether you realize it or not. Every time you configure a network interface, set an IP address, or check a MAC address table on a switch, you are dealing with data at different layers.

The more you internalize the PDU concept, the more natural network troubleshooting becomes. Always ask yourself: 'At which layer am I working? What PDU am I looking at?' This mental framework saves hours of guesswork.

Memory Tip

Remember: 'Please Do Not Throw Sausage Pizza Away', Physical (Bits), Data Link (Frame), Network (Packet), Transport (Segment), Session/Presentation/Application (Data).

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Frequently Asked Questions

Is a PDU the same as a packet?

No, a PDU is the general term for data at any layer of the OSI or TCP/IP model. A packet is a specific type of PDU at the network layer (Layer 3). Similarly, a frame is a PDU at the data link layer, and a segment is a PDU at the transport layer for TCP.

Why are PDUs important for networking exams?

PDUs are a foundational concept tested in almost all networking exams, including CompTIA Network+, Cisco CCNA, and Security+. Questions often ask you to identify the correct PDU at a given layer or to describe the encapsulation process, so mastering PDUs is essential for passing these exams.

How does encapsulation relate to PDUs?

Encapsulation is the process of taking the PDU from the upper layer and adding a header (and sometimes trailer) to create the PDU for the next lower layer. For example, the transport layer encapsulates application data into a segment, the network layer encapsulates that segment into a packet, and so on.

Can a PDU be fragmented?

Yes, particularly at the network layer. If a packet is larger than the Maximum Transmission Unit (MTU) of a link, it may be fragmented into smaller packets. Each fragment becomes its own PDU with its own IP header, and they are reassembled at the destination.

What is the PDU at the physical layer?

At the physical layer, the PDU is simply bits. These bits are the raw 1s and 0s that are transmitted as electrical, optical, or radio signals over the medium. No headers or trailers are added at this layer.

Do all network devices process PDUs at all layers?

No. Different devices operate at different layers. For example, a hub works at Layer 1 (physical) and only handles bits. A switch works at Layer 2 and processes frames. A router works at Layer 3 and processes packets. Firewalls can process at Layers 4 and above.

Summary

The Protocol Data Unit (PDU) is a fundamental concept in computer networking that describes the unit of data at each layer of the OSI and TCP/IP models. From the application layer's raw data to the physical layer's bits, each PDU includes headers and trailers that ensure proper delivery, sequencing, and error checking. Understanding PDUs allows IT professionals to communicate precisely about network traffic, troubleshoot issues by isolating problems to specific layers, and configure devices like routers, switches, and firewalls correctly.

For certification exams, PDU knowledge is critical because questions frequently appear that require you to identify PDUs, describe encapsulation, or apply the concept to troubleshooting scenarios. Common mistakes include confusing packets with frames, forgetting about trailers, and mixing up segment and datagram for TCP vs UDP. The memory tip 'Please Do Not Throw Sausage Pizza Away' can help you recall the order of PDUs from Layers 1 to 7.

In practice, whether you are analyzing a Wireshark capture, setting up a VLAN, or diagnosing a slow connection, the PDU concept gives you a structured way to think about data flow. By mastering PDUs, you build a strong foundation for all other networking topics and gain the confidence to tackle both exam questions and real-world challenges. Always remember: each layer wraps the previous layer's PDU in its own envelope, and understanding those envelopes is the key to networking.