What's new

[RT-AC86U] I built cake!!!

  • 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!

Status
Not open for further replies.
I installed them considering they were I'll files and made the script executable.

I personally recommend it should hook into the GUI values or the script values for bandwidth.
don't use cake with adaptive qos.
turn it off first if you were using it.
 
So far no luck, I installed the .ipk files, then I made a new script with the commands you gave, nothing even added the script to service start nothing.
there is nothing service.
See
Code:
tc qdisc 
tc -s qdisc show dev eth0  (upload)
tc -s qdisc show dev ifb9eth0  (download)
 
i turned off adaptive qos not working i give up, ill wait till there is a gui version, that s included in adaptive qos
ASUSWRT-Merlin RT-AX88U 384.18_alpha1-g6368a955e8 Fri May 29 04:01:05 UTC 2020
vexira@RT-AX88U-C528:/tmp/home/root# tc qdisc
qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth2 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth3 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth4 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth5 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev spu_us_dummy root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev spu_ds_dummy root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth6 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth7 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev ifb9eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
vexira@RT-AX88U-C528:/tmp/home/root# tc -s show qdisc show dev eth0
Object "show" is unknown, try "tc help".
vexira@RT-AX88U-C528:/tmp/home/root# tc -s show qdisc show dev ifb9eth0
Object "show" is unknown, try "tc help".
vexira@RT-AX88U-C528:/tmp/home/root#
 
tc -s show qdisc show dev eth0
there was typo sorry.
tc -s qdisc show dev eth0

cake is not set.
Try running the script again.
I just added them in services-start for rebooting router.
So you should execute it.

sh /jffs/scripts/services-start

and see tc qdisc again.
 
I think it won't be happen.
Adaptive qos is closed source so Asus should add it.
It would be faster to buy an openwrt router. lol
Never know, I talked to an Asus rep seems like fq codel is on the table.
 
Never know, I talked to an Asus rep seems like fq codel is on the table.
The reason Rmerlin was able to add codel and fq_codel is because the sfq being used by Asus in stock firmware can easily be replaced by codel or fq_codel.
https://github.com/RMerl/asuswrt-merlin/commit/4436e88c3e8cfeb38d5a7bb271755cde192c4fb6

For cake, they have to write a whole new rule.

cake is smart enough so if you install the ipk files and add the relevant settings to services-start, I think the settings will be survived after reboot and it will work well enough.

I added simple steps in the post.
https://www.snbforums.com/threads/rt-ac86u-i-built-cake.49190/page-3#post-589049
 
Last edited:
The reason Rmerlin was able to add codel and fq_codel is because the sfq being used by Asus in stock firmware can easily be replaced by codel or fq_codel.
https://github.com/RMerl/asuswrt-merlin/commit/4436e88c3e8cfeb38d5a7bb271755cde192c4fb6

For cake, they have to write a whole new rule.

cake is smart enough so if you install the ipk files and add the relevant settings to services-start, I think the settings will be survived after reboot and it will work well enough.

I added simple steps in the post.
https://www.snbforums.com/threads/rt-ac86u-i-built-cake.49190/page-3#post-589049

@Odkrys, how you day cake works with online gaming & bufferbloat? Where you able to test it this way? I think A. QoS w/fq_codel and FreshJR script complement each other well.

Hopefully you have some input on this for those gamers! Thanks and great work!

Maybe another future project for @dave14305 to include in the GUI...jk since it's closed source and only Asus can add!
 
@Odkrys, how you day cake works with online gaming & bufferbloat? Where you able to test it this way? I think A. QoS w/fq_codel and FreshJR script complement each other well.

Hopefully you have some input on this for those gamers! Thanks and great work!

Maybe another future project for @dave14305 to include in the GUI...jk since it's closed source and only Asus can add!

I haven't played a game these days, so I tested it as in the previous example.

tablet plays youtube 4k@30fps video,
smartphone plays 4k@60fps youtube video,
Laptop plays 4k@60fps youtube video and download googledrive data using IDM (internet download manager) with 4 connections.

My internet is 500Mbps/500Mbps fiber EPON.

Test is done over Wi-Fi.
Tablet - 2.4Ghz 173Mbps
Smartphone - 5Ghz 866Mbps
Laptop - 5Ghz 866Mbps

Without QoS (Hardware acceleration ON)

Adaptive QoS fq_codel 250Mbps
Work-From-Home > Game > others > video and audio streaming > web surfing > file transfer > Learn-From-Home
Since Adaptive QoS recognizes Google Drive data as net control packets, it has first priority.

Adaptive QoS fq_codel 250Mbps + freshjr
I sent tcp 80,443 transport to web surfing.

cake 250Mbps
cake just works.

For ping measurement, I used pingplotter (0.2 seconds interval).

Adaptive QoS works with hardware acceleration, so I am using Adaptive QoS + fq_codel + freshjr with a limit of 450Mbps.
 

Attachments

  • without_qos.png
    without_qos.png
    21.4 KB · Views: 164
  • adaptive_qos_fq_codel_250Mbps.png
    adaptive_qos_fq_codel_250Mbps.png
    19.1 KB · Views: 156
  • adaptive_qos_fq_codel_freshjr_250Mbps.png
    adaptive_qos_fq_codel_freshjr_250Mbps.png
    14.2 KB · Views: 209
  • cake_250Mbps.png
    cake_250Mbps.png
    13.8 KB · Views: 172
