Exploring Quality of Service For Home Routers A Little Elbow Grease Makes Your Home Network Run Smoother If you saw my article on DIY Linux Routers, then you might have already taken the plunge and gotten yourself up and running with one. One of the primary reasons I made the switch to a dedicated machine running a Linux router distro was to have a router that would not lock up on me regularly, but what I found was that the additional features that these distros come with became a large part of why I love my Linux router. The only problem was that there was almost no information out there for the layperson about how to take advantage of these advanced features. So while I had all of this power readily available, it took me a long time to figure out how to effectively take advantage of it. In this next series of articles, I will be taking a look at some of the settings and features that would provide most useful to home power users looking to take control of their network. I will primarily be focusing on Astaro Security Gateway 8 and Untangle 9.2 simply because they have the most comprehensive feature set and also because it is what I use and know the best. Quality of Service (Traffic Shaping)The first thing were going to take a look at is quality of service (QoS) -- also known as traffic shaping. Five years ago, youd be hard pressed to find this feature outside of high-end enterprise level firewalls, but it seems it is becoming almost standard on most new routers. Most people either are unaware that they even have such a feature or they never use it to its full potential. The first thing you need to know about QoS is that its almost always for upstream bandwidth only. This means that if your kids or roommates are watching a Dr. Who marathon on Netflix while youre trying to download that file you need for school or work, youre going to be out of luck. There is however an exception in the form of Untangles implementation of QoS. Because of that, for the QoS section of this article, Im going to focus exclusively on Untangle. The principles apply to most any other QoS engine, so applying the concepts to another system should be fairly easy. The first thing you want to do is find out what youre connection speed is. You need to do this because if you have lets say a 2 megabit connection, and you enter that you have a 2.5 megabit connection, the QoS engine will think you have more bandwidth than you actually do. This will cause it to over allocate your connection and it will turn into a big mess. So, go to www.speedtest.net and run the test at least 3 times to get a good average of what your connection speed is. Make sure when doing this that there is no other activity on your network that is using bandwidth. Take 85-95% of your determined connection speed and write that number down. Find the place in whatever product youre using where you need to enter you connection speed, and enter in the number(s) you wrote down. Untangles QoS settings can be found under Config > Networking > Advanced > QoS and it looks like this (click to enlarge): .png/thumb200.jpg)
Be sure to note what units it asks for. Here, it asks for kbps not mbps. In other programs it might ask for mbps. Most products with QoS have a number of default rules that allow you to set the priority. Some distros like smoothwall stop here and do not let you configure anything but the priority. Others, like Untangle, let you not only define the priorities in terms of bandwidth allocated, but also allow you to create custom rules.Here are Untangles default QoS rules: 
Here is the QoS priorities box: .png/thumb200.jpg)
You can edit any of these values to suit the needs of your home network. Want to make sure Bittorrent is never taking priority over anything else and also never uses more than 10% of the entire networks bandwidth? Create a custom rule (more on that in a second) and assign it to the priority Limited Severely. Want to make sure your VoIP calls get at least 60% of the bandwidth if they need it? Create another rule and set the priority to Very High. Again, keep in mind that any of these values can change. So if you want your VoIP calls to have at least 70% of the bandwidth, just change the upload reservation to 70% under Very High. When doing this though, you want to make sure that you dont reserve more than 100% of your bandwidth. Notice the reservations all add up to 100. The reservation/limit concept can be a little tough to grasp, so here is an example to help clarify. Let's assume that you have HTTP traffic set to Medium priority and you are uploading a large file through a web interface. You are using 100% of the available upload because you have specified that the Medium priority can utilize 100% of the connection so long as nothing higher than it needs bandwidth. A VoIP call then comes in. At this time, the router will drop the upload speed on the HTTP interface to no less than 12% of the bandwidth (because it has 12% reserved), and the VoIP protocol has up to 60% of the bandwidth available if it needs it. All of this is dynamic, so if the VoIP call is only using 30% of the bandwidth, the HTTP upload can utilize more of it. Custom QoS RulesUntangle, along with many other distros, allows you to create your own custom QoS rules. With Untangle, however, there is one caveat: you need to create a bypass rule in order to be able to prioritize the traffic. What does this mean exactly? It simply means that the network traffic will bypass the untangle application itself and go straight to the Linux kernel then onto the network interface. What does all of that mean for the user? It means that any traffic that is bypassed will not be run through any of the Untangle apps. So if you wanted to bypass HTTP traffic in order to shape it, you would lose out on things like virus scanning and the web filter. So in this situation, you would have to choose whether or not you wanted QoS to be active on HTTP or whether or not you wanted HTTP to run through any of the active apps that you have running on your Untangle machine. More about creating bypass rules in Untangle can be found here. The good news is that if you absolutely need QoS on non-bypassed protocols, Untangles Bandwidth Control app does just that. It does cost money however, and it is not exactly cheap at $270/year for up to 10 PCs -- and $540/year for up to 50 PCs. At that price tag it's certainly not for everyone, but it may be worth it to some and at least the option is there. Creating custom rules is very simple. Click add, and then create a name and fill in the corresponding ports to whatever you are trying to shape (ex. TCP port 80 for HTTP). Then choose the priority and enable it. Note that the rules get processed from top to bottom, so put your most critical traffic rules at the top. The basics covered in this article are going to be the same regardless of what distro youre using. For the specifics however, you will need to consult your distros user manual or wiki. This article is part of an effort to solicit content from the Broadband Reports community. If you'd like to participate, please contact us.
|
 |  |  mix join:2002-03-19 Utica, MI | Re: QoS In DDWRT... You should try the QoS in Gargoyle. It actually works. | |
