UDP protocol

High-level overview of user datagram protocol

UDPUser Datagram ProtocolIt is a transmission protocol and an alternative to TCP.

The main difference between it and TCP is that it is connectionless.

This means that it is faster, each sent data packet is lighter, because it does not contain all the information required in TCP, and the handshake process is easier.

The disadvantage is that UDP is not as reliable as TCP.

In TCP, if a data packet is lost, the protocol can process it and then resend the data packet.

In UDP, it is not built into the protocol and must be processed at a higher level (built on top of it). There is no built-in check to control whether the data packet is received and whether the data packet is received correctly.

UDP inRFC 768 in 1980.

Some of the most famous application protocols that rely on the UDP layer areDNSAnd DHCP, and more importantlyHTTP/3, The next version of HTTP.

The UDP protocol uses ports to allow communication between processes, such as TCP.

More web tutorials: