UDP
While TCP was a connection-orientated protocol, UDP is a connectionless protocol. This means that there is no three-way handshake carried out before data is transmitted. The sending device literally sends the data out on the wire and hopes it is received by the destination device. It is often referred to as a best-effort protocol; it doesn't matter if the data gets there or not. This may seem odd because surely you want to receive all of the data every time? Generally, you would be right, but let me give you an example.
You're watching a live football match, streaming over the internet. If you were to use TCP, there would be times when the server is waiting for the acknowledgments before sending the next bit of data. Your viewing would ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access