What's new

FlexQoS FlexQoS 1.0 - Flexible QoS Enhancement Script for Adaptive QoS

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

The first number is the decimal equivalent of the category. The second number is the application. Convert each number into hexadecimal and concatenate them to get the Mark used in iptables and appdb rules. No idea what the significance of the third number (always 0) is supposed to represent. It's a messy business trying to make sense of it sometimes.

So using Gmail as an example:
Code:
5,95,0,Gmail
The 5 converts to 05 and the 95 converts to 005F. Put it all together and you get the Mark "05005F".

A one-liner to get all the Marks (without the default class) would be:
Bash:
awk -F, '{ printf "%s,%02X%04X\n", $4, $1, $2 }' /tmp/bwdpi/bwdpi.app.db | sort -f
I chose to make it comma delimited because I would import it into a spreadsheet if I was going to try to do anything "fun" with it.
This list is useful, thanks. But how are those items mapped to the 6 categories of QoS?

Also, once you make a manual change to the AppDB Redirection Rules, where do you see that reflected? In this list?
 
See sbsnb's pastebin link a page back where he mapped it all.
But, the decimal values of the 1st 2 hex digits go from 0 to 128. I'm looking for how those values map to categories. Or, are there 128 levels of QoS?

It will only show up in the Tracked Connections list when that App shows under the new priority color.
Is there a way using the terminal to get that info?
 
But, the decimal values of the 1st 2 hex digits go from 0 to 128. I'm looking for how those values map to categories. Or, are there 128 levels of QoS?
There are 64 possible categories (3F), but only 38 are really used today, and even fewer defined in the app.db file. You can see how the decimal values map if you look at the code here.
Is there a way using the terminal to get that info?
No, unless I don’t understand what you want to do. The rules are in the GUI.
 
Sounds like your up/down speeds are set too high. If it were me I would try running spdMerlin for a couple of days (not for too long as it's a bandwidth hog) to see how stable my real up/down speeds were. Set your QoS speeds based on the lowest up/down speeds you see in those graphs.

As was mentioned it only happens when this rule is added, my upload/downloads are fine without the rule.
 
Hi David

I have a "soft" restart of router ASUS RT-86U - all connections was down for few minutes and I copy part of the log to see whats is wrong. I don't know very specific line where ( maybe red lines ) was the real issue but I know the time... 19.15

I don't know now if are some connections between but I intent to install Diversion / Skynet and to update much easier the apps.
Also I want to format a USB 8gb - ext 4. Is too big ? It's useless ? Will help also for FlexQos or other apps to have extended memory ??

Take a look
Thx in advance
Best

Aug 19 19:15:39 qos: Applying codel patch
Aug 19 19:15:41 kernel: SHN Release Version: 2.0.1 890c91d
Aug 19 19:15:41 kernel: UDB Core Version: 0.2.18
Aug 19 19:15:41 kernel: sizeof forward pkt param = 280
Aug 19 19:15:41 kernel: The For ALL DEVICES flag of Prof 2 has been set to ENABLE
Aug 19 19:15:41 BWDPI: fun bitmap = 4ff
Aug 19 19:15:41 kernel: The For ALL DEVICES flag of Prof 1 has been set to ENABLE
Aug 19 19:15:42 A.QoS: qos_count=0, qos_check=0
Aug 19 19:15:42 A.QoS: set_qos_on fails
Aug 19 19:15:42 A.QoS: restart A.QoS because set_qos_conf / set_qos_on / setup rule fail
Aug 19 19:15:42 kernel: ERR[qos_start:3364] qos_ops is not registered!
Aug 19 19:15:42 kernel: ioctl_iqos_op_switch(1) fail!

Aug 19 19:15:43 A.QoS: qos_count=0, qos_check=1
Aug 19 19:15:46 FlexQoS: TC Modification delayed for 20 seconds
Aug 19 19:15:46 FlexQoS: Applying AppDB static rules
Aug 19 19:15:46 nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
Aug 19 19:15:47 FlexQoS: Applying AppDB custom rules and TC rates
Aug 19 19:15:47 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
Aug 19 19:15:47 dhcp_client: bound 84.117.15.92/255.255.252.0 via 84.117.12.1 for 210184 seconds.
Aug 19 19:15:47 FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=3819) called with 2 args: -start eth0
Aug 19 19:15:47 FlexQoS: [*] Killing Delayed Process (pid=1531)
 
Hi David

I have a "soft" restart of router ASUS RT-86U - all connections was down for few minutes and I copy part of the log to see whats is wrong. I don't know very specific line where ( maybe red lines ) was the real issue but I know the time... 19.15

I don't know now if are some connections between but I intent to install Diversion / Skynet and to update much easier the apps.
Also I want to format a USB 8gb - ext 4. Is too big ? It's useless ? Will help also for FlexQos or other apps to have extended memory ??

Take a look
Thx in advance
Best