|  |  |  |  |  |  |  Noah VailSon made my AvatarPremium join:2004-12-10 Lorton, VA kudos:2 Reviews:
·Bright House
| Re: QoS In DDWRT... said by swintec: I think even Tomato has better QoS setup than DD-WRT doesnt it? My experience is that Tomato's QoS worked pretty well. Certainly better than DD-WRT which I found performed poorly - at best. -- The Dark Tower's Skynet evolves from 4chan. | |
|  |  |  |  mix join:2002-03-19 Utica, MI | Don't really know, considering Tomato is supported on far fewer routers than dd-wrt and OpenWRT. What router are you using? | |
|  |  |  |  |  |  |  |  |  |  |  mix join:2002-03-19 Utica, MI | Re: QoS In DDWRT... The WRT160N ver. 3 is a broadcom device with a serial flash chip, it's the same hardware as the Linksys E1000. The WRT160NL is a Atheros device. These are completely different routers. | |
|  |  |  |  |  |  |  |
 |  |  |  | | said by swintec:said by mix:You should try the QoS in Gargoyle. It actually works. Looks nice and clean but my router doesnt appear on there supported list. I think even Tomato has better QoS setup than DD-WRT doesnt it? I love and use Tomato (I'm specifically using Toastman builds these days, as the main Tomato builds have gone stale), but it seems to have the same limitation you mentioned of never allowing anything to go faster than the QoS limit. I had to temporarily tweak/disable my Tomato QoS settings in order to get full speed on some Steam game downloads over the holidays. | |
|
 |  tshirtPremium,MVM join:2004-07-11 Snohomish, WA kudos:3 Reviews:
·Comcast
| Unsuprisingly many home routers have QoS settings, and quite a few of them work very well with factory firmware, certainly well enough for the intended "Home Network" gateway. I certainly can't see most people in that demographic paying another $200+ just to have 'leet rooted router software perform the same basic task. The article was interesting just to know whats out there, in case I run in to someone who actually needs it. | |
|  |  |  Oh_NoTrogglus normalus join:2011-05-21 Chicago, IL | Re: QoS In DDWRT... I dont get way that pay software was listed in an article. No one will buy that. There are too many free options for QoS to justify spending money on something. | |
|
 |  Oh_NoTrogglus normalus join:2011-05-21 Chicago, IL | That is why you subtract the over head from your sync rate to get your absolute max speed. Then you enter in that max speed into DD-WRT and your problem is solved. | |
|  |  |  |
 Noah VailSon made my AvatarPremium join:2004-12-10 Lorton, VA kudos:2 Reviews:
·Bright House
| Good discussion topic QoS is an undercovered feature. Indeed, it's one thing that DD-WRT has never done well.
That's what drove me to buy the first D-Link Xtreme gaming router. I don't game, I just wanted to my VoIP to work while bittorrenting.
Presently I use a *nix edge device for my QoS, like what is covered in the OP. It's been terrific, especially since my needs are so much more than they were. -- The Dark Tower's Skynet evolves from 4chan. | |
|  Simba7I Void Warranties join:2003-03-24 Billings, MT | Why use Untangle anyway? It seems to want a lot of system resources for being a router OS. | |
|  |  | | Re: Why use Untangle anyway? Why not?
Download and test it and you will be sold. Yes it demands some more power that DD-WRT or Tomato but you can do so much more.
I was running DD-WRT up to 2009 and then I found Untangle and i have never lookt back :P
So atleast download and try it in bridge behind your current setup and see the pure power of it 
With Regards, WebFooL Untangle Evangelist | |
|  |  |  Oh_NoTrogglus normalus join:2011-05-21 Chicago, IL | Re: Why use Untangle anyway? The QoS on my DD-WRT works with any problems for torrents and browsing. Why would I "pay" for something when I can get it for free from other companies??? | |
|  |  |  |  | | Re: Why use Untangle anyway? You can use the free QoS for torrent traffic. But then you need to bypass the UVM.
But in most cases where i use my Untangle i wan't to control the bittorrent usage and with my DD-WRT i had huge problems of blocking all of it.
But if you just are after QoS you have more than 100 opensource projects that you can use.
What i am saying is that Untangle have a good mix of all you need sure some moduls that you wan't might cost but then they have put allot of time to develop there product so i understand that they can't just give it away for free.
//WebFooL Untangle Evangelist | |
|  |  |  |  |  Oh_NoTrogglus normalus join:2011-05-21 Chicago, IL | Re: Why use Untangle anyway? All I am saying is it is not worth the cost. I dont see one application where someone needs this enough to justify the costs. I hope someone is not dupped into purchasing this thinking it is so great because of the DSLr advertisement article. | |
|
 |  |  |  Noah VailSon made my AvatarPremium join:2004-12-10 Lorton, VA kudos:2 Reviews:
·Bright House
| said by Oh_No:The QoS on my DD-WRT works with any problems for torrents and browsing. You've had a different experience than I had with it. Keep in mind that my last attempt was 3 years ago.
I originally jumped to DD-WRT (prob around v16) because I was frustrated with Sveasoft (and HyperWRT seemed to have gone adrift). Between then and 2009 I had prob tried a doz ver.s on a doz routers.
I followed every post there was on QoS, trying to get DD-WRT to maintain VoIP while heavily bittorrenting. I was never able to get it to work. From what I read in the threads, I'm not sure anyone else did either.
Obviously there's been a lot of development over there. I could believe they finally fixed it.
Even with it's QoS issues, DD-WRT was the best platform going. I still deploy it for bridges and APs.
Tomato is also excellent, but DD-WRT has been a better fit for me. -- The Dark Tower's Skynet evolves from 4chan. | |
|  |  |  |  |  Oh_NoTrogglus normalus join:2011-05-21 Chicago, IL | Re: Why use Untangle anyway? QoS worked without problems on my BEFSR41 from like 2001 to WRT54g from 2004 (still in use) and a E3000 from 2011. I had sveasoft, then tomato, then DDWRT for most of the years. DDWRT works great.
I have always had QoS set to Max speed - calculated overhead and it has not locked up. | |
|  |  |  |  |  |  Noah VailSon made my AvatarPremium join:2004-12-10 Lorton, VA kudos:2 Reviews:
·Bright House
| Re: Why use Untangle anyway? said by Oh_No:QoS worked without problems on my BEFSR41 from like 2001 I don't know QoS under stock firmware. I'm just referring to DD-WRT's QoS. I know a BEFSR41 couldn't have been running DD-WRT.
said by Oh_No:WRT54g from 2004 (still in use) and a E3000 from 2011. I had sveasoft, then tomato, then DDWRT for most of the years. DDWRT works great. I never tried QoS Sveasoft. I know Tomato's QoS works.
I just went back through DD-WRT forum postings - pre '09, keywording for QoS and Torrent. In the threads there'd be a number of people who tried every setting there is without success. Then there'd be one or two posts by a guy for whom it worked all along.
I didn't actually spot anyone who went from non-working QoS to working. There were references to an inability to manage UDP or maybe encrypted UDP.
That said, there was one guy who ran a IPTables script from jffs, but he had to use a micro-build to get it to fit in the 4MB flash. -- The Dark Tower's Skynet evolves from 4chan. | |
|
 |  |  Simba7I Void Warranties join:2003-03-24 Billings, MT | Um.. I've used it in the past. It does not work well with a dual P3. I then reinstalled Gentoo back on it and it barely goes over 10% CPU usage on both CPUs. Not to mention I can tweak the kernel to allow any card I choose and not just specific ones that Untangle suggests.
Explain that one.
I'd switch to OpenBSD (which I'm thinking of doing) before I even switch to Untangle. -- Bresnan 30M/5M | CenturyLink 5M/896K MyWS[PnmIIX3@3.3G,8G RAM,500G+1.5T+2T HDDs,Win7] WifeWS[A64@2G,2G RAM,120G HDD,Win7] Router[2xP3@1G,1G RAM,18G HDD,Allied Telesyn AT2560FX,2xDigital QP DE504,Compaq DP NC3131,2xSun QP GigaSwift, SMC 8432BTA, Gentoo] | |
|  |  |  |  | | Re: Why use Untangle anyway? Exactly what hardware where you using?
You can have have the best hardware but just the wrong NIC and you will have problems.
I say that you have the right to run what ever you wan't i Like Untangle and when i show it to SMB admins they like it because it is simple and the gui make sense for a normal person.
I don't say that Everybody running DD-WRT,PFsense etc have to switch to Untangle or that they even should.
But if you are after content filtering Untangle in Bridge behind your normal setup could be GOLD!
//WebFooL Untangle Evangelist | |
|
 |  Noah VailSon made my AvatarPremium join:2004-12-10 Lorton, VA kudos:2 Reviews:
