Typically, use UDP in applications where speed is more critical than reliability.
For example, it may be better to use UDP in an application sending data from a fast acquisition where it is acceptable to lose some data points.
You can also use UDP to broadcast to any machine(s) listening to the server.
Why is UDP used?
UDP can also be used for multicasting because it supports packet switching. In addition, UDP is used for some routing update protocols, such as the Routing Information Protocol (RIP). UDP can be used in applications where speed rather than reliability is critical.
Why would you use UDP instead of TCP?
Because UDP does not employ congestion control, but TCP does, it can take away capacity from TCP that yields to UDP flows. The result is that UDP can: Achieve higher throughput than TCP as long as the network drop rate are within limits that the application can handle. Deliver packets faster than TCP with less delay.
What uses TCP and UDP?
There are two types of Internet Protocol (IP) traffic. They are TCP or Transmission Control Protocol and UDP or User Datagram Protocol.
|Use by other protocols||HTTP, HTTPs, FTP, SMTP, Telnet||DNS, DHCP, TFTP, SNMP, RIP, VOIP.|
16 more rows