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.
which traffic rules is cake following? where define priorities?

@Milan have a read here: https://www.bufferbloat.net/projects/codel/wiki/Cake/

It is what I used to wrap my head around Cake and it's simple applicability to our use cases for set and forget. I do plan to use/link to that site as reference/QnA once this mod gets it's own thread.

For those looking for stats: https://www.bufferbloat.net/projects/codel/wiki/Cake/#some-statistics

Features and enhancements over htb + fq_codel: https://www.bufferbloat.net/project...es-and-enhancements-of-cake-over-htb-fq-codel
 
Code:
/jffs/scripts/cake-qos enable 135Mbit 13Mbit "docsis ack-filter"

Just so you know I get an error with the "docsus ack-filter" consistently and that's why I updated the instructions. Doesn't look like it's handling multiple additional parameters well. With the command above it throws and error verbose from Cake.

If I use the following no problem:

Code:
/jffs/scripts/cake-qos enable 135Mbit 13Mbit "docsis"

Tried

Code:
/jffs/scripts/cake-qos enable 135Mbit 13Mbit "docsis" "ack-filter"

But obviously only takes the first parameter.
 
How does cake handle IPv6 ? I know that FreshJR had some issues here that were never resolved by the developer.
Found this snippet about IPv6 in above linked post:
If you’re using some form of ipv6 in ipv4 tunneling then consider adding “option tos ‘inherit’” to the ‘wan6’ interface definition in /etc/config/network. This will copy the DSCP classification from the encapsulated IPv6 packets to the encapsulating IPv4 packets and help cake classify the contained flows into the correct tin.
 
If anyone wants to help test out if firewall-start would work without a delay we've put together a test version that uses firewall-start instead of services-start:

Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/develop/cake-qos-firewall-nodelay.sh" -o "/jffs/scripts/cake-qos" && chmod 0755 /jffs/scripts/cake-qos

Skip the below command if you already have the cake binaries installed:
If ac86u: /jffs/scripts/cake-qos install ac86u
If ax88u: /jffs/scripts/cake-qos install ax88u

Then:

Code:
/jffs/scripts/cake-qos enable 135Mbit 13Mbit "docsis ack-filter"

Change above download speed, upload speed and optional extra parameters accordingly.

Then reboot your router and once booted up run:

tc qdisc
tc -s qdisc show dev eth0 (for upload)
tc -s qdisc show dev ifb9eth0 (for download)

To verify whether or not cake-qos is started properly.

Tested on reboot and looks good except for my comments about the "additional parameters" :)
 
Tested on reboot and looks good except for my comments about the "additional parameters" :)
Maybe in that case just move start cake entries to firewall-start\firewall-stop

/jffs/scripts/cake-qos-start.sh start\stop

and keep it the way you intended until kinks can be workedout
 
Tested on reboot and looks good except for my comments about the "additional parameters" :)

Great :) Will work on another test version with the "additional parameters" fixed.

Maybe in that case just move start cake entries to firewall-start\firewall-stop

/jffs/scripts/cake-qos-start.sh start\stop

and keep it the way you intended until kinks can be workedout

Yes that would be ideal, there is no firewall-stop so it'll have to remain services-stop.

To anyone wondering: I can't test as my units are over at my parents and the last time I remoted in and rebooted the main router (AC86U), it never powered back on. So I'll need to rely on you folks :)
 
just switched from besteffort to diffserv4 to see some difference
 
Help, I'm trying to install on my RT-AX88U and I'm having problems following the Github master instructions. I'm getting a malformed package error when I try to run the installation

Code:
RT-AX88U-AA80:/jffs/scripts# /jffs/scripts/cake-qos install ax88u
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    230      0 --:--:-- --:--:-- --:--:--   272
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   174  100   174    0     0    208      0 --:--:-- --:--:-- --:--:--   240
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk.
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk.

I started off removing FreshJR_QOS and turning off QoS
I inserted and formatted a USB drive using AMTM
I installed entware using AMTM
I rebooted and followed the instructions
 
Help, I'm trying to install on my RT-AX88U and I'm having problems following the Github master instructions. I'm getting a malformed package error when I try to run the installation

Code:
RT-AX88U-AA80:/jffs/scripts# /jffs/scripts/cake-qos install ax88u
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    230      0 --:--:-- --:--:-- --:--:--   272
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   174  100   174    0     0    208      0 --:--:-- --:--:-- --:--:--   240
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk.
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk.

I started off removing FreshJR_QOS and turning off QoS
I inserted and formatted a USB drive using AMTM
I installed entware using AMTM
I rebooted and followed the instructions