·Bright House
| It really comes down to preference.
When I was outgrowing DD-WRT, I spent 6 months setting up different *nix distros. I installed boxes with Untangle, Smoothwall, Monowall, pfSense, Endian, IPCop and Clarkconnect.
(I also tried molding CentOS, OpenSUSE and Fedora into an edge box. I found I preferred the appliance-centric focus of the dedicated distros.)
I finally settled on pfSense because (for me) it held the most potential.
Now I'm to the point where every business I service has a pfSense box. The latest two are replacements for SonicWalls. -- The Dark Tower's Skynet evolves from 4chan. | |
|  |  |  Simba7I Void Warranties join:2003-03-24 Billings, MT | Re: Why use Untangle anyway? said by Noah Vail:I finally settled on pfSense because (for me) it held the most potential. pfSense is based on FreeBSD. Good choice. | |
|
 amungusPremium join:2004-11-26 America Reviews:
·KCH Cable
·AT&T DSL Service
| nice article Think I might get a little mini/micro-pc someday for such a task... as mentioned in the last article, several comments pointed out how efficient some of the newer little boxes can be. Would be cool to have a more robust little router at home. Never tried Untangle, but almost tried Astaro, right before they were swallowed up. Still have the file, but not a good machine to try it on anymore - recently sold some random boxes I had laying around to clear up space, and don't have another good candidate at the moment.
Will vouch, however, for Tomato. QoS on it works great. Haven't used it extensively, but was great fun to mess with a few years back (long story).
I still have an old Linksys WRT54G with it, and a cheap "N" router past that as an AP for faster wireless between machines in the house. It works well because I don't lose the nice features of Tomato, but have faster wireless past that. No need for gigabit, though it'd be nice.
Funny thing, the cheapo little (Rosewill) "N" router has some very basic QoS built in, and a really basic bandwidth monitor, but is nothing like Tomato. I'm still sold on Tomato as a great basic little firmware. DDWRT may be better in some ways, but I prefer the simplicity of Tomato, and it has enough "power user" level features that I need.
Ultimately, it'd be a great (if overkill) setup someday if I could use: Modem --> a little box for Untangle, Astaro, or something similar --> gig switch --> AP
For now, my little arrangement does well. Nice to read about possibilities though. | |
|  |  bdnhsv join:2012-01-20 Huntsville, AL | Re: nice article Check out this link for a nice little Atom based box. I have a similar one (same case more interfaces). You can find them on ebay from time to time pretty inexpensively.
»www.mitxpc.com/proddetail.asp?pr···&cat=209 | |
|
 andyrossPremium,MVM join:2003-05-04 Schaumburg, IL | Lockups How often do people have their routers lock up? I am using a WRT54GL, with the Linksys firmware. It has never locked up. I've never noticed any issue that I can attribute to the router. I do have wireless disabled, if that makes a difference. | |
