What is UDP? and explain

UDP(user datagram protocol) is a communication protocol that is primarily used for establishing low-latency and loss-tolerating connection between application on the internet

  • UDP sreads up transmission by enabling the transfer of data before an agreement is provided by the receiving party
  • As a result,UDP is beneficial in time-sensitive communication, including voice over Internet protocol (VoIP),domain name system(DNS)  lookup,& video or audio playback
  • UDP provides   two service not provided by the IP layer
  • It provides portnumber to help distinguish different user requests and optionally a checksum capability to verify that the data arrived intact

user Datagram Protocol features:

user Datagram Protocol has attributer that make it beneficial for use with appliacationappliacation that can to lerate lost data for example

  • It allows packets to be dropped and received in different order than they were transmitted making it suitable for real time appliacation wherr latency might be a concern
  • It can be used transmission based protocol,such as DNS or Network Time Protocol (NTP)
  • It can be used where a large number of clients are connected and where real time error correction isn't necessary such as gaming, voice or video conferencing  and streaming medio

UDP header composition

​The user Datagram Protocol header has four fields,each of which 2 bytes

  • ​​source port number which is the number of the sender
  • destination port number the port Datagram is addressed   length the length in bytes of the UDP header and any encapsulation data
  • Checksum which is used in error checking, it is required in IPV6  and optional in IPV4.
Posted on by