Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

User Datagram Protocol (UDP)

News See Also Recommended Links Humor Etc

UDP is defined in RFC 768. UDP is used by applications that only need a connectionless, best effort transport service. The service provided by UDP is an unreliable service that provides no guarantees for delivery and no protection from duplication of data  (if this arises due to software errors). The simplicity of UDP reduces the overhead  and may be adequate in many cases where good connectivity is expected.

A variant of UDP, UDP-Lite [RFC3828] was introduced into the Internet Protocol Suite in 2004. This has been designed to provide more optimized transport for unicast/multicast multimedia data. The header format closely follows that of UDP. The Datagram Congestion Control Protocol (DCCP) provides a more sophisticated datagram service, particularly suited to unicast streaming services.

UDP packet has very simple structure:

15 31
Source Port Destination Port
Length Checksum
Data

These fields are decoded by all sniffers including tcpdump  and Solaris snoop.

In order to use UDP, the application must supply the IP address and port number of the destination application. A port is an abstraction (application number that is somewhat similar to UID) to allow transport protocols like UDP and TCP the capability of handling communications between multiple hosts. It allows a communication to be uniquely identified. Like UID port number is always a positive integer. Among the most commonly used UDP ports are:

UDP demultiplexes the ports, keeping track of which data is available for or sent to a port.

Recommended Links


In case of broken links please try to use Google search. If you find the page please notify us about new location
Google     

Last Modified: August 11, 2009