Computer Networks (KCS- 603))
User Datagram Protocol
AMIT KUMAR
UDP Protocol
• UDP is short for User Datagram Protocol.
• It is the simplest transport layer protocol.
• It has been designed to send data packets over the Internet.
• It simply takes the datagram from the network layer, attaches its header and sends it to the user.
Characteristics of UDP-
✔ It is a connectionless protocol.
✔ It is a stateless protocol.
✔ It is an unreliable protocol.
✔ It is a fast protocol.
✔ It offers the minimal transport service.
✔ It is almost a null protocol
✔ It does not guarantee in order delivery.
✔ It does not provide congestion control mechanism.
✔ It is a good protocol for data flowing in one direction.
Need of UDP-
✔ TCP proves to be an overhead for certain kinds of applications. The Connection Establishment Phase,
Connection Termination Phase etc of TCP are time consuming. To avoid this overhead, certain applications
which require fast speed and less overhead use UDP.
UDP Header
• The following diagram represents the UDP Header Format-
✔ Source Port is a 16 bit field. It identifies the port of the sending application.
✔ Destination Port is a 16 bit field. It identifies the port of the receiving application.
✔ Length is a 16 bit field. It identifies the combined length of UDP Header and Encapsulated data.
Length = Length of UDP Header + Length of encapsulated data
✔ Checksum is a 16 bit field used for error control. It is calculated on UDP Header, encapsulated data and IP
pseudo header. Checksum calculation is not mandatory in UDP.
Applications Using UDP
Following applications use UDP-
✔ Applications which require one response for one request use UDP. Example- DNS.
✔ Routing Protocols like RIP and OSPF use UDP because they have very small amount of data
to be transmitted.
✔ Trivial File Transfer Protocol (TFTP) uses UDP to send very small sized files.
✔ Broadcasting and multicasting applications use UDP.
✔ Streaming applications like multimedia, video conferencing etc use UDP since they require
speed over reliability.
✔ Real time applications like chatting and online games use UDP.
✔ Management protocols like SNMP (Simple Network Management Protocol) use UDP.
✔ Bootp / DHCP uses UDP.
✔ Other protocols that use UDP are- Kerberos, Network Time Protocol (NTP), Network News
Protocol (NNP), Quote of the day protocol etc.
Thank You