Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Networking

P2P Traffic Shaping For Home Use? 288

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?"
This discussion has been archived. No new comments can be posted.

P2P Traffic Shaping For Home Use?

Comments Filter:
  • Need more input! (Score:3, Insightful)

    by UncleTogie ( 1004853 ) * on Saturday May 24, 2008 @06:01PM (#23531972) Homepage Journal

    I have a Linksys WRT54G available...

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

    • by Divebus ( 860563 ) on Saturday May 24, 2008 @06:22PM (#23532162)
      Simple - take a BIG HAMMER to his computer.
    • Re: (Score:2, Informative)

      by srlapo ( 1210476 )
      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.
      • 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 with
    • Re: (Score:3, Interesting)

      by STrinity ( 723872 )
      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.
    • Re:Need more input! (Score:4, Informative)

      by mrmeval ( 662166 ) <jcmeval@@@yahoo...com> on Saturday May 24, 2008 @08:27PM (#23532962) Journal
      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/ [dd-wrt.com]

  • by Anonymous Coward on Saturday May 24, 2008 @06:01PM (#23531974)
    Install OpenWrt, then:

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

    qos-start
  • How about ask? (Score:5, Insightful)

    by Alioth ( 221270 ) <no@spam> on Saturday May 24, 2008 @06:01PM (#23531978) Journal
    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.
    • Re:How about ask? (Score:4, Informative)

      by kesuki ( 321456 ) on Saturday May 24, 2008 @06:09PM (#23532056) Journal
      as opposed to using traffic shaping, you can force the guy to switch clients to azureus http://azureus.sourceforge.net/ [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.
      • by Nerobro ( 303656 ) * on Saturday May 24, 2008 @06:14PM (#23532100)
        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.
        • 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....
        • the simplest fix (Score:3, Interesting)

          by j1m+5n0w ( 749199 )

          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

        • Re: (Score:3, Insightful)

          by Lendrick ( 314723 )
          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
      • utorrent can do the same with 50% or more less cpu load.
        • Please cite examples of uTorrent using 50% less CPU load than Azureus. And please, not 'omg lawl' forum posts by uTorrent fanboys.
    • Re: (Score:3, Informative)

      by Vectronic ( 1221470 )
      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).

    • 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 w

    • Re: (Score:3, Insightful)

      by Chemisor ( 97276 )
      > 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 poste
  • by Dolohov ( 114209 ) on Saturday May 24, 2008 @06:01PM (#23531984)
    Seriously. An arms race is not going to solve your problem.
    • by ozamosi ( 615254 ) on Saturday May 24, 2008 @06:09PM (#23532060) Homepage
      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.
    • Re: (Score:2, Informative)

      by eli2k ( 948315 )
      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?
    • 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"
    • This one may be more effective.
  • QoS (Score:5, Informative)

    by llamalad ( 12917 ) on Saturday May 24, 2008 @06:02PM (#23531986)
    Just set up QoS such that VOIP, SMTP, HTTP, HTTPS, and whatever else you care about gets prioritized.
    • 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.)
    • Re: (Score:3, 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.
    • 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.
  • by eric76 ( 679787 ) on Saturday May 24, 2008 @06:02PM (#23531990)
    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.
  • Obvious (Score:5, Funny)

    by Anonymous Coward on Saturday May 24, 2008 @06:04PM (#23532000)
    Beat the shit out of the fucker.
  • Man up! (Score:3, Insightful)

    by zogger ( 617870 ) on Saturday May 24, 2008 @06:05PM (#23532012) Homepage Journal
    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.
  • by kesuki ( 321456 ) on Saturday May 24, 2008 @06:05PM (#23532018) Journal
    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 [linux-noob.com]

    smoothwall linux
    http://www.smoothwall.org/ [smoothwall.org]
  • by Anonymous Coward on Saturday May 24, 2008 @06:06PM (#23532024)
    Switch to Comcast!
  • 1st off (Score:5, Informative)

    by atarione ( 601740 ) on Saturday May 24, 2008 @06:06PM (#23532028)
    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 [dd-wrt.com]
    • Re: (Score:3, Insightful)

      by atarione ( 601740 )
      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?
    • mmm, Tomato (Score:3, Informative)

      by straponego ( 521991 )
      I quite like Tomato firmware as well: http://www.polarcloud.com/tomato [polarcloud.com]

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

    • 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.
      • by dwater ( 72834 )
        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 con
        • by Tau Neutrino ( 76206 ) on Saturday May 24, 2008 @09:12PM (#23533196)
          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.
    • 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.
  • 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
    • Re: (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 le
      • by ydrol ( 626558 ) on Saturday May 24, 2008 @10:18PM (#23533313)
        > 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

  • 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!
  • 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 no
  • by Zarhan ( 415465 ) on Saturday May 24, 2008 @06:13PM (#23532098)
    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.
    • 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.
  • the human approach (Score:4, Insightful)

    by Peganthyrus ( 713645 ) on Saturday May 24, 2008 @06:17PM (#23532134) Homepage
    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.
  • by AdamHaun ( 43173 ) on Saturday May 24, 2008 @06:17PM (#23532140) Journal
    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?

  • Just speak to him! (Score:5, Interesting)

    by drspliff ( 652992 ) on Saturday May 24, 2008 @06:19PM (#23532146)
    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.
    • by Omnifarious ( 11933 ) <eric-slashNO@SPAMomnifarious.org> on Saturday May 24, 2008 @06:35PM (#23532244) Homepage Journal

      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.

  • by QX-Mat ( 460729 ) on Saturday May 24, 2008 @06:28PM (#23532194)
    http://games.dlink.com/products/?pid=370 [dlink.com]

    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
    • by chrysrobyn ( 106763 ) on Saturday May 24, 2008 @07:35PM (#23532654)

      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.

  • by Piranhaa ( 672441 ) on Saturday May 24, 2008 @06:29PM (#23532200)
  • DD-WRT (Score:4, Insightful)

    by Solandri ( 704621 ) on Saturday May 24, 2008 @06:33PM (#23532230)
    You may be able to install DD-WRT [dd-wrt.com] 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.

  • There are a bunch of options for open-source firmware that will do traffic-shaping on your router. I personally use Tomato [polarcloud.com] 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
  • by rts008 ( 812749 ) on Saturday May 24, 2008 @06:37PM (#23532268) Journal
    Nerf guns at 20 paces, last nerd standing wins!
  • dsniff's tcpkill does wonderful things... ;-)
  • Just sign up with Comcast :-)
  • 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 s
  • aka traffic shaping
  • 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.
  • Netpriva [netpriva.com] 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.
  • DD-WRT vs X-Wrt (Score:2, Interesting)

    by bitsent ( 1295282 )
    There is some controversy surrounding DD-WRT [bitsum.com]; you must decide if you want to support them or not. I use OpenWrt with the X-Wrt extension [x-wrt.org], which also has powerful QoS functionality in a GUI.
  • 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 "traffi
  • Tomato (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/ [polarcloud.com]
  • by xororand ( 860319 ) on Saturday May 24, 2008 @07:18PM (#23532554)
    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 [tldp.org]

    A short pragmatic example using HTB & SFQ can be found here: http://gentoo-wiki.com/HOWTO_Packet_Shaping [gentoo-wiki.com]
  • by rueger ( 210566 ) on Saturday May 24, 2008 @07:23PM (#23532596) Homepage
    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.
  • 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.
  • 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.
  • 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.
  • From the uTorrent FAQ [utorrent.com]: "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

  • 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
  • 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.

  • by rit ( 64731 ) <bwmcadams.gmail@com> on Saturday May 24, 2008 @10:45PM (#23533445) Homepage
    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.

  • by Ralph Spoilsport ( 673134 ) * on Saturday May 24, 2008 @11:00PM (#23533505) Journal
    He's from the RIAA, and he's part of a research to find ways to fix the problem at the root.

The truth of a proposition has nothing to do with its credibility. And vice versa.

Working...