View RSS Feed

Java Socket

What is UDP good for?

Rate this Entry
by , 04-25-2012 at 10:43 PM (1113 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.

Submit "What is UDP good for?" to Facebook Submit "What is UDP good for?" to Digg Submit "What is UDP good for?" to del.icio.us Submit "What is UDP good for?" to StumbleUpon Submit "What is UDP good for?" to Google

Categories
Tutorial

Comments