User Datagram Protocol (UDP) : Computer Networking: A Top Down Approach Featuring The Internet
User Datagram Protocol (UDP) : Computer Networking: A Top Down Approach Featuring The Internet
Computer Networking: A Top Down Approach Featuring the Internet, Jim Kurose, Keith Ross Addison-Wesley
no frills, bare bones Internet transport protocol best effort service, UDP segments may be: lost delivered out of order to app connectionless: no handshaking between UDP sender, receiver each UDP segment handled independently of others
no connection establishment (which can add delay) simple: no connection state at sender, receiver small segment header no congestion control: UDP can blast away as fast as desired
UDP: more
32 bits Length, in bytes of UDP segment, including header source port # length dest port # checksum
UDP checksum
Goal: detect errors (e.g., flipped bits) in transmitted segment
Sender:
Receiver:
treat segment contents as sequence of 16-bit integers checksum: addition (1s complement sum) of segment contents sender puts checksum value into UDP checksum field
compute checksum of received segment check if computed checksum equals checksum field value:
NO - error detected YES - no error detected. But maybe errors nonetheless? More later .