New answers tagged

0

Let's set some pros/cons from security prospective for each and see: UDP (+) Relatively difficult to scan UDP open ports, and no stealthy scan exists (half connection in TCP by sending SYN). (-) Network devices (e.g. stateful firewalls, NAT) struggle to control UDP connections, as there are no FLAGS to rely on. (-) Reflected attacks are more common due to ...


3

The reason why UDP is used instead of TCP for game servers is to minimize overhead and because usually it doesn't matter if some datagrams get lost. If you tell the server your position over time and one of the datagrams gets lost, the server can deem it plausible that you meant to say that you were in that specific location at the time, and the datagram ...


4

If data needs to be secured does not depend on the transport protocol (UDP vs. TCP) but on the kind of data. For example there is HTTPS to protect HTTP traffic which is deemed to be often sensitive. And there is HTTP/3 for the same purpose as HTTP but on top of UDP - and it is secured on the same level as HTTPS is. Similar WebRTC uses UDP for real time ...


Top 50 recent answers are included