User Datagram Protocol
User Data Protocol or UDP is a transport layer protocol that does not needs to establish any connection prior to the data transfer.
It permits the packets to be dropped instead of delayed for high performance.
It is more efficient in the terms of latency and bandwidth.
UDP Header
It is an 8 bytes header, where the first part contains all the necessary information and the rest consists of data.
The UDP port number fields are each 16 bits long, therefore the range is defined from 0 to 65535, and the port number 0 is reserved.
Applications of UDP
- It is used for simple request-response when the size of the data is less.
- It is suitable for multicasting.
- It can be used for routing update protocols.
- It is generally used for real-time applications that cannot handle delays.
- It is fast. It takes the datagram from the Network layer, attaches the header, and sends it to the user.
- It reduces the requirement of resources.
- It helps the application layer to the following tasks:
- Traceroute
- Record route
- Timestamp
- UDP is used as a transport layer protocol in the following:
- NTP (Network Time Protocol)
- DNS (Domain Name Service)
- BOOTP, DHCP.
- NNP (Network News Protocol)
- Quote of the day protocol
- TFTP, RTSP, RIP.
Reference