Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


https://www.geeksforgeeks.org/user-datagram-protocol-udp/


Protocol using UDP

Following implementations uses UDP as a transport layer protocol: 
  • NTP (Network Time Protocol)
  • DNS (Domain Name Service)
  • BOOTP, DHCP.
  • NNP (Network News Protocol)
  • Quote of the day protocol
  • TFTP, RTSP, RIP.
Header

Image Modified

length

Length is the length of UDP including header and the data. It is 16-bits field.

Checksum

:

 

Checksum is 2 Bytes long field. It is the 16-bit one’s complement of the one’s complement sum of the UDP header, pseudo header of information from the IP header and the data, padded with zero octets at the end (if necessary) to make a multiple of two octets.