# TCP and UDP Protocols

> How TCP makes sure every packet arrives in order, and why UDP does not bother. Which one web pages, video calls and games use.

**Course:** [Computer Networking](https://learn.benibix.com/learn/infrastructure-networking)  
**Time:** 11 min

**After this lesson you can:**

- Say what TCP promises
- Explain why UDP is used anyway
- Pick TCP or UDP for a kind of app

## How TCP and UDP send packets

TCP and UDP are the two common ways to send packets, and they make different promises. TCP makes sure every packet arrives, in order, and sends again any that are lost. UDP just sends and moves on, with no checks. Web pages and email use TCP. Video calls, games and name lookups mostly use UDP.

TCP starts with a short greeting before any data moves. The client says hello, the server answers, and the client confirms. Only then does the data flow. Every packet is numbered, and the far end says which ones it got. A missing number is sent again.

That care has a cost. The greeting takes a round trip before anything useful is sent. And if packet 3 is lost, packets 4 and 5 wait until it arrives again, so the app sees them in order. On a poor line, that waiting shows up as a pause.

UDP has no greeting and no numbers to track. Each packet is sent on its own. If one is lost, nobody asks for it again. That makes UDP faster and lighter, and it suits data that is useless once it is late.

A video call is the clearest case. A piece of sound from half a second ago is no help now. Better to skip it and play the next one than to freeze the whole call while it is sent again. A missing frame in a game is the same.

Some newer systems build their own checks on top of UDP, to get speed without losing data. The newest version of HTTP works this way. It is still UDP underneath, with the care moved into the app.

People often think UDP is unreliable and so worse. It is a choice, not a fault. For a file, a web page or a payment, every byte matters, and TCP is right. For live sound and play, a late byte is a useless byte, and UDP is right.

## Which one to pick

1. **Pick TCP.** When every byte must arrive, and in order. Web pages, files, email and payments all need that.
2. **Pick UDP.** When late data is no use. Live calls and games, and quick lookups that can just ask again.

![One message cut into five numbered packets. In the top lane, marked TCP, packet 3 is lost, the receiver asks for it, it is sent again, and all five arrive in order. In the bottom lane, marked UDP, packet 3 is lost and the receiver carries on with four.](https://learn.benibix.com/diagrams/inf2-tcp-udp.svg)

### Example: A game studio splits its traffic

An online game sends where each player is standing 30 times a second, over UDP. A lost update does not matter. The next one arrives a moment later.

When a player buys an item, the game sends that over TCP. That one message has to arrive, even if it takes a moment longer.

**Words in this lesson:** [Transmission Control Protocol (TCP)](https://learn.benibix.com/term/infrastructure/transmission-control-protocol), [User Datagram Protocol (UDP)](https://learn.benibix.com/term/infrastructure/user-datagram-protocol)

> **The one difference.** TCP makes sure every packet arrives, in order, and waits for any that are lost. UDP sends and moves on, because for live data late is the same as lost.

**Question:** Why do video calls usually use UDP instead of TCP?

**Answer:** A lost piece of live sound is useless, so waiting for it would only freeze the call. TCP would pause everything to resend a lost packet. In a live call, that old piece is no help, so UDP skips it and keeps going.

---

Source: https://learn.benibix.com/learn/infrastructure-networking/tcp-and-udp-protocols
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
