UDP is a lightweight transport layer protocol that works on a best effort basis. UDP is a good choice of transport layer protocol for end applications that can tolerate packet loss or if the reliability can be taken care of at the application layer. For example, Trivial File Transfer Protocol (TFTP), which is a simple file transfer protocol, leverages UDP as the transport layer protocol. TFTP sends acknowledgement for each block of datagrams received at the application layer. So, even though UDP does not have an inbuilt reliability mechanism, such applications can still use UDP as the transport layer protocol.
The protocol field of the IP header will be set to 17 for UDP. The format of the UDP header is as follows:
The host that originates the UDP stream will use any local unused port from range 1024 to 65535. The destination...