Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are common UDP usecases?

Tags:

use-case

udp

Can anyone tell be where to use the UDP protocol except live streaming of music/video? What are default usecases for UDP?

like image 448
Simon Avatar asked Sep 20 '10 13:09

Simon


2 Answers

Anything else where you need performance but can survive if a packet gets lost along the way. Multiplayer games come to mind, for example.

like image 87
Joey Avatar answered Sep 23 '22 06:09

Joey


UDP is stateless and is good for applications that have large numbers of clients connecting to a server such as time servers or DNS. The fact that no connection has to established and maintained reduces the memory required by the server. There is no handshaking involved and so this reduces the traffic on the network. On the downside, if the information transferred requires multiple packets there is no transmission control to ensure that all packets arrive and in the correct order - but in games packets lost are probably better than late or disordered.

like image 27
Spaceghost Avatar answered Sep 23 '22 06:09

Spaceghost