Slashdot Mirror


Why BitTorrent Causes Latency and How To Fix It

Sivar recommends an article by George Ou examining why BitTorrent affects performance so much more than other types of file transfer and a recommendation on how to fix it. The suggestion is to modify P2P clients so that, at least on upload, they space their traffic evenly in time so that other applications have a chance to fit into the interstices. "[Any] VoIP [user] or online gamer who has a roommate or a family member who uses BitTorrent (or any P2P application) knows what a nightmare it is when BitTorrent is in use. The ping (round trip latency) goes through the roof and it stays there making VoIP packets drop out and game play impossible."

9 of 315 comments (clear)

  1. Re:QoS? by ILuvRamen · · Score: 3, Insightful

    yeeeeeah or for free, you could just cap the bandwidth your client uses. I cap it at 25KBps up and 400 down out of my approximate 70 up and 850 down (Road Runner) and I play MMORPGs under those conditions just fine.

    --
    Google's Super Secret Search Algorithm: SELECT @search_results FROM internet WHERE @search_results = 'good'
  2. Uh, yeah? by Anonymous Coward · · Score: 5, Insightful

    And we admit that on a small scale, we need to control our eating, but we don't want the grocery store telling us how much of things we can buy.

  3. Re:Simpler solution by flerchin · · Score: 5, Insightful

    Read the bloody article. He shows that bittorent traffic capped to 10% of total bandwidth still causes more latency than an http download using 90% of the pipe. The total latency hit is small, but still significant for VOIP or high intensity gaming.

    --
    --why?
  4. Re:QoS? by cgdiaz · · Score: 5, Insightful

    Well, since the article is about how to stop other users on the network from ruining your net experience, I think we assume they will be on a router of some sort.

  5. Re:QoS, but only on the Telco Side by wintermute000 · · Score: 3, Insightful

    Hear, hear

    I love these home geek "i know how to flash DD-WDT and click on a GUI" networking experts, who fail to grasp your point above (i.e. QoS = OUTBOUND).

    Since downstream QoS from telco aggregation router is not practical to implement, the best fix is to throttle the clients on the end user PCs, free and just a few clicks away.

    Or if you want to be really advanced, QoS outbound from a second router (or linux gateway or firewall etc.) behind your WAN router but really that's overkill for 99% of users.

  6. Re:QoS? by schnipschnap · · Score: 5, Insightful

    You should have taken a quick look at the article first. The author basically experienced excessive lag even though he did cap his upload rate, compared to what an upload or download via a different protocol (FTP, HTTP, VoIP) would cause. This is because the BT client fires or receives packets whenever they are available, while the others receive or send packets in a spaced manner (unless they saturate the pipe). That means that even though your upload rate may be limited to 10 KB/s, if your total upload is 20 KB/s, you might experience a maximum lag of 0.5 seconds. The guy put up a lot of graphs to illustrate that it happens quite often actually. It seems that he got those patterns with the "official" client and with Azureus.

  7. Re:From the Great Geek Philosopher Hypocrates by chubs730 · · Score: 4, Insightful

    When are ethical issues not directly derived from self interest? The issue with throttling at an ISP level is receiving the service one pays for. Bandwidth shaping for a personal network, deciding what one would like to do with the service they purchased, is an entirely separate issue.

  8. It's about control. by SanityInAnarchy · · Score: 3, Insightful
    It's very, very simple:

    The geeks of slashdot acknowledge that P2P use strangles traffic on their LAN, and feel that some modification needs to happen to address this. And when we do this, we're doing it to our own LAN. And it affects our own bandwidth, and the bandwidth of any roommates -- who most likely know what's going on, and agree to it. (After all, it's not as though it's going to slow the torrent by much.)

    However, when service providers complain about the negative effects of millions of people using P2P on their backbones, and take action to correct this, same said slashdot geeks get their panties in a bunch and cry fowl. Cry "bird"? WTF?

    More seriously: Me shaping my own traffic is very different from someone else shaping my traffic against my will.

    To borrow another poster's analogy:

    I have no problem with choosing what kind of food I eat. If I had kids, I'd have no problem choosing what kind of food they eat.

    I would very much not like the grocery store to choose what kind of food is best for everyone.

    Fortunately, it's in the grocery store's best interest to give customers what they want. For some reason, ISPs think it's not in their best interest to do the same.
    --
    Don't thank God, thank a doctor!
  9. Re:QoS? by h3llfish · · Score: 3, Insightful

    Ah yes... security through obscurity. You better hope that this "apple" stuff never catches on, or someone might decide it's worth the trouble to write a virus to go after the smug snotty douchebags of the world.