Consumer ElectronicsComputersCell PhonesHome Theater & AudioGraphic Design & Video EditingInternetIndustrial Technology

Bandwidth Management for Home Networks

Updated on October 21, 2016

Sharing Your Internet Connection

If you are sharing your internet connection or plan to, you will probably run into some problems. There's always this annoying roommate who uses up all bandwidth to download stuff via torrents, or a neighbor who browses streaming video sites like Youtube, causing you to lag out in your favorite game or making you unable to video-chat in Skype.

The best solution to these kinds of problems is to use a router which is capable of QoS (Quality of Service). Basically, this kind of router controls your traffic (it's called "traffic shaping"), prioritizing certain types of it, and making sure everyone gets a fair share of bandwidth. Of course if you are the administrator, you can always make your share a bigger one! Find out how you can set up a home network without blowing your budget.

Picking the Best Router For Your Network

The first step is picking a router with some good QoS capabilities. I highly recommend WRT54GL from Linksys. You can install third party Linux-based firmware on it, which provides features and flexibility that only expensive, commercial devices normally offer. Some ASUS products are good as well. Regardless of which router you get, for the best QoS capabilities you should use custom firmware (read on below).

Linksys WRT54GL

Linksys WRT54GL Wi-Fi Wireless-G Broadband Router
Linksys WRT54GL Wi-Fi Wireless-G Broadband Router

Great little device with wireless data links and a 4-port 100mbps Ethernet switch. Perfect for your home networking needs, although its CPU is too weak for high-speed internet connections (25mbps and higher).

 

Choosing Best Firmware for a WRT54GL Router

While QoS on default Linksys firmware works pretty well, it lacks important features and flexibility. What's more, according to my personal experience using P2P programs (such as BitTorrent clients) will make your web pages time out because default firmware sets a very low connection limit. Installing any third party firmware from this list fixes the problem.

Basic QoS settings in Tomato. Here you set speed limits for each class of traffic.
Basic QoS settings in Tomato. Here you set speed limits for each class of traffic.

Configuring the QoS Ruleset of Your Router

Once you have everything you need for your home network, there's only the configuration left to do. Creating and perfecting your QoS ruleset can take you a few minutes to several days, depending on your experience, needs, and the firmware you chose. However a good setup will save you lots of time and trouble in the future.

For starters you'll want to give higher priority to programs that suffer from insufficient bandwidth: be it games, voice communication or simple web browsing. Give the lowest priority to file downloads and P2P programs. Most custom firmware (such as Tomato) has L7 filters which allow you to simply choose applications to prioritize from a drop-down list. Alternatively, you can prioritize traffic coming from a specific port or IP address. For example, to prioritize web browsing you will want to give higher priority to port 80 (http).

The exact process of setting up the QoS rules depends on the router and firmware you're using. You should be able to find this information on your router's manual (if you're using the default firmware) or on the homepage of the firmware maker (if you're using a custom one). My favorite one - Tomato - comes with some pre-configured rules for web browsing (high priority) and a catch-all rule for everything else (low priority). You just have to add custom rules for Skype, games, etc.

One important tip to remember is to always set the upload speed in your QoS settings to 80% - 90% of the maximum your line is capable of. This is so your router can prioritize outgoing traffic properly. Never set it to 100% of your actual upload speed.

Tomato QoS Example

An example QoS ruleset for Tomato.
An example QoS ruleset for Tomato.

This is a very basic example of Tomato QoS configuration. My actual ruleset is a lot larger, but I'm using this one for the sake of simplicity. The following rules are the most important here:

  • DNS lookups (port 53) need the highest priority. Tomato adds this one by default, so leave it there.
  • Regular web browsing (port 80 for HTTP, 443 for HTTPS) should get medium priority: below crucial VoIP and gaming, but above file downloads and torrenting.
  • The "catch-all" rule gives all other types of traffic a low priority. This is not necessary if you use the "Default class" setting and set it to Low. However, you can use similar catch-all rules to give other users on your network a lower priority than your own traffic.

The other rules are just examples that you might not need at all. In the screenshot above, I've added Skype (a VoIP app) and Counter Strike: Source (a multiplayer FPS game) and given them a High priority. I am the only one playing this game on my network, so I also added my MAC address to the latter rule.

I've also made uTorrent use a static 41234 port so my router would be able to classify this traffic as low priority. The uTorrent rule is at the top because I noticed that putting it at the bottom caused some torrent traffic to be erroneously classified as belonging to web browsing or CS:S. Tomato goes from top to bottom until it finds a rule that matches.

Dealing with Inbound Traffic

As you probably realize, your router will only prioritize outbound (upload) packets. Incoming traffic is tougher issue - it depends on what remote servers are sending you, so you can't control it directly. The best you can do is setup a hard download cap. For example, if your maximum download speed is 10 mbps, you could cap certain traffic types (P2P, streaming video) at 8 mbps or so. Your router will simply drop all the extra packets, but from my experience it's still a lot better than allowing big file downloads to hog all the bandwidth.

That's it - enjoy! If you still get lag, tweak your settings by further reducing priority of bandwidth-hungry applications until you don't have to worry about slow internet . It's all about how you divide and prioritize the web traffic! Your regular web browsing, for example, doesn't need much bandwidth but requires a high priority; and it's the vice versa for big file downloads.

You can check the homepages of the according firmware for more information, or visit the Linksys forums for helpful tips and discussions.

A More Modern Bandwidth Management Solution

Many things have changed since this article was written back in 2007. Home networks are now faster, and most people are using the new Wireless N standard which offers higher maximum speed. Considering the Linksys WRT54GL only supports Wireless G and has a weaker CPU (resulting in lower throughput, especially if QoS is used) it is no longer the #1 choice for bandwidth management. Of course, if your connection isn't faster than 20 mbps and you're perfectly happy with the older 802.11g protocol, you have no reason to update.

If you are building a new home network, however, it's better to make it more future proof. The Asus RT-N16 router (see to your right) has a more powerful processor and supports Wireless N and USB. And the best part is, you can still flash it with custom Linux firmware. I recommend Tomato USB, a new and improved version of the original Tomato.

Comments from happy people whom I saved from bandwidth clogging evil roommates go below.

Comments

    0 of 8192 characters used
    Post Comment

    • shellys-space profile image

      Shelly Sellers 4 years ago from Midwest U.S.A.

      We were having big issues with our old router. We upgraded and everything in our house runs so much faster.

    • flycatcherrr profile image

      flycatcherrr 5 years ago

      My brain tends to shut down and go "la la la" whenever I even hear the word "network" - so thanks for such clear instructions!

    • profile image

      anonymous 5 years ago

      Hi, I have Linksys WAG120N router. does it have the ability?

    • profile image

      anonymous 5 years ago

      @jimmyworldstar: Who cares? No point in commenting on a subject like this if it doesn't help the cause!

    • profile image

      preenit 5 years ago

      Thank for knowledge.

    • profile image

      anonymous 5 years ago

      Thanks for sharing! Great lens!

    • profile image

      anonymous 5 years ago

      @Commandrix: What do you mean "get nailed for it?" Where do you live? Saudi Arabia?

    • profile image

      jimmyworldstar 5 years ago

      I've always just left settings at default, most of my family just surfs the internet.

    • profile image

      anonymous 5 years ago

      the contension on the line is another factor, i switched from sky to plusnet a while back and instantly got 3meg difference within the first day of switching, after a few days of testing i finally reached 16Meg on adsl2+ further increased to 17 using an extra filter.

      Sky contension in my area was 20/50, plus nets 3/50 :)

    • Commandrix profile image

      Heidi 5 years ago from Benson, IL

      I'd be real careful about sharing my wireless Internet because if somebody is uploading and downloading porn, you're the one who can get nailed for it. I've heard horror stories and even some of the encrypted security settings on a wireless router are easy to hack. But the QoS thing is a good idea in case you decide it's worth the risk.

    • profile image

      anonymous 5 years ago

      how many computer i can control bandwith i have 10 pc its can manage more then 10 pc

    • profile image

      yourstrategic 5 years ago

      Cisco phone system has many advantages, besides facilitating international calls; they also work as caller ID to track the calls. It also helps to organize video conferencing for professional as well as personal easy communications. Nowadays there are advance technologies are utilizing for providing hassle free strategic communications around the world with new improved Cisco phone system services.

    • profile image

      ibartolic 5 years ago

      Nice info. I have also few lenses from similar topic.

    • aesta1 profile image

      Mary Norton 5 years ago from Ontario, Canada

      Very useful information. I had two people yesterday for almost a day fixing my connection. I doubt how much of these they really know. Now, you have made me understand the configuration going on.

    • profile image

      anonymous 5 years ago

      I'm searching for an ADSL router which has the bandwidth management feature, as I don't want to place two things on my table (i.e. ADSL modem and Wireless router)

      I've been unsuccessful so far in finding such an ADSL router

    • profile image

      anonymous 5 years ago

      I have a TP-Link TD-W8901G Adsl modem router, is the Tomato firmware compatible? is there any suggestions for that model?

    • PocketfulofParis profile image

      PocketfulofParis 5 years ago

      great lens!

    • carny profile image
      Author

      carny 5 years ago

      @anonymous: Maybe you could just install DU Meter on their computers, you can configure this program to send you email reports of how much bandwidth is being used.

    • profile image

      anonymous 6 years ago

      Im looking for a router that i can control the download and upload with by the mb, and also logg which mac address is doing all the downloading. currently my usage is always maxed out for the month by the 3rd week of the month and my kids keep denying who is doing what. What can i do?

    • profile image

      pawpaw911 6 years ago

      Good information.

    • profile image

      anonymous 6 years ago

      @rugarer: I don't think so. You can't unless you implement Class or groups in QoS monitoring for each computer.

    • dani3l lm profile image

      dani3l lm 6 years ago

      nice lens, i have been using dd wrt for years and love it

    • profile image

      anonymous 6 years ago

      Nice lens.Thanks for sharing. strategic planning software

    • profile image

      rugarer 6 years ago

      Hi. i have a Zyxel wireless access point. I have about 5 computers sharing one internet connection. Is there a way I can monitor the bandwidth usage of all 5 computers without buying a server or installing a 3rd apart software apart from what the AP offers?

    • profile image

      anonymous 6 years ago

      @notelpats: A Hub is in the Layer 1 of the OSI Model (well basic Hub is) it can be Layer 1 & 2.

      A Router is in the Layer 3.

      Which means that if you want Internet Sharing among other computers. Also, if you would like a device to give you automatic IP Address (DHCP Server) You need a Router.

      If you would just like to hook up computers to talk to one another. Then a HUB or Switch is all that is needed. For instance, LAN games or file sharing.

      This is the best way it was told to me... Think of Hubs, Switch, and Routers as a Big room. Hubs and Switches will stay inside the room and never leave, if you want files to leave the room, like go in and out the front door, then the router is necessary. Router is another name for Gateway; so Gateway to the outside

      The difference between a HUB and Switch is that a HUB is old school.. When files are sent to this hub, it will send the file to ever computer on the network, the the computer will respond whether its the correct computer or not. The switch is more advance, the switch remembers which computer it goes to and only sends it to that particular computer. Therefore; speeding up the network.

    • carny profile image
      Author

      carny 6 years ago

      @anonymous: That's a good point. Back when I wrote this article, WRT54GL was a really good choice. But these days you might want to get something more powerful. Although if your internet speed is under 10 mbps, it should handle it with no problems (depends also on how many people are connected).

      CPU load from QoS depends on the number of rules, too. Also using IPP2P or Layer 7 instead of ports is more CPU intensive. Finally, you can also try overclocking the CPU to 216 MHz and more. But in the end it has its limits.

    • profile image

      SaveMySystem 6 years ago

      Before picking router for connection make sure router has enough ports for PC's a as well as the Internet connection. Look for which topology you can suitably apply with particular router.

    • profile image

      notelpats 6 years ago

      whats the main difference between a router and a hub?

    • profile image

      anonymous 6 years ago

      Hi. The QOS features do work as advertised in the modified WRT54G, but with one catch. If your internet modem bandwidth exceeds 3 or 4 Mbits/s, the QOS software becomes the bottleneck. I upgraded to 10+M/s and found I could not get past 3 or 4. I turned off QOS and now have full speed access. However, I am left with the bandwidth sharing problem albeit less so with the faster speed for all users.

    • profile image

      Distrx 6 years ago

      I always like to give myself just that little bit extra share of bandwidth with QoS. :P

      There is nothing more rage inducing than trying to play an online FPS when someone is streaming content from the web!

    • profile image

      SaveMySystem 6 years ago

      Before picking router for connection make sure router has enough ports for PC's a as well as the Internet connection. Look for which topology you can suitably apply with particular router.

    • Draconius LM profile image

      Draconius LM 6 years ago

      very helpful info thanks blessed by a squid angel

    • profile image

      anonymous 6 years ago

      @anonymous: For traffic monitoring try use ProteMac Meter.It's prog help me

    • profile image

      anonymous 6 years ago

      @anonymous: You're right about managing port/IP, but DD-WRT can actually manage the "physical" port as well. I mean it can give higher priority to computer connected to plug 1 than to plug 2. But TBH when I tried DD-WRT its QoS isn't very good. Even if I set highest priority it still lags when I use other programs. Tomato is better.

    • profile image

      anonymous 6 years ago

      @anonymous: Hi Jake, have you looked at http://bandwidthcontroller.com/download.html? or else just get a program like the ones used for internet cafee.

    • profile image

      anonymous 7 years ago

      @Petee: Hey just found this because of the topic! Good fed and info. Problem for me is that Ive just brought a Dlink DIR615 wireless router thinking that I could find a software that can manage traffic usage because we have 3 comps and one flatmate just uses our 25GB allowance in 8 days and Im getting annoyed because being in the media business we need to research. I find the N technology works better for my type of work and this wireless router was not cheap, its connected to a dynalink modem and so far Ive been told that I will need to buy a new router/modem as suggested above to manage usage. My question is to save me buying another one which leaves me out of pocket is, Is there a software or anything that I can keep these modem/routers without buying a new one. All I need is something to tell me how much GB each computer is using so they can pay for it as I own the internet account. Thanks in advance Jake

    • profile image

      anonymous 7 years ago

      The best Router to buy for this is WRT54GS versions 1.0 thru 2.1 (Serial number prefixes CGN1 thru CGN4). These have the most FLASH memory (8MB) and therefore can hold the most complex variants of dd-wrt. If range is an issue (for the neighbours) then Buffalo WHR-HP-G54 is the solution. Be sure to set the BIOS board flags to enable enahance Rx Sens. and Tx Pow. Buy both on eBay and save bigtime. Google (wrt54GS wikipedia). Google "board flags" + WHR-HP-G54. Google ("Which router should I buy" dd-wrt).

      http://www.dd-wrt.com/wiki/index.php/WHR-HP-G54

    • profile image

      anonymous 7 years ago

      can this work with win os

    • profile image

      anonymous 7 years ago

      @anonymous: get a 10/100 hub/switch and hook it up. the router will give each computer its ip and will be able to control its internet trafic

    • profile image

      anonymous 7 years ago

      Nice post, will consired buying this router cuz I really need traffic shaping. D-link doesn't seem to offer anything like that. Thanks.

    • profile image

      anonymous 8 years ago

      it's said that you can prioritize traffic coming from a specific port, or IP adress. that's not physical port, if you want connect a switch and connect as many computers as you like

    • profile image

      anonymous 8 years ago

      it seem can only manage 4 port, how can i manage 20 computers with this router?

    • profile image

      anonymous 8 years ago

      i have been looking for this, thank you...

      i am goona try it

    • profile image

      Petee 8 years ago

      Good information short and to the point. Now all I need to do is figure out how to back up all computers on the network one desktop one laptop on a WD mybook.

      5 star ...

    • profile image

      anonymous 8 years ago

      Excellent explanation =)

    • OldGrampa profile image

      OldGrampa 8 years ago

      Very interesting. We share an internet connection here at home using a regular router, now I am considering getting one like this to help manage our usage better.

    • packetlog profile image

      packetlog 8 years ago

      very helpful. thanks