1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My sis is hogging bandwidth, please help me!

Discussion in 'Tomato Firmware' started by yahooman123, Jan 13, 2009.

  1. yahooman123

    yahooman123 Addicted to LI Member

    I have a 10MB/1MB connection. Whenever my sister uses her computer my connection speed drops from 10MB to 500KB! I believe she is using some sort of P2P software, and uploading uncontrollably.

    I cannot think of any solution other than possibly setting up QoS?

    I have installed tomato firmware on my linksys WRT54GL for this reason.

    I have enabled QoS and listed the SRC MAC address of her computer and set the priority to lowest. However this is not helping at all. I do not know what I am doing wrong. Can QoS limit upload speed as well? Please someone advice. I have tried searching and reading all over, but cannot find any direct information.
  2. Toastman

    Toastman Super Moderator Staff Member Member

    Hi Yahooman

    Yes, you need to use some or all of the functions of QOS, depends what you want to achieve. Look at these articles and others on the forum to glean some knowledge of what is possible.


    For now, you need to limit your sister's bandwidth. You have ten classes in QOS - I guess you have the defaults installed by tomato. Set a new rule to put her MAC address into a class, maybe lowest or A, then go to "basic" setup and limit her upload to say, 5% rate and 30% limit - then set her incoming limit to say 30%. That's crude but should do something until you get to know how to use QOS better. Take no notice of her tears .....
  3. yahooman123

    yahooman123 Addicted to LI Member

    Thanks for the fast reply!

    This is what I have done so far...

    Under classification I have added this:

    Src MAC : "her mac address"
    Class: E
    "Any Protocol"
    "Any Port"
    "All IPP2P filters"
    Layer 7 Disabled
    0-100000 KB Transferred

    For mine, I have added my mac, and set class to highest and left all options blank.

    Under basic settings I have enabled TCP Vegas (is this good?)

    Prioritize small packets with these control flags - only ACK is checked.

    Outband rate:
    For Class E I have entered 1% of 10% 1,000- 10000 kbit/s

    for Highest class - 95% of 100%

    Inbound limit:

    Highest: 100%
    Class E: 1%

    Are these all correct? I am a bit confused because under the monitor I see RX(which I think is her) going atleast 100KB, how is that possible when I limited the speed?

    Thanks so much
  4. kardzzz

    kardzzz Addicted to LI Member

    yahooman, who is your service provider? maybe your sis is hitting the capping limit then QoS will most probably fail.
    Also try limit her TCP and UDP connections by using the scipt toastman posted (see his tread about QoS)
  5. CaNsA

    CaNsA Network Guru Member

    Agreed kardzzz

    Virginmedia strikes again ;)
  6. yahooman123

    yahooman123 Addicted to LI Member

    OOL is the isp

    I'm goin nuts here. Can't stream any video without it buffering every second. I set up the QoS and it does not do anything.
  7. spicoli

    spicoli LI Guru Member

    You're fudging your %s from what I read and your total bandwidth limit.
  8. Planiwa

    Planiwa LI Guru Member

    1. Advanced > Conntrack/NF: count connections -- how many, when busy?
    Are most connections in one category? E,G. TCP Time_Wait? Or UDP Unreplied? If so, reduce the timeout for that category.

    2. run these two commands: ===> Be sure to adjust the range to suit your setup!
    (If they work for you, you can put them into the FW script)

    iptables -I FORWARD -p tcp --syn -m iprange --src-range -m connlimit --connlimit-above 100 -j REJECT
    iptables -I FORWARD -p ! tcp     -m iprange --src-range -m connlimit --connlimit-above  50 -j REJECT
    3. After this, you connections should drop to under 200.
  9. kardzzz

    kardzzz Addicted to LI Member

    yahooman, I have heard OOL is pretty harsh with capping and will require you to call them to unlock the capping.
    Ask your sis to do the following:
    1) Set the QoS limits in her P2P to say: download 25kbps, upload 10kbps
    2) Find out what 'listening port' she uses for P2P then create QoS 'D class' for that port and limit it to upload 1% to 5%, download 1% - 50%. Make this class lowest then see what happens.
    Hope you solve the problem.

    *Last resort, ban her from the network for a few days so she has more respect for other users.
  10. bigclaw

    bigclaw Network Guru Member

    Uh, talk to you sister maybe?
  11. jersully

    jersully LI Guru Member

    Yeah, are you going to take that from a girl?
  12. yahooman123

    yahooman123 Addicted to LI Member

    My speeds are not capped because when nobody is using the connection I can easily achieve 15000KB d/l and 1000KB u/l.

    I have added those scripts and now I will have to wait till she goes on.
  13. Toastman

    Toastman Super Moderator Staff Member Member


    You don't need to specify 0-100000 by the way.

    Couple of comments: The IPP2P and L7 filters are not very useful, they will only get a percentage of your traffic. You have to try to trap all of it.

    Normally you have to treat P2P a different way if you want your QOS to work well. Set a default class of say E. Then classify and deal with all other applications that you know about and want to give priority, leaving the P2P (and any other oddments) to bypass your rules and end up in the default class. In QOS/Basic, set class E to rate 1% and limit 20%. Set E's inbound limit to say 50% which is a good chunk for your sister. in this way you can control absolutely ALL traffic that you don't expressly set with a priority or bandwidth allocation.


    You could try entering the complete setup from these examples, they are an overkill for you but they will probably work well. You can then eliminate things that are unnecessary later, at first just check "disable" in the classification lists while you are learning about it.

    If you do this, set your maximum outbound and inbound limits for your rather nice high bandwidth site.... probably 800kbps and 9000 kbps - but you must enter 85% of the LOWESt speeds you ever get ....


    Best of luck... Toast
  14. callous

    callous Network Guru Member

    Talking is best way - otherwise the conflicts build up in later years.
  15. FlashSWT

    FlashSWT LI Guru Member

    You must not have a sister like mine! :biggrin:
  16. colinrocks

    colinrocks Addicted to LI Member

  17. Mothersh1p

    Mothersh1p Addicted to LI Member

    Seems to work!!! My sister is complaining!!! :thumbup:
  18. Planiwa

    Planiwa LI Guru Member

    How about this:

    In QoS, set up 2 classes, one for each of you, say class A and class B.

    Set each class as 50%-95%.

    That way it's entirely fair, and each gets at least half, and much more if the other doesn't need it.

    And those limits? You can safely change 100 and 50 to 500 and 250.

    That way every one should be very happy.

    (I just sent the QoS pie charts to someone, showing him that his 400 UDP torrent "connections" are getting him all of 3 bytes per second per connection.)

    I do wish someone would outline how torrents can be configured so as not to solicit hundreds of futile connection attempts that keep the router busy dropping and timing out connections, instead of moving packets.
  19. Toastman

    Toastman Super Moderator Staff Member Member

    That's very true. uTorrent DHT seems to be the worst culprit. Anyway, I limit the damge by restricting all users to just a few UDP connections open at once - even set to 10 and nobody seems to complain. It will affect Kademlia (eMule and maybe Azureus (anyone?) - but not many people (if any) seem to use it over here. Try experimenting!

Share This Page