User Datagram Protocol (UDP) is a simple alternative to TCP. UDP is a connectionless service, it does not establish a connection, in contrast to TCP. The source party sends a UDP datagram to the destination party and then stops worrying about the datagram getting lost (this is a job for the application protocol).
UDP datagrams are enveloped in an IP datagram as shown in the following figure:
As you can see from the figure above, a UDP header is very simple. It contains the numbers of both the source and destination ports completely analogous to TCP. Again, it is important to mention that the port numbers of the UDP protocol have nothing to do with the port numbers of TCP. UDP uses an independent set of port numbers.
The UDP Length field indicates the length of UDP datagram (header length + data length). The minimum length is 8, i.e., a UDP datagram containing just the header and no data.
An interesting thing is...