**TCP gives applications a reliable, ordered stream of bytes. UDP sends individual messages without guaranteeing they’ll arrive or arrive in order.**

| | TCP | UDP |
|---|---|---|
| Connection | Establishes a connection before sending application data | Sends messages without a transport-level handshake |
| Delivery | Retransmits lost data and delivers bytes in order, or reports a connection failure | Messages can be lost, duplicated, or reordered |
| Message boundaries | The application decides where one message ends and the next begins | Each datagram preserves its message boundary |
| Common uses | SSH, file transfers, HTTP/1.1 and HTTP/2 | Most DNS lookups, many voice calls and online games, HTTP/3 via QUIC |

For a file transfer, every byte matters, so TCP’s retransmissions are useful. In a live voice call, a late packet may be less useful than moving on to the next one. UDP lets the application make that choice. QUIC shows the other side of that flexibility: it runs over UDP and adds reliable delivery itself.