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

BW limiter help neded

Discussion in 'Tomato Firmware' started by wrt4ever, Nov 28, 2010.

  1. wrt4ever

    wrt4ever Networkin' Nut Member


    Since today i have installed Tomato Firmware v1.28.7616 -Toastman ND Mini on my WRT54GL. I was satisfied with regular tomato but since I got SIP phone everything has changed.

    I am heavy downloader (torrents-freenas-transmision on ethernet wire) and have two laptops for me and my wife. We both use laptops for chat, facebook, no online gaming at any kind.

    So back to real subject :). Torrent is taking to much resurces so when torent is ON SIP phone is working very bad and our 2 laptops are also almost unusable for simple web browsing. So i have decides to make BW limiter folowing all instructions to keep my torrent station alive at full speed while nobody is using SIP phone (or laptops) but to slow it down while phone or laptops are in use. Here is my settings on picture:

    1.107 is SIP phone
    1.140 is freeNAS torrent station (with DHT disabled)
    1.100 and 1.139 are laptops (on wifi)
    1.125 is iphone.

    REally dont know what else to do, sip phone is still bad when torrents are ON.
    Forgot to say my speedtest without QoS is :3983kbit/s and 245 upload (4megabit/256)

    Plase help me to make things workin like it shoud work :)

    Thank you all...
  2. wrt4ever

    wrt4ever Networkin' Nut Member

    anyone? :(
  3. Kisch

    Kisch Addicted to LI Member

    Try to set QOS upload speed to 80% of your real upload speed.
  4. wrt4ever

    wrt4ever Networkin' Nut Member

    aha, only that to do? What do you think about rest of settings?
  5. Kisch

    Kisch Addicted to LI Member

    And of course you have to change ULRate and ULCeil to fit changed QOS upload speed. :) Are you using some setting in QOS section?
  6. wrt4ever

    wrt4ever Networkin' Nut Member

    Thank you, i made corrections with 80% of upload speed and ULrate an ULCeil. I did not changed anything under QOS its kind of complicated for simple goal I need. Full speed for torrents when SIP phone is not in use, but when is in use to trottle them down.
    Do you have any other suggestions with this?
  7. wrt4ever

    wrt4ever Networkin' Nut Member

    :( No, its not working I also tryed 80% of download and 80% of upload speed with new ULrate and ULCeil rates but when i pick up phone voice (on both sides) is laggy and packaes are dropping. Toreents really slows down but phone is unusable until i stop them completly. Now I am relly not sure can I make this to work, maybe with real QOS rules?
  8. Kisch

    Kisch Addicted to LI Member

    So, can you send pictures of your QOS/Basic Settings and QOS/Classification? I will try to help you. It is only few rules. I have SIP phone too and it is working well for me.
  9. wrt4ever

    wrt4ever Networkin' Nut Member

    Ok, thank you for your help, i will make picture when i get home, really I am frustrated with this :(...
  10. wrt4ever

    wrt4ever Networkin' Nut Member


    OK here I am,

    I have made screens of my qos configuation, and as you may see it not configured becouse i tryed wiht BW limiter and with QOS and now its reset to defaults. I hope you can help me with this configuration. Primary goal is to use all available bandwith while i am downloading and seeding but when i pick up SIP phone i expect to work normaly (or to trottle down torrents). Also if its possible to make http (web surfing) to work resonably fast while i download torrens, but when i stop lets torrents go on full speed :)

    here are the images, as you may notice SIP is on 5060 but as far as i understand RTP is also important. REally i cannot belive that nobody is on this thread :(
    thanx again





  11. Kisch

    Kisch Addicted to LI Member

    Ok. Let´s go. At first I suggest you these few classes:
    Class names are irrelevant. Priority matters.

    Service : your SIP phone
    Game/VOIP: DNS nad maybe future applications :)
    Media: WWW browsing
    Remote: WWW upload and download
    www: default class for everything else (including bittorrents packets)

    QOS/Basic Settings: Enable QOS: check
    Prioritize small packets: ACK uncheck, SYN,FIN,RST check
    Prioritize ICMP: check
    Reset class... : check
    Default class: WWW
    Outbound Rates/Limits: Max Bandwidth: 200 (starting value)
    Service: 60-90
    Game/VOIP: 10-80
    Media: 10-80
    Remote: 10-80

    I have to go now, I will continue tonight.
  12. wrt4ever

    wrt4ever Networkin' Nut Member

    Thank you for helping me, I will do this when i get home and submit results....tnx tnx tnx
  13. Kisch

    Kisch Addicted to LI Member

    Dont try it, it is incomplete yet.
  14. Kisch

    Kisch Addicted to LI Member

    I´m here again.

    Other Oundbound/Rate Limit classes set to None None

    Inbound Limit
    Max Bandwidth: 3500
    Service: 10 (350kbit/s is enough for VOIP)
    Game/VOIP: 90

    Other Classes set to None

    And now fun is about to begin :)

    QOS/Classification: DELETE ALL MATCH RULES, we will do it again

    1. Rule for SIP phone for SIP: Src IP:, Port UDP, src port 5060, Class SERVICE,

    2. Rule for SIP phone for RTP: Src IP:, Layer 7 rtp, Class SERVICE

    3. Rule for NAS: Src IP:, TCP/UDP, Class WWW

    4. Rule for DNS: TCP/UDP, Dst port 53, Transferred 0-2KB, Class GAME/VOIP

    5. Rule for web browsing: TCP, Dst port 80,443, Transferred 0-512KB, Class Media

    6. Rule for download/upload from/to web pages: TCP, Dst port 80,443, Transferred 512KB+, Class Remote

    !!!Set rules in this order!!!, order is very important.

    And it is done. In QOS/View Graphs you can control, if these settings working well. I hope, it will be working for you. If it will be good, you can change your Outbound Max Bandwidth to more than 200kb/s. If you can set RTP ports on your SIP phone, you can change Rule 2 for RTP from Layer 7 rtp to Src port of your choice. Hope this help.
  15. wrt4ever

    wrt4ever Networkin' Nut Member

    Thank you soo much for your time, I will try this as soon i get home, working 2 shifts :(
  16. wrt4ever

    wrt4ever Networkin' Nut Member

    second role rtp

    Hi, I am kind of stuck on second role or maybe not, can you please check it on image

    And another thing, that you said about RTP port, I found on phone web interface when i establish call i get this valune: Mapped RTP Port: 16468 >> 0 . Does this means that port is 16460 or 16468 to 0. Phone i linksys SPA-921

    Thank you
  17. wrt4ever

    wrt4ever Networkin' Nut Member

    OK :)
    I have made all configurations exactly as you said, and I must say you are THE KING. Toreents are working, http is workin and most important SIP phone is working while freenas is downloading things.
    Downloads are maybe 10-20 percent slower (as expected) but phone is working man :). Also i have enable TCP vegas i know it does not doo too much but just in case :). Is there anything else I can tweak more? like download and upload maximums or leave it like it is.

    again thank you man
  18. Kisch

    Kisch Addicted to LI Member

    You set rule 2 right. :) I forgot, protocol has to be UDP. If your phone is capable set RTP ports, for example 16000-16020, you can set it (my Siemens A580IP has 20 ports recommended). Otherwise use L7 filter rtp. You can try rise up your total upload speed limit little bit, but carefully. Or class speed upload limits, say to 85-90. But you have to try, if everything working well. It is little alchemy. :)
  19. wrt4ever

    wrt4ever Networkin' Nut Member

    again tnx

    Yes true as you said it is alchemy, i will leave it like it is becouse its working fine every valune that you wrote is perfect I am afraid to touch anything :).Thank you my freand.

    Btw, that do you think about firmware i am using "Tomato Firmware v1.28.7616 -Toastman ND Mini", any need to go with 2,6 based firmwares with GL. Today I have installed passive heatsing and raised broadcom frequency to 250 its rock stable and fast as bullet (lan browsing, tomato gui and maybe little bit internet)
  20. Toastman

    Toastman Super Moderator Staff Member Member

    In future you may want to use JFFS etc. so you could be running ND-Std version. I personally wouldn't bother to use 2.6 - 7616 was based on Victek's 8515.2 because that was reputedly the fastest 2.4 build going from forum reports. I still use it on about 330 WRT54GL's here. BTW - you can easily save your configuration and just restore it in a few moments, so do play about with your settings as Kisch suggests - you'll learn a lot from doing so.
  21. Kisch

    Kisch Addicted to LI Member

    I´m glad, that my advices helped you. It is recommended to use 2.4 kernel builds with older routers. Newer 2.6 kernel builds consumes more system resources. Like Toastman said, you can save configuration and do some experiments, if you want. :) You can learn from it, and maybe find better QOS setting. Overclock to 250MHz is good and I believe, it is significant. :dog::whip:
  22. wrt4ever

    wrt4ever Networkin' Nut Member

    Thank you toastman...
  23. wrt4ever

    wrt4ever Networkin' Nut Member

    Thank you kisch for all your help. Really I was suprissed that old wrt has so much potential, overclocking, qos...etc. I was kind of pesimistic about idea of overclocking router that was strange to me and I was kind of afraid to burn router cpu, but i read posts that people are running WRT54GL on 250 even without passive cooling and that give me idea why not :)
  24. Kisch

    Kisch Addicted to LI Member

    I agree. Tomato is nice. Fast and stable. I have Asus WL500gP and original software is crap.

Share This Page