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?"

10 of 288 comments (clear)

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

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

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

  4. 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
  5. 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.
  6. 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.

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

  8. 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
  9. 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.