feature request: time based QoS policy

Discussion in 'Tomato Firmware' started by rs232, Apr 6, 2012.

  1. rs232

    rs232 Network Guru Member

    I think it would be nice to have 2 or more QoS policies that can be applied at different time of the day.
    e.g. in the morning email and web have precedence to me, in the evening online gaming video where overnight I'm quite happy to leave all the bandwidth to the VPN.

    I mean considering the excellent QoS interface we already have it should just be a matter to change "Save" into "Save QoS 1"/"Save QoS 2"/"Save QoS 3/...." calling afterwards the QoS script/s created to set the nvram and restart the service from the crontable.

    Anybody else can see this as a useful feature?

    my 2 cents
  2. rs232

    rs232 Network Guru Member

    Actually this feature I'm talking about would affect qos_orates and qos_irates only. Example:

    QoS settings 1
    nvram set qos_irates=5-20,5-20,5-30,5-70,20-100,5-80,5-30,5-30,5-50,1-9
    nvram set qos_orates=5-20,5-20,5-30,5-70,20-60,5-80,5-30,5-30,5-50,1-9
    service qos restart

    QoS settings 2
    nvram set qos_irates=5-30,5-20,5-30,5-70,20-90,5-80,10-30,5-30,5-70,1-9
    nvram set qos_orates=5-30,5-20,5-30,5-70,20-90,5-80,10-30,5-30,5-50,1-9
    service qos restart

    QoS settings 3
    nvram set qos_irates=10-20,5-20,5-30,5-70,20-100,5-80,5-30,5-30,5-50,1-9
    nvram set qos_orates=10-20,5-20,5-30,5-70,20-100,5-80,5-30,5-30,5-50,1-9
    service qos restart

    Using this very same scripts from above (e.g. in the crontable) does the job but:
    1) it's not user friendly
    2) difficult to maintain
    3) the QoS page loads values from the config file and not the nvram
  3. Planiwa

    Planiwa Network Guru Member

    Very interesting. What is "the config file"? How does it relate (or not) to NVRAM or nvram?
  4. BikeHelmet

    BikeHelmet Addicted to LI Member

    I think it stores more info, like the description of what the QOS rule does? Everything gets loaded/saved to that file, and then the QOS rules get generated and comitted to NVRAM?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice