1
  1. UDP can congestion control?
  2. UDP can flow control?
  3. UDP have some error correction mechanism?
1
  • UDP is a fire-and-forget, best-effort protocol that sends a datagram without caring that it actually reaches the destination.
    – Ron Maupin
    Aug 2, 2018 at 14:00

1 Answer 1

2

UDP itself has no mechanisms for neither flow control, nor congestion control, and no error correction. If the application's datastream needs any of these, then they must be implemented within the application.

However, UDP may have error detection: The UDP header has a 16bit checksum field, but it's use (with UDP-on-IPv4) is not mandatory (however it is mandatory with UDP on IPv6) and it may be all-zeros.

See https://stackoverflow.com/questions/14043680/how-to-enable-udp-checksums, but now we're digressing into upper layers and host related topics, and that is close to becoming off-topic here.

2
  • if detect some error in checksum,can drop udp segemnt? Aug 2, 2018 at 7:55
  • 1
    UDP checksum generation validation done by the end system, by setting socket options aproppriately. It is up to the application what it wants to do with an UDP datagram with incorrect checksum. But this is becoming off-topic now. Aug 2, 2018 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.