UDP is used for those applications that require speed, not quality of transmission. This would include streaming audio and video, and Voip. If you lose a packet or two it doesn't make a great deal of difference compared to file transfer protocol, where everything must arrive correctly.
It is possible for an application to enjoy reliable data transfer over UDP. UDP uses checksum to learn whether data reached is true or not. You can also ensure reliability by creating a private protocol built on UDP.
UDP can be used in many applications for transport, not just a single application. UDP is commonly used when speed is more important than reliability in the transfer.
UDP as a transport protocol is used in situations where speed is more important than reliability in the delivery of the packets. Therefore, any application that requires speed as its primary delivery could use UDP. This type of delivery is not checked for consistency or reliability, so you wouldn't use it if the delivery has to be reliable.
UDP is considered a best-effort protocol because it does not guarantee delivery, ordering, or error correction, allowing for faster transmission suited for applications like streaming or gaming where speed is prioritized over reliability. In contrast, TCP is a reliable protocol that ensures data delivery, correct ordering, and error recovery, making it ideal for applications requiring data integrity, such as file transfers and web browsing. Ultimately, the choice between TCP and UDP depends on the specific requirements of the application.
You don't need to configure UDP; this is done automatically by the application protocols that use this transport method.
1. IP works at network layer, UDP works at transport layer. 2. UDP carries application data, IP carries TCP segments or UDP datagrams.
UDP is alot faster than TCP. So if its realtime obviously it has to be fast, thus UDP. The only problem is UDP isn't as reliable or as secure as TCP. But it does have the speed advantage.
UDP does not require as much resources as TCP but in the same time, it does not insure delivery of packets.
UDP: DNS, TFTP, DHCP... TCP: SMTP, HTTP, HTTPS, DNS, FTP, SHH, Telnet...
Why_an_application_developer_might_choose_to_run_an_application_over_UDP_rather_than_TCP"send me
Application Layer
What a client application usually selects for a TCP or UDP source port number is a random value. The value selected is generally in the range of the registered ports.