Logo free mcse ccna rhce linux java learning free mcse ccna rhce linux java learning
          Sharefacebook twitter google+ google bookmark yahoo bookmark delicious digg linkedin pinterest reddit stumbleupon evernote diigo blinklist blogmarks livejournal email feed


User Datagram Protocol, UDP, UDP Header, UDP Header Fields, Advantages of UDP over TCP

External Resources

In this lesson, you will learn more about User Datagram Protocol (UDP), User Datagram Protocol (UDP) header and header fields.

User Datagram Protocol (UDP) is a protocol at Transport Layer, which is not reliable when compared with Transmission Control Protocol (TCP). User Datagram Protocol (UDP) is also called as a connection less protocol. UDP is much simpler than TCP, and it doesn't perform any of the complex functions of TCP we discuss before. UDP provides no reliability, flow-control, or error recovery to IP. UDP only serves as a multiplexer/demultiplexer using port numbers. Following are the important characteristics of UDP.

1) User Datagram Protocol (UDP) is a connectionless protocol, which means UDP is not a reliable protocol when compared with Transmission Control Protocol (TCP).

2) User Datagram Protocol (UDP) is capable of performing fundamental error checking. The UDP header includes a checksum field that the destination device can use to check the integrity of the data.

3) User Datagram Protocol (UDP) does not provide sequencing of data. Therefore, the data may arrive at the destination device in a different order from which it was sent. This may happen in large networks, such as the Internet, where the Datagrams might take different paths to the destination and experience delays in different routers. In a LAN, sequencing is not going to create problems. Applications that require sequencing must code their own sequencing mechanism as part of the application.

User Datagram Protocol (UDP) Header

User Datagram Protocol UDP Header

Source Port Number: The first 16 bits of the UDP header contain the port number of the application sending the data.

Destination Port Number: The next 16 bits contain the port number of the application that receives this data.

Length: The next 16 bits identify how long the datagram is in bits.

Checksum: The last 16 bits of the UDP header are reserved for the checksum value. Checksum is used as an error-detection mechanism. The source machine runs a mathematical algorithm on the datagram. The destination, or recipient, machine runs the same mathematical algorithm on the datagram. If the both values match we can assume that the datagram wasn't damaged while its journey.

The checksum field includes a 12-byte 'pseudo header' that includes the source and destination IP addresses, the 8-bit reserved field containing 0, the 8-bit protocol ID and the 16-bit UDP length field. The pseudo header is useful to check that the IP datagram arrived at the correct station.

Important protocols which use UDP as the Transport Layer protocol are Trivial File Transfer Protocol (TFTP), Domain Name System (DNS), Remote Procedure Call (RPC) used by the Network File System (NFS), Simple Network Management Protocol (SNMP) and Lightweight Directory Access Protocol (LDAP).

Visit the following link to know the differences between two important TCP/IP Transport Layer protocols, TCP and UDP. Differences and Comparison between TCP and UDP

For a complete list of Well Known port numbers, visit IANA Port Number Assignment web page.

You have learned about User Datagram Protocol (UDP), different fields in User Datagram Protocol (UDP) Header. Click "Next" to continue.

              Jajish Thomason Google+
Related Topics
TCP/IP Transport Layer Transmission Control Protocol (TCP) Transmission Control Protocol (TCP) Segment Header TCP Three-way Handshake Multiplexing and Demultiplexing using port numbers Transmission Control Block (TCB) TCP Sliding Window TCP Connection Termination Differences between TCP and UDP
comments powered by Disqus

eXTReMe Tracker