Home > Blog > CompTIA CompTIA Network+ Certification Exam > TCP vs UDP: Key Differences for Network+ (N10-009)

TCP vs UDP: Key Differences for Network+ (N10-009)

Comparison Cert Sensei Team 2026-12-31 8 min read

TCP (Transmission Control Protocol) is a connection-oriented protocol ensuring reliable, ordered delivery via a three-way handshake. UDP (User Datagram Protocol) is connectionless, prioritizing speed and low overhead through best-effort delivery. Choosing between them depends on whether your application requires guaranteed data integrity or real-time performance.

#CompTIA Network+ #TCP vs UDP #N10-009 #Transport Layer #Networking Basics

What makes TCP "connection-oriented" compared to UDP?

Think of TCP as a formal phone call. Before any real conversation happens, you have to dial the number, wait for the other person to pick up, and both agree that you're ready to talk. In technical terms, TCP establishes a session between the sender and receiver. This ensures that both devices are synchronized and ready to exchange data, which is why we call it connection-oriented. It tracks the state of the connection from start to finish.

UDP, on the other hand, is more like sending a postcard. You write the address, drop it in the mail, and hope it gets there. There is no prior agreement or session establishment. This is why UDP is labeled "connectionless." It doesn't care if the receiver is online or if the packet ever arrives; it just pushes the data onto the wire. For your Network+ exam, remember that this lack of state is what makes UDP significantly faster and more lightweight than TCP.

How does the TCP three-way handshake actually work?

The three-way handshake is a cornerstone of the N10-009 objectives. It consists of three specific steps: SYN, SYN-ACK, and ACK. First, the client sends a SYN (Synchronize) packet to the server to initiate a connection. The server responds with a SYN-ACK (Synchronize-Acknowledgment), essentially saying, "I hear you, and I'm also ready to connect." Finally, the client sends an ACK (Acknowledgment) back to the server, and the connection is officially established.

Why go through all this trouble? Because TCP needs to synchronize sequence numbers. These numbers allow TCP to put packets back in the correct order if they arrive scrambled. If you're practicing with our 1,000 expert-curated practice questions at Cert Sensei, you'll see a lot of scenarios where you have to identify this sequence in a packet capture. If you miss one step of the handshake, the connection fails—a stark contrast to UDP, which skips this entire process to reduce latency.

Why is TCP considered "reliable" while UDP is "best-effort"?

Reliability in TCP comes from a rigorous system of acknowledgments and retransmissions. Every time a segment of data is received, the receiver sends an ACK back. If the sender doesn't receive that ACK within a certain timeframe, it assumes the packet was lost and sends it again. TCP also handles flow control using a mechanism called "windowing," which prevents a fast sender from overwhelming a slow receiver by dynamically adjusting how much data can be sent before an ACK is required.

UDP doesn't do any of that. It provides "best-effort delivery," meaning it sends the data and forgets about it. There are no acknowledgments, no retransmissions, and no sequencing. If a UDP packet is dropped by a congested router, it's gone forever. While that sounds like a flaw, it's actually a feature for specific use cases. In real-time traffic, a retransmitted packet is useless because by the time it arrives, the conversation has already moved on.

When should you use TCP over UDP in real-world scenarios?

You use TCP when data integrity is non-negotiable. If you're downloading a software update or sending an email, a single missing bit could corrupt the entire file. This is why protocols like HTTP/HTTPS (web browsing), SSH (secure shell), and FTP (file transfer) rely exclusively on TCP. You can't have a website load with half the HTML missing; you need every single byte in the correct order.

UDP is the king of speed and real-time interaction. Think about VoIP calls or online gaming. If one packet of audio is lost, you might hear a tiny glitch, but the call continues. If the system tried to use TCP and retransmit that lost millisecond of audio, you'd experience massive lag and the conversation would become disjointed. This is why DNS (mostly), DHCP, and streaming media use UDP. They prioritize timeliness over perfect accuracy.

How do these protocols impact your Network+ exam performance?

On the N10-009 exam, CompTIA won't just ask you to define these protocols; they'll give you a scenario and ask which one is appropriate. You might see a question about a network administrator troubleshooting a lagging video conference—the answer likely involves UDP and jitter. Or you might be asked why a file transfer is taking longer than expected, leading you to analyze TCP windowing or retransmissions.

To truly master this, you need to move beyond reading and start applying. We recommend using Cert Sensei's custom quiz builder to filter for the Transport Layer domain. By analyzing our detailed expert reasoning for every answer, you'll start to recognize the patterns CompTIA uses to trick students. Our performance analytics will show you exactly where your gaps are, whether it's in understanding the handshake or mapping protocols to their respective transport layers.

Which protocol is better for low-latency applications?

Without a doubt, UDP is the choice for low-latency needs. The overhead in TCP is significant: you have larger headers (20 bytes vs. 8 bytes for UDP) and the time-consuming handshake process. In a high-speed environment, those extra milliseconds add up. UDP's "fire and forget" nature means the data starts flowing immediately without waiting for a session to be established.

However, the trade-off is that the application layer must handle any necessary error checking. For example, some streaming protocols use UDP for the data but have a small TCP side-channel for control signals. When you're studying for your certification, always ask yourself: "Does this application care more about every bit arriving, or does it care about the data arriving right now?" That answer will always point you to the correct protocol.

❓ Frequently Asked Questions

Does DNS use TCP or UDP?

DNS actually uses both. Most standard queries use UDP port 53 because they are small and need to be fast. However, DNS uses TCP port 53 for zone transfers between servers or when the response size exceeds 512 bytes.


Can I use UDP for file transfers?

Yes, through TFTP (Trivial File Transfer Protocol), but it's rare for large files. Because UDP doesn't have built-in error recovery, TFTP must implement its own basic acknowledgment system at the application layer to ensure the file arrives intact.


What happens if a TCP window size is too small?

If the window size is too small, the sender must stop and wait for acknowledgments more frequently. This increases the overall time it takes to transfer data, effectively throttling the throughput even if the physical link has more bandwidth available.

More from CompTIA CompTIA Network+ Certification Exam

🧠

Test Your Knowledge

Ready to practice CompTIA Network+ Certification Exam? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free