News for hackers. Stuff that matters.
Re:Lying to TCP makes it a best-effort streaming protocol by JoeAltmaier on Friday February 02, 2018 @05:46PM (#16294848)
TCP layer also gives you pacing, congestion control and flow control. Which UDP, you'd have to do yourself?
Re:Lying to TCP makes it a best-effort streaming protocol by JoeAltmaier on Friday February 02, 2018 @05:59PM (#16294943)
And its not totally trivial to reorder UDP. Say you receive packets 1,2,3,5. How long to you wait for '4'? Maybe it was dropped; maybe its coming.

Then you get 6,7. Is 4 still out there? You've got 3 packets in your pocket, waiting for 4. That adds up too.

TCP gives you some idea of what packets you SHOULD have received, so you can respond better. UDP doesn't have any windowing etc so you have no idea.

Re:Lying to TCP makes it a best-effort streaming protocol by vvanders on Friday February 02, 2018 @06:12PM (#16295016)
I guess I don't really see the big issue with that. It's not like windowing and congestion control is some kind of black magic. It's spelled out pretty cleanly in the TCP RFC and pretty straight-forward to reimplement.

Generally if you're hitting cases where TCP is causing you grief and you need to reach for UDP you've already got enough context to understand your congestion problems/etc.

We've been doing this in game-dev for decades, ditto the voip space so it's not like you don't have a wealth of knowledge to draw from if you're really stumped.

Re:Lying to TCP makes it a best-effort streaming protocol by JoeAltmaier on Friday February 02, 2018 @07:51PM (#16295448)
If you just use TCP again you haven't done anything. The whole point is to avoid latency.

Most folks use some UDP-based protocol package instead of reinventing the wheel. Its not rocket science, but it isn't trivial. Defining your own packets to do all the flow stuff is just work, like any other programming task.

Re:Lying to TCP makes it a best-effort streaming protocol by vvanders on Friday February 02, 2018 @08:34PM (#16295613)
I don't think I was suggesting using TCP, I was suggesting implementing the features you like from TCP into your stack if you really need them. You can do congestion control without retry, etc.

I've built variations of UDP based protocols 4 or 5 different times over my career. I'm literally in the middle of this right now with the radio framing protocol I've been developing. I really think you're making it out to be much harder than it is.

Re:Lying to TCP makes it a best-effort streaming protocol by tonyg on Saturday February 03, 2018 @04:52AM (#16296955)
I was delighted when DCCP appeared: https://en.wikipedia.org/wiki/Datagram_Congestion_Control_Pr...

It focuses narrowly on a congestion control protocol, and is intended to be combined which whichever datagram-based protocol you have lying around that might be suffering from congestion issues.

Re:Lying to TCP makes it a best-effort streaming protocol by ramenmeal on Friday February 02, 2018 @06:39PM (#16295136)
Isn't the pacing and congestion control based on ACK's though? And this is suggesting to ACK everything. I feel like I'm missing something.