User Datagram Protocol (UDP) uses the Internet Protocol to obtain a unit of data, also known as a datagram, from one device to another on a network. UDP is a lightweight protocol defined in Request for Comment 768 in 1980. It is defined as lightweight since it does not require the heavy burden of having details on a header. Service advertisements, such as routing protocol updates, server uptime, and streaming applications such as video and voice are some of the main uses of UDP.
A simple transmission model is used for UDP. This means that there is no guarantee of integrity or reliability of data providing unsecured, out of service and sometimes duplicate datagrams. Unlike TCP, UDP does not rely heavily on correcting and checking runtime errors. UDP is therefore well suited for multicast or send to all subscribers and packet broadcast or send to all on your local network.UDP traffic ,unlike TCP traffic , does not necessarily require a response, and a connection does not have to be established to be sent
UDP, unlike TCP, sends packets to a receiver whether or not it is able to fully receive them. Each of the packets is sent directly and individually by the sender to the recipient without establishing and confirming a reliable data channel. Users do not have the option of requesting missing data packets once they are lost in transit. This type of protocol is mainly used when the speed of data transfer is more important than the reliability of a successful data transfer. There is no inherent order in the transmission of data packets and all packets are sent over the network independently of each other.
It has a relatively faster transfer speed thanks to lightweight packets with minimal headers. Since it does not require a response, it is suitable for video conferencing, broadcasts and games.
Since there is no sequencing and acknowledgment during the transfer, the PEI is considered unreliable and insecure. Corrupted packets are discarded and are not requested for re-transmission once they are lost.
Every device or computer on the Internet has its own unique number assigned to it, commonly known as the IP address. This is to identify a particular computer when you are on the Internet. Information sent over the Internet from a computer is now accepted using ports. Just like TCP, UDP also has its own specific functions and ports. Below are some of the most commonly used for UDP.