click here complete Lecture Notes: Computer Networks
UDP (User Datagram Protocol)
UDP's main purpose is to abstract network traffic in the form of datagrams. A
datagram comprises one single "unit" of binary data; the first eight (8) bytes
of a datagram contain the header information and the remaining bytes contain the
data itself.
UDP Headers
The UDP header consists of four (4) fields of two bytes each:
The UDP header consists of four (4) fields of two bytes each:
| Source Port | Destination Port |
| length | checksum |
-
source port number
-
destination port number
-
datagram size
-
checksum