UDP is generally faster than TCP because it does not need to perform a surveillance consistency check with which TCP should work. This means that UDP is most often used in programs where it is correct to transmit every last packet correctly. This does not mean that UDP is a "best effort" service, it is something more, according to: "You need information now, and it doesnβt matter if itβs all there"
This is useful in many situations where TCP will be less optimal. For example, DNS and DHCP use UDP because it is only one packet in each direction. This is faster, and when the user wants to get on the Internet, speed is important. It is also used in streaming situations when one packet is lost or out of order, does not affect the stream flow. Like television, no one is going to notice if one packet is lost, this is not so important.
In any case, I can not answer this, as well as Wikipedia. Thus, it refers to UDP on Wikipedia, http://en.wikipedia.org/wiki/User_Datagram_Protocol
source share