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 is basically an application interface to IP. 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 LAN's 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
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).
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.
• 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