October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

TCP vs. UDP: How They Move Data—and Why Neither Is Better

TCP delivers a reliable, in-order byte stream; UDP carries datagrams. Learn how loss, DNS, QUIC, and application needs shape the choice.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

TCP and UDP both carry application data over IP networks, but they offer different services. TCP gives applications a reliable, in-order byte stream; UDP gives them datagrams without TCP’s built-in ordered-reliability guarantee. The right choice depends on what the application needs and whether another layer supplies any missing behavior—not on one protocol being universally faster or better.

What is the difference between TCP and UDP?

TCP provides “a reliable, in-order, byte-stream service to applications,” as the IETF’s current consolidated TCP specification, RFC 9293 (August 2022), puts it. TCP is connection-oriented and detects loss and errors; when data is lost, it retransmits so the stream can be delivered in order.

As an Amazon Associate I earn from qualifying purchases.

UDP, specified in the foundational RFC 768 (August 1980), carries datagrams. It does not itself provide TCP’s reliable, ordered byte stream or its retransmission-based repair. An application using UDP can decide how to handle datagrams, or use a higher-layer protocol that adds functions it needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Question TCP UDP
What the application receives A reliable, in-order byte stream (RFC 9293). Datagrams, without TCP’s reliable ordered stream guarantee (RFC 768).
What happens when data is lost TCP retransmits lost data; later stream data may wait for the missing data. UDP does not provide TCP’s retransmission-based ordered stream. The application or another layer determines how loss is handled.
Connection model Connection-oriented. RFC 9293 notes TCP does not inherently include liveness detection. Datagram transport. The absence of TCP-style connection setup does not mean a UDP application is faster in every situation.
Core decision Choose when the application needs a reliable, ordered stream from its transport. Choose when datagrams fit and the application can tolerate or manage their delivery behavior.

What does reliability cost when packets are lost?

TCP’s in-order delivery means that data received after a missing segment cannot be delivered to the application as though the gap were filled. The receiver must wait for retransmission of the missing data before the stream can continue. This is known as head-of-line blocking; RFC 9317 (October 2022) discusses its implications for streaming media.

#1 Best Overall
Sale
Pearson Computer Networking, 8E
  • brand: Pearson
  • Computer Networking, 8e

For time-sensitive media, waiting for old data can make it less useful by the time it arrives. UDP lets an application make its own decisions about lost datagrams, but that is not reliability for free: if the application needs recovery, ordering, or other transport behavior, it must arrange for those functions at another layer. The appropriate tradeoff depends on the application, network conditions, and the protocol built around the transport.

Does UDP mean an application is unreliable?

No. UDP itself does not supply TCP’s reliable ordered stream, but applications can add transport features above UDP. QUIC is a clear example: it runs over UDP and implements its own transport machinery, including stream multiplexing and acknowledgments. In RFC 9000 (May 2021), the IETF specifies QUIC as a UDP-based multiplexed and secure transport. UDP carries QUIC packets; QUIC, rather than raw UDP, provides those additional functions.

Do real applications use only one of them?

DNS uses both UDP and TCP

DNS is not UDP-only. RFC 9210 (March 2022) says resolvers and recursive servers MUST support UDP and SHOULD support TCP for non-zone-transfer queries. Larger DNS messages and other operational requirements make TCP transactions important to DNS operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Streaming media has tradeoffs, not a universal transport rule

It is too broad to say that streaming always uses UDP. TCP’s ordered delivery can hold later data behind a loss, while UDP gives the application more control over datagram handling. RFC 9317 considers multiple media transport approaches and notes that some networks may block UDP traffic. Which approach fits depends on the service’s needs and the surrounding protocol—not just the label “streaming.”

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which is faster: TCP or UDP?

There is no universal winner established by these standards. UDP does not provide TCP-style connection setup and retransmission, but that fact alone cannot establish that a complete UDP-based application will be faster. The application’s requirements, network conditions, behavior under loss, and any functions implemented above UDP all matter. Compare what the application needs and how each design behaves on its network rather than assuming that fewer built-in guarantees automatically mean better performance.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.