User Datagram Protocol (UDP) : Telematics Engineering Universitat Politecnica de Catalunya (UPC)
User Datagram Protocol (UDP) : Telematics Engineering Universitat Politecnica de Catalunya (UPC)
Datagram
Protocol
(UDP)
UDP
Telematics Engineering
Universitat Politecnica de Catalunya (UPC)
1/9
User
Datagram
Protocol
(UDP)
Outline
UDP
1 UDP
2/9
User
Datagram
Protocol
(UDP)
UDP I
User Datagram Protocol (RFC 768).
UDP
3/9
User
Datagram
Protocol
(UDP)
UDP
UDP II
Doesnt offer:
Flow Control: The messages can overflow in the
receiver.
Congestion Control: Messages can collapse the
network.
Sequencing: No datagram numbering.
Error Control: no recognition, neither positive nor
negative (but discards).
UDP service is message-oriented:
Delivers the message or not.
If the UDP message is larger than the MTU,
fragmentation is performed at IP level.
Used by many services based on request / response.
Largest UDP message size: 216 1 20 8 = 65,507
4/9
User
Datagram
Protocol
(UDP)
UDP III
UDP
Advantages:
No delay due to connection establishment.
Simple transmitters and receivers.
It uses minimal system resources in terms of memory
and CPU.
Adds a small header (8 bytes).
It does not use any congestion control mechanism.
Data flows can follow time patterns more flexible and
adaptable.
5/9
User
Datagram
Protocol
(UDP)
UDP Aplications
UDP
TCP.
Some applications do not require reliability in the way
6/9
User
Datagram
Protocol
(UDP)
UDP Ports
UDP
7/9
User
Datagram
Protocol
(UDP)
UDP Datagram
UDP
UDP Length:
Includes header and data (in bytes).
Minimum value is 8, which is the minimum header
length.
8/9
User
Datagram
Protocol
(UDP)
UDP
Checksum
UDP checksum:
Optional. If unused, it is set to 0.
Checks the integrity of the header, data, and routing.
Is a Pseudo-header parameter: the receiver can make
sure that no routing errors occurred.
If wrong segment: discarded silently.
9/9