1
Networking UDP: User Datagram Protocol
- RFC 768 [Postel 1980]: about three
pages.
- provides no reliability
– it sends the datagram to the IP layer, but there is no guarantee that:
- it will reach its destination
- it will reach unspoiled its destination
UDP encapsulation
IP header UDP header UDP data
UDP datagram IP datagram
UDP - checksum
32-bit source IP address 32-bit destination IP address zero
8-bit protocol(17)
16-bit UDP length
16-bit source port number 16-bit destination port number
16-bit UDP length 16-bit UDP checksum data
pseudo header* header
(*) not transmitted, only used for checksum calculations
UDP fragmentation
20 bytes 8 bytes
UDP data (1473 bytes) IP header UDP header
IP datagram
1472 bytes IP header UDP header
20 bytes 8 bytes
packet
IP header
1 byte 20 bytes
packet
IP: Internet Protocol
4-bit version 4-bit header length 8-bit type of service (TOS) 16-bit total length (in bytes) 16-bit identification 3-bit flags 13-bit fragment offset 8-bit time to live (TTL) 8-bit protocol 16-bit header checksum 32-bit source IP address 32-bit destination IP address
- ptions (if any)
data
20 bytes IP Datagram