Slashdot Mirror


P2P Traffic Shaping For Home Use?

An anonymous reader writes "My housemate uses an aggressive P2P client, that when in use makes the Internet unusable for everyone else connected to the network. After hearing about various ISPs shaping traffic to reduce P2P traffic, I was wondering if there was a solution for managing P2P traffic on a home network. I have a Linksys WRT54G available for hacking. Can Slashdot recommend a way to reduce the impact of P2P on my network and make it usable again?"

288 comments

  1. Need more input! by UncleTogie · · Score: 2, Insightful

    I have a Linksys WRT54G available...

    Which version? Check the model tag, it should say there...

    --
    Don't tell me to get a life. I'm a gamer; I have LOTS of lives!
    1. Re:Need more input! by Divebus · · Score: 4, Funny

      Simple - take a BIG HAMMER to his computer.

      --

      Most of the stuff on /. won't survive first contact with facts.
    2. Re:Need more input! by Anonymous Coward · · Score: 0

      Can you expand on this? Something like "if the version happens to be xxx then you could do foo, if the version happens to be yyy then you could do bar..." Surely you don't just want to solve this guy's problem, but you want to tell everything you know about "P2P traffic shaping for home use" and be useful to more people.

    3. Re:Need more input! by UncleTogie · · Score: 4, Informative

      Can you expand on this? Something like "if the version happens to be xxx then you could do foo, if the version happens to be yyy then you could do bar..."

      Good point. How 'bout a wikipedia link for the WRT54G, with entries on available firmware?

      --
      Don't tell me to get a life. I'm a gamer; I have LOTS of lives!
    4. Re:Need more input! by mrsteveman1 · · Score: 5, Informative

      Any WRT54G model before v5 can be modified easily, v5+ can sometimes be modified with DD-WRT. And of course they still sell the GL, which is quite worth the price ($60 on amazon) because of how useful it becomes with this alternate firmware. The GL can also be modified and has the advantage of still being sold under a clear model number, so you know you can mod it, unlike others.

      On the other hand, there is awesome shaping available in tomato firmware, it can classify traffic and show you what percentage of your traffic was in each class.

      http://www.polarcloud.com/img/ssqosc108.png
      http://www.polarcloud.com/img/ssqosg108.png
      http://www.polarcloud.com/tomato

    5. Re:Need more input! by garbletext · · Score: 1, Informative

      To hack a wrt54g, you either need an old one (v1-3, I believe) or the hacker friendly WRT54GL. The newer versions don't run linux.

    6. Re:Need more input! by srlapo · · Score: 2, Informative

      I have a Linksys wrt54g v8 and it has some good QoS options with the native firmware. You can restrict usage and bandwith by mac address, by the ethernet port your roomie's computer is connected to, or even the classic, by the tcp port. You can also set or deny different services depending on the time of day, and computer using them too.

    7. Re:Need more input! by morari · · Score: 2, Informative
      DD-WRT can be flashed onto just about any WRT54G nowadays. You loose a few features with the newer version though, as the storage space isn't as large as it once was.

      For the tiny bit of extra money however, the GL is definitely worth it in terms of hacking.

      --
      "He who can destroy a thing, controls a thing." --Paul Atreides, Dune
    8. Re:Need more input! by Shakrai · · Score: 5, Informative

      but you want to tell everything you know about "P2P traffic shaping for home use" and be useful to more people.

      This won't be directly helpful to the submitter (he's working with a WRT54G), but this is how I do it in Linux. Set up the shaping rules with tc. Classify traffic with iptables. Examples follow:

      (in /etc/ppp/ip-up -- would likely be rc.local or similar file for a cable modem user who doesn't use ppp)

      # ADSL connection is 832,000 bits/s on upload.
      #
      # We rate limit to 632,320 bits/s (76%) to account for ATM/PPPoE/IP protocol overhead.
      #
      # This is broken up as follows:
      #
      # 72,000 bits/s for TCP Acks (keep our downloads fast even if upload is pegged)
      # 35,000 bits/s for interactive packets (icmp echo/reply, tcp syns, network time protocol, small ssh packets -- only small ones so we don't prioritize scp transfers)
      # 236,500 bits/s for priority traffic (traffic to my work VPN)
      # 236,500 bits/s for normal traffic (this is the default)
      # 35,000 bits/s for low priority traffic (udp trackers in bittorrent)
      # 35,000 bits/s for idle priority traffic (bittorrent uploads)

      /sbin/tc qdisc add dev $1 root handle 1: htb default 50
      /sbin/tc class add dev $1 parent 1: classid 1:1 htb rate 632320bit ceil 632320bit
      /sbin/tc class add dev $1 parent 1:1 classid 1:20 htb prio 1 rate 72000bit ceil 632320bit quantum 1454
      /sbin/tc class add dev $1 parent 1:1 classid 1:30 htb prio 2 rate 35000bit ceil 632320bit quantum 1454
      /sbin/tc class add dev $1 parent 1:1 classid 1:40 htb prio 3 rate 227660bit ceil 632320bit
      /sbin/tc class add dev $1 parent 1:1 classid 1:50 htb prio 4 rate 227660bit ceil 632320bit
      /sbin/tc class add dev $1 parent 1:1 classid 1:60 htb prio 5 rate 35000bit ceil 632320bit quantum 1454
      /sbin/tc class add dev $1 parent 1:1 classid 1:70 htb prio 6 rate 35000bit ceil 632320bit quantum 1454

      /sbin/tc qdisc add dev $1 parent 1:20 handle 20: sfq perturb 10
      /sbin/tc qdisc add dev $1 parent 1:30 handle 30: sfq perturb 10
      /sbin/tc qdisc add dev $1 parent 1:40 handle 40: sfq perturb 10
      /sbin/tc qdisc add dev $1 parent 1:50 handle 50: sfq perturb 10
      /sbin/tc qdisc add dev $1 parent 1:60 handle 60: sfq perturb 10
      /sbin/tc qdisc add dev $1 parent 1:70 handle 70: sfq perturb 10

      In order, those commands establish a htb scheduler with a celing of 632,320bit/s (you have to set this around 70-80% less than your actual upload to force the packets to queue at your box and not the dsl/cable modem), then establishs children underneth it for each class of traffic. The children will get AT LEAST the specified rate and when extra is available will borrow it according to their priority number. Prio 0 gets all extra bandwidth until satisifed or no more exists, then prio 1, prio 2, etc, etc.

      The second set of commands attaches a fair queuing algorithm so individual connections within those classes will share the bandwidth (more) fairly.

      From there it's just a matter of using iptables to classify the traffic. This example shoves all bittorrent traffic into the lowest queues. We assume that anything coming from 172.25.42.254 is bittorrent traffic because we add that as a second IP address on the client behind NAT and make Azureus bind to that IP (all other traffic goes out on the default IP).

      iptables -t mangle -N LOW
      iptables -t mangle -N IDLE
      iptables -t mangle -A LOW -j CLASSIFY --set-class 1:60
      iptables -t mangle -A LOW -j RETURN
      iptables -t mangle -A IDLE -j CLASSIFY --set-class 1:70
      iptables -t mangle -A IDLE -j RETURN
      iptables -t mangle -A FORWARD -p udp -s 172.25.42.254 -j LOW
      iptables -t mangle -A FORWARD -p udp -s 172.25.42.254 -j RETURN
      iptables -t mangle -A FORWARD -p tcp -s 172.25.42.254 -j IDLE
      iptables -t mangle -A FORWARD -p tcp -s 172.25.42.254 -j RETURN

      Those commands

      --
      I want peace on earth and goodwill toward man.
      We are the United States Government! We don't do that sort of thing.
    9. Re:Need more input! by STrinity · · Score: 2, Interesting

      Model number doesn't really matter -- go into the router configuration, assign his computer a permanent IP on the LAN, then block the common P2P ports for his IP. Then password lock the router and stuff some gum in the reset button.

      --
      Les Miserables Volume 1 now up with my reading of
    10. Re:Need more input! by djdavetrouble · · Score: 2, Funny

      I was thinking electromagnet for some traffic shaping...
      Heeeeeere data data data.....

      --
      music lover since 1969
    11. Re:Need more input! by mrmeval · · Score: 3, Informative

      I had a REV 8 linksys and it would be perfect as it LOCKS up on max bandwidth. The internal webserver also crashed and it won't take open source firmware. I got a good one when I bought a Buffalo that rocks, just before a texas judge stopped their product from being sold here.

      DD-WRT would do that easily. It can do it to wireless as well. Look for a compatible router, preferably one that can take a full install and strangle their link. ;)

      http://www.dd-wrt.com/

      --
      I'd go on a Vegan diet but the delivery time from Vega is too long. --brownkitty
    12. Re:Need more input! by Anonymous Coward · · Score: 0

      Much easier. Plug into Comcast.net, they will "trim his sails".

      Ask him to trottle it during rush hours, like 7~10 am and 4~10 pm...otherwise, clip his wings...damn web hog

    13. Re:Need more input! by Spokehedz · · Score: 1

      It actually dosen't matter anymore. DD-WRT works on all HW revisions of the device now--albeit with quite a bit reduced functionality on the later builds... But QoS is not one of them.

      Flash. Enable on the LAN+WAN side, and your golden.

    14. Re:Need more input! by mrsteveman1 · · Score: 1

      Those v8s have bad antennas, and they seem to crash a lot with native firmware.

    15. Re:Need more input! by Charcharodon · · Score: 2, Funny

      I took the BIG Hammer to the roommate, nothing wrong with the computer.

    16. Re:Need more input! by Anonymous Coward · · Score: 1, Informative

      i used to have a wrt54gl and it's a great router. there is a good chance if you don't know the L is on the model name and the router was bought within the last year it's the crummy non-moddable version, but in case it is, i highly recommend tomato firmware, it pretty much sorted out my network sharing problems with a flatmate who streamed video constantly clogging up the unlimited 512kbps line i had set up. once i was running tomato and downgraded his QoS priority everyone else (me and the other flatmate) were able to consistently get fair access to the bandwidth.

      btw i am posting this as an anonymous coward because for some reason i can't recover my account.

    17. Re:Need more input! by Anonymous Coward · · Score: 0

      If you'd like to see all of my iptables rules I'd be happy to e-mail them to people. Post a reply with your (obfuscated) e-mail address and I'll send them over to you. Thank you. I would like to see your iptable rules.

      dcook(at)t-online(dot)de(delete.this)
    18. Re:Need more input! by mrbooze · · Score: 2, Insightful

      If for whatever reason you don't feel like taking the time to properly classify the problem packets, or if said housemate might be someone inclined to try and sneak around such things by tweaking his bittorrent settings, one simpler approach is to make all traffic lowest priority by default, and then you specifically define the important traffic to be higher priority. Just don't forget the really important stuff but sometimes less obvious stuff like DNS traffic.

      Of course if you REALLY want to simply deal with just the housemate, you could always identify his traffic by his MAC address and just bump all of his traffic down to low priority.

    19. Re:Need more input! by garbletext · · Score: 1

      I did not know that. Thanks.

    20. Re:Need more input! by silanea · · Score: 1

      el[underscore]scheffe[at]gmx[dot]net

      --
      Rudolf Hess edited Mein Kampf. He was the very first grammar nazi.
    21. Re:Need more input! by AngelofDeath-02 · · Score: 1

      I am also interisted in studying them, if you don't mind =)

      r o m m y 0 2 (at) g m a i l (dot) c o m

      Many thanks.

      --
      No, I am not an English major. My posts are subject to typos and incorrect grammar. Do not expect perfection.
    22. Re:Need more input! by Anonymous Coward · · Score: 1, Informative

      I can attest to the firmware aspect, the attenas aren't the issue, it's the firmware's bugginess that kills it. Open Source Firmware fixed that problem for me.

    23. Re:Need more input! by hasdikarlsam · · Score: 1

      Parent is not making a joke

      See this

    24. Re:Need more input! by 0xygen · · Score: 1

      I run X-WRT / OpenWRT on a WRT54G, which pleasingly is Linux 2.2 based and certainly has full IPTables support!

      (The 2.4 based OpenWRT seems to have a problem with the WiFi card - anyone know more?)

    25. Re:Need more input! by cciRRus · · Score: 1

      WRT54G hardware versions 1 to 4 are more "hackable" than the rest because of the larger NVRAM. But note that version 7 is not supported. Refer here for the details.

      By the way, DD-WRT v.24 was just released on 24 May 2008. Check it out!

      --
      w00t
    26. Re:Need more input! by Zevlag · · Score: 0

      I'd also appreciate your full tables... josh a t zevlag . com

    27. Re:Need more input! by morari · · Score: 1

      I did not realize that version 7 wasn't supported. That's surprising, considering I just did a version 8 router for someone.

      --
      "He who can destroy a thing, controls a thing." --Paul Atreides, Dune
    28. Re:Need more input! by tzanger · · Score: 1

      Interested in seeing your script to compare to my own... akohlsmith.mixdown@ca please.

    29. Re:Need more input! by philgross · · Score: 1

      I'd also like to see them. (phil) at \1gross.com (backreference)

    30. Re:Need more input! by ahfoo · · Score: 1

      I had a similar problem with my wife being unable to send through Gmail being the problem. I had tried HTB and had some success, but it wasn't like an astonishing difference. My router, by the way, is an PII running Knoppix.

      Anyway, I was getting quite desperate for a solution and I kept playing with wonder shaper from the Linux Documentation Project Advanced Routing Howto. It seemed like it helped a lot and I was sure I had the upstream queue issue under control but it wasn't all that I had hoped for.

      Then finally I was taking heat from the wife again on the stupid Gmail upload thing and I started poking around for newer info. I came across this Gentoo tutorial that modified the original wonder shaper script. I modified it pretty heavily for my own situation and added some other stuff for port forwarding and kaboom, I got huge results. My downstram quadrupled and my latency dropped off like crazy. You can do shaping at home. It is a tempermental bitch though and I'm still constantly goofing with it.

      Anyway, here's the link to the Gentoo script that basically changed my world. Works perfect with a copy of Knoppix 5.0. If I run it on my P2 266 with 384 megs of RAM it shows PPOE eating thirty percent of the CPU when I go over 4mbps downstream so it's doing something and the results are very obvious. It's like day and night. In fact, I had the server overheat last week and I had to get a new CPU. I may go with a beefier machine if I fry this replacement CPU. I had always assumed that a router didn't require much resources but this thing is clearly doing real work and producing real results.

      http://gentoo-wiki.com/HOWTO_Packet_Shaping

    31. Re:Need more input! by Anonymous Coward · · Score: 0

      Use esfq instead. Enables you to add fairness using only one tc command and no mangling needed. Put openwrt on your linksys and install the required packages. Google for the details. I am to lazy to add these.

  2. It's simple with OpenWrt by Anonymous Coward · · Score: 3, Informative

    Install OpenWrt, then:

    ipkg install qos-scripts
    vi /etc/config/qos
    [ enter your linespeed in the right place ]

    qos-start

    1. Re:It's simple with OpenWrt by corsec67 · · Score: 5, Informative

      Or install Tomato and go to the QOS tab. It is pretty simple to get QOS going on Tomato

      --
      If I have nothing to hide, don't search me
    2. Re:It's simple with OpenWrt by Anonymous Coward · · Score: 0

      I think by 'hacking' this person means going to the user interface on the router and making port 80 high priority.....

    3. Re:It's simple with OpenWrt by Moridineas · · Score: 1

      Seconded on tomato--really great dist!

    4. Re:It's simple with OpenWrt by Gulthek · · Score: 1

      I find the webif interface to openwrt to be even better.

      QoS Setup screenshot

    5. Re:It's simple with OpenWrt by nutbar · · Score: 1

      I second this. I was using ddwrt for years, and the QoS never worked properly. I switched to Tomato, and it all worked. Solid as a rock as well.

  3. How about ask? by Alioth · · Score: 5, Insightful

    How about just nicely explaining the problem to him, and requests he runs his P2P stuff overnight when no one is using the connection?

    If that doesn't work, well, his port on the switch might mysteriously fail during waking hours.

    1. Re:How about ask? by kesuki · · Score: 3, Informative

      as opposed to using traffic shaping, you can force the guy to switch clients to azureus http://azureus.sourceforge.net/

      in advanced mode, you can set upload and download maximums, if you plan on allowing this, and using latency specific online gaming, you should set the limits to HALF of what azureus is capable of without anyone using the internet.

    2. Re:How about ask? by Vectronic · · Score: 2, Informative

      That would be my suggestion aswell...

      Besides, whatever client he is using, must have its own throttle, tell him/her to set it to like 75% of what the line can handle.

      Some have timers too, so it can be 50/50 during multiple use, and 100% when he's the only one. Which is far easier than tweaking/hacking something you don't really use that often, and you may want to allow other software to use 100% (or as much as possible) on his machine (file sharing over the network, etc).

    3. Re:How about ask? by nine-times · · Score: 1

      Right. In fact, many P2P applications (at least bittorrent stuff) allows you to set max up/down rates. These can even be set on-the-fly, meaning you could let them download full-speed most of the time, but ask them nicely to throttle back when you're using the Internet. You know, like "Hey man, I'm trying to do something online, could you drop down to 20kbps for the next few hours?" Or whatever. Find a bitrate that won't hurt your usage

      Unless your roommate is completely unreasonable, he'll go along with it. If your roommate is entirely unreasonable, you might want to consider not living with him.

    4. Re:How about ask? by Joe+The+Dragon · · Score: 1

      utorrent can do the same with 50% or more less cpu load.

    5. Re:How about ask? by Anonymous Coward · · Score: 0

      That would require communication skills. I live in a nerd-pad with two other anti-social nerds and stuff like this is a constant problem. Roommate X is annoyed at Roommate Y for whatever reason, but rather than just say it plainly, he goes to Roommate Z to whine about it.

      Is it really a problem? Well, if it is, then it shouldn't be too big of a deal to talk about it, and get the problem solved.

    6. Re:How about ask? by Anonymous Coward · · Score: 0

      Limiting the bandwidth isn't enough. In my experience, you need to limit the number of connections (say, 16 per torrent and 64 total) as well. Also, EtherApe is good to help explain the problem, and if everything else fails, APR poisoning is a way to prevent abuse without leaving any traces on the router.

    7. Re:How about ask? by hemorex · · Score: 1

      What I did to correct the same issue was to preset an access policy that totally banned the wife's IP. When I start seeing lag spikes in WoW, I just enable that policy for a minute or two... works like a champ, heh.

    8. Re:How about ask? by urbanriot · · Score: 1

      Please cite examples of uTorrent using 50% less CPU load than Azureus. And please, not 'omg lawl' forum posts by uTorrent fanboys.

    9. Re:How about ask? by SScorpio · · Score: 1, Interesting

      I can't comment on Azureus's CPU load, but I've seen Azureus go over 2GB of memory addressed, and running the same torrents in uTorrent uses 16MB of memory.

    10. Re:How about ask? by Anonymous Coward · · Score: 0

      This is obviously the best solution. Just have him agree to run some kind of bandwidth throttler on his machine that will keep the upstream use to a reasonable volume. It doesn't really matter what kind of QoS you use if the issue is one of throughput and not latency...

    11. Re:How about ask? by Anonymous Coward · · Score: 0

      I call complete bullshit.

      I've been running Azureus since v1 and I typically host about 200 - 300 torrents at steady rates of speed and I typically hover around 200MB RAM. Azereus is excellent on resources

      On my work computer right now, I have 60 torrents actively downloading and uploading, and I'm at a typical 100MB.

    12. Re:How about ask? by story645 · · Score: 1

      Sure-I use azureus on my desktop, but refuse to throw it on my laptop 'cause it keeps freezing up my poor desktop. But I'll switch CPU for memory usage (just 'cause I can't get anything good on clock cycles) using task manager: uTorrent- 3,984K (and the actual program is only .54MB-important on a storage starved system) Azureus-about 4/5 cycles, approx 55k memory(11.31mb)

      --
      open source modern art: laser taggi
    13. Re:How about ask? by story645 · · Score: 1

      Sure-I use azureus on my desktop, but refuse to throw it on my laptop 'cause it keeps freezing up my poor desktop. But I'll switch CPU for memory usage (just 'cause I can't get anything good on clock cycles)

      using task manager:
      uTorrent- 3,984K (and the actual program is only .54MB-important on a storage starved system)
      Azureus-about 4/5 cycles, approx 55k memory(11.31mb)

      --
      open source modern art: laser taggi
    14. Re:How about ask? by HansF · · Score: 1

      Also keep an eye out for the number of concurrent connections.

      --
      --> Insert Funny Sig Here
    15. Re:How about ask? by Chemisor · · Score: 2, Insightful

      > How about just nicely explaining the problem to him

      This is not about discourtesy, it's about P2P's tendency to grab all the available bandwidth. I would, for one, like to have my browser's requests prioritized over my torrent traffic, so I could browse the net at a reasonable rate while downloading. Yes, I can set rate caps in uTorrent, but that is not the ideal solution because it leaves the network underutilized. My browser does not require much bandwidth, it requires latency, which is what the poster was asking for.

    16. Re:How about ask? by Anonymous Coward · · Score: 1, Informative

      Usually such issues come from the asymetric lines you get stuck with from ISPs.
      Using full bandwidth up will congest your downstream. It can be solved with a very simple cap on upload, limiting it to 80-90% of max upload bandwidth. No need to go high-tech on his ass.
      Symetric lines do not exhibit these issues, atleast not so noticably.

    17. Re:How about ask? by Anonymous Coward · · Score: 0

      I live in a nerd-pad with two other anti-social nerds and stuff like this is a constant problem. Roommate X is annoyed at Roommate Y for whatever reason, but rather than just say it plainly, he goes to Roommate Z to whine about it.

      No, sorry, that's normal-people behavior. Antisocial nerds prefer to confront problems directly if at all, which is why people see them as antisocial.
    18. Re:How about ask? by SScorpio · · Score: 1

      Call what you will but something was messed up in Azureus's disk caching that was eating all of the RAM on my XP box about two years ago. I switched to uTorrent and never looked back.

  4. Talk to your housemate by Dolohov · · Score: 5, Insightful

    Seriously. An arms race is not going to solve your problem.

    1. Re:Talk to your housemate by ozamosi · · Score: 4, Insightful

      When I use bittorrent, I like to squeeze out as much bandwith as possible. However, I don't like when others get annoyed.

      To fix the annoyance, I would have to limit my bandwidth usage at some times of the day - and I wouldn't just have to limit my usage according to when the other tenants are awake, and according to when they use how much bandwidth, but also according to how much bandwidth my ISP feels like giving me today (my ISP is seriously bandwidth starved).

      If my router had good QoS, I wouldn't have to worry about annoying others, while still being able to use all spare bandwidth. I would definitely prefer this solution.

    2. Re:Talk to your housemate by eli2k · · Score: 2, Informative

      If you are both roommates, and share the Internet, it is unfair for one person to disrupt things such that no one else can access the Internet. Otherwise make him pay for his own line and he can do whatever he wants. You don't all want to get in trouble, right?

    3. Re:Talk to your housemate by Geek+of+Tech · · Score: 1

      Well, starting an arms race and finding out the other guy has you out-gunned: that won't help. Having one that'll knock his socks off though... Well, as that great philosopher once said "They say the best weapon is one you never have to fire. I respectfully disagree. I prefer the weapon you only need to fire once. That's how dad did it, that's how America does it, and it's worked out pretty well so far. -- Iron Man"

      --
      Stop the Slashdot effect! Don't read the articles!
    4. Re:Talk to your housemate by MrZaius · · Score: 1

      Who's to say he hasn't? The subby definitely didn't in his submission. It's a damned good question, too - It would be nice to be able to do something like this at the router level in a home environment rather than having to have the fellow adopt new practices, and would allow everyone in the house a great deal more leeway to use bandwidth-hogging protocols without having to go out of their way to customize the settings of every single application. The question was more than valid.

  5. QoS by llamalad · · Score: 4, Informative

    Just set up QoS such that VOIP, SMTP, HTTP, HTTPS, and whatever else you care about gets prioritized.

    1. Re:QoS by Anonymous Coward · · Score: 0
      So as to your original question of hacking your current Linksys WRT54G to make it viable for such action, I would more than likely say no unless you can reverse engineer Linksys (Cisco) hardware/software.

      Fail.

    2. Re:QoS by bendodge · · Score: 1

      Easy way: load DD-WRT onto your WRT54G and set his Ethernet port to a lower priority than everyone else. (Assuming he's using Ethernet.)

      --
      The government can't save you.
    3. Re:QoS by Easy2RememberNick · · Score: 2, Funny

      Lock down the router with a password and then put epoxy or superglue over the router reset button. If it's already protected reset it, put your own password there and then do all that.

        Even better hide the router inline where the cable comes into the house, they'll never know ;)

        FYI DD-WRT or Tomato are two good router firmware replacements.

    4. Re:QoS by garbletext · · Score: 1

      If your provider is Comcast this will not work. Comcast is my provider in two geographically disparate locations ans so much as running a torrent at very low speeds will destroy my connection in both places.

    5. Re:QoS by zakeria · · Score: 1

      QOS only works if everybody uses it and most networks servers even client PCs don't. It's a cooperative feature!

    6. Re:QoS by walshy007 · · Score: 1

      incorrect, putting qos upstream on a line effects everyone using said line. it has nothing to do with bittorrent etc at all, works with any sort of traffic going over a line.

    7. Re:QoS by Skylinux · · Score: 1

      Comcast is my provider in two geographically disparate locations ans so much as running a torrent at very low speeds will destroy my connection in both places. What are your maximum connections set to?

      It is no surprise to me that ISPs get pissed at us using torrent software, all torrent clients are set to full throttle at all times and the "average user" does not know how to reconfigure the settings to nicer values.
      If file sharing software providers would preconfigure their software to more liberal default settings we might not be in the torrent hating mess we are in right now and if you have enough bandwidth to really run a full speed you would know how to change the settings to be more aggressive....

      I always configure my programs to use 10KB/s up .... sometimes 15KB/s but never more. Dowloads are usually set to a max of 100KB/s to 160KB/s down.
      Maximum connections for all torrent should be below 500, some connections only support 150-300 connections before the Internet connection becomes useless.
      With these values surfing still works without feeling slow, give it a try.
      --
      Everyone who buys Wild Hunt will receive 16 specially prepared DLCs absolutely for free, regardless of platform.
    8. Re:QoS by Anonymous Coward · · Score: 0

      A pure priority based approach only works well when you can control both directions. This is not possible on most home Internet connections (You do not control the ISP end). So you must use bandwidth limiting instead.

    9. Re:QoS by horatio · · Score: 1

      I had a roommate who I would have to go into his room and turn off his computer because he would leave the house with some P2P client running, sucking up all the bandwidth for the rest of us.

      The same roommate didn't know how to do laundry - he would cram 3 or 4 loads into the basement washer that I owned, putting excess strain on the drum motor, etc. Then he would move it all to the dryer - the whole tumble thing really didn't work because there was no room. He was confused when he had to run the dryer for half a day to get his clothes dry. I finally gave up talking to him about it and installed a hidden toggle switch between the breaker panel and the washer's outlet. When anyone besides him needed to use the washer/dryer, I would just turn the switch on for a while.

      He was pretty pissed, but by that point I didn't really care. I'd just had enough of him abusing my stuff. Bandwidth is shared. If your housemate won't play nice, then maybe one of these is in order.

      --
      There is very little future in being right when your boss is wrong.
    10. Re:QoS by zakeria · · Score: 1

      so you prove my point only the people behind the router get the benefit! and is still pointless if all the bandwidth is being used anyhow?

    11. Re:QoS by walshy007 · · Score: 1

      your thinking of people saturing a bandwidth of an isp, and not in terms of a line you have from them. aren't you?

      think of it in terms of say, couple people on a lan trying to download an iso from ftp, both connections fully saturating the line. now, third person on a lan tries to google something, but his connection is slow as a bitch because of the other two, even though he's using a minimal amount of the line in question. QOS would solve this in one of several ways, either by always giving http traffic higher precedence, or giving each user a gauranteed minimum of the whole connection speed (more if others aren't using it)

      I'm sorry my prior post did not clear up the meaning of what it is about to you. I fear this one won't either, but at least I'll try.

      Also an isp itself should never hit 100% usage of a big pipe, moment it does shit would hit the fan in regards to latency with some things.

    12. Re:QoS by garbletext · · Score: 1

      I've been a bittorrent user since Bram Cohen released the protocol. I'm well above average technically , and actually wrote a miniature bittorrent client as a school project a few years back. My 8Mbit connection has worked flawlessly for years with Bittorrent, regularly allowing me to set my up speed to over 100kB/s while having a usable web experience. Since Comcast's throttling started, I can set max connections to 10, max up to 1kB/s and max download to 10 kB/s. Running a single torrent with these settings renders web browsing literally unusable and stops my digital phone from working at all. This is true with 6 different clients on 3 different OSes. Are you familiar with how Comcast treats bittorrent connections? It's not just throttling.

  6. In the days of Napster by eric76 · · Score: 4, Funny

    In the days of Napster, a nephew of mine spent a year living with me while going to college nearby.

    His use of Napster would make the cable modem connection unusable. In response, I'd go to the home firewall device (had one of the early Linksys models) and block the traffic.

    He thought the cable company was doing it.

    1. Re:In the days of Napster by Leonard+Fedorov · · Score: 1

      Genius! Set up filtering of your own, and then subtly steer the blame to the ISP. As long as he doesn't check the settings that should work. Of course, you could try talking to him, but then if he refuses it ruins the credability of the above plan somewhat.

    2. Re:In the days of Napster by Anonymous Coward · · Score: 5, Funny

      Of course, you could try talking to him, but then if he refuses it ruins the credability of the above plan somewhat. Not at all. After he refuses to talk about it, you block his traffic then when he says something's up you say "Shit! I tried to talk to you about this but you wouldn't listen. I knew this would happen. The Cable Company must be fucking with our access. They've probably told the police too! Right... you hide in the attic until this blows over. I'll say you've fled to Brazil or something."
    3. Re:In the days of Napster by im_thatoneguy · · Score: 1

      Screw credibility. Cut his Internet and let him know who did it. If he doesn't want to play fair and cooperate with the person accommodating him he can get his own Internet.

      One of the drawbacks of what I would suspect is really cheap rent is you have to be considerate of those who are helping you out and not be an ass.

      My roomate and I were both very aware of the effects of P2P. If one of us wanted to use the net and it was slow we just knocked on the other's door and let them know we needed more bandwidth. It was very intelligent packet shaping. If you noticed a problem, you throttled, if you didn't notice you let it be.

  7. I hate these posts... I thought this was a news bl by Anonymous Coward · · Score: 0

    A few seconds of Googling will take you to dd-wrt.

  8. Obvious by Anonymous Coward · · Score: 5, Funny

    Beat the shit out of the fucker.

    1. Re:Obvious by Ice+Wewe · · Score: 1

      Alternative to physical action, you could always send a bunch of emails from a bogus return/sender email address (like that of your ISP) claiming to be a copyright holder who will sue the pants off him if he continues.

      Or, you could just prioritize traffic from everyone else's MAC addresses.

    2. Re:Obvious by f_raze13 · · Score: 1

      Umm... this is slashdot. The average reader doesn't have the strength to do a sit-up, much less beat the crap out of someone.

    3. Re:Obvious by Anonymous Coward · · Score: 1, Insightful

      Yeah! Too many geeks lack the basic social skills. Technical solution isn't required just tell him to stop using it.

    4. Re:Obvious by Anonymous Coward · · Score: 0

      ... says the Anonymous Coward.

    5. Re:Obvious by Anonymous Coward · · Score: 0

      Nonsense. We are fully capable of beating the shit out of someone.

      In fact, my resilience is over 400, and I just achieved breaking my personal record of 2100 Arena rating yesterday.

    6. Re:Obvious by Anonymous Coward · · Score: 0

      Yes, DoS works.

    7. Re:Obvious by DarkWicked · · Score: 1

      Exactly... Why go through the painful technical process of shaping P2P traffic when you can just shape the fuckers face with your foot.

    8. Re:Obvious by Demerara · · Score: 1

      Amen.

      I like the elegant simplicity of this solution.

      --
      Backward%20compatibility%20is%20over-rated
  9. Is this geek bait? by Anonymous Coward · · Score: 0

    Come on. Use the Internet. In less than a minute Google had the answer.

  10. Man up! by zogger · · Score: 3, Insightful

    Tell this person to stop being a hog and to drop upload and download speeds so that other people can use the net. This is a social problem that doesn't need a techno fix. Either that or tell them to get their own connection, stop sharing it with them.

    1. Re:Man up! by gnud · · Score: 1

      As I understand QoS routers, they should be able to prioritize traffic in such a way that browsing stays responsive while p2p is only minimally slower. And as I understand the OP, the question was "what is the best way to do this". I clicked on the "read more" button because I, too, wonder about this.

      In typical Slashdot fashion, half the answers (including yours) have been "You're an idiot. I understand your problem much better than you". Thanks a lot for being so helpful.

    2. Re:Man up! by guy5000 · · Score: 1

      use your neighbor's open wi-fi conection

  11. DDWRT gives you a GUI then you can.... by WayCool · · Score: 1

    Set up QoS, set bittorrent protocol to Bulk and everything else to standard. If you are using VoIP, you might want to set it [VoIP] to Premium.

    All done through a simple GUI interface. Enjoy!

    1. Re:DDWRT gives you a GUI then you can.... by Anonymous Coward · · Score: 0

      Although the GUI looks nice, the DD-WRT QoS doesn't really work in practice

    2. Re:DDWRT gives you a GUI then you can.... by schnikies79 · · Score: 3, Informative

      Yea, I finally gave up on DD-WRT. It was unstable and a resource hog. Tomato is a MUCH better option if you want a web gui.

      My pings dropped 10ms and the QOS actually works.

      --
      Gone!
    3. Re:DDWRT gives you a GUI then you can.... by garbletext · · Score: 1

      +1, absolutely true. Tomato is awesome.

  12. get a PC with smoothwall linux by kesuki · · Score: 2, Informative

    you can put it between the router and the net if you're using the wireless capabilities.

    a forum about traffic shaping with smoothwall

    http://www.linux-noob.com/forums/index.php?s=dffc19493975498724b50564217f05e4&showtopic=3250&pid=11502&st=0&#entry11502

    smoothwall linux
    http://www.smoothwall.org/

    1. Re:get a PC with smoothwall linux by linzeal · · Score: 1

      I agree the only thing I use my router for is NAT. There is nothing like a good firewall, QOS and caching proxy and you are not going to get that on a consumer grade router. Smoothwall is a decent way to start out but you can get addicted and soon be trying a more custom solution. For a lot of people it is their introduction to system management.

    2. Re:get a PC with smoothwall linux by gobbo · · Score: 1

      Linksys WRT54GL: $60
      Tomato firmware update, plus config: 2 hours.

      Oldie but goodie PC: $60 + energy hogging
      linux, smoothwall: 5 hours
      router: $40 + config time.

      Difference in function: negligible for almost any home user... except the frankenlinksys will run for hours on a UPS, let you tweak your wireless output, cost less TCO, be silent, last longer, take less space, less brainpower, and less time, and be generally a more elegant and efficient solution for the OP.

      Oh yeah, and it's still linux.

    3. Re:get a PC with smoothwall linux by binaryspiral · · Score: 1

      5 hours to setup smoothwall?

      What took you so long? I had mine up and running in less that 30 minutes for the time I burnt the iso.

      And that's with two dual port nics and four networks to setup.

    4. Re:get a PC with smoothwall linux by linzeal · · Score: 1

      I think I could setup an OpenBSD firewall in 5 hours.

    5. Re:get a PC with smoothwall linux by gobbo · · Score: 1

      What took you so long? I had mine up and running in less that 30 minutes for the time I burnt the iso. OK, it was more like four.
      I had to find out about it, download it, burn it, read about it, pull out the old pc and look it over, find a second nic and put it in, install, fiddle. I actually had to read the documentation, it's more involved than Tomato and I ran into a couple of glitches (ok I'll turn in my geek card now). It was a project, and I timed from actual start to finish... and I got lucky hearing and learning about Tomato, so that went quickly.

      I'm sure you're eliding some of the actual time you spent, people usually do.
  13. IpCop with Layer 7 Filter by BlueHabu · · Score: 1

    Works Great but took some work to get it all setup IpCop 1.4.18 QoS Kernel QoS NG 1.5.1 I had to modify some code to get the filter rules to update off of sourceforge.

  14. Anonymous Coward by Anonymous Coward · · Score: 5, Funny

    Switch to Comcast!

    1. Re:Anonymous Coward by OMNIpotusCOM · · Score: 1, Funny

      LOL. You win, thread over.

    2. Re:Anonymous Coward by athdemo · · Score: 1

      Wish I had mod points for this one.

    3. Re:Anonymous Coward by Anonymous Coward · · Score: 0

      Amen to that. I have comcastian friends... One has personally had throttling problems. I'm on Bellsouth, and it sucks too because they're just TOO EXPENSIVE, THE PROFITEERING CAPITALIST GLUTTONS.

      [hammer.sickle.svg]

      -th0r-
      http://hellboundhackers.org/profile/thorsdecree.html

  15. QoS by Anonymous Coward · · Score: 0

    What your looking for is a quality of service router (duuurrrr) and they generally come with specific hardware or software (usually) to classify and queue your local network packets.

    So as to your original question of hacking your current Linksys WRT54G to make it viable for such action, I would more than likely say no unless you can reverse engineer Linksys (Cisco) hardware/software.

    Easy solution? Go buy yourself a QoS enabled router. I'm currently using a D-Link and am in a similar situation as you and I have to admit that it has saved me a LOT of grief. I can download at 1MB/sec and still have 30 ping to my favorite CoD4 server.

    -Anon Coward

  16. 1st off by atarione · · Score: 5, Informative

    a. 1st off and most importantly make sure the internet connection isn't in your name so you are not the one who gets sued by the RIAA b. go get DD-WRT (check your WRT54G version..later one's suck) then set up the traffic shaping QoS feature. http://www.dd-wrt.com/wiki/index.php/Quality_of_Service

    --
    actually I am happy to see you, however that is in fact a banana in my pocket.
    1. Re:1st off by atarione · · Score: 2, Insightful

      also... sorry should have thought of this before posting have u tried asking them nicely to configure their p2p client(s) in a more neighborly manner?

      --
      actually I am happy to see you, however that is in fact a banana in my pocket.
    2. Re:1st off by gEvil+(beta) · · Score: 1

      I've never used it, but I just thought I'd mention that the default WRT54G firmware from Linksys also has QoS settings that can be adjusted. I'm sure they're far more basic than what you'd get from some of the third party firmwares, but it's worth trying out for starters.

      It sounds like the OP didn't even begin looking into any solutions before crying to slashdot with his roommate problems.

      --
      This guy's the limit!
  17. Buy another Linksys and link them. by ITIL+Prince · · Score: 2, Interesting

    My Linksys WRT54G is notorious for getting slower and slower over time when we use P2P here at the house. I found that rebooting it every day helped. Not even DD-WRT made that problem go away. I think the Linksys just didn't have enough "oomph" to do traffic shaping. There's an interesting solution I came up with - buy a second Linksys and flash it with DD-WRT. Turn on traffic shaping for all ports. Use the second Linksys as your Internet facing router, and leave the default firmware on it, but define the second Linksys as your DMZ system. It works, and for some reason the first Linksys doesn't need to be rebooted all the time.

    --
    -Somebody stole this sig.
    1. Re:Buy another Linksys and link them. by Angry+Rooster · · Score: 3, Informative

      When I bought a WRT54G I had the same problem... mine is v6. Apparently after v4 Linksys(or more accurately Cisco, who owns them) lowered the internal memory to lessen the effectiveness of third party flashing. Unfortunately in doing so, they made their routers horrible. There isn't enough memory to hold larger IP tables, so bittorrent traffic and the like bogs it down until it needs a restart. DDWRT helps a little, in that you can schedule restarts to go every hour or so, but the sporatic connection is less than ideal. My solution was similar to the above. I just used my older model wired Linksys router to handle all the IP routing and set the WRT54G(with DDWRT) as a pass-through device. It's unfortunate that they felt like crippling a perfectly useful router just because free firmware made it competitive with their high end products.

    2. Re:Buy another Linksys and link them. by Anonymous Coward · · Score: 0

      the WRT54g defaults to an extremely small maximum number of allowed connections. With older firmwares, the connection tracking table would fill up quickly, and the thing would crash. In DD-WRT, you can bump up the number of allowed simultaneous connections, and that seems to fix the slow down problems.

    3. Re:Buy another Linksys and link them. by ydrol · · Score: 3, Informative
      > lowered the internal memory to lessen the effectiveness of third party flashing

      My understanding is the motivation was primarily cost. VxWorks runs on less hardware, and presumable the amount saved my reduced flash is greater than the per seat license cost for VxWorks?

      >It's unfortunate that they felt like crippling a perfectly useful router just because free firmware made it competitive with their high end products.
      Due to popular demand its back as the WRT54GL

    4. Re:Buy another Linksys and link them. by klui · · Score: 1

      Is it possible to replace the onboard memory with denser ones?

    5. Re:Buy another Linksys and link them. by FuegoFuerte · · Score: 2, Informative

      It's unfortunate that they felt like crippling a perfectly useful router just because free firmware made it competitive with their high end products. Dude... If that were their reason, they wouldn't have come out with the WRT54GL to please all the people wanting to put better firmware on their routers. The reason for lessening the Flash and RAM is simple - They switched OSs. The first WRT54Gs ran Linux. They switched to a smaller, lighter embedded OS (VxWorks). Since it has a smaller footprint, they were able to halve the Flash and RAM, helping them compete in a market primarily made up of cheap bastards. For people who are slightly less cheap, they still make the version with more memory... the GL model is, from what I've read, identical to the v4.0 of the WRT54G. When people aren't willing to pony up the cash for a quality product, manufacturers drop the quality of the product. Consumers don't really care. If they did, you'd still be able to find quality merchandise made in the US at all retailers. Instead, we have disposable crap on the shelves in most of our stores, and people snatch it up. Just wait and see what happens when we go to war with China (and mark my words, we will).
  18. Its called discipline by javab0y · · Score: 1

    Lay down the smack on the family...its the best traffic shaping you can do in the house. Who wears the pants? Not even ComCast can stop traffic like that!

  19. 1. report roomate to RIAA/MPAA 2. collect reward by Anonymous Coward · · Score: 0

    3. profit

    4. problem solved!

  20. QoS is definitely recommended by Lilkat · · Score: 2, Informative

    I have the same issue at home, except I'm the one who is running bittorrent. As of right now, it is not perfect, but it has greatly improved since I started doing tweaks. The first thing I did was install DD-WRT on the router. After that, I maxed the connection limit to 4096 and set the timeout to a low setting, like 5 minutes. From there, I did some modifications to the QoS settings. If a wired connection is used, set his connection to the lowest priority, and the rest to the top priority. This is not perfect, so I'm still tweaking things to obtain a better outcome. The other suggestion is to tell him to use the scheduler feature found in the bittorrent client; a little bit of downtime at peak times goes a long way to keep harmony at home. -Lilkat

  21. Easiest way: Raise QoS of OTHER traffic. by Zarhan · · Score: 5, Informative

    Raise priority for

        - Web (Http and https, maybe also 8080)
        - DNS (UDP:53)
        - Mail (SMTP, IMAP, POP3 (including SSL versions))
        - IRC (if you use)
        - FTP
        - SSH, Telnet
        - All TCP acknowledgement packets.
        - Maybe some gaming protocols (Directplay, WoW, etc - these unfortunately require checking docs for each game)

    that way, you have whitelisted most of the "interactive" protocols that suffer from loaded link. No need to keep chasing after the latest encrypted, onion routed P2P application that happens to be flavor of the month. The biggest problem is the online gaming stuff.

    1. Re:Easiest way: Raise QoS of OTHER traffic. by Simulant · · Score: 1

      MOD parent up. This is one of the easiest way to solve the problem. A better but more complex way is mucking around with the L7filter in dd-wrt which is tricky.

      An easier way, if you've got the set up, is to do what I do; my vonage box gets the highest priority, my PC gets next highest and my home server, which does all the downloading as well as email is third along with everything else.

      I can game, talk on the phone and download at 3-4mbps at the same time with no hiccups.

    2. Re:Easiest way: Raise QoS of OTHER traffic. by Anonymous Coward · · Score: 0

      Everyone is saying "QoS this" and "QoS that", but how in the heck do you actually do this?

      How do you raise priorities for some things and lower them for others?

      I've not seen a router that does this on its own myself.

    3. Re:Easiest way: Raise QoS of OTHER traffic. by yorugua · · Score: 1

      I's say the following is in order:

      a) Check that your router supports DD-WRT (not a micro o mini version, a good version. Latest WRT54G don't have enough memory. Go to amazon.com and get a WRT54GL)

      b) Limit your favorite P2P bandwidth usage using your program's own options to something that makes both your P2P needs and "you browsing" happy. You should repeat this step after considering the other options available below.

      c) add QoS rules specific both at using the L7 traffic-identification and also using the specific ports you have configured for your favorite P2P program on the router as lower priority traffic in dd-wrt. Configured things such as DNS queries, HTTP browsing, PING, SSH, VoIP with top priority.

      d) start using TCP-vegas on the router: Add the following custom script for boot:

      echo 0 > /proc/sys/net/ipv4/tcp_westwood

      echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid

      echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha

      echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta

      TCP-vegas is a server side congestion avoindance algorithm which can improve your "upload" behavior , which is usually capped much more than your download bandwidth, so it might give you an overall "snappier" feelings on how things behave.

    4. Re:Easiest way: Raise QoS of OTHER traffic. by mysidia · · Score: 1

      This will work fine until more P2P protocols start switching to use port 443 SSL encrypted traffic.

      Do you have any way of telling it is BitTorrent-over-SSL instead of HTTP over SSL? Nope, the data stream is encrypted, so you can't tell if it's a web page being transferred, i.e. an online order being placed, or part of a file, without more advanced classification techniques.

      Similarly, what looks like SSH, DNS, Mail or IRC, may be bittorrent traffic.

      And online games may use the ports of those protocols too (in response to draconian firewall policies and bandwidth caps used by some sites)

    5. Re:Easiest way: Raise QoS of OTHER traffic. by dhoffman · · Score: 2, Informative
      >d) start using TCP-vegas on the router: Add the following custom script for boot:

      That won't do much good on the router. Your router is a layer 3 device and (except for packet classification) only looks at the IP header. TCP congestion control is layer 4 and operates at each end of your TCP connection. This is a good idea if your P2P client is running on a Linux box, however. But do the config on that box, not the router.

    6. Re:Easiest way: Raise QoS of OTHER traffic. by Anonymous Coward · · Score: 0

      Have you tried using your reading comprehension skills and going through the comments on this article?

  22. All major clients, but it still requires talking.. by Nerobro · · Score: 5, Insightful

    I love how people pimp their own client. But nearly every PTP client I've touched, has bandwidth limiting. Some of them, uTorrent included, allows you to schedule your bandwidth.

    The real problem here isn't traffic shaping, but about traffic courtesy. Your housemate may not know how much trouble their causing. Talk to them. Get them to set their max speeds to 1/2 or 1/4 of the available bandwidth.

    They may be surprised when their OWN web browsing gets better.

    Yet this does all hinge on you talking to said housemate. Go talk. I've had the "talk" and been the person talking to the housemate. It usually works out well.

    --
    You would have to be crazy to be sane in this world. -Nero
  23. free sveasoft by Rhett · · Score: 1

    hey, I will get some bashing, but this works: http://wrt54g.thermoman.de/ I noticed that traffic shaping adds some latency (~20ms), and you have to be willing to give up some bandwidth for it to work propery. For example, if you're on 3Mbps DSL, you want to set your router to throttle you at maybe 2Mbps, or 90% of what you acutally get most of the time, so the router is alwasy throttling before the ISP, and the router can properly prioritize packets.

    1. Re:free sveasoft by Anonymous Coward · · Score: 0

      No bashing, just dd-wrt is better, and free from the get go.

  24. mmm, Tomato by straponego · · Score: 2, Informative
    I quite like Tomato firmware as well: http://www.polarcloud.com/tomato

    It also has QoS features, and a nice AJAX interface.

    1. Re:mmm, Tomato by xenocide2 · · Score: 1

      Sadly, the AJAX interface is kinda non-free. Apparently he doesn't want other free firmwares stealing his work.

      --
      I Browse at +4 Flamebait

      Open Source Sysadmin

  25. the human approach by Peganthyrus · · Score: 3, Insightful

    Presumably saying "Hey, dude, can you throttle the hell out of your P2P? I'm getting no net whatsoever." is not an option.

    If so, yeah, you could try looking into the alternate firmwares for the router; they let you throttle stuff based on ports. You'll have to look at the serial number to know for sure if you can stick that in, or spend like $80 or whatever for the WRTGL, which has enough firmware space to do fun things.

    --
    egypt urnash minimal art.
  26. Is this a technical problem or a sociological one? by AdamHaun · · Score: 2, Insightful

    What about talking to the housemate to get them to use a less aggressive client? Most P2P software that I know of has bandwidth cap options built in, which makes me think the poster is trying to do this under the table. How is the housemate going to react if/when they find out about it? Is this really a problem that's best addressed with technology?

    --
    Visit the
  27. Just speak to him! by drspliff · · Score: 5, Interesting

    My housemate has a machine setup for bittorrent, when we first moved in together it was very annoying as he seemed oblivious that running it all the time meant that my connections were slow, dropping all the time & unusable.

    So I spoke to him, you know - in a rational way. It's now scheduled for the nights & days when we're either asleep or at work with a few hours in between & most of the weekends where it's either throttled down to 10k/s (by uTorrent) or stopped completely.

    On top of that we've got a Smoothwall box with packet prioritization for ssh/web/email/im etc. but no bandwidth throttling.

    At the end of the day, if you cant come to an agreement then it's probably just gonna get worse for you two and there's nothing you can do to stop him being an asshole.

    1. Re:Just speak to him! by Omnifarious · · Score: 4, Interesting

      I had a housemate who ran P2P software all the time without even realizing it. Talking to him did nothing. Limiting the number of outbound packets from his computer to a certain number per second with a fairly high burst solved the problem. He liked playing WoW and when his WoW connection started getting all weird and I told him it was his P2P sofware he started to make sure it wasn't running. The average cap I set was plenty enough for WoW and enough for a decent download speed for P2P as well.

      I'm all for bandwidth throttling and traffic shaping as long as it's to ensure usage fairness. If I were running an ISP I would have a per-customer 5 minute bandwidth meter and customers who had exceeded their share for 5 minutes would have all their traffic dropped to the lowest priority until there was a 5 minute interval in which they hadn't exceeded their share.

      And it would be share of total pipe available to the ISP's upstreams, not some arbitrary fixed cap per customer. If the P2P application were written to favor connecting to other customers of the ISP that would be a way to avoid the re-prioritization completely.

    2. Re:Just speak to him! by jamesh · · Score: 1

      I did something similar for a library that offered free internet access. Users were running p2p software and it was slowing down other users. I implemented something pretty simple with tc on a Linux router - a per ip address token bucket filter with 10MB of traffic in the 'bucket' and a 1mbit/sec limit. Anyone doing browsing or even small downloads would rocket along at full speed (20mbit/sec or something like that), anyone doing sustained downloads would find that they'd get clamped pretty quick, but would still have a reasonable rate.

      Seems to work well. I think they get less users who just come along and suck up the bandwidth these days.

    3. Re:Just speak to him! by Omnifarious · · Score: 1

      Is there any good documentation on tc out there anywhere? I've been finding the traffic shaping howtos a bit impenetrable and I used an iptables based filter instead. But I want to understand how to use tc and Linux traffic shaping because it looks a lot more flexible.

  28. Change your firmware by Anonymous Coward · · Score: 0

    What you need to do is install third party firmware on it. I highly recommend Tomato, been using it for a while and it works great. Sharing internet on 3 PCs. Even when someone is using p2p programs we can use voip or play games without any problems.

    More info:
    http://www.squidoo.com/wrt54g-firmware

    Note that if your WRT54G is version 5 or newer, it somewhat limits your choices but some firmware can be used even with these routers.

  29. solve the problem at the client by onescomplement · · Score: 1

    Insist they use a client that can behave itself. I believe that Azeurus and MicroTorrent are in that category - and require they tune it down to a responsible level.

    1. Re:solve the problem at the client by dougsyo · · Score: 1

      Insist they use a client that can behave itself. I believe that Azeurus and MicroTorrent are in that category - and require they tune it down to a responsible level. I suppose this is a better choice than a roommatectomy. I had to do that once (abuse of my house though, not my internet connection).

      Doug
  30. Re:All major clients, but it still requires talkin by PC+and+Sony+Fanboy · · Score: 4, Funny

    tell him that his .torrent-ing is adversely affecting your social life on WoW. He'll either understand, or not.

    If not, just use some DPS and hide behind the couch....

  31. Brute Force by Anonymous Coward · · Score: 0

    If you haven't tried anything yet, use brute force! ;)

    (Or offer him some home-made beer.)

  32. Bandwidth limiters by jasticE · · Score: 1

    If the issue is only with a limited numbers of computers running P2P software, and that software doesn't have options of limiting bandwidth built in, the simplest solution would be a client-side bandwidth limiter. There are plenty (see your favorite search engine) available that let you throttle bandwidth use for specific applications.

  33. You promised unlimited service!!!!!! by mentaldrano · · Score: 0, Troll

    Now you better deliver, or everyone on /. will think nasty thoughts about you for five minutes.

    Seriously, that's all. We got nuthin.

    1. Re:You promised unlimited service!!!!!! by SanityInAnarchy · · Score: 1

      He's not an ISP, so the same rules don't apply.

      Also, chances are, QoSing BitTorrent down in that house will probably still let it run close to full speed, as there probably aren't another few hundred people trying to look at YouTube at the same time. Web browsing really dosen't take that much bandwidth.

      --
      Don't thank God, thank a doctor!
  34. I use a DLink DLG-4300 by QX-Mat · · Score: 5, Informative

    http://games.dlink.com/products/?pid=370

    Works well, but is rather expensive. Has an oversized NAT table to help with UDP server pings, so this will remedy and torrent problems you might have with your current setup.

    QoS system is fairly flexible with an intuitive GUI and many preconfigured service options.

    Has an option to pack the output frames completely (harms XBox Live possibly) as well as delay non-prio packets in favour of VOIP/gaming/as you configure.

    Matt

    1. Re:I use a DLink DLG-4300 by chrysrobyn · · Score: 3, Informative

      I've got to echo the DLink recommendation -- but I've had the 4100 for about a year. They call their QOS stuff "Game Fuel" (there were a few slashdot stories about it when they started hyping it up).

      I've been very happy with mine, including being able to torrent like a freak and still use the Vonage box to make VOIP calls. I know the torrents are being throttled by my little box, but I can't see a big impact on transfer speeds. As a bonus, the DLink is much faster than the NAT firewall it replaced-- my maximum throughputs are higher.

      Setup is as easy as configuring a normal NAT device. Of course, if you want to play with port forwarding, that's there too, and if you want your QOS to be a little more sophisticated than the default (which you should really try and see if you're happy with it), there are a plethora of configuration options.

    2. Re:I use a DLink DLG-4300 by Anonymous Coward · · Score: 0

      I have a dgl-4300 and I recently switched to a linksys 150-n with dd-wrt. The QOS is better on dd-wrt because it does both downloads and uploads whereas the dlink router only cared about your uploading. Also the dd-wrt can limit total upload and download bandwidth used by the entire connection and recommend you set it to 85% of your total up and down bandwidth. very nice app I must say

  35. OpenBSD Packet Filter by Piranhaa · · Score: 5, Informative
    1. Re:OpenBSD Packet Filter by Anonymous Coward · · Score: 0

      You beat me to it.

      Yes, I'm not usually a big fan of OpenBSD, but pf is top notch, and this is exactly the kind of job it's perfect for.

    2. Re:OpenBSD Packet Filter by Anonymous Coward · · Score: 0

      altq(9)

  36. use netlimiter or set up a CC box by Anonymous Coward · · Score: 0

    use a program such as netlimiter - http://www.netlimiter.com/ which is decent enough at doing what it says on the tin for windows boxes or set up a linux gateway such as clarkconnect - http://www.clarkconnect.com/ and implement traffic shaping by application and IP address.

    I prefer CC personally but either should work.

  37. Switch to Comcast by Anonymous Coward · · Score: 0

    Problem solved.

  38. DD-WRT by Anonymous Coward · · Score: 0

    Slap on a 3rd party firmware like DD-WRT.

    If you a WRT54G then basically you're set. Almost all versions work (even the newer ones with vxware and 2mb flash space).

    Under QoS set the max ports higher, and the timeouts for TCP and UDP lower (the newer versions of DD-WRT have a much better setting then the linksys firmware by default)

    Also, you can setup the actual QoS. You can do this by app, etc. If it's a wired computer you can also setup QoS by port number on the newer versions of DD-WRT as well. Wireless you'd setup the WMM QoS too (or whatever that feature is call, I forget now lol).

    You may also have luck overclocking the CPU under DD-WRT as well. I know I was able to on my one WRT54GS, only bump it from 200 to 212 on a WRT54G v2, and the other WRT54G v2 i had I couldn't at all or it wouldn't boot right.

    The other option is grab a WRT150N and use that. They are decently cheap, and the processor is a bit beefer than the WRT54G's.

    All in all that should help out. I know the port timeouts in the stock linksys firmware are set so high the router runs out of mem because of the large port maps. That's where the rebooting helps, as it flushs the memory.

    All in all, I've been running DD-WRT for the past 2 years give or take, and there's been some hickups with more advanced features (Repeater Bridge mode not working so I was stuck using WDS which really, really slowed the wireless hops), but other than that it works fantastic. Handles torrent clients well while also not causing any issues with my VoIP.

    1. Re:DD-WRT by Anonymous Coward · · Score: 1, Informative

      use "Tomato" - it lets you dynamicly change the priority of a connection depending on the upload/download size.

      eg. you can say all HTTP downloads over 1MB get lower priority. It will also work for keep-alive connections so it will work if your flatmate is downloading "a whole website" (since the total size of the site is over 1MB)

    2. Re:DD-WRT by Anonymous Coward · · Score: 0

      Tomato firmware will let you assign different QOS rules to traffic above an arbitrary threshold. For instance: "After 10 megs of HTTP traffic, throttle to setting "low". Presumably this is applied to some time frame, so that normal users don't get hit after using 10 megs in, say, 5 hours.

  39. Dummy Net by Anonymous Coward · · Score: 0
  40. DD-WRT by Solandri · · Score: 3, Insightful
    You may be able to install DD-WRT on your router. It (along with other alternate firmwares) provides much better traffic shaping capabilities (called QoS for quality of service) than the default firmware. It lets you assign traffic to bulk (lowest), standard, express, premium, and exempt; based on port, MAC address, netmask (destination IP), or traffic type. Off the top of my head I believe the priorities refer to guaranteed 10%, 25%, 50%, 90%, and 100% of packets will get through.

    First step would be to find out what type of P2P he's using and (if it's not recognized by DD-WRT) what ports. Drop those down to bulk priority. Raise special activities like https web browsing to express (on the assumption that connecting to an https server means you're doing something important like accessing your bank). Stuff that's time-critical like VoIP and gaming should get premium priority. This took care of 90% of the problems I had.

    The remaining 10% proved extremely tricky. Newer bittorrent clients default to encryption on, and it was getting by the QoS. I tried tweaking all sorts of settings to mitigate this without success. What eventually worked was a setting anything on ports higher than 1024 to bulk priority, then specifying certain ports as having higher priority. This is the QoS equivalent of switching from allow all and blocking things you don't want, to deny all and allowing things you do want. That seems to have solved the bittorrent problem.

    The only problems that remain have to do with http and ftp transfers of large files. If someone sticks a 40 MB file on a web site, the router can't tell it apart from regular http traffic, so you can't drop its priority without also affecting regular web browsing. In one case a user was running a program to download an entire web site - that was killing the network since to the router it looked just like a lot of web browsing. Same with ftp - if you drop ftp's priority so the 100 MB transfers are bulk, the small ftp files like certain software updates are also bulk.

  41. Linksys and QoS by Anonymous Coward · · Score: 1, Interesting

    Most of the Linksys routers I've encounter have some quality of service functionality built into them. In my experience QoS is under Applications and Gaming along with port forwarding etc. Any way if you enable it, you'll have several options avaliable for restricting his bandwidth hogging. Be it changing the traffic priority by mac address, protocol, or port.

    Hope that helps

  42. Plenty by NMerriam · · Score: 1

    There are a bunch of options for open-source firmware that will do traffic-shaping on your router. I personally use Tomato for the AJAXy goodness and overall usability.

    You can do limits based on individual devices, which will keep any computer from ever saturating the network, or you can do time-based throttling, or whatever. I found the most useful setup was to make everything default to low priority and then raise the priority of HTTP, SSH, and other things I wanted to run interactively.

    As long as nobody on the network is selfish enough to try and run their p2p app over port 80 or something stupid like that, it works fine. But any home router config will depend on the users not trying to get around it -- it's a tool for your mutual convenience, so that people can set their apps to be aggressive and get the most performance, but won't step on others' toes when they're trying to get something done.

    --
    Recursive: Adj. See Recursive.
  43. Linux can do it for you by Anonymous Coward · · Score: 0

    Usually it's the upload being saturated which causes this problem, especially on asymmetric speed links like ADSL.

    I use a (Gentoo) Linux box as the gateway for our home network and all traffic must pass through it to reach the net (and vice-versa). Then I can use tc to set up queues on the uplink interface in the outbound direction (part of the iproute suite), and iptables with the CLASSIFY target in the mangle table's FORWARD, OUTPUT, and POSTROUTING tables to prioritise packets accordingly. Queues are set up automatically as part of a custom script on boot.

    Without getting into stuff like deep packet inspection or layer-7 packet analysis, in general most of the traffic I find which gums the uplink of the internet connection thus causing everything to feel sluggish is large tcp/udp packets, where file data is being uploaded - interactive traffic like web-browsing or IM/IRC, in general, have smaller packets on the upload side of the connection. So you can classify on packet size, e.g. give priority to packets smaller than 385 bytes, for example, and put everything else in the low-priority queue. Experiment a bit to see what suits your network - max packet size is normally just over 1500 bytes.

    Bonus points for creating additional queues, and giving other applications like SSH or VPN other priorities than the basic two in the example above, or even giving certain machines or IP addresses special privileges like faster FTP uploads.

    I use Hierarchy Token Buckets and Stochastic Fairness Queueing ('man tc' is a good place to start) so the "middle" priority traffic, whilst allowed to go sooner than otherwise, is still throttled to some extent to not use all the upload anyway, just in case of abuse like tunnelling over HTTP, or other weird cases.

    Anyway, I find this setup works nicely for me - P2P is the one that gets hindered when other things want to use the network, otherwise you won't notice the difference.

    Plus if you're feeling extra crafty, you're in a position now to install squid on the box, and force-proxy all web traffic on port 80 through it (using iptables to do the redirects transparently) and create centralised adblock filters for the network :D

    Your first challenge though, is to rewire your network so you can have a box which all traffic goes through :D

  44. There can be only ONE!!! by rts008 · · Score: 2, Funny

    Nerf guns at 20 paces, last nerd standing wins!

    --
    Down With Slashdot BETA!!! I've been around the corner and seen the oliphant; you can only abuse me from your perspecti
  45. And after you install DD-WRT... by Tau+Neutrino · · Score: 2, Informative

    In the Administration section, on the Management page, make some changes to the IP Filter Settings. Set the Maximum Ports to 4096 (the maximum), and the Timeout values for both TCP and UDP to 120 seconds.

    Running Azureus used to kill all the other network activity on my LAN. These changes made all the difference in the world.

    --
    Lemmings are silly; dinosaurs are extinct.
    1. Re:And after you install DD-WRT... by freakyfreak2 · · Score: 1

      I was going to suggest this as well. This is the most common reason for p2p traffic to take a network down. This is the second setting after the transmit wattage I edit when installing DD-WRT onto a wireless router

    2. Re:And after you install DD-WRT... by dwater · · Score: 1

      I'll tried setting Maximum Ports to 4096 and that made some difference, but not a lot. I'll try the Timeout ...checking...oh, it's already at 3600 seconds. Will reducing the values to 120 seconds have a positive effect (you don't say whether it's reducing or increasing that is important)?

      I use DD-WRT on my WRT54G, and just using the QoS didn't make much different. My theory is that it isn't (just) the bandwidth that is the issue but the number of connections. I adjusted my client to reduce the number of connections and it freed up pretty much everything else. I can only assume my ISP limits the number of connections more than my router.

      --
      Max.
    3. Re:And after you install DD-WRT... by awhig · · Score: 1

      I had problems with P2P on my network and installed DD-WRT for the same reasons as above. The key for me was setting the TCP and UDP timeouts to 120 seconds, which the DD-WRT docs suggest when running P2P software. Before this, no other client on my network could get a connection to anything when I was running Shareaza. After making this change, I had no other problems. I would try this first before trying to shape any of your traffic. Rich

    4. Re:And after you install DD-WRT... by Tau+Neutrino · · Score: 3, Informative

      You're right, I neglected to say which direction the timeout should go. It's definitely reduce the TCP and UDP timeout values to 120 seconds. One of the problems with P2P is establishing many connections to flaky systems or networks. Your client (and router hold the connection open, waiting for response that never comes. That fills up the connection table and makes it hard to establish other, more productive ones.

      You want to reduce the time your router waits from 1 hour, as it's currently set, to two minutes.

      --
      Lemmings are silly; dinosaurs are extinct.
    5. Re:And after you install DD-WRT... by cciRRus · · Score: 2

      Changing the IP Filter Settings really helps. However, there are other things to take note:

      1. Setting the correct upstream and downstream limits. I couldn't stress the importance of these two settings. The success of QoS largely depends on the two limits.

      2. Packet scheduling algorithm. Somehow, HFSC doesn't work out well... but HTB does.

      3. Protocol Encryption. If the clients are using PE, then there might be a problem with letting DD-WRT distinguish P2P traffic from the rest.

      --
      w00t
  46. tcpkill ! by alexandre · · Score: 1

    dsniff's tcpkill does wonderful things... ;-)

  47. I've needed this for a wile... by Doug52392 · · Score: 1

    Whenever I'm downloading a file off of BitTorrent that's actually seeded okay and gets to a decent speed, no one else (including me) can use the Internet because it lags the hell out of everything. I have a Linksys WRT54G wireless router and Comcast Internet by the way.

    So what's the best way to stop this?

    1. Re:I've needed this for a wile... by zxsqkty · · Score: 1

      Throttle the upload speed in your BT client. I've only got 320Kb/s up, so I set my client to upload at 12 - 16KB/s and the internets run nicely. To compensate for the reduced bandwidth, I just seed for longer. Everyone wins.

      Upload throttling seems to give me a better download speed too; probably something to do with maxing out the connections at the router.

      --
      Caution: May contain nuts.
  48. outsource it by nguy · · Score: 1

    Just sign up with Comcast :-)

  49. Traffic Shaping is a preferable solution by Dan+Farina · · Score: 1

    I think a lot of the posts that suggest that the right solution is talking to the roommate and potentially some client settings are wrongheaded.

    Most people don't care if their P2P download is slowed down a little from HTTP traffic (which is practically in the noise by comparison most of the time, really). In fact, some of those same people would prefer *their* web browsing sessions remain fast while torrenting. The only reason to go for client-side bandwidth throttling or scheduling is because the traffic shaping options can take more expertise and (depending on implementation) may not work ideally -- it is often possible to (sometimes accidentally) abuse many QoS heuristics by, say, spawning a lot of connections.

    Traffic shaping (in this case, if effective) will allow you to achieve greater link utilization (they can use 100% of the link when nobody is browsing) and absolve the issue of how one resolves multiple users on the same network wanting to make use of "low-priority" bandwidth. It simply makes life easier, should you be able to set it up.

    In any case, the *WRTs (DD-WRT seems to be the easiest) seem to work okay, of course, I'd be interested to hear about other options....

  50. Google for the acronym QOS by pyite69 · · Score: 1

    aka traffic shaping

  51. How to install DD-WRT and set QoS on WRT54G by __aaeaqw1389 · · Score: 1

    Hi, how can I set up DD-WRT & QoS on Linksys WRT54G with the latest Tomato Firmware already installed? Thanks! -NKA

  52. It's a good idea to work things out, but... by Ethan+Allison · · Score: 1

    Even if you come to an agreement about putting in some speed caps, it'd probably be best to set up some sort of QoS. That way, your roommate's downloads are always using up 100% of whatever tube-space is left over after all the other stuff (including whatever he's doing). Maximize efficiency 'n stuff.

  53. A different router? by kupekhaize · · Score: 1

    The cheapest route to go would be the DD-WRT firmware that other people have mentioned, although then you get into some issues that many people want to avoid.

    Personally, I was very happy with the DGL-4300 router from D-Link. It will let you specify QoS settings, and it also lets you prioritize certain games and certain applications, and will also let you be computer specific.

    I originally got the router because I was actually hogging my own bandwidth. Before the router, capping my bandwidth via an FTP download or torrent would lag everything else. Now, I prioritized my games and I can maintain a 60 ms ping in an online FPS game while capping out my download at several mbit per second. What really really impressed me was that D-Link has the ports and protocols preprogrammed in for a large variety of games and applications, including bittorent.

    Screenshot of the interface

    The same thing sounds like it can be done via the DD-WRT firmware, just possibly not quite as elegantly. D-Link also has a new 802.11n GameFuel router (the DGL-4300 I use is 802.11b/g only) but all of the prices I have found on the N router so far have been really, really ridiculously high.

    --
    One of these days i'm going to find this 'peer' guy and reset HIS connection!
    1. Re:A different router? by eXonyte · · Score: 1

      I've used both the DGL-4300 and the DGL-4500 (the 802.11n router the parent mentioned). My personal experience with the 4500 is that with the GameFuel QoS set to automatic classification, I was able to uncap some torrents of mine and it barely affected the two WoW players. I still keep my torrents capped out of courtesy for the others in the house, but it's nice to know it works as advertised.

  54. Netpriva perhaps. by ozzee · · Score: 1

    Netpriva has an application level shaping solution. They used to have a "free" trial product. The company was a MBO from a company called "foursticks". Give that a try.

  55. pfSense by jamesgor13579 · · Score: 1

    I use pfSense and its QoS tools. I never have problems with my web browsing being affected by my p2p traffic. I have also used smoothwall, which works well also. The downside of these is you have to have a spare computer to install them on, but I have found that the hardware in off the shelf routers isn't powerful enough to properly manage a fast internet connection. Another trick, make sure you do both up and down stream QoS.

  56. DD-WRT vs X-Wrt by bitsent · · Score: 2, Interesting

    There is some controversy surrounding DD-WRT; you must decide if you want to support them or not. I use OpenWrt with the X-Wrt extension, which also has powerful QoS functionality in a GUI.

  57. OpenWRT requirements by j1m+5n0w · · Score: 3, Informative

    OpenWRT hardware requirements If it's version 4.0 or earlier (or the L model), it has enough RAM and flash (16MB, 4MB respectively) to run OpenWRT, or other wrt54g-friendly distributions. (OpenWRT is pretty cool; it has an olsrd package you can install from the web configurator, and with a little bit of effort you can make an ad-hoc mesh. Not useful for traffic shaping, but interesting nonetheless. I expect there are probably tools available to do traffic shaping with OpenWRT as well, I just never needed to mess with that.)

    1. Re:OpenWRT requirements by WanderingGhost · · Score: 2, Informative

      OpenWRT comes with QoS scripts that will help you prioritize packets. I installed it and now P2P never interferes with HTTP, DNS and other traffic.

  58. Re:All major clients, but it still requires talkin by garbletext · · Score: 1

    This is total bullshit. uTorrent is the most popular bittorrent client by far for a very good reason. It's the best win32 client available. It was bought by Bitorrent inc, and is now their official client, afaik. Provide a reliable site, please.

  59. pfsense ftw by turing_m · · Score: 1

    I've had good results with pfsense. Nice GUI, not too hard to set up, shapes traffic well enough that web browsing does not slow down appreciably. Games are tougher though, but I'm not in the same boat as you - if I want to game I just ensure that I'm not downloading anything at the time. I suspect I could have my cake and eat it too, but currently it's too much effort.

    I tried smoothwall, m0n0wall, IPCop, and pfsense before settling on pfsense. YMMV.

    From memory, I did a google search of slashdot and "traffic shaping" to uncover those options. :)

    --
    If I have seen further it is by stealing the Intellectual Property of giants.
  60. Tomato by TheTyrannyOfForcedRe · · Score: 2, Informative

    Grab the Tomato firmware for your Linksys. Tomato's QoS features are much easier to configure than others like DDWRT. With Tomato, you don't need to be a Linux networking guru to do what you want. Tomato also handles P2P very well. You can pound a WRT54 running Tomato with heavy P2P traffic 24/7 for months with no perfmrance problems. No resets required. Grab it here http://www.polarcloud.com/tomato/

    --
    "Liechtenstein is the world's largest producer of sausage casings, potassium storage units, and false teeth."
    1. Re:Tomato by __aaeaqw1389 · · Score: 1

      Grab the Tomato firmware for your Linksys. Tomato's QoS features are much easier to configure than others like DDWRT. With Tomato, you don't need to be a Linux networking guru to do what you want. Tomato also handles P2P very well. You can pound a WRT54 running Tomato with heavy P2P traffic 24/7 for months with no perfmrance problems. No resets required. Grab it here http://www.polarcloud.com/tomato/ I have the latest Tomato firmware for my Linksys router (WRT54G). How do I configure the QoS to prevent P2P from crippling the connection and making internet browsing quite slow?
  61. # of connection by Anonymous Coward · · Score: 0

    I've always found the # of connections opened to be a huge problem. A lot of home routers don't seem to have the power to handle hundreds of connections. Have your roommate limit the # of connections per torrent and globally. I find about 100-400 connections globally to do the trick. Anything more than that and webpages start to take a while.

  62. Linux, iptables and Traffic Control (tc) by xororand · · Score: 5, Informative

    As someone mentioned in a previous post, it's much easier to just whitelist priorized services such as ssh, telnet or gaming protocols than wasting too much CPU cycles on detecting obscure P2P protocols with layer 7 filters.

    Personally, I use iptables & tc to setup a simple HTB (Hierarchical Token Bucket filter) system with 3 priority levels:

    - Interactive: SSH (with Minimize-Delay TOS-Flag), Telnet, Jabber, ...
    - Medium: HTTP, IMAP, SMTP, POP3, ...
    - Low: All the rest

    Shaping the upload speed is my only concern. All 3 classes may use the complete upload bandwidth. The interactive HTB class gets a guaranteed 90% of the bandwidth and a high burst value. The lowest HTB class has a burst of 0 and about 5% guaranteed upload speed.

    While this is only primitive setup, it allows lag-free ssh with an unlimited upload in the background.

    An in-depth how-to about the Linux Traffic Control system: http://www.tldp.org/HOWTO/Traffic-Control-HOWTO/index.html

    A short pragmatic example using HTB & SFQ can be found here: http://gentoo-wiki.com/HOWTO_Packet_Shaping

  63. Just configure your router... by TavisJohn · · Score: 1

    I have a DGL-4500. With it I can block computers from accessing the Internet altogether.
    I can set priorities for traffic. The VOIP box is level 1 (The highest) most of the other computers are level 125. (The middle of the range)
    The computer that does my BitTorrent stuff is set at level 255 (The lowest setting). That way it only uses the "Leftover" bandwidth.
    There is also a setting where I can just block BitTorrent traffic also.

    My response would be to warn him that if he does not fix the settings on his Torrent client, that you will have to change the router settings to allow others to use the Internet, and his torrenting may be completely blocked.

  64. Get Your Own Connection by rueger · · Score: 4, Funny

    Instead of cheaping out spend $30 a month for your own cable or DSL connection. Or, as many have suggested, just talk to the guy.

    Barring that just connect the 220v dryer line to the wall socket in his room and hope that he got his power bar for $5.99 at WalMart.

    Or even better please all of your room-mates and just move.

    1. Re:Get Your Own Connection by Anonymous Coward · · Score: 0

      Most companies won't let you have 2 lines, for whatever lame reason. Time Warner (the people who happen to have the monopoly in my area) say that we can't have 2 accounts with the same address.

    2. Re:Get Your Own Connection by GISGEOLOGYGEEK · · Score: 1

      Damn Americans ... never willing to deal with the source of problems, but always quick to smack down people suffering from the problems they cause.

      Don't you suppose the greedy room-mate who's using all the bandwidth should be the one who stops cheaping out and gets his own damn connection?

      --
      George Bush + Linux = "I will not let information get in the way of the fight against Windows"
    3. Re:Get Your Own Connection by urbanrealtor · · Score: 1

      I do find it interesting that you make a lot of posts talking about ignorance and yet you really just seem to be complaining about Americans, America, and whatever religion crosses your path. Well Canada has no monopoly on bigots but you are a fun one to watch.

    4. Re:Get Your Own Connection by Anonymous Coward · · Score: 0

      So make up apartment numbers for the bedrooms.

    5. Re:Get Your Own Connection by GISGEOLOGYGEEK · · Score: 1

      Complaining about Americans and Religion can be somewhat redundant since they often are the same problem.

      Certainly Canada has it's problems ... but a hyper paranoid gun loving population of crusading christian fanatics that screw each other at any and every chance they can? ... that's South of the 49th.

      --
      George Bush + Linux = "I will not let information get in the way of the fight against Windows"
    6. Re:Get Your Own Connection by urbanrealtor · · Score: 1

      The beauty of baiting bigots is letting them make your point for you. You actually responded to be calling you a bigot with a bigoted remark. Brilliant. You have lived up to your label well. Thank you for that. I am framing your post.

    7. Re:Get Your Own Connection by urbanrealtor · · Score: 1

      That was supposed to be "...ME calling you...". Alas, I am beyond the help of spell check.

    8. Re:Get Your Own Connection by GISGEOLOGYGEEK · · Score: 1

      It isn't bigotry when it's true.

      Please frame a picture of yourself next to my message, with a suitably adorned title. 'Dumbass' should be sufficient.

      --
      George Bush + Linux = "I will not let information get in the way of the fight against Windows"
    9. Re:Get Your Own Connection by urbanrealtor · · Score: 1

      Ah abusive language is the last resort of someone with little left to say. Right. Making abusive generalizations about 300 million people sounds a lot like bigotry. Also, rude comments about belief systems that most people (on the planet)subscribe to is intolerant and prejudiced. I look forward to reading your future nuggets of "truth" and wisdom. Also, here is a link that might be helpful: http://en.wiktionary.org/wiki/bigotry.

  65. the simplest fix by j1m+5n0w · · Score: 2, Interesting

    The real problem here isn't traffic shaping, but about traffic courtesy.

    This is true up to a point. It should be easy to get the offending roommate to cap their bandwidth, but it should also be easy to install a traffic-shaping router (though sadly it's not), and then the problem would be solved without having to get the cooperation of everyone (and every program on every computer) on the network, and for everyone to be constantly self-policing their own network usage.

    To solve the problem in one place at a higher layer of abstraction will be more likely to prevent the problem from recurring in a different form later on.

    Of course, being on friendly terms with your roommates about these sorts of issues is more important than how the problem is ultimately resolved.

    1. Re:the simplest fix by lessthan · · Score: 1

      While your idea is sound, your methods are not. You are basically saying that the other cannot be trusted to do what is right, so you will make it impossible to disobey. That seems very fascist of you. Of course, he could gather the housemates up, explain that he wants to add caps, get consensus, and then implement your solution. Two birds, one stone.

      --
      Space Shuttle was a program that strapped humans to an explosion and tried to stab through the sky with fire and math
  66. Do this.... by thetoadwarrior · · Score: 2, Funny

    Tell him if he doesn't stop using P2P while everyone else is awake and using the net then you're going to cave his skull in with his monitor.

    You'll either make him stop or make him press charges. Either way it probably won't be an issue for you anymore.

  67. Re:All major clients, but it still requires talkin by pdusen · · Score: 1

    Trojan horse? AC, meet reality.

  68. Re:All major clients, but it still requires talkin by VendettaMF · · Score: 1

    "uTorrent no matter how many security professionals classify it as a Trojan horse."

    Liar.

    --
    kartune85 : Incapable of reason, observation or learning. A kind of dim, drab, flightless parrot.
  69. Avoid DD-WRT by Dwedit · · Score: 1

    Stay away from the third party "DD-WRT" firmware if you use any form of P2P. Due to some unresolved bugs in the firmware, any form of BitTorrent makes the router completely unresponsive, not even responding to the router's web interface.

    1. Re:Avoid DD-WRT by Skylinux · · Score: 1

      Stay away from the third party "DD-WRT" firmware if you use any form of P2P. Due to some unresolved bugs in the firmware, any form of BitTorrent makes the router completely unresponsive, not even responding to the router's web interface. How old is your information, I am running DD-WRT v24 RC-7 (04/24/08) std and my current uptime is 19 days. It has been running since I installed the firmware and Ktorrent has been running in the background to get Slackware 12.1 and more.

      The really cool feature DD-WRT has over Tomato is that I can run the router in Repeater Bridge mode which Tomato does not support.

      http://www.dd-wrt.com/dd-wrtv3/index.php
      --
      Everyone who buys Wild Hunt will receive 16 specially prepared DLCs absolutely for free, regardless of platform.
  70. Am I the only one here who uses stock firmware? by 77Punker · · Score: 1

    I've a WRT54G with stock firmware in it. It has QoS in it from the factory. What's the problem here? What's with all this DD-WRT stuff? My default firmware is easy to use and works every time.

  71. From the Slashdot crowd? by Serenissima · · Score: 4, Funny

    I'm sure the reaction of physical violence isn't one most Slashdot readers would take. All that heavy breathing would just tire us out too quickly.

    --
    Give a man a fire and he'll be warm for a day. But light a man on fire and he'll be warm for the rest of his life.
    1. Re:From the Slashdot crowd? by crhylove · · Score: 1

      Heavy Breathing from a slashdot user? PIC OR IT'S FAKE!!!!!

      --
      I hold very few opinions. I hold information based on observation and fact. If you wish to disagree, please use facts.
    2. Re:From the Slashdot crowd? by Anonymous Coward · · Score: 0

      I'm sure the reaction of physical violence isn't one most Slashdot readers would take. All that heavy breathing would just tire us out too quickly.

      Hey, don't begrudge people a little sexual pleasure. And I'm sure at least one Slashdotter is into that sort of thing.

  72. tomato rocks... by Anonymous Coward · · Score: 0

    Tomato is awesome. QoS fixed my network and it made my roommate get a job.

    1. Re:tomato rocks... by Anonymous Coward · · Score: 0

      Can it find me a girlfriend too? (with a 36D chest, long curly pink hairs and a caring personality if that's at all possible)

    2. Re:tomato rocks... by Anonymous Coward · · Score: 0

      "...long curly pink hairs..."

      What are you talking about? This is slashdot.org not freakazoid.net.

      Tomato won't help, but a BMW will.

  73. Known problem with Linksys by aussiedood · · Score: 2, Informative

    From the uTorrent FAQ: "The default firmware for Linksys (and all replacement firmwares except for the latest DD-WRT and HyperWRT Thibor) have a severe problem where they track old connections for FIVE days, which causes the router to hang when using P2P apps, or any software that generates a lot of connections. DHT only aggravates the situation because of the number of connections it generates."

    Does NOT apply to WRT54G/GS v5 and up.
    HTH

  74. An Eviction Notice will do by hackingbear · · Score: 1

    This one may be more effective.

  75. My best suggestion: by Anonymous Coward · · Score: 0

    Find an old computer, and put a router-based OS on it. I've got an old gateway sitting next to my cable modem. 1 lan port leads to the internet, 1 lan port leads to my desktop, and 1 port leads to my Linksys WRT54G (v5). I put DD-WRT Micro on the WRT54G, and basically run it as a switch/wap. The gateway is my main router, with pfSense installed on it. I use it to filter my (also agressively downloading) roommates' bandwidth, so that any normal web browsing requests (port 80) take absolutely the highest priority, and the ports that they use for P2P take the lowest.

    Other possible firmware OSes include m0n0wall, pfSense, shorewall, and smoothwall. pfSense is a fork of m0n0wall, and it's by far my favorite. Many have good experiences with smoothwall, but I personally didn't like it.

    1. Re:My best suggestion: by Awptimus+Prime · · Score: 2, Insightful

      Or save the ten bucks a month in electricity and show him how to set his bandwidth limits in his client.

      The lengths people will go to avoid social interaction these days.

    2. Re:My best suggestion: by dmsuperman · · Score: 1

      I'm the OP. I've asked them several times to stop, and he just straight up refuses. Plus, running QoS on the WRT54G severely slows the whole thing down, so that doesn't work. Unless you mean the roommates client, in which case I refer to the above section of the post. Also, since running it my electricity hasn't gone up any noticeable difference. A single computer without a monitor doesn't use that much electricity.

      --
      :(){ :|:& };: Go!
    3. Re:My best suggestion: by Awptimus+Prime · · Score: 1

      Get a new roommate! People who refuse to take consideration of others are an impossible situation to deal with all around.

      I've heard this about a single machine running not being noticeable, but when you have roommates the power consumption tends to be different each month. Once I ditched mine, I was able to pay attention to the bills more and even a P3 700 with a single HDD would easily push my bill up $10/mo or so. Because of this, I just ditched it and use the WRT, which is much more sane on it's consumption.

      I agree, tho, the WRT will go to hell if it has too much running on it. With all the bashing of the factory firmware going on, I can say I tried all of them and doing server refreshes in shooters was a lot better with the factory firmware than any of the other ones. If one person is sitting around playing WoW or browsing the web, I don't think it'd be noticeable, but any time it's getting hammered, it'll show.

      Now go kick out the roomie.

    4. Re:My best suggestion: by AngelofDeath-02 · · Score: 1

      sometimes, asking isn't enough.
      My present roommate is a bit ... excessive ... with his bittorrent usage.

      Since I never quite figured out how to qos all his torrent traffic, i just took to unplugging his computer. I've asked repeatedly, and he repeatedly pushes the envelope, so meh. When he wakes up without internet, it's his problem, and if he has an issue with it, he can fix it by capping his stuff.

      I just don't get why it's necessary to consume 100k/s or more of upload traffic for bittorrent at ANY time whatsoever. Besides that, he isn't the only one who uses bittorrent, and it's unfair to others if they can't because it makes web surfing impossible between the two of them.

      Social interaction reduced the problem, but did not eliminate it. This is why the router is in the open.

      --
      No, I am not an English major. My posts are subject to typos and incorrect grammar. Do not expect perfection.
    5. Re:My best suggestion: by tubegeek · · Score: 1

      Well, if he's an asshat, then you have to get crafty on him. Go in behind the wall plate of his ethernet jack (assuming it isn't just running spaghetti-style around the house) and get the insulation off for as far as you can reach. Then untwist all the twisted pairs, and then re-connect the wiring. That should noisy-up his connection enough to slow him down, I should think. (maybe wrap the cable around a ferrite donut a couple times while you're at it?) Come to think of it, you could probably log into the router and turn his port speed down, too. Anyway, another thing you could do is refuse to share the bill with him if he's going to be a jackass. If he wants to share the cost, he has to share the bandwidth. Also leave his milk out overnight EVERY NIGHT. And urinate on his bedding. So basically, stealth warfare but not too stealthy. Good luck!

  76. Net Limiter by iduno · · Score: 1

    I have been using Net Limiter (http://www.netlimiter.com/) for a while. It limits throughput per program, although it runs on each individual computer and requires the settings to be made on the computer, so if he changes or disables the limit, it'll affect speed again.

  77. Change ISP's ... by Anonymous Coward · · Score: 0

    ... to a supplier who already shapes traffic.

    You know, to Comcast, Charter, etc..

  78. Get him to switch to Azureus (a.k.a. Vuze?) by ivi · · Score: 1

    If he's not got a P2P client that lets him reduce its bandwidth use, get him to use one that does.

    Alternatively, insert a cheap PC with 2 LAN interfaces (NICs), running SmoothWall (firewall) between your ADSL modem & your switch.

    Among other things, SmoothWall can regulate bandwidth to guarantee each of you fair amounts.

    Actually, there OUGHT TO BE a ONE MORE FEATURE - yet to be developed? - in any such device:

    When one isn't using their portion of the bandwidth (& -certainly- when not connected to the switch or SmoothWall firewall), it should insure that all bandwidth goes to the one who is (& vice versa).

    Is there any OSS firewall, etc. that does that?

    TIA

  79. Install tomato by Rix · · Score: 1

    From here.

    Set up QoS rules as you like. If he's cooperative about it, downgrade the bittorrent priority based on the ports he uses for it. If he's not, just downgrade all his traffic.

  80. More of a house rules issue than a technical one by kungfoolery · · Score: 3, Insightful

    If you can't have a frank conversation about communal resource usage with your own roommate than your have much bigger problems than mere router configuration will ever solve.

    I'm sure you guys have laid down basic guidelines governing how you'll split up paying for and using shared stuff. Like, "Hey dude, if you insist on running that 20 node Beowulf cluster in your room to crunch SETI work units all day, you should pay more for electricity." Or if nothing that specific, at least rules along the lines of "neither of us should monopolize the common area on a consistent basis preventing the other from ever having guests over."

    I don't think shared Internet usage should be any different. If you're the administrator of the network at home, it seems that what you're suggesting would be tantamount to setting up bear traps in the common area to discourage over foraging by your inconsiderate roommate. Of course, if he/she is that much of a boor, maybe you have no choice.

    Bottom line though: it would probably be better to talk it over with your roommate rather than putting the smack down with filters and such... in the end, there'll be a lot less resentment from both ends.

  81. fill out a web form by Anonymous Coward · · Score: 0

    http://www.riaa.com/reportpiracy.php

    Wait a while.

    Problem will go away by itself.

  82. I tried this at home by Anonymous Coward · · Score: 0

    But the kids said I was violating our established rules on network neutrality.

    I replied that I didn't recall having passed such a rule.

    They replied they had added a rider to our last omnibus spending bill.

    Shame on me for not reading the legislation.

  83. The social problems: eating it cause it's there by Televiper2000 · · Score: 4, Insightful

    Honestly, this is the reason ISPs are moving toward throttling, packet shaping, and simply capping the bandwidth. There's a minority of bit torrent users hoarding the bandwidth so that they can hoard piles and piles of movies, music, and games that they have no reasonable expectation of using. "hey check it out man, I have the entire Simpson's series dubbed in Japanese!"

    --
    New! Device Legs: These legs will help your poor OEM installed product escape any hamfistedness it may encounter. Ava
  84. Is this really so complicated? by PottedMeat · · Score: 2, Interesting

    Whether your roommate knows he's using all the bandwidth or not you should approach him about it and settle it.

    When did people get so afraid of each other?

    PM

    1. Re:Is this really so complicated? by dufachi · · Score: 1

      I had a similar problem with a roommate sucking the bandwidth dry on our SDSL line (1.5 both ways) a few years back. I actually thought it was the ISP and called them numerous times trying to resolve the 2000ms+ pings I was getting to every site (at the time it wasn't so simple to see what bw was running through your router). It seemed to "magically" start around 730pm and last well into the evening. After logging into the modem as per my ISP's instructions, I was watching the upstream packets moving at a ridiculous rate so I unplugged his cable. It instantly stopped, so then I knew it was something on his machine. When I approached him about the issue, he claimed he was "only allowing 1 upload at a time", of course unthrottled. I suggested he throttle it to a reasonable amount (1/4 of our bandwidth as there were four of us sharing the connection). He told me to my face he would, but being the vindictive bastard that he was --then put a deadbolt on his door and would leave it running full throttle 10 hours a day while he was at work. So, I'd simply unplug his cable while he was gone. He finally got pissed at me and got his own dedicated DSL line two weeks later.

      Long story short, maybe this guy is like my ex-roommate and the op had the discussion already and wants to create his own solution to the problem without it resulting in alternate living conditions.

      Nowadays, I throttle everyone else where I currently live to reasonable amounts and block P2P apps and everyone here knows I do exactly that as long as I'm paying the bill.

      --
      -Kinsey
  85. Monowall or Pfsense by Anonymous Coward · · Score: 0

    Both Monowall and Pfsense have packet shaping with GUI configuration wizards which is perfect for throttling P2P. It won't load on your Linksys but you can use an old PC.

  86. Monowall or Pfsense by kylehase · · Score: 1

    Both Monwall and Pfsense have excellent traffic shaping as well as easy to use GUI wizards to help you throttle P2P. Unfortunately they won't load on your Linksys but they are so much more powerful than even DD-WRT.

    http://m0n0.ch/wall/
    http://www.pfsense.com/

    --
    You want fun, go home and buy a monkey!
  87. for winblowz by segagman · · Score: 1

    Run performance monitor by pressing Start, selecting Run, typing "perfmon" and pressing OK. You should get something that looks somewhat like this: Empty Perfmon Right click in the empty chart area and select Add Counters... and you should see something like this: Perfmon Counter Add Dialog The Performance Object dropdown lists several objects on your computer whose performance can be measured. The Processor, for example, is one. In that list select Network Interface, and the result looks like this: Perfmon Counter Add Network Interface The first list at the bottom of the dialog allows you to select which counters relating to that object you want to monitor. The second list allows you to select which object if there are more than one. In this example we'll select my "Intel Pro" network card on the right, and "Bytes Total/Sec" on the left. Press Add and Close and you'll see perfmon start to report the total bytes traversing the network card over time. After a little while in my example, it looks like this: Perfmon Counter Add Network Interface Perfmon is an incredibly powerful monitoring tool. There are lots of things available to monitor, and many display options. I encourage you to play around with it some. Of special note is the Select Counters from Computer option in the Add Counters dialog above. Perfmon allows you to monitor the performance of another Windows XP, 2000 or NT computer remotely, across your LAN. This means, for example, if someone on your network is hogging all the bandwidth then you can monitor each machine remotely in real time to see just who that might be. Monitoring is fairly easy. In addition to Perfmon there are certainly many third party applications that will allow you to do the same with different display and even triggered actions. Control, on the other hand, is the bad news. True control of something shared like a DSL connection can be done, but it gets costly. It's typically performed by high end routers that allow you to specify, often in great detail, how the bandwidth should be allocated or prioritized. Unfortunately that's usually out of reach of the most home LANs. In all honesty if this were my situation I'd just make sure the router was in arms-reach of my desk, and the cables well labeled. Then I'd physically unplug the connection for any computers who's users I felt needed to spend more time in the "real world". But that's just me. from http://ask-leo.com/can_i_monitor_or_control_the_bandwidth_used_on_my_home_network.html

  88. Will he let you install something on his PC? by tdelaney · · Score: 1

    Definitely look at DD-WRT if your router is supported (depends on the version).

    As an alternative, or additional measure, if he is running Windows, and if he will let you install something on his PC which will not significantly affect his downloading (and might improve it overall), but will definitely improve things for the rest of the network, download the 30-day trial of cFosSpeed and install it on his machine (running in multi-computer, non-cooperative mode).

    http://www.cfos.de/speed/cfosspeed_e.htm

    BTW, I paid for cFosSpeed after having it installed for 2 days - it's well and truly worth the 9 euros IMO, even if you've already got a traffic-shaping router (it tends to reduce the load on your router).

    One way to get him to agree to try it is by telling him that it will allow him to play online games and do other online activities while downloading (this is true) and at the same time will allow him to increase his maximum upload speed in his P2P program (since cFosSpeed prioritises TCP ACKs).

    If he's running linux, you can set up local traffic shaping yourself, but you'll have to go searching how.

    The main thing for this though is to point out to him that this will improve the internet connection for everyone, including himself.

  89. zyxel x-550 by majortom1981 · · Score: 1

    The zyxel x-550 has hardware qos that will do the job.

  90. Re:All major clients, but it still requires talkin by neon_geniuses · · Score: 2, Insightful

    QoS is really a must if you're sharing a connection and somebody runs Bittorrent.

    I disagree with the idea that traffic courtesy is the problem. We all want good torrent speeds. There is no reason to arbitrarily limit your torrents to 1/4 of the max upload bandwidth when the connection is probably going unused most of the time. Voluntary bandwidth limiting is still no substitute for a good router.

    I have set up both (uncrippled and crippled) versions of Linksys wireless routers and a couple Buffalo routers with the same Broadcom chipsets. The DD-WRT has terrible QoS and should only be used when you need the lite version. Tomato is the way to go, as half of the posters seem to be saying.

    You've already got a router up and running. Why not make it do its job efficiently? I think you underestimate the value of prioritizing web traffic and DNS queries. Before trying tomato, I put my uTorrent through the most draconian bandwidth caps I could think of. Upon switching from DD-WRT to Tomato (default settings), my household went from "my firefox doesn't work" to rock solid browsing all the time.

  91. Don't use software to solve social problems... by rit · · Score: 4, Insightful

    The best piece of professional advice I ever received was this:

    "Don't use software to solve social problems"

    This seems pretty apt here - instead of spending money and time trying to do this the hard way....

    Just fucking smack him, and tell him to behave responsibly or lose his internet privileges.

    1. Re:Don't use software to solve social problems... by Eighty7 · · Score: 1

      It's not a social problem if it can be solved by software now is it? Excuse us nerds for wanting to use our strengths to solve problems. Scream at some asshole vs set up QoS in 10 min, yeah I'll take option B, thanks.

  92. DD-WRT v24 RC-5 (11/22/07) micro by DarkLegacy · · Score: 1

    "Ethernet Port Priority: You may control your data rate according to which physical LAN port your device is plugged into. You may assign Priorities accordingly for devices connected on LAN ports 1 through 4."

    dd-wrt.com
    Enjoy.

    --
    127.0.0.1
  93. Re:All major clients, but it still requires talkin by kesuki · · Score: 2, Informative

    "Tomato is the way to go, as half of the posters seem to be saying."

    my original suggestion was to use smoothwall's QoS. but some people felt tomato would be better than a smoothwall setup, the only reason i like smoothwall is you don't need to flash a hardware router, and if you use an older PC it will use less power running smoothwall than it ever did running windows, for whatever reason any PC from the 486 on, always uses less power running free open source software than running windows, i think it's the 'system idle thread' i think it literally makes the cpu busy out rather than fall asleep...

    never had a problem with a Linux or BSD system doing no CPU activity, just routing a few packets and letting the cpu idle and use any on chip power savings... when i first switched my 486 from 24/7 windows to 24/7 freebsd (in 1996) i saved $10 a month in electric bills. (i still have the bills but they're in storage) plus, i never had to reboot freeBSD windows would crash every week.

  94. Don't Answer Him... It's a TRAP by Ralph+Spoilsport · · Score: 2, Funny

    He's from the RIAA, and he's part of a research to find ways to fix the problem at the root.

    --
    Shoes for Industry. Shoes for the Dead.
  95. IPCop by jcrousedotcom · · Score: 3, Informative

    I use ipcop http://www.ipcop.org/ for my home network - it's all of about 40 megs (well it was, I see the new update is quite a bit bigger so I may be low on that figure) and can run on any old pc lying around.

    It can do the traffic shaping you're wanting, plus, I found, especially when I am doing p2p downloading or some online gaming, my old netgear (very old) couldn't keep up and would drop packets. I saw my download speeds go up significantly and I have the opportunity to do traffic shaping if needed.

    It's free (donation) and very simple to set up. You don't have to be a linux guru to set it up, it has a web based interface for configuration.

    It works great for me.

    --
    Illiterate? Write for free help!
  96. Easy way by Billly+Gates · · Score: 1

    First go to your bit torrent settings and setup maximum download speed to 350k a second. Second the default bittorent incoming connections is set to 200. Move it down to 85 connections.

    This is with a 640k dsl connection at home and makes a HUGE difference.

    Occasionally I move up the download speed to 450k a second if no one is playing wow or doing anything intensive online.

    However if your isp is evil and is throttling down your whole connection then it wont make a different what your connection speed is. Even if your connection is only 5k a second your whole connection will be modded down to a 56k modem speed. THen your pretty much fucked.

    If that doesn't work you can try the harder more exotic methods described in the other comments.

  97. Might not even be necessary by Joce640k · · Score: 1

    It's a pretty safe bet that what he's actually doing is saturating the upstream bandwidth. This will bog down the whole connection and make it feel like molasses.

    A simple adjustment to his configuration will make everybody happy, including him - his download speed will increase.

    Unfortunately this means you'll have to go and actually talk to him.

    --
    No sig today...
    1. Re:Might not even be necessary by binaryspiral · · Score: 1

      Agree with Joce640k - if he's pushing your max upstream chances are his client simply needs to be adjusted to play nicely on your network.

      It should only be using 50-75% of the available upstream - any more and it'll be very noticeable to everyone else using it.

      Then again, P2P should still QoS'ed and be prioritized low on the importance.

    2. Re:Might not even be necessary by Anonymous Coward · · Score: 1, Interesting

      If it's an asymmetric connections (likely), then this has to be the problem. P2P isn't that nasty on the download side, but if you saturate the upload channel, all downloads suffer horribly, even P2P downloads. Watch the maximum upload speed, then cap it at 75% and things will run amazing better. Assuming he's the only P2P on the network. If there's more than one, give each one a portion of that 75% for upload. I wouldn't bother with download caps until capping upload first. It might be all it takes to fix the problem. As far as talking to him, that can be very hard with some people, if they are the "mind your own business" type.

  98. Build a Better firewall... by binaryspiral · · Score: 2, Informative

    Even the most expensive residential router chokes on the shear number of connections your average P2P client tries to maintain.

    I modified my WRT54G's setting to be just a wireless access point and switch by disabling the DHCP server - then built a cheap Smoothwall firewall using an old P3 800Mhz with a pair of pci nics.

    DSL -> Smoothwall -> LAN Port 1 on WRT54

    Leaving the WAN port unused, I still have three ports for wired PCs (nearly unlimited with the addition of more switches) and wireless works without a hitch. The WRT's job is just to be a switch and manage wireless authentication and encryption.

    The Smoothwall easily handles the traffic without slowing down other clients and (bonus) has QoS built in.

    It also provides web caching, email antivirus, DNS, NTP, Snort IDS, and so much more.

    Oh, and it's totally open source and available for download from smoothwall.org

    1. Re:Build a Better firewall... by toastee · · Score: 1

      Even the most expensive residential router chokes on the shear number of connections your average P2P client tries to maintain.

      I modified my WRT54G's setting to be just a wireless access point and switch by disabling the DHCP server - then built a cheap Smoothwall firewall using an old P3 800Mhz with a pair of pci nics.

      DSL -> Smoothwall -> LAN Port 1 on WRT54

      Leaving the WAN port unused, I still have three ports for wired PCs (nearly unlimited with the addition of more switches) and wireless works without a hitch. The WRT's job is just to be a switch and manage wireless authentication and encryption.

      The Smoothwall easily handles the traffic without slowing down other clients and (bonus) has QoS built in.

      It also provides web caching, email antivirus, DNS, NTP, Snort IDS, and so much more.

      Oh, and it's totally open source and available for download from smoothwall.org if you loaded the tomato or dd-wrt firmware onto that wrt54g you could use the wan port as an additional switchport.
      --
      - Better to speak your mind than to remain silent, or someone may speak for you.
  99. gluttony at both ends of the stack by zogger · · Score: 2, Interesting

    Good points, valid points, granted, and what exactly do the computer makers think people actually *do* with hundreds of gigabytes of hard drive space, type up school reports and recipes? And look at the freekin ads for the big ISPs, smiling happy people and advertising "blazing download speeds, enjoy movies" and etc. So? Where's the beef when people really try to do that? Why does unlimited really mean limited in the fine print?

      This is like the wink wink nod nod industry. The big pipe providers (in the US) though already got paid 200 billion dollars to roll out true high speed internet all over and did about bupkis with it except squabble over the low hanging profitable fruit in some select areas. The bulk of the nation gets grade C alleged broadband or not even that. Cry me a river of crocodile tears, like the auto industry in the US saying they can't make high MPG cars when they *sell* high MPG cars in Europe. In short, always read between the lines when big corporations bitch about stuff. It's just *cheaper* for them to do "throttling, packet shaping, and simply capping the bandwidth." than it is to actually, you know, improve the infrastructure from end to end. The fatcats Cxx whatevers and big pirate wallstreet "investors" ain't happy being millionaires anymore, nope, that ain't enough, they all got to be *billionaires* now and the only way to do that is to screw their customers over and bribe off government so they can get away with it.

    Frankly, being on dialup and being told directly by the lineman when they ran out new phone wire when I moved in here that they would *never* install anything good enough for DSL unless ordered to by the government (that is an exact quote when I asked him him if I could now get dsl and he was a smug and condescending ass about it too, BTW, near giggling over being able to screw a customer by charging for tissue paper phone lines with constant buzz and noise and crappy connections), I have little sympathy for the monopoly broadband folks and the entrenched telco cartels. I also have little sympathy for that roomate who was hogging what was available, and offered two fast solutions to that exact problem, because I have been in that situation with roomates and that is what we did, multiple lines, problem solved. If that crap-geting full seasons of the simpsons dubbed in japanese-is so important to someone, that they have to leech 24/7, let them get their own freeking line, that's what an adult would do anyway (loosely used term for anyone who would actually do that of course..seems rather silly to me, and the other roomate who I guess the net connections name is in is leaving him or herself open to getting *popped* by the the MAFIAA some day, another boneheaded decision). But if the telco folks would have their feet held to the fire by the government and the FCC the US could be on top and not like number 16 in the developed world for decent net connectivity, and then everyone might have some decent throughput and bandwith.

      Most places, if its cable, they've been there for years and have been milking a granted local monopoly with zero competition (and I remember before they even started, sat through a county commission hearing when they promised "no commercials, really, trust us!"). If it is the phone company, they've been mostly milking the same wires they strung up when alex bell was running things. I grew up with the "one" phone company and their pure asshattery corporate mindset, and I can tell you, it never went away even after they were allegedly "broken up", it's just a cartel now instead of one company. All that money they got went someplace, but a whole heaping pile of that 200 billion did not go into the last mile solution very many places except at the bare minimum possible level they could claim was "broadband".

    1. Re:gluttony at both ends of the stack by Joe+Jay+Bee · · Score: 1

      Good points, valid points, granted, and what exactly do the computer makers think people actually *do* with hundreds of gigabytes of hard drive space, type up school reports and recipes? And look at the freekin ads for the big ISPs, smiling happy people and advertising "blazing download speeds, enjoy movies" and etc. So? Where's the beef when people really try to do that? Why does unlimited really mean limited in the fine print?

      They say "enjoy movies", meant in the sense that most people enjoy movies; maybe download one a couple times a week to watch with family.

      What the GP was talking about is "enjoying movies" by downloading hundreds of them 24/7 maxing out their bandwidth, movies which they download faster than they watch (and believe me, it happens...) Although the ad is vague, a layman wouldn't interpret it as "cool, I can download everything on Mininova", they'd interpret it as "cool, I can download movies now". It's not the cable company's fault if people want to take things to extremes.

  100. Low Tech Solution by YetAnotherBob · · Score: 1

    I had the same problem about 6 months ago. I found a simple solution. Just unplug the wireless router and cable modem for about 10 minutes. Worked like a charm.

    Of course, this only works if you are the responsible party when the bill comes due. If there is argument, I just leave it unplugged overnight. They'll come around.

    If on the other hand, you are the rider, and they pay for the service, then they also call the shots. If you split the bill, then split the service too. If they keep it up, just stop paying.

    This is called negotiation. If it is more of a marriage situation, then you will need to do more sensitive and caring negotiations.

    If approached gently, most people will throttle it down for you, without any display of power. After all, you would, wouldn't you?

    --
    Everybody knows 3 people with my name.
  101. Re:stop staring into the abyss/abuse by rrrlc · · Score: 1

    talking to her will be a lot less fun.

  102. Ironically you use that router to defeat shaping by CHRONOSS2008 · · Score: 0, Troll

    Ironically you use that router to defeat shaping btw the fraking filtersystem here is gay wont let me fraking post yet will let me when i do not use any caps so in favour i will use no punctuation as a protest of the stupidity of the parent poster. who in effect wants you to show them how to shape a MLPPP setup

  103. cFosSpeed by BrunoB · · Score: 1

    If u're using Windows i'd suggest u to try cFosSpeed (www.cfosspeed.com), it does traffic shaping on windows and has l7 detection, i use it at home where among me and my housemates we have about 10 computers connected to the same line, and everything works fine, even if we have a highly asymmetric line (20Mb down/1Mb up), and even if we have several P2P programs working at the same time.

    Other than by l7 detection it can prioritize traffic by the program's filename, which is very useful since many P2P programs today use data encryption, which makes l7 detection difficult. However, this is possible only on the computer the program is installed on, so best solution is to have one computer online 24/7 to share the connection, shape it with cFosSpeed, and also have any P2P programs installed there, so they'll get the proper priority. And by the way remember to raise the connections limit in XP also.

    Only drawback? it's shareware, but not expensive indeed and u can test it for free for 30 days.

  104. Re:All major clients, but it still requires talkin by Lendrick · · Score: 2, Insightful

    It's not just a courtesy thing. You can solve a lot with traffic shaping and other configuration, allowing your roommate to maintain relatively high bittorrent speeds and still have a decent web surfing experience. The one thing, mentioned above, is QoS. The other thing you might want to look into is the size of your router's NAT table and its TCP timeouts. If your roommate has 500 concurrent TCP connections out of a possible 512, that's going to slow you way down. If, on the other hand, you're looking at 500 out of a possible 4096, you should be in a lot better shape. You'll still *notice* when there are bittorrents running, but your internet should still be usable.

  105. Limit Connections by Anonymous Coward · · Score: 0

    Simple sollution is having him limit number of connections.
    In our house we share an 10Mb connection among 7 people. Of the 7 people 4 torrent heavily often using 90-95% of up and downstream bandwidth. I had everyone limit their connections to 40 total. This means that the router would only have to handle at most 160 simultaneous connections. When connections are unlimited our router (Linksys wrt350N running dd-wrt) would report 100% processor usage. If your housemate is using unlimited connections your router is dying. Even when all 4 are torrenting in our home the internet speed is still blazing fast.

  106. Gaming router by Anonymous Coward · · Score: 0

    Get a gaming router and prioritize your connections...

    OPENWRT on that Linksys might allow you to achieve traffic shaping you desire as well...better option than building a dedicated machine to do it...

    Good luck!

  107. Re: get Tomato by Anonymous Coward · · Score: 0

    I second that. I've installed Tomato and it solved all my QoS problems. DDWRT might be good too, but if you just want a better QoS from your router Tomato is an easier and a possibly better solution, I can highly recommend it.
    I don't have the memory problem (I bought the bigger one), but I've read it on the net somewhere, that they solved it by limiting the number of concurrent uploads/downloads (same time leavin the bandwith high of course).

  108. traffic shaping on consumer class routers by Anonymous Coward · · Score: 0

    DDWRT has very good traffic shaping options, including layer 7 filtering. I tried it once on my buffalo router, but it was too slow to be usable. I don't think it's usable on any consumer class router. It should run fine on a x86 machine, though.
    Keep in mind that layer 7 filtering won't detect encrypted bittorrent traffic.

  109. m0n0wall all the way by gadago · · Score: 1

    Why not take a look at m0n0wall http://m0n0.ch/wall/ it provides many features only available on commercial routers and has an excellent traffic shaping tool. The traffic shaper can be setup using the simple wiziard or by creating advanced pipes and queues. Screenshots of the traffic shaper can be found on this page http://m0n0.ch/wall/screenshots.php

  110. pfSense really works by AmiMoJo · · Score: 1

    For P2P stuff, pfSense has excellent traffic shaping rules that really work. Compared to everything else I have tried, including alternative Linksys firmwares, if someone using P2P maxes out the connection simply prioritising HTTP/VOIP isn't going to help much. pfSense is a bit more complex than that. Plus, you can use it to simply place an absolute cap on the amount of upload bandwidth available to P2P apps.

    I wrote a blog entry with some more info on configuring it: http://mojochan.wordpress.com/2008/03/10/traffic-shaping-with-pfsense/

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    1. Re:pfSense really works by ps3udonym · · Score: 1

      I use PFSense at home. I have to admit the reason I use it is I am just too damn lazy to whip up a PF.Conf and PFSense makes it easy. For home use it is perfect. My upstream is ussually pinned (Not because of file sharing actually) but I don't notice any slowdowns in games or web as these are prioitized higher than my P2P traffic (which is a catch all, all undefined traffic goes in this que).

      Works pefectly!

  111. Re:All major clients, but it still requires talkin by immel · · Score: 1

    As others have said, communication is key here. I think the direction of the conversation hinges on whether or not he helps pay for the connection.
    If not, remind him that it is your connection and that you have to set some rules. If he does, suggest that he either adopts a bandwidth cap or gets his own connection.

    --

    10 Bits= $.25
    100 Bits= $.50
    110 Bits= $.75
    1000 Bits= 1 byte
  112. m0n0wall! by Anonymous Coward · · Score: 0

    http://m0n0.ch/wall/

      m0n0wall already provides many of the features of expensive commercial firewalls, including:

            * web interface (supports SSL)
            * serial console interface for recovery
                        o set LAN IP address
                        o reset password
                        o restore factory defaults
                        o reboot system
            * wireless support (access point with PRISM-II/2.5/3 cards, BSS/IBSS with other cards including Cisco)
            * captive portal
            * 802.1Q VLAN support
            * stateful packet filtering
                        o block/pass rules
                        o logging
            * NAT/PAT (including 1:1)
            * DHCP client, PPPoE, PPTP and Telstra BigPond Cable support on the WAN interface
            * IPsec VPN tunnels (IKE; with support for hardware crypto cards, mobile clients and certificates)
            * PPTP VPN (with RADIUS server support)
            * static routes
            * DHCP server and relay
            * caching DNS forwarder
            * DynDNS client and RFC 2136 DNS updater
            * SNMP agent
            * traffic shaper
            * SVG-based traffic grapher
            * firmware upgrade through the web browser
            * Wake on LAN client
            * configuration backup/restore
            * host/network aliases

    Runs on Pentium 233 with 64mb of RAM and two network cards. Need I say more?

  113. The definitive answer by mysticgoat · · Score: 1

    93% of experts polled say that the most effective and efficient answer is to upgrade to Housemate 2.0, which will also resolve a lot of other nagging resource sharing issues that at first glance may seem unrelated.

    Caveat: 89% of all statistics are made up on the spot.

    Other caveat: it can still be funny even if it is unoriginal.

  114. cfosspeed for Windows by Lukano · · Score: 1

    One program that I've had a lot of luck with is cfosSpeed (www.cfos.de). It's windows only, but does a damned good job of client level traffic shaping and control (better infact than any consumer router I've tried, and almost as good as a custom Smoothwall or m0n0wall box with detailed traffic shaping scripts).

  115. Same Problem at my house by Anonymous Coward · · Score: 0

    My brother and I both use bittorrent. On our VZ DSL line it gets pretty congested running bittorrent. So when we want to download something we plan in advance and warn each other when we're running the program over night.

    I have yet to have any problem with this arrangement. Seriously just talk to him and ask that he run his P2P client over night. Then in the morning just turn it off.

  116. Number of Connections used by Bittorrent by Anonymous Coward · · Score: 0

    I convinced my roommate to change the maximum number of simultaneous connections at a time.

    The main problem for me was that the router we used at home (cheap one provided by ISP) was dying due to the number of connections open at the same time. The number of files multiplied by the number of connections he had open for each was really killing my home router.

    Luckily he sought me for advice on most things related to IT. So I convinced him to reduce the number of connections he had active using the settings on Azureus. Since he was downloading the latest he only really needed 5-10 connections to utilize majority of the bandwidth.

    Leaving the router with enough breathing space to let me do my work. Slow, yes. But not so annoying.

  117. Hmmm, this problem sounds familiar by Anonymous Coward · · Score: 0

    I love how this is exactly the same problem isps complain about, except smaller scale. When the isps want to control traffic, the uproar is deafening about how they have no right to do so. When it's all on a local router, the solutions are either to traffic shape or, lol, claim its a social issue and that you should just ask him to be reasonable.

    Did you hear that Comcast? All you have to do is ask p2p users nicely to limit their bandwidth use. What an elegant and effective solution!

  118. Tomato solves this easily, cleanly, quickly and... by Anonymous Coward · · Score: 0

    Tomato solves this easily, cleanly, quickly, and it lets you monitor what's going on so you can adjust things.

    It'll let you set bandwidth by port; by how much traffic has already transferred; set bandwidth by easy catagories (but with full control). If you *want* to get wonky it has ssh and command line but likely you don't.

    You have by port control but I don't know much about that since it is just me and my wife.

  119. Some nerve you got there, buddy... by scarboni888 · · Score: 1

    Posting a request on Slashdot of all places requesting help with throttling...

    Same message for you as for the ISP's: quit cheaping out & upgrade the fscking pipe!

    Gawd why is it so hard for people to fsking understand that?

  120. Woah by matt+me · · Score: 1

    I understand that speaking to him in person could be difficult.

    Send him an instant message.

  121. Re:The social problems: eating it cause it's there by Anonymous Coward · · Score: 0

    The difference is that I don't have the expectation to share with my neighbors. It is sensible that if you are sharing the bill with your roommate that you only have so much bandwidth between the two of you, you need to come to an agreement on how to share it.

    I don't know what the total cap of bandwidth the ISP has available. Besides that, how on earth do you expect someone to negotiate with everyone who is on the same ISP line?

    It is easy to talk to your roommate. Everyone on your city block? Not so much.

  122. Re:The social problems: eating it cause it's there by rizole · · Score: 1

    The entire series in Japanese? Man do you have a link to that? Please please please?

  123. Re:Man up!/yep, man up! by zogger · · Score: 1

    What's wrong with telling the offending roommate to stop being a hog? That's why I titled my reply man up!, because that is what is needed the most. Sounds more like they are afraid of the room mate, if so, they have bigger issues than some internet connection. And bit torrent clients have settings where you can adjust speeds, plus number of torrents being downloaded at the same time. There's the simplest technical solution, just tell them to use the settings that are there and drop the demand side down a little so that others can use the net as well, there's no need to jump through exotic home router traffic shaping when the actual application the hog room mate is using can do it and the room mates should be able to discuss being a hog about things. What's next, the room mate drinks all the milk and rarely buys any, so you need to work out a milk delivery restriction schedule at the supermarket?

    Sorry, I'll pass on the rube goldberg methods. And it is an ask slashdot, the person wanted opinions on how to solve the problem, so there ya go, this problem is a mountain out of a molehill with several easy solutions available.

  124. Packet shaping by springbox · · Score: 1

    The router at home runs a precompiled version of Gentoo with HTB init and ESFQ. Works great especially since there's one person here who used to suck up all bandwidth making the internet unusable for everyone else.

  125. Just Talk by nyok · · Score: 1

    I mean since you are sharing the internet connection then he should not hog it all all the time. He can either limit it himself or you can tell him to get his own connection

  126. Not a bandwidth problem by yellowalienbaby · · Score: 1

    This is an people problem.

    fix teh people!

    --
    Darwin Hawking Blackmore
  127. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion