News for hackers. Stuff that matters.
Re:UDP vs TCP by kevhito on Wednesday December 28, 2016 @09:23PM (#13275286)
> ship all the chunks over with a sequential number

Except that if you ship them too fast, they will at best simply build up in a buffer somewhere (e.g. near a bottleneck link), or more likely they will overflow causing many of your packets to be lost. So not only did the recipient not get them (and you have to figure this out and resend them later), but you also wasted a bunch of resources sending packets only to have them dropped.

And if you send them too slow, you are leaving some potential capacity on the table. So you need to send them fast, but not too fast.

So you add some additional logic to implement flow control and congestion control. And that's TCP, pretty much.

Re:UDP vs TCP by ajross on Wednesday December 28, 2016 @10:18PM (#13275429)
Exactly. The core feature provided by TCP is not reliability, that is trivially easy. What TCP gives us is robust flow control that can detect and adapt to current network capacity.
Re:UDP vs TCP by snupples on Thursday December 29, 2016 @01:47AM (#13276046)
CNN has a video transfer tool for b2b subscribers that uses multiple UDP streams to increase transfer speeds. Instead it saturated and brought down our company firewalls, which were older and our main bottleneck. All for just a potentially few more megs of speed on TB sized videos. Gotta be careful with UDP.
Re:UDP vs TCP by Dylan16807 on Thursday December 29, 2016 @02:25AM (#13276127)
That just sounds like your firewalls are made of pentium pros and duct tape. TCP can oversaturate a connection too, and a firewall should be able to handle large packets at line rate.
Re:UDP vs TCP by snupples on Friday December 30, 2016 @04:36PM (#13287670)
Yeah the firewalls were ancient and already scheduled for an upgrade. This helped accelerate the schedule for sure. The company had about 800 employees doing all kinds of things, watching Netflix, watching videos on YouTube and Facebook, downloading whole ISO's, not to mention many business processes transferring files around, but the second one person started using this video downloader tool it brought everything to a crawl.
Re:UDP vs TCP by refset on Thursday December 29, 2016 @11:31AM (#13278205)
> a video transfer tool for b2b subscribers that uses multiple UDP streams

That sounds like FASP (http://asperasoft.com/technology/transport/fasp/)

Re:UDP vs TCP by snupples on Friday December 30, 2016 @04:31PM (#13287643)
I believe something like that was the underlying tech. I researched it at the time but I just can't remember 100% now, although I think that was it. It actually was implemented via a Java applet in the browser, so there was no way we could block or restrict a specific exe with group policy. The firewalls were already scheduled for replacement/upgrade, so for a few weeks we ended up just watching traffic and slapping wrists if more than one person ever tried to use the tool at the same time.
Re:UDP vs TCP by Dylan16807 on Thursday December 29, 2016 @01:17AM (#13275947)
A robust flow control that's tuned for bulk downloads, and badly adapted for small real-time streams.
Re:UDP vs TCP by ajross on Thursday December 29, 2016 @09:20AM (#13277374)
Sure. And not even the best known flow control mechanism. But nonetheless that is the important innovation of TCP, not reliability. The post by lobster_johnson upthread implied that you could use UDP for "bulk data transfer", which basically doesn't work without reinventing something akin to TCP.