Aug 19 19:15:39 qos: Applying codel patch
Aug 19 19:15:41 kernel: SHN Release Version: 2.0.1 890c91d
Aug 19 19:15:41 kernel: UDB Core Version: 0.2.18
Aug 19 19:15:41 kernel: sizeof forward pkt param = 280
Aug 19 19:15:41 kernel: The For ALL DEVICES flag of Prof 2 has been set to ENABLE
Aug 19 19:15:41 BWDPI: fun bitmap = 4ff
Aug 19 19:15:41 kernel: The For ALL DEVICES flag of Prof 1 has been set to ENABLE
Aug 19 19:15:42 A.QoS: qos_count=0, qos_check=0
Aug 19 19:15:42 A.QoS: set_qos_on fails
Aug 19 19:15:42 A.QoS: restart A.QoS because set_qos_conf / set_qos_on / setup rule fail
Aug 19 19:15:42 kernel: ERR[qos_start:3364] qos_ops is not registered!
Aug 19 19:15:42 kernel: ioctl_iqos_op_switch(1) fail!

Aug 19 19:15:43 A.QoS: qos_count=0, qos_check=1
Aug 19 19:15:46 FlexQoS: TC Modification delayed for 20 seconds
Aug 19 19:15:46 FlexQoS: Applying AppDB static rules
Aug 19 19:15:46 nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
Aug 19 19:15:47 FlexQoS: Applying AppDB custom rules and TC rates
Aug 19 19:15:47 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
Aug 19 19:15:47 dhcp_client: bound 84.117.15.92/255.255.252.0 via 84.117.12.1 for 210184 seconds.
Aug 19 19:15:47 FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=3819) called with 2 args: -start eth0
Aug 19 19:15:47 FlexQoS: [*] Killing Delayed Process (pid=1531)
It looks like normal behavior during boot time. The firewall starts multiple times during a boot.
 
Hello, I'm using flexqos on ax88u I notice that youtube streaming Is in the web surfing and not video and audio streaming, i make custom rule whit 040070 but still streaming from pc is in web surfing but on phones, youtube streaming is in its correct category video and audio streaming' how do I fix this?

 
Different browsers/apps between the two client devices. Maybe it's not 'fixable'?
 
Hello, I'm using flexqos on ax88u I notice that youtube streaming Is in the web surfing and not video and audio streaming, i make custom rule whit 040070 but still streaming from pc is in web surfing but on phones, youtube streaming is in its correct category video and audio streaming' how do I fix this?
040070 is already a Streaming category, so that won’t help. You need to study the connections that show up under Web Surfing and see what they have in common so you can create a rule. It won’t be easy since YouTube = Google = The Internet.
 
Hey there @dave14305 , do you have a final version that supports the RT-AC3200? The final AsusWRT-Merlin release for it is 384.13_10, before the new categories were added. Or should I just use the older FreshJR QOS? Let me know. :) Cheers.
 
Watching YouTube is classified as "Others", rather than "Video and audio streaming". Is this expected? Can it be adjusted?
 
Watching YouTube is classified as "Others", rather than "Video and audio streaming". Is this expected? Can it be adjusted?
Odd I thought the new big QoS update was supposed to properly classify YouTube odd.
 
Watching YouTube is classified as "Others", rather than "Video and audio streaming". Is this expected? Can it be adjusted?
it is classified correctly, but in graphs, it is counted to others.
 
I found that it depends on the device. If I watch youtube in iOS on iPhone, the router sees it as video streaming. If in Win10 on PC, then it's "Others". Isn't it supposed to be based on DPI, thus depending on the content?
 
I found that it depends on the device. If I watch youtube in iOS on iPhone, the router sees it as video streaming. If in Win10 on PC, then it's "Others". Isn't it supposed to be based on DPI, thus depending on the content?
If you're using Chrome, it likes to use port 443/udp instead of 443/tcp. See Morris' post here. I don't use Chrome, so I haven't studied it too much.
 
Hi all. Question for you QoS experts. I have an AC3100 rmerlin v384.19 running with QoS enabled and configured per this script. Thing is, I can't seem to achieve an A+ bufferbloat score on dslreports.com. I realize that A is a good result but was wondering if there's more I can do. My connection is 10/100 and I have those set as my limits since Spectrum over-provisions by 10% (non-QoS speedtest is around 11/110). Should I just leave well enough alone or can I reach A+ with more tweaking? Thanks
 
Hi all. Question for you QoS experts. I have an AC3100 rmerlin v384.19 running with QoS enabled and configured per this script. Thing is, I can't seem to achieve an A+ bufferbloat score on dslreports.com. I realize that A is a good result but was wondering if there's more I can do. My connection is 10/100 and I have those set as my limits since Spectrum over-provisions by 10% (non-QoS speedtest is around 11/110). Should I just leave well enough alone or can I reach A+ with more tweaking? Thanks
While A is great (would always tell my parents D is passing just like an A is ;) ), you could try lowering your QOS settings. Instead of 10/100 try 8/95 or so and see if your test improves.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top