2. USER DATAGRAM PROTOCOL(UDP)
Layer 4 ( Transport Layer) protocol
Runs over IP
Unreliable i.e. Best Effort service
UDP segments may be:
lost
delivered out of order
Connectionless
no handshaking between UDP sender, receiver
each UDP segment handled independently of others
Provides a lossy connection (data may vanish).
IP
IP
IP
Proc
UDP
IP
Proc
UDP
IP
3. UDP FUNCTION
Demultiplexing
UDP can support multiple applications in the same
end systems.
Such as:
DNS
Management (ex. SNMP)
Distributed File System Support (ex. NFS)
UDP is intended for simple applications
4. UDP DATAGRAM
8 Bytes Header + Variable Payload
Data
0 3116
Header
Bits
Source Port Destination Port
Length Checksum
5. WHY WOULD ANYONE USE UDP?
UDP is light weight protocol :
No delay for connection establishment
UDP just blasts away without any formal preliminaries
… which avoids introducing any unnecessary delays
No connection state
No allocation of buffers, parameters, sequence #s, etc.
… making it easier to handle many active clients at once
Small packet header overhead
UDP header is only eight-bytes long
6. POPULAR APPLICATIONS THAT USE UDP
Multimedia streaming
Retransmitting lost/corrupted packets is not worthwhile
By the time the packet is retransmitted, it’s too late
E.g., telephone calls, video conferencing, gaming
Simple query protocols like Domain Name System
Overhead of connection establishment is overkill
Easier to have application retransmit if needed
“Address for www.cnn.com?”
“12.3.4.15”
7. SUMMARY
UDP
Is connectionless protocol
No session establishment
No guarantee of:
Data delivery
Data sequence
Fast
Low overhead
Provides multicast support
Supports:
point-to-point communication
point-to-multipoint communication