Tech●●●●●Difficulty 3 of 5

Why does a video call skip instead of waiting for lost data?

A web page never loses a byte, but a video call happily drops some. Both are choices, and the internet offers each one.

▶ Start the story

A video call skips because it is better to lose a moment than to freeze while waiting for it. The internet offers two ways to send data between programs. TCP provides reliable, ordered, error-checked delivery, so the web, email and file transfers rely on it. UDP is a connectionless service that prioritises time over reliability. Time-sensitive applications often use UDP because dropping packets is preferable to waiting for packets delayed by .

Here is the trade-off. TCP is connection-oriented: sender and receiver first agree on parameters in a three-way . That handshake, plus and error detection, adds to reliability but lengthens . UDP skips all of it. Messages are sent without negotiating a connection, and UDP does not keep track of what it has sent. There is no guarantee of delivery, ordering or duplicate protection.

TCP or UDP?

TCP

  • first
  • Lost data is sent again
  • Reliable and in order
  • Slower: adds

UDP

  • No
  • No guarantee of delivery
  • No waiting for lost data
  • Prioritises time

For a web page, a missing byte would ruin the page, so waiting is right. For a voice or video call, a packet that arrives a second late is useless, because the conversation has moved on. That is why UDP suits voice calls and online games, and also tiny question-and-answer exchanges such as looking up a Domain Name System address.

Both protocols use ports to hand data to the right program. A port is a communication endpoint that identifies a specific process or network service on a machine, a number from 0 to 65535, so your browser, your game and your chat app can all share one address without mixing up their data.

Quiz me

0/3

  1. 1.Why does a live video call use UDP instead of TCP?
  2. 2.Why does a file download use TCP rather than UDP?
  3. 3.What job does a port number do?

Recap

TCP waits to be correct, UDP moves on to be on time, and ports tell each machine which program gets the data.

💡 A trick to remember it · TCP is a registered letter that waits for a signature; UDP is a postcard dropped in the box.

Surprising fact · The Domain Name System usually works as one question and one answer, which suits UDP.

Sources (3)

No source, no claim. Every fact in this lesson (18 claims) cites at least one of these.

  1. [1]User Datagram Protocol · Wikipedia
  2. [2]Transmission Control Protocol · Wikipedia
  3. [3]Port (computer networking) · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