|  |  EricthornIt only hurts when I laughPremium join:2001-08-10 Paragould, AR | Re: Lockups I've got a D-Link DIR-825 as my main using both bands, and a Linsksys WRT54GS running DDWRT (it used to be my main router, just never changed the firmware back to stock) as a wireless access point. I run 3 pc's off the Linksys hard wired to it, 1pc and 2 gaming systems to the D-Link (2 wired, one wireless), 2 wireless laptops, and 2 android phones using wireless. I have a 4mg/1mg hillbilly cable connection, I torrent and game, and I've never had either one lock up in easily over a year if not two. I can't remember the last time I had to power cycle one of them for any issue.
The whole idea of having a Linux rig run my firewall is appealing from the geek in me, but it would serve me no better purpose than what I already have running. -- Ever try stuffing a melted marshmallow up a wildcat's ass? It can be done, but you have to like your job. - This Is The Way The World Ends by James Morrow - Join a DC club, it can't hurt you! | |
|  |  |  |  | | I've been following these DIY dedicated router threads with interest. Guess I'm not the power user I once was or thought I was.
Got an ancient blue box WRT54somethingsomething that I threw DD-WRT on just for kicks. It has always run beautifully. "Five-nines" uptime beautifully. Really, I think I'll watch the N-standard pass me by.
Downtime has only been caused by power outages, or my cats roughhousing on the surge protector. | |
|  |  | | said by andyross:How often do people have their routers lock up? I am using a WRT54GL, with the Linksys firmware. It has never locked up. I've never noticed any issue that I can attribute to the router. I do have wireless disabled, if that makes a difference. I was going to ask the same thing. I've only ever had 2 routers, a D-Link first and now a Linksys E2000. Neither has EVER locked up even once. Had the D-Link for YEARS!!
Had no need for QoS with the D-Link but now have Vonage VoIP phone and QoS works perfectly with Tomato. -- The Firefox alternative. »www.mozilla.org/projects/seamonkey/ | |
|
 | | Router Lock ups - IP lease time -
