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.
ls /opt/sbin/tc

Is there tc really?
saying not found...hmmm i definitely installed each ipk, but best to check

Code:
opkg install sched-cake-oot_2020-05-28-a5dccfd8-1_aarch64-3.10.ipk

opkg install sched-cake-oot_2020-05-28-a5dccfd8-1_aarch64-3.10.ipk

its installed properly now...weird when i did it on pc with same command it returned nothing, but ran it again on phone and it worked this time!
 
Last edited:
For me, I was having issues installing the ipk files. I used the "Format JFFS partition at next boot" and I was finally able to successfully installed the files.

However, it seems you were able to install them without issues.
 
Think i have it working now, set roughly 95% of download 70Mbit =66.5Mbit rounded to 66Mbit and upload 18Mbit = 17.1Mbit rounded that to 17Mbit
 
Here are my setup instructions:

Thanks to @robcore for his work. Wish we can get more versions moving!

Running the following as well:
amtm, scmerlin, syslog-ng/scribe, skynet, diversion (large list/youtube blocker), unbound (core dns), suricata (ips/ids), cake (QoS).

Pre-reqs
  • Disable QoS (any) - probably best to go to Admin/Privacy and "Withdraw" to be sure (note disables others stuff too)
  • Entware
  • USB Storage
  • jffs
Tips

Download based on your router
sched-cake-oot
RT-AC86U
https://drive.google.com/open?id=18sY2EmUxrw23ix-e0xHCWibLG6SB0YNu

RT-AX88U

https://drive.google.com/open?id=1YhawbEmvK1IMug9PeQbUH_gR8lN6o6Ee

All routers
tc-adv
https://drive.google.com/open?id=1cATB5RNBfwtxioP7JH89Sw-9PqX6voQ-

1. Upload to your router the files above.
2. Logon and browse to upload folder
3. Install:
  • opkg install sched-cake-oot_2020-05-28-a5dccfd8-1_aarch64-3.10.ipk
  • opkg install tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk
4. Create a new file in /jffs/scripts/cake-qos-start.sh OR nano /jffs/scripts/cake-qos-start.sh
5. Add the following:
Code:
#!/bin/sh

# Enable CAKE QOS
runner disable 2>/dev/null
fc disable 2>/dev/null
fc flush 2>/dev/null
insmod /opt/lib/modules/sch_cake.ko 2>/dev/null

#WAN-eth0
/opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 15Mbit besteffort nat

ip link add name ifb9eth0 type ifb
/opt/sbin/tc qdisc del dev eth0 ingress 2>/dev/null
/opt/sbin/tc qdisc add dev eth0 handle ffff: ingress
/opt/sbin/tc qdisc del dev ifb9eth0 root 2>/dev/null
/opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 150Mbit besteffort nat ingress wash

ifconfig ifb9eth0 up
/opt/sbin/tc filter add dev eth0 parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb9eth0

# End CAKE QOS
Note:
eth0 for upload, ifb9eth0 for download.
Kbit or Mbit both are ok. e.g 800Kbps upload and 10Mbps download.

Edit the lines in the above code block to suit along with any tweaks based on the Tips above based on connection type ADSL, Docsis etc.

  • /opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 800Kbit besteffort nat
  • /opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 10Mbit besteffort nat ingress wash
6. nano /jffs/scripts/services-start
7. Add sh /jffs/scripts/cake-qos-start.sh
8. chmod +x /jffs/scripts/cake-qos-start.sh
9. Start Cake QoS: sh /jffs/scripts/cake-qos-start.sh
10. Validate/test
  • tc qdisc
  • tc -s qdisc show dev eth0 (for upload)
  • tc -s qdisc show dev ifb9eth0 (for download)
Where exactly did you add the following: docsis ack-filter?
 
Where exactly did you add the following: docsis ack-filter?

At the end...
  • /opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 800Kbit besteffort nat
  • /opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 10Mbit besteffort nat ingress wash
First line in stat now shows:
Code:
qdisc cake 8007: root refcnt 2 bandwidth 142Mbit besteffort triple-isolate nat wash ingress ack-filter split-gso rtt 100.0ms noatm overhead 18 mpu 64 no-sce
 
At the end...
  • /opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 800Kbit besteffort nat
  • /opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 10Mbit besteffort nat ingress wash

Do you add those at the beginning or end of the line?
 
At the end as noted..
So it should look like the below as an example, correct?

  • /opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 800Kbit besteffort nat docsis ack-filter
  • opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 10Mbit besteffort nat ingress wash docsis ack-filter
 
Last edited:
So it should look like the below as an example?:

  • /opt/sbin/tc qdisc replace dev eth0 root cake bandwidth 800Kbit besteffort nat docsis ack-filter
  • opt/sbin/tc qdisc add dev ifb9eth0 root cake bandwidth 10Mbit besteffort nat ingress wash docsis ack-filter
Yessir...
 
Yessir...
Thanks....one last question...not sure if you know this but the initial instructions have more "meat" inside the cake-script vs the one you posted...is all the extra "stuff/rules" required from the initial instructions from pg. 3?
 
Thanks....one last question...not sure if you know this but the initial instructions have more "meat" inside the cake-script vs the one you posted...is all the extra "stuff/rules" required from the initial instructions from pg. 3?

Yes...think I might stop my edit as the other OP is updating as well. I've updated mine for now, but I'll wait to see....
 
Is docsis ack-filter needed as docsis is used for cable connections?

just realised i need vdsl ack-filter

As I noted on Page 5, you have to read up and pick based on your connection. In my examples I left out the docsis intentionally, so a user need to lookup what type and which command to use based on connection type.....
 
My 1st straight A+ across the board...CAKE appears to just work. I have never achieved this score ever with Traditional/Adpative/FreshQoS...

upload_2020-6-16_8-24-43.png
 
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