Why Your Video Calls Glitch and Your Downloads Don’t: A TCP vs. UDP Story

It's easy to take the internet for granted. We stream movies, join video calls, and play online games without a second thought about what makes it all possible. But beneath the surface, two fundamental protocols- TCP and UDP - work tirelessly, each with its philosophy on how data should travel.
The Reliable Perfectionist: TCP
Imagine sending a handwritten letter through the mail. You’d want confirmation that it arrived intact, right? That’s TCP (Transmission Control Protocol) in a nutshell. It’s the protocol that ensures every packet of data reaches its destination, in order, without errors.
How it works: Before sending data, TCP performs a "three-way handshake" (SYN, SYN-ACK, ACK) to establish a connection. It then tracks every packet, resending lost ones and rearranging any that arrive out of order.
Best for: Web browsing (HTTP/HTTPS), emails, file transfers, and anything where accuracy is non-negotiable.
Trade-off: All that reliability comes at the cost of speed. The extra checks and acknowledgments add latency, typically around 100–200 milliseconds.
The Speedy Daredevil: UDP
Now, imagine shouting across a crowded room. You don’t wait for confirmation that every word was heard; you just keep talking. That’s UDP (User Datagram Protocol). It’s fast, connectionless, and doesn’t lose sleep over lost packets.
How it works: UDP fires off data without handshakes or retries. If a packet gets lost, it’s gone forever, no second chances.
Best for: Real-time applications like online gaming, live streaming, and video calls, where speed matters more than perfection.
Trade-off: You might lose 1–10% of packets, but the reduced latency (as low as 20–50ms) keeps things feeling instant.
Real-World Battles: TCP vs. UDP
Online Gaming
In a fast-paced shooter, TCP’s delays could mean seeing an enemy a split-second too late, enough to lose a duel. UDP’s speed keeps gameplay responsive, even if a few position updates vanish along the way.
Video Streaming
Netflix uses TCP for movies (so buffering ensures perfect playback), but switches to UDP-like protocols for live sports, where a slight delay is worse than a minor glitch.
Hybrid Approaches
Modern tech often blends both. Google’s QUIC protocol (used in HTTP/3) layers reliability on top of UDP, while apps like Zoom use UDP for video but TCP for chat messages.
When the Pros Can’t Decide, Neither Should You
Big tech companies mix and match based on need:
Google uses QUIC (UDP-based) for YouTube and Search to skip slow handshakes.
Microsoft Teams relies on UDP for calls (speed) but TCP for file sharing (reliability).
IoT devices often use UDP for sensor data; if one temperature reading is lost, the next will replace it.
Conclusion
TCP is your meticulous friend who double-checks everything. UDP is the adrenaline junkie who races ahead. Neither is "better", they’re just tools for different jobs.
Next time your video call glitches or a game lags, you’ll know why. Behind every click, stream, and download, these two protocols are quietly shaping your digital experience.
Fun fact: This blog post? Delivered via TCP. The embedded live-traffic stats below? Probably UDP.
Reference
Subscribe to my newsletter
Read articles from Lightning Developer directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
