4 ms·
Quesrions for people familiar with the industry: my understanding is that UDP is optimal for fast-pased games, you don't have to wait for re-sends of old packet
by ClumsyPilot 6y ago
Quesrions for people familiar with the industry: my understanding is that UDP is optimal for fast-pased games, you don't have to wait for re-sends of old packets, etc.
However, it seems you can't just flick a switch and get encrypted connection like you can with TLS.
So what do people normally use? Does everyone do a custom AES-packet or something?
- penagwin 6y agoSome games encrypt them, but while I would normally never say this - there's nothing really to protect over the udp packets if it's just game state. And you want to keep the latency as low as possible for those packets. You want to do everything else over tcp and encrypted.
- vvanders 6y agoI remember quite a few aimbots back in the day would MITM packets so there are some reasons you might want to do it from a defense in depth perspective.
- kabdib 6y agoCheck out Valve's game network sockets layer, it addresses a lot of the things you're worried about https://github.com/ValveSoftware/GameNetworkingSockets https://github.com/ValveSoftware/GameNetworkingSockets
- zedpm 6y agoOne option is DTLS[0], which is roughly TLS for UDP. [0]: https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Secur...
- guerby 6y agoHTTP/3 with QUIC as transport will be using UDP and is encrypted. I assume it will change quite a few things for these kind of needs.