I use to have a wired only Linksys router, but it seemed like once a day I would have to reset it and my internet connection appeared to drop.
I decided to do some digging and review settings on the GUI side.
I found a setting that was set by default from the manufacturer, and it had to do with 'Lease settings' (IP that is issued on the LAN side to client devices)...
The time to live/expire(can't recall the exact language), however the value was set in minutes(which totaled up to 24 hours). That is 24 hours from the time you plug it up; not the midnight hour.
There was no way to disable this setting, you had to have a value. So I set it to 9,999 minutes.
And finally, my lockups no longer occured every 24 hours, but rather 7 un-interrupted, problem free days of internet access. I have since upgraded to wireless Linksys(now Cisco E2000 wired/wireless) and this setting does not appear to be in the GUI of my current router...and no lockups at least that I have had...
Sometimes, a router lockup is not necessarily a lockup, but just have to reset the router a 3-4 times a month and your ok... -- Ga. Secretary of State Professional Licensing Boards Network Administrator, Network Support and Services | |
|  |  See 8 replies to this post | |
 IowaCowboyWant to go back to IowaPremium join:2010-10-16 Springfield, MA Reviews:
·Comcast
·Verizon Broadban..
| I just use a good quality router I have the Apple AirPort Extreme (which I paid $179 for) and I use the factory firmware. I also have a Netgear range extender down on the entertainment center to feed the downstairs TiVO and the game consoles.
I find all in one cable gateways to be useless. I prefer the separate modem and router. And since I am a Mac User, I use the Apple Routers because they are built for Mac. I am thinking of getting a Time Capsule but just have not gotten around to it yet. Since I dropped the Comcast Digital Voice, I put my Motorola SBG 6120 back in and actually activated it using the walled garden successfuly. Previously I had to call to activate as I had always had trouble with the walled garden. -- All of my CPE (including my EMTA) is customer owned. The only Comcast owned equipment in my house is the CableCards in the two TiVO boxes I own. | |
|  zoomer join:2007-09-06 Rochester, NY | Grammer "The first thing you want to do is find out what youre connection speed is. You need to do this because if "
you're -> your | |
|
 | |
|
|