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

Using QOS - Tutorial and discussion

Discussion in 'Tomato Firmware' started by Toastman, Dec 24, 2008.

  1. sabishii

    sabishii New Member Member

    I didn't say they were better. I was providing the missing images that are listed in the forum FAQ, specifically
    that had been missing because Imageshack sucks.

    In other words, the latest QOS settings in the forum FAQ are from 2010. If there are new settings, that's fine, but I'm just digging up missing stuff.
     
  2. gffmac

    gffmac Networkin' Nut Member

    Is there a way to revert QOS settings to stock without doing a full wipe or manually entering them all again?
     
  3. koitsu

    koitsu Network Guru Member

    I cannot confirm settings for any firmware other than Toastman. Below are the commands for ARM. I'm not sure about MIPS, probably the same but better not risk it. These are commands you can use from the CLI (telnet/SSH); I would not recommend doing this from Tools -> System Commands due to all the magic quoting and madness that goes on (plus browsers wrap text and make distinguishing whitespace locations difficult):

    I believe the forum will botch this very very badly due to the quotes, spacing, and several other aspects (particularly of the syntax of the qos_orules variable), so here is the pastebin:

    http://pastebin.com/mu4Dw16F

    *** WARNING WARNING WARNING ***

    IT IS VERY IMPORTANT YOU ENSURE THE nvram set qos_orules VALUE IS RETAINED AS IS. THE VALUE SHOULD BE WRAPPED IN APOSTROPHES (NOT DOUBLE QUOTES OR "SMART" QUOTES), IS ALL ON A SINGLE LINE, IS NOT BOTCHED/SCREWED UP BY COPY/PASTING, AND DOES NOT HAVE IMPROPER WHITESPACE INJECTED INTO THE CONTENT. DOING SO CAN/WILL BREAK THINGS VERY BADLY. I SUGGEST COPYING FROM THE "RAW PASTE DATA" PART OF PASTEBIN.
    YOU HAVE BEEN WARNED.

    The source of these values comes from router/shared/defaults.c on Toastman-ARM branch. If you want something else (MIPS, ARM7, whatever), give me the exact filename of the firmware you're using and I can go look up the relevant code and do the same process.
     
    gschnasl and gffmac like this.
  4. gffmac

    gffmac Networkin' Nut Member

    Thanks koitsu, it seems PuTTY has a character limit on pasting so the full nvram set qos_orules= .. command is not entered. I'll look for an alternative.

    Maybe the command can be split into 2 or 3 segments?

    I entered the one command via the web gui, worked fine. Thanks
     
    Last edited: Mar 7, 2017
  5. koitsu

    koitsu Network Guru Member

    PuTTY has no such clipboard character limit. I take the time to test my claims/statements before making them. :)

    The command cannot be easily split into sections without risk of the shell interpreting some characters (through use of variables).
     
  6. gffmac

    gffmac Networkin' Nut Member

    I know you know what you are talking about which is why I didn't really want make the post I tried 5 times, and via another program.

    Sent from my HTC 10 using Tapatalk
     
  7. koitsu

    koitsu Network Guru Member

    Okay, I guess I'll do an alternative. I put together a simple shell script that does the work for you (so there's nothing to copy-paste), gzip'd it (to work around any potential network I/O corruption), and put it on my server. This is what you'd do from the CLI on Tomato:

    Code:
    cd /tmp
    wget http://jdc.koitsu.org/toastman_qos_reset.sh.gz
    gzip -d toastman_qos_reset.sh.gz
    chmod 755 toastman_qos_reset.sh
    ./toastman_qos_reset.sh
    
    I urge anyone/everyone to cat toastman_qos_reset.sh first so that they understand what the script is doing (it's the same as what's at pastebin, just with the hashbang line for /bin/sh added). In general I don't like putting shell script things online for people to download/blindly run, as it puts too much trust in what a person is doing. (Yes, I'm a trustworthy person and I do commits/code changes, but my point still stands)

    The script DOES NOT do nvram commit
    -- this is intentional! So, after doing the above, you can nvram show (or nvram show | grep qos_orules etc...) and make sure the settings have changed (back to defaults).

    You then can run nvram commit yourself to commit the changes to NVRAM, followed by reboot and you should be good to go.

    Hope this makes it easier for you. Please let me know if/when you've done this so I can remove the file off my server.
     
    misuercarriere, cybrnook and gffmac like this.
  8. Olegaas

    Olegaas New Member Member

    Hello everybody, I have Tomato Shibby and I have trouble with QoS.

    Router - ASUS RT-66U
    Version - Tomato Firmware 1.28.0000 MIPSR2-138 K26 USB AIO-64


    The trouble is: All Inbound Bandwidth Distribution at Graphs, show as default traffic class. (Default traffic class can be choosen at Basic QoS Settings). Outbound Bandwidth Distribution work correct. Also all Inbound traffic are limiting as rule of default traffic class.
    For examle - Inbound WAN 1 Max Bandwidth Limit: 10 000kbit/s, My default traffic class is P2P/Bulk, limits of P2P/Bulk are from 5 to 40%. At result all of the traffic are limited with 40% - do not depend on class.
    Detailes you can see on screenshots.
    All settings are default. I only set Static WAN IP, and DNS.
    Change IP to 192.168.0.1 and DHCP to 192.168.0.100-199
    Disable WIFI. Thats all.

    What I try to do:
    - Install last 1.28 version (was 1.26 version)
    - Reset all setting.

    This is not help at all.
    Does anybody have ideas, how to solve this trouble?[​IMG]
    [​IMG]
     
  9. cloneman

    cloneman Networkin' Nut Member

    It's hard to tell from those screenshots as all the TCP traffic is on port 443. perhaps you could try to delete rule 29 and see what happens.

    also, the real shibby version number is on the about page.
     
  10. Olegaas

    Olegaas New Member Member

    On About page version is: Tomato Firmware 1.28.0000 MIPSR2-138 K26 USB AIO-64K

    Right now I make screenshots ot Inbond traffic, and page after press on default traffic (VOIP/GAME) right now:
    [​IMG] [​IMG]
     
  11. Olegaas

    Olegaas New Member Member

    If press on "Empty" class HТТP:
    [​IMG]
     
  12. cloneman

    cloneman Networkin' Nut Member

    okay it looks like everything is going to default in inbound like you said. I don't know why it's doing that.

    I know shibby 1.38 has some QOS problems (the bandwidth calculation estimates are missing) , so it is possible that this is a another issue. All I can suggest is to try shibby 1.32 instead. (wipe nvram as well, do not try restore settings)
     

Share This Page