I was wondering why UDP is used so much.
I mean I understand UDP is faster - with its much smaller headers.
But I think the risks on UDP can't compare these benefits.
(Risks: packages could get lost, so server and client would run asynchronous)
Common network applications that use UDP include: the Domain Name System (DNS), streaming media applications such as IPTV, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP), IP tunneling protocols and many online games.
- When a DNS request/answer gets lost, and the client doesn't receive an response, the client could think the domain doesn't exist and goes on.
- Streaming media: when a identifying frame of a video gets lost, many frames - which gets well delivered after it - aren't shown properly.
- When on an online game a package will never be delivered, the client could run asynchronous on the server. Example: First person shooter - the server thinks the user has got the model for a specific gun, but the client hasn't got it. This will result in in-game glitches. (Many people hate glitches)
So this is my opinion about UDP connections.
I should like to hear from someone, who knows anything about it, why UDP is so much used, regardless its risks.
Or maybe someone else who really don't agree with me.