Last edited:
i turned off adaptive qos not working i give up, ill wait till there is a gui version, that s included in adaptive qos
ASUSWRT-Merlin RT-AX88U 384.18_alpha1-g6368a955e8 Fri May 29 04:01:05 UTC 2020
vexira@RT-AX88U-C528:/tmp/home/root# tc qdisc
qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth2 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth3 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth4 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth5 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev spu_us_dummy root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev spu_ds_dummy root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth6 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth7 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev ifb9eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
vexira@RT-AX88U-C528:/tmp/home/root# tc -s show qdisc show dev eth0
Object "show" is unknown, try "tc help".
vexira@RT-AX88U-C528:/tmp/home/root# tc -s show qdisc show dev ifb9eth0
Object "show" is unknown, try "tc help".
vexira@RT-AX88U-C528:/tmp/home/root#
@Vexira, where you able to get "cake" installed? What was your experience with it if you were successful?

If not, any steps to remove those packages installed? I haven't tried yet but will probably mess around with it this weekend.
 
@Odkrys I'm trying to install the ipk files but I keep getting the following error:
admin@RT-AC86U-C5D8:/tmp/home/root# opkg install sched-cake-oot_2020-05-28-a5dcc
fd8-1_aarch64-3.10.ipk
Unknown package 'sched-cake-oot'.
Collected errors:
* pkg_hash_fetch_best_installation_candidate: Packages for sched-cake-oot found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package sched-cake-oot.
Any ideas how to bypass this?

Update: I was able to install it....running cake with my 100/5 mpbs speeds. So far so so good!
 
Last edited:
@Odkrys I'm trying to install the ipk files but I keep getting the following error:

Any ideas how to bypass this?

Update: I was able to install it....running cake with my 100/5 mpbs speeds. So far so so good!

Would you be able to share your updated build/install instructions? I want to give it whirl as well with Suricata. Also, can help document the uninstall instructions as well.

Cheers!! This is great news.
 
Would you be able to share your updated build/install instructions? I want to give it whirl as well with Suricata. Also, can help document the uninstall instructions as well.

Cheers!! This is great news.


I followed the same instructions on pg.3. To remove i uninstalled a few files in the opkg folder and the script.
 
Last edited:
@Vexira, where you able to get "cake" installed? What was your experience with it if you were successful?

If not, any steps to remove those packages installed? I haven't tried yet but will probably mess around with it this weekend.
i sadly wasn't successful, to remove you have to use opkg remove (package name)

ive been trying to work out how the op implemented it into his gui, considering that i have an AX88U, which is a 4.X.X kernel version device.
 
I got it installed on my RT-AC86U on a 150/15 connection.

Seems stable, but will run for a couple days/reboots. I've made a couple changes to the install steps (that I believe is a bit cleaner) as well.

One interesting item to me is that with this "QOS" implementation, Suricata also works with no errors in the logs similar to Adpative QOS, therefore reliance on Trend Micro bloat is negated yippy!!!
 
I got it installed on my RT-AC86U on a 150/15 connection.

Seems stable, but will run for a couple days/reboots. I've made a couple changes to the install steps (that I believe is a bit cleaner) as well.

One interesting item to me is that with this "QOS" implementation, Suricata also works with no errors in the logs similar to Adpative QOS, therefore reliance on Trend Micro bloat is negated yippy!!!
Let us know how its working you. What does suricata do?
 
Thought i'd try this.....followed the guide from page 3 to the letter

does this look correct?


3NFypRK

3NFypRK
 
@Odkrys

Code:
Code:
#!/bin/sh

/jffs/scripts/cake-start start

is the contents of that file definitely correct?
 
Here are my download stats. Mine have no reference of fq_codel. I have tweaked the script for my download/upload to 145/14 and Bufferbloat has consistently been better (B's) than Adpative QoS (Ds or lower)- thus I get the OP thoughts about "it just works". Mind you, I'd like more logs/details/tests on whether it is actually working.

Code:
qdisc cake 8003: root refcnt 2 bandwidth 145Mbit besteffort triple-isolate nat wash ingress no-ack-filter split-gso rtt 100.0ms raw overhead 0 no-sce
 Sent 2185500337 bytes 1534140 pkt (dropped 1251, overlimits 1394036 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 2706Kb of 7250000b
 capacity estimate: 145Mbit
 min/max network layer size:           60 /    1514
 min/max overhead-adjusted size:       60 /    1514
 average network hdr offset:           14

                  Tin 0
  thresh        145Mbit
  target          5.0ms
  interval      100.0ms
  pk_delay        3.5ms
  av_delay        876us
  sp_delay         29us
  backlog            0b
  pkts          1535391
  bytes      2187384033
  way_inds         5236
  way_miss         1693
  way_cols            0
  marks               0
  drops            1251
  ack_drop            0
  sp_flows            4
  bk_flows            1
  un_flows            0
  max_len          1514
  quantum          1514
 
Status
Not open for further replies.

Latest threads

Sign Up For SNBForums Daily Digest

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