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.
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
On Purpose with Jay Shetty
I’m Jay Shetty host of On Purpose the worlds #1 Mental Health podcast and I’m so grateful you found us. I started this podcast 5 years ago to invite you into conversations and workshops that are designed to help make you happier, healthier and more healed. I believe that when you (yes you) feel seen, heard and understood you’re able to deal with relationship struggles, work challenges and life’s ups and downs with more ease and grace. I interview experts, celebrities, thought leaders and athletes so that we can grow our mindset, build better habits and uncover a side of them we’ve never seen before. New episodes every Monday and Friday. Your support means the world to me and I don’t take it for granted — click the follow button and leave a review to help us spread the love with On Purpose. I can’t wait for you to listen to your first or 500th episode!
Crime Junkie
Does hearing about a true crime case always leave you scouring the internet for the truth behind the story? Dive into your next mystery with Crime Junkie. Every Monday, join your host Ashley Flowers as she unravels all the details of infamous and underreported true crime cases with her best friend Brit Prawat. From cold cases to missing persons and heroes in our community who seek justice, Crime Junkie is your destination for theories and stories you won’t hear anywhere else. Whether you're a seasoned true crime enthusiast or new to the genre, you'll find yourself on the edge of your seat awaiting a new episode every Monday. If you can never get enough true crime... Congratulations, you’ve found your people. Follow to join a community of Crime Junkies! Crime Junkie is presented by audiochuck Media Company.
Ridiculous History
History is beautiful, brutal and, often, ridiculous. Join Ben Bowlin and Noel Brown as they dive into some of the weirdest stories from across the span of human civilization in Ridiculous History, a podcast by iHeartRadio.