3 ms·
What are some alternative protocols? It's been a while since my networking class, but if I remember correctly with UDP you have some serious issues where you c
by geokon 10y ago
What are some alternative protocols?
It's been a while since my networking class, but if I remember correctly with UDP you have some serious issues where you can end up clobbering your network, filling up buffers in the middle and dropping tons of packets. The lack of congestion control is a huge no-no.
For instance in the example he gives, sure you can tolerate dropped packets for player-position data, but how do you know if you can tolerate sending at 10Hz 100Hz 1000Hz? Even with TCP you can't (I think....) programmatically adapt to the size of your pipe. That's kinda abstracted away for you so that you just say "send file A to B" and it does it for you
Are you supposed to write your own congestion control in userland???? Seems like this should be a solved problem
- daurnimator 10y agoDCCP and SCTP are the two main alternative transport protocols on top of IP - UDP: unordered unreliable datagrams - DCCP: unordered unreliable datagrams with congestion control - SCTP: optionally-ordered reliable datagrams with congestion control - TCP: ordered reliable stream with congestion control SCTP is the most widely used after TCP and UDP: it's often the transport used in phone networks (very popular with Ericsson); but also now with WebRTC (which uses SCTP over DTLS over UDP). The main issue being that consumer firewalls usually only support NAT for TCP, and limitedly for UDP (this is one of the 'other' reasons to look forward to IPv6)