Showing posts with label Datagram. Show all posts
Showing posts with label Datagram. Show all posts

UDP (User Datagram Protocol)

 click here complete Lecture Notes: Computer Networks

UDP (User Datagram Protocol)

UDP -- like its cousin the Transmission Control Protocol (TCP) -- sits directly on top of the base Internet Protocol (IP). In general, UDP implements a fairly "lightweight" layer above the Internet Protocol. It seems at first site that similar service is provided by both UDP and IP, namely transfer of data.But we need UDP for multiplexing/demultiplexing of addresses.
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:
         Source Port       Destination Port
             length            checksum
  • source port number
  • destination port number
  • datagram size
  • checksum