Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsTCP 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.
| 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
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.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteStreaming 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.”
Rank #3
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.
Quick Recap
Best Value
- Used Book in Good Condition
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.




