|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
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.
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last Modified: June 02, 2008