All Episodes

December 29, 2020 2 mins

What is UDP (User Datagram Protocol)?

UDP (User Datagram Protocol) is basically known as an alternative to TCP. UDP, which is a much faster protocol than TCP, is actively used for audio and video transmission.

The reason it works faster than TCP is that TCP is responsible for data integrity and authentication. UDP, unlike TCP protocol, is not responsible for data integrity and security.

It ensures fast transfer by enabling data transfer before an agreement is made with the receiving party. As a result, UDP is useful in time-sensitive communications such as voice over Internet Protocol (VoIP), domain name system (DNS) lookup, and video or audio playback. UDP is an alternative to the Transmission Control Protocol system.

How Does UDP Protocol Work?

The UDP protocol works similarly to TCP but discards all error checking items. All back and forth communication causes lag, which slows things down.

When an application uses UDP, packets are sent only to the recipient. The sender does not wait to make sure that the recipient has received the package, only continues to send subsequent packets. If the recipient occasionally misses several UDP packets, they are lost - the sender does not resend them. Losing all this overhead means devices can communicate faster.

UDP structure is used when speed is desired and error correction is not required. For example, UDP is often used for live streaming and online gaming.

Suppose you are watching a live video stream that is usually broadcast using UDP instead of TCP. The server just sends a constant stream of UDP packets to the watching computers. If you lose your connection for a few seconds, the video may freeze or jitter for a moment and then jump to the current bit of the stream. If you experience a minor packet loss, the video or audio may be distorted momentarily as the video continues to play without missing data.

This works similarly in online games. If you miss some UDP packets, player characters may appear to be teleported across the map while you receive new UDP packets. Since the game continues without you, there is no point in asking if you missed the old packs. The only thing that matters is what's happening on the game server right now, not a few seconds ago. Eliminating TCP's error correction helps speed up game connectivity and reduce latency.

More Podcasts

Mark as Played

Advertise With Us

Popular Podcasts

Stuff You Should Know
Cardiac Cowboys

Cardiac Cowboys

The heart was always off-limits to surgeons. Cutting into it spelled instant death for the patient. That is, until a ragtag group of doctors scattered across the Midwest and Texas decided to throw out the rule book. Working in makeshift laboratories and home garages, using medical devices made from scavenged machine parts and beer tubes, these men and women invented the field of open heart surgery. Odds are, someone you know is alive because of them. So why has history left them behind? Presented by Chris Pine, CARDIAC COWBOYS tells the gripping true story behind the birth of heart surgery, and the young, Greatest Generation doctors who made it happen. For years, they competed and feuded, racing to be the first, the best, and the most prolific. Some appeared on the cover of Time Magazine, operated on kings and advised presidents. Others ended up disgraced, penniless, and convicted of felonies. Together, they ignited a revolution in medicine, and changed the world.

The Joe Rogan Experience

The Joe Rogan Experience

The official podcast of comedian Joe Rogan.

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2025 iHeartMedia, Inc.