Slashdot Mirror


BitTorrent Calls UDP Report "Utter Nonsense"

Ian Lamont writes "BitTorrent has responded to a report in the Register that suggested uTorrent's switch to UDP could cause an Internet meltdown. Marketing manager Simon Morris described the Register report as 'utter nonsense,' and said that the switch to uTP — a UDP-based implementation of the BitTorrent protocol — was intended to reduce network congestion. The original Register report was discussed enthusiastically on Slashdot this morning."

18 of 238 comments (clear)

  1. Best of intentions by seanadams.com · · Score: 5, Interesting

    BT may have the best of intentions here in developing this experimental protocol, but this quote leads me to believe that their understanding of the problem is terribly naive:

    It so happens that the congestion control mechanism inside TCP is quite crude and problematic. It only detects congestion on the internet once "packet loss" has occurred - i.e. once the user has lost data and (probably) noticed there is a problem.

    Packet loss is a normal and deliberate mechanism by which TCP detects the maximum thoughput of a path. Periodically it increases the number of packets in flight until the limit is reached, then it backs off. You have to test again from time to time, in order to increase throughput if more capacity becomes available. This in no way incurs "loss of data" or a noticeable problem. Packets lost due to congestion window growth are handled by the fast retransmit algorithm, which means that there is no timeout or drop in throughput (that would be pretty stupid if the whole purpose of growing the congestion window is to _maximize_ throughput).

    I wonder if Simon Morris was merely oversimplifying for the benefit of the layman, but I still find that statement disturbing. As I sugggested in the other thread, it really sounds like they're going to reinvent TCP (poorly). That's not to say you couldn't design a better protocol specifically for point-to-multipoint transfer, but I question if they're on the right track here.

    1. Re:Best of intentions by boyko.at.netqos · · Score: 5, Informative

      I agree with you Seanadams, but I just finished an interview with Simon Morris and it's not that he's saying that the way TCP handles packet loss is a particular problem, he just thinks he can do better.

      BitTorrent essentially already has it's own methods to deal with dropped packets of information - it gets the information from elsewhere. Moving to UDP eliminates the triple handshake, and it eliminates throttling down packet sizes in response to a dropped packet.

      The only problem is that it also eliminates the Layer 4 [transport] traffic congestion safeguards, which is why BitTorrent is looking to establish new and better ones at layer 7 [application].

      --
      I used to work for NetQoS. I no longer do, but want to keep the excellent karma attached to this account.
    2. Re:Best of intentions by naasking · · Score: 5, Insightful

      Because application-specific knowledge allows easier and often better optimizations than application-generic protocols, which have to be good enough for all applications at the expense of top end performance for specific applications. Isn't it obvious?

    3. Re:Best of intentions by FictionPimp · · Score: 5, Funny

      I know, how dare anyone try to improve things without being old and having a PHD.

      Fucking punk ass kids. Next thing we know we will have guys with only master degrees trying to write operating systems.

    4. Re:Best of intentions by Anonymous Coward · · Score: 5, Insightful

      I wonder if you know what you're talking about. TCP is a great general-use protocol, as is UDP. But for specific cases, like this one, developers will tend to roll their own as an extension to UDP to fit their needs.
       
      Take any modern networked game. It will not use straight TCP, as that's stupid, nor will it simply use UDP because that doesn't work, either. TCP is fine if you're writing apps that require data to get to the other end, without regards to time taken, but if you need a happy middle-ground you need to do it yourself.

    5. Re:Best of intentions by zmooc · · Score: 5, Insightful

      TCP does two things at the cost of some overhead: it ensures packets arrive in order and it ensures they arrive. While doing that, it also has to ensure that in the case of network congestion, packets are resent within reasonable time while being fair and allowing each TCP connection an equal share of the speed and bandwidth. The problems TCP solves are at the root of the success of bittorent; bittorrent is extremely good at spreading traffic in such a way that links that have those problems are avoided. It can do this since the order in which the packets arrive does not matter and in fact it does not matter whether they arrive from a certain host at all; it can simply request a lost packet from another host minutes or hours later. In the case of TCP/IP there is no provision to handle such a case; it keeps trying to get the packets at their destination in the right order as quickly as possible.

      So none of the problems that TCP solves affect bittorrent and all the overhead that TCP causes, however small, serves no purpose in this case. Instead of many small TCP ACKs, resends, negotiation, and what else TCP does, bittorrent will do just fine with one status update every now and then, which it can conveniently combine with the packets that are sent the other way anyway. Therefore, IMHO, using UDP for bittorrent is fine; it will help spread bittorrent traffic even better over the fastest links while using less bytes of network traffic and it might even end up making it easier on the Internet since now bittorrent traffic no longer has to fight with other TCP connections for a fair share of the bandwidth; it can be tuned to get just a little bit less.

      Of course they can fuck it up completely and fill the poor pipes of the Internet with loads of packets that never arrive, but they don't have to; it is not inherent to this solution and therefore such rumours should be classified as... FUD.

      Disclaimer: I did not RTFA and now practically nothing about TCP/IP :-)

      --
      0x or or snor perron?!
    6. Re:Best of intentions by Aloisius · · Score: 5, Insightful

      There are a lot of good reasons why BitTorrent should use a UDP file transfer protocol, but I probably wouldn't put TCP's congestion control mechanism on the top of the list.

      If you're going to argue UDP, you might as well bring out the major benefits:

      * Going to a NAK-based or hybrid NAK/ACK-based protocol which can significantly improve performance over high latency or poor connections

      * Multicast - assuming anyone implements IPv6 or multicast over the internet :)

      * NAT to NAT transfers (you can do it with TCP, but it is just harder and you generally have to build a user-space TCP stack anyway).

      * Faster start time since you no longer have to do a three-phase startup and all the annoying things Microsoft does to prevent people from starting too many per second

      There are plenty of UDP-based protocols with TCP-friendly congestion control mechanisms out there and plenty of research into the subject.

      The biggest problems I see happening here revolve around different BitTorrent clients all reimplementing uTP and doing a poor job at it. I'd like to see a spec for uTP and a public domain implementation to help minimize the problems that could pop up.

    7. Re:Best of intentions by DiegoBravo · · Score: 5, Insightful

      And don't forget that those IETF PhD's couldn't design a better way to upgrade IPV4 but the incompatible and essentially non-interoperable IPV6 (please don't argue about dual stacks or something similar.)

    8. Re:Best of intentions by rxmd · · Score: 5, Informative

      On top of this TCP hasn't seen a major update since the 80's.

      Uhh, TCP Vegas, TCP New Reno, BIC and CUBIC? All of which have been implemented in the Linux kernel? TCP has only been standing still since the 80's if you're using an OS from the 80's... or a Microsoft OS.

      Note that the only one of those which made it into an RFC is New Reno, aka RFC 2582, which has been implemented in the Windows TCP stack since Vista, along with a number of other recent RFCs.

      The others are basically different suggestions for implementing TCP congestion control. Microsoft has its own variant of those (Compound TCP, which is quite similar to TCP Vegas and has also been ported to Linux).

      Your 1980s comment is not quite up to date, of course. Microsoft has been sticking to their BSD-based implementation of the TCP stack for quite a long time (too long in fact), but with Vista it's been undergoing quite a bit of change. I know it's unpopular to say something in favour of MS and/or Vista here and I'm far from being a MS apologetic, but it's worth actually reading their Cable Guy columns every now and then to be up to date with regards to what the Windows network stack actually does and doesn't do - especially if you are a sysadmin or interested in developments in the TCP arena.

      --
      As a state gets corrupt, its laws multiply; the most corrupt states have the most numerous laws. (Tacitus, Annales 3:27)
  2. The Register by QuantumG · · Score: 5, Funny

    Nonsense? From The Register? Ya don't say.

    --
    How we know is more important than what we know.
  3. In other news... by kwabbles · · Score: 5, Funny

    My ISP, Comcast, is already on top of this new bittorrent over UDP idea and has summarily blocked all UDP traffic.

    So, I wonder if I'll be experNO CARRIER

    unknown host slashdot.org

    --
    Just disrupt the deflector shield with a tachyon burst.
  4. Where where? by Emperor+Zombie · · Score: 5, Informative

    "Hear", not "here".

    --
    I'm so excited I just made water in my pantaloons!
    1. Re:Where where? by Zironic · · Score: 5, Informative

      I'm not sure, bouncing stones could be pretty painful.

    2. Re:Where where? by PJ+The+Womble · · Score: 5, Funny

      A friend of mine made a lot of money selling marijuana, but then got word that the heat was on him, so he absconded to his own island with the stash, and disguised it from the prying eyes of the DEA by building a mansion entirely from bricks of Acapulco Gold. He decided to launder his money by starting a collection of expensive gold and velvet chairs from the ancient royal houses of the world.

      Of course, the whole enterprise ended in tears when he bought one too many 24-karat armchair and the building simply disintegrated. He was whining to me on the phone afterwards and I could only offer him the following simple advice: "People in grass houses shouldn't stow thrones".

      Sorry.

  5. The problem is... by wolfbyte18 · · Score: 5, Informative

    we have an opportunity to detect end-to-end congestion and implement a protocol that can detect problems very quickly and throttle back accordingly so that BitTorrent doesn't slow down the internet connection
    ----
    The major problem I see is that UDP doesn't play as nicely as TCP. Not by a longshot.

    As soon as TCP notices a single packet loss, the Jacobson Algorithm kicks in and it's throttled to maybe 50-60%, and raises the limit slowly. I highly doubt that uTorrent's reworked version of UDP will play this nicely.

    As soon as TCP's throttling kicks in, space will be cleared in the tubes. uTorrent will be able to send more data through UDP without noticing any loss, so it'll quickly move to fill this space. Then, TCP gets hit with more data loss - and goes slower. It seems like a vicious cycle.

  6. Remove TCP-like requirements, and it's a WIN. by sudog · · Score: 5, Informative

    TCP guarantees in-order, mildly error-corrected, delivery of transmitted *DATA*. Not packets. It is a streaming protocol where the data being transmitted is of unknown and indeterminate length, or open-ended length. Since BT already doesn't care that files arrive in pieces at the beginning, middle or end (well, it does a little, but not enough to matter) then you can relax and basically eliminate one of the TCP guarantees right there: in-order delivery of data.

    You can eliminate sliding windows, ACK-based retransmits, fast-retransmission, and pretty much every other mechanism that TCP uses to guarantee in-order delivery of data. You can simplify it and the application itself beautifully, and provided it correctly throttles back based on detected packet loss (it MUST be exponential back-off,) you end up with a net win for those reasons. The application can set up its own optimised data structures that don't necessarily have (but likely will end up having anyway) the overhead of an OS-backed TCP stack.

    I mean who cares if you miss pieces, until the end when you can re-request them?

    Heck, there are already P2P apps that use a UDP-based transfer mechanism and they are WAY less impactful on systems that a typical BitTorrent stream is. They way the hell slower, too, but that's not the point.

    I do think there is a point that bears repeating: BT *MUST* have exponential back-off. If it doesn't there is logic already built-in to core routers, ISPs, and firewalls that WILL drop the connection more severely when the endpoints don't respond properly to an initial packet-drop attempt at slowing them down.

    There are some really nice academic papers about it, and there are lots of algorithms and choices that companies have. They all assume TCP-like back-off on the endpoints, and they ALL uniformly punish greedy floods.

  7. What BitTorrent REALLY needs by bertok · · Score: 5, Interesting

    The probablem with BitTorrent is not that it uses a large amount of bandwidth, but that it's using the wrong bandwidth. In every country other than the United States, international bandwidth is substantially more expensive than local bandwidth, and often in short supply. Local bandwidth is cheap, or even free. Even in the US, inter-ISP bandwidth has the same cost issues, but is plentiful.

    What I've never understood is what's the excuse for not implementing a peer selection algorithm that prioritises nearby users. Even a naive algorithm is going to be vastly better than a purely random selecton. Simply selecting peers based on, say, the length of the common prefix of the IP address will often produce excellent results. Why in God's name should I transfer at 0.1 kbps from some guy in Peru, when a peer down the road could be uploading to me at 500 kbps?

    The truth is that the BitTorrent folks are not playing ball with ISPs. In reality, I think most major ISP could care less about copyright violation, or excessive bandwidth - it makes people pay for more expensive monthly plans - but they DO care about international bandwidth costs.

    If they just took 10 minutes to revamp the peer selection algorithm, they would reduce the impact in ISPs enormously, and then they woudldn't be villified and throttled.

  8. Reducing network congestion by mtarnovan · · Score: 5, Interesting

    If they want to improve network congestion why not start by implementing a better peer selection algorithm. IIRC currently peers are selected at random. A network topology aware peer selection algorithm might improve network congestion a great deal. Currently I see peers which are on another continent being 'preferred' (to due the randomness) to peers on my own ISP's network, with which I have a 50+ mbit connection.