And TCP's guarantees are just useless for some applications. In a multiplayer game for example, by the time you figure out a packet was dropped, it's no longer relevant and not worth sending again.
You can also just add your own reliability system at the application layer if you really want to. This is what Nintendo used for the Wii U/3DS, games connect to the game server with UDP which has a custom reliability system that lets some packets act more-or-less like TCP, while selectively allowing some packets to remain unreliable
Unfortunately you can only get so far with p2p connections. They definitely could have improved things (and the multiplayer software they use DOES have the ability to use dedicated servers instead of p2p connections, they just never used it for some reason) but if the p2p host has terrible connections then the whole lobby suffers
Also to make matters worse, for early games on the Wii U/3DS the p2p software they were using wasn’t even made by them, it was licensed and originally designed in the early 2000s. They only somewhat recently (as in, later editions to Nintendo Network) started using their own in-house p2p software (though it still borrows concepts from the original one they used)
There are extremely niche ways to get better performance, like the deterministic lockstep architecture that Factorio uses, but that will not work for the vast majority of online games.
same with streaming video. Just drop the frame (or group of frames), deal with the artifacts. Better than lagging/buffering while waiting for the retransmission.
Broadcast video in the production domain is often UDP multicast at 12Gb/s per flow, sometimes we have dual redundant links on physically separate infrastructure for fault tolerance, and dropped packet resilience. The fact that every camera might be outputting a 12Gb/s multicast flow, and expect no packet loss tends to make IT department (And some switch vendors) heads explode.
Lots of PtP timing in that space as well.
On the audio side (actually MORE critical), we do much the same thing, but will sometimes operate over unreliable WAN networks with each packet being sent twice with a few milliseconds of delay. At the receiver we reconstruct based on sequence number (which is tied to time), it actually works well with a local GPS derived time at each end of the link.
Then you have SRT, which is UDP with an application specific layer on top for retry.
Half true, I currently work on a multiplayer game at a AA company and though it's true that UDP is used for most things, movement and moment to moment gameplay is usually UDP, Taco is also used for some things. Chat messages in game is a good example, as is authentication. For important single moment gameplay events you can also use Reliable UDP which aims to keep the guarantee of receiving the packet while being slightly more flexible and being faster than tcp, used for things like sending calls to play effects or letting a client know they've been stunned. You don't want a stun to not register or an effect to be missing if you drop a package.
I really have not looked into this but my guess is that the packets just include player and round states, including health, location and so on. Gets more complicated when you want to include things like who shot who. Of course a seperate TCP connection is an option too, or implementing your own reliability on top of UDP.
Even just fundamentals of udp for dns. Vpn access easier with udp and faster. Video streaming would love to see a frame from 30 seconds ago randomly becauae it went a differing path.
321
u/Outrageous-Log9238 May 07 '26 edited May 07 '26
And TCP's guarantees are just useless for some applications. In a multiplayer game for example, by the time you figure out a packet was dropped, it's no longer relevant and not worth sending again.