What is UDP good for?
by, 04-25-2012 at 11:43 PM (925 Views)
People read certain disadvantages of the UDP and wonder why one would be using it? Few situations are present where UDP would be a much better choice: Establishment and closing of the connections of TCP might take a lot of time. Packet header’s smaller packets are also added by the TCP to every packet. Just 8 bytes are added by UDP to the IP layer top. Other associated advantage of UDP is that there is no need to worry about timeouts because nothing is there like connection. Even packet could be fired out to closed port or non-existent host without any sort of blocking. This means that it wouldn’t arrive and will be lost but will not make your program deadlock. Also, connections are not needed to be closed to the dead client.
UDP’s classical use is audio or video streaming. Packages are needed to be fired out at the possible fastest rate. It is not considered to be an important thing that packets are arrived which means that silence or the static image is caused by the lost packages. For example, FTP will be TCP’s classical match as one may want to transfer data reliably without any corruption.