4 ms·
Why is this idea so out there? Most streaming used to happen over UDP. It might still. Anytime you have a use-case where latency trumps reliability (and securit
by sheepscreek 3y ago
Why is this idea so out there? Most streaming used to happen over UDP. It might still. Anytime you have a use-case where latency trumps reliability (and security), you should use UDP.
That brings me to another point: HTTPS isn’t preferred because it’s the defacto standard now, it’s the secure bit, the “S” in HTTPS, which makes it a better option than using plain HTTP over TCP.
By going completely bespoke means you’ll need to implement your own protocol that implements some level of security and redundancy in UDP communication.
- deleted 3y ago[deleted]
- hawk_ 3y ago> latency trumps reliability Let's say I don't care about the initial handshake latency, have disabled nagle and have no packet loss. Is there still a measurable latency difference between UDP and TCP? It would appear that there is (based on yours and other comments) - but I don't know why.
- deleted 3y ago[deleted]
- Joel_Mckay 3y agoPrimarily traffic cost, CDN services were much more important during the early days... and punching through NAT came with its own liabilities.
- fulafel 3y agoNo, assumign an already estabilished connection, TCP is just as fast if there's no packet loss, except for the tiny amount of time that the additional TCP stack logic takes on the CPU. See eg here: https://cloud.google.com/blog/products/networking/using-netperf-and-ping-to-measure-network-latency https://cloud.google.com/blog/products/networking/using-netp...
- vetrom 3y agoYou may have induced latency driven by window sizing/scaling/acknowledgement RTT as well.
- fulafel 3y agoIf TCP says "you can't send more data yet because of congestion control" (like hitting the congestion window limit) then I guess you can categorise that as latency, depends on your viewpoint. RTT of acknowledgements shouldn't normally enter into it, no? You can send while previously unacknowledged data is in flight (as long as congestion control state allows).