0% found this document useful (0 votes)
199 views4 pages

User Datagram Protocol (UDP) : Computer Networking: A Top Down Approach Featuring The Internet

User Datagram Protocol (UDP) is a "connectionless" and "best effort" Internet transport protocol that does not guarantee delivery or ensure packets are delivered in order. UDP has a small header that does not require connection establishment, meaning no delay, but also means no congestion control. It is often used for real-time applications like streaming media that can tolerate some data loss or errors. While UDP provides only minimal error checking via checksums, applications can add their own reliability mechanisms if needed.

Uploaded by

Waqas Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views4 pages

User Datagram Protocol (UDP) : Computer Networking: A Top Down Approach Featuring The Internet

User Datagram Protocol (UDP) is a "connectionless" and "best effort" Internet transport protocol that does not guarantee delivery or ensure packets are delivered in order. UDP has a small header that does not require connection establishment, meaning no delay, but also means no congestion control. It is often used for real-time applications like streaming media that can tolerate some data loss or errors. While UDP provides only minimal error checking via checksums, applications can add their own reliability mechanisms if needed.

Uploaded by

Waqas Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

User Datagram Protocol (UDP)

Computer Networking: A Top Down Approach Featuring the Internet, Jim Kurose, Keith Ross Addison-Wesley

UDP: User Datagram Protocol [RFC 768]

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

Why is there a UDP?

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

often used for streaming multimedia apps


32 bits Length, in bytes of UDP segment, including header source port # length dest port # checksum

loss tolerant rate sensitive DNS SNMP

other UDP uses


reliable transfer over UDP: add reliability at application layer

Application data (message)

application-specific error recovery!

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 .

You might also like