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?"
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!
Install OpenWrt, then:
/etc/config/qos
ipkg install qos-scripts
vi
[ enter your linespeed in the right place ]
qos-start
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.
Oolite: Elite-like game. For Mac, Linux and Windows
Seriously. An arms race is not going to solve your problem.
Just set up QoS such that VOIP, SMTP, HTTP, HTTPS, and whatever else you care about gets prioritized.
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.
A few seconds of Googling will take you to dd-wrt.
Beat the shit out of the fucker.
Come on. Use the Internet. In less than a minute Google had the answer.
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.
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!
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/
https://www.gnu.org/philosophy/free-sw.html
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.
Switch to Comcast!
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
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.
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.
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!
3. profit
4. problem solved!
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
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.
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
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.
It also has QoS features, and a nice AJAX interface.
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.
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
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.
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.
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.
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....
If you haven't tried anything yet, use brute force! ;)
(Or offer him some home-made beer.)
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.
Now you better deliver, or everyone on /. will think nasty thoughts about you for five minutes.
Seriously, that's all. We got nuthin.
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
http://www.openbsd.org/cgi-bin/man.cgi?query=pf.conf 'nuf said
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.
Problem solved.
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.
http://info.iet.unipi.it/~luigi/ip_dummynet/
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.
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
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.
Usually it's the upload being saturated which causes this problem, especially on asymmetric speed links like ADSL.
:D
:D
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
Your first challenge though, is to rewire your network so you can have a box which all traffic goes through
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
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.
dsniff's tcpkill does wonderful things... ;-)
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?
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 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....
aka traffic shaping
Hi, how can I set up DD-WRT & QoS on Linksys WRT54G with the latest Tomato Firmware already installed? Thanks! -NKA
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.
I make websites and stuff. Buy one.
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!
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.
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.
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.
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.)
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.
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.
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."
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.
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
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.
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.
Three Squirrels
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.
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.
Trojan horse? AC, meet reality.
"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.
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.
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.
Tomato is awesome. QoS fixed my network and it made my roommate get a job.
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
This one may be more effective.
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.
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.
... to a supplier who already shapes traffic.
You know, to Comcast, Charter, etc..
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
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.
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.
http://www.riaa.com/reportpiracy.php
Wait a while.
Problem will go away by itself.
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.
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
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
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.
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!
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
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.
The zyxel x-550 has hardware qos that will do the job.
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.
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.
"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
"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.
https://www.gnu.org/philosophy/free-sw.html
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.
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!
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.
http://saveie6.com/
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...
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
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".
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.
talking to her will be a lot less fun.
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
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.
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.
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.
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!
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).
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.
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
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
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
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?
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.
http://gentoo-wiki.com/HOWTO_Packet_Shaping
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).
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.
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.
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!
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.
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?
I understand that speaking to him in person could be difficult.
Send him an instant message.
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.
The entire series in Japanese? Man do you have a link to that? Please please please?
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.
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.
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
This is an people problem.
fix teh people!
Darwin Hawking Blackmore
Comment removed based on user account deletion