Thanks, I've reached out to you via PM :)
 
Help, I'm trying to install on my RT-AX88U and I'm having problems following the Github master instructions. I'm getting a malformed package error when I try to run the installation

Code:
RT-AX88U-AA80:/jffs/scripts# /jffs/scripts/cake-qos install ax88u
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    230      0 --:--:-- --:--:-- --:--:--   272
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   174  100   174    0     0    208      0 --:--:-- --:--:-- --:--:--   240
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk.
Collected errors:
 * pkg_init_from_file: Malformed package file /tmp/home/root/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk.

I started off removing FreshJR_QOS and turning off QoS
I inserted and formatted a USB drive using AMTM
I installed entware using AMTM
I rebooted and followed the instructions
probably a git problem. the repo(s) lack .gitattributes to make sure the packages are marked as binaries so not processed in any way
 
Great :) Will work on another test version with the "additional parameters" fixed.

Yes that would be ideal, there is no firewall-stop so it'll have to remain services-stop.

To anyone wondering: I can't test as my units are over at my parents and the last time I remoted in and rebooted the main router (AC86U), it never powered back on. So I'll need to rely on you folks :)

I don't mind testing new versions if needed :)
 
just switched from besteffort to diffserv4 to see some difference

Would be interested to see your findings!

probably a git problem. the repo(s) lack .gitattributes to make sure the packages are marked as binaries so not processed in any way

Thank you sir! We have added .gitattributes to mark *.ipk as binary.

Testing so far has gone well: looks like firewall-start works, no delay needed. Some testing is still needed on the optional extra parameters and if all goes well we should be able to update the production version on Github.
 
still getting:
cromo@RT-AX88U-8158:/tmp/home/root# /jffs/scripts/cake-qos install ax88u
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 1088 0 --:--:-- --:--:-- --:--:-- 1258
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 174 100 174 0 0 1029 0 --:--:-- --:--:-- --:--:-- 1167
Collected errors:
* pkg_init_from_file: Malformed package file /tmp/home/root/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk.
Collected errors:
* pkg_init_from_file: Malformed package file /tmp/home/root/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk.
 
still getting:
cromo@RT-AX88U-8158:/tmp/home/root# /jffs/scripts/cake-qos install ax88u
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 1088 0 --:--:-- --:--:-- --:--:-- 1258
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 174 100 174 0 0 1029 0 --:--:-- --:--:-- --:--:-- 1167
Collected errors:
* pkg_init_from_file: Malformed package file /tmp/home/root/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk.
Collected errors:
* pkg_init_from_file: Malformed package file /tmp/home/root/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk.
I was advised to install from the development branch to temporarily work around this

Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/develop/cake-qos-dev.sh" -o "/jffs/scripts/cake-qos" && chmod 0755 /jffs/scripts/cake-qos

/jffs/scripts/cake-qos install ax88u
Then continue with the remaining installation instructions. It worked for me.
 
Pleased to announce v0.0.2 is now released: https://github.com/ttgapers/cakeqos-merlin

Installation instructions: https://github.com/ttgapers/cakeqos-merlin#cakeqos-merlin
(reminder: ensure QoS is disabled (Admin/Privacy and "Withdraw" if you don't intend on using any of the TrendMicro stuff))

And important note: if you installed an older version before, stop cake-qos (/jffs/scripts/cake-qos stop) and comment out or remove any cake entries in /jffs/scripts/services-start before proceeding (nano /jffs/scripts/services-start).

Sincere thanks to everyone who help test, and @TechTinkerer who helped test the last fix that I made before pushing out this release.
 
Last edited:
Pleased to announce v0.0.2 is now released: https://github.com/ttgapers/cakeqos-merlin

Installation instructions: https://github.com/ttgapers/cakeqos-merlin#install-example
(reminder: ensure QoS is disabled (Admin/Privacy and "Withdraw" if you don't intend on using any of the TrendMicro stuff))

And important note: if you installed an older version before, comment out or remove any cake entries in /jffs/scripts/services-start before proceeding. (nano /jffs/scripts/services-start)

Sincere thanks to everyone who help test, and @TechTinkerer who helped test the last fix that I made before pushing out this release.
Also in my firewall-start still had freshqos starting at boot, so you guys who are now using cake comment that entry out
 
I haven't upgraded from the development branch yet, but I've ended up with the call to start cake-qos in both firewall-start and services-start. Which one is correct?
 
I haven't upgraded from the development branch yet, but I've ended up with the call to start cake-qos in both firewall-start and services-start. Which one is correct?
firewall-start is correct one
 
Status
Not open for further replies.

Similar threads

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