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.
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
I was also getting constant "B" grade bufferbloat on wireless testing. I would normally get C/Ds test previously using the same device!! I used 90% of my bandwidth speeds.

My question is, if we would get 'updates' to the ipk files we downloaded or where we can keep track (website) of these updates?

@ttgapers ...do you do any gaming? I wonder have latency works with cake. I havent had a chance to test at this time.
 
Thought i'd try this.....followed the guide from page 3 to the letter

does this look correct?


3NFypRK

3NFypRK
See my results in the previous post. I have no reference to fq_codel as compared to yours...

Have you disabled Adaptive/Traditional QoS?
 
I was also getting constant "B" grade bufferbloat on wireless testing. I would normally get C/Ds test previously using the same device!! I used 90% of my bandwidth speeds.

My question is, if we would get 'updates' to the ipk files we downloaded or where we can keep track (website) of these updates?

@ttgapers ...do you do any gaming? I wonder have latency works with cake. I havent had a chance to test at this time.

I don't game, but trust me I require QoS to kick in based on the overall household usage, both up and down. Today was the first day in a long time, I had all my Teams/Skype calls have no issue (while all the usual suspects do their stuff).

I am also curious on updates, since as you noticed one of the command lines in Page 3 has changed since there has been an update since then. Let's continue that route...how to update. Perhaps @rgnldo or similar might be able to assist as well. I am pumped as whatever he is doing with Suricata I can still leave on with Cake vs. Traditional/Adaptive QoS. @Kingp1n I am also curious about other models besides the 2 listed.

I'll have to post my install/config instructions based on Page 3 later, as well as more stats -- example, I haven't restarted the router etc. as of yet to see how it behaves with the others mods on startup...unbound, skynet, diversion etc....

Don't mind hosting on my git if required..
 
I don't game, but trust me I require QoS to kick in based on the overall household usage, both up and down. Today was the first day in a long time, I had all my Teams/Skype calls have no issue (while all the usual suspects do their stuff).

I am also curious on updates, since as you noticed one of the command lines in Page 3 has changed since there has been an update since then. Let's continue that route...how to update. Perhaps @rgnldo or similar might be able to assist as well. I am pumped as whatever he is doing with Suricata I can still leave on with Cake vs. Traditional/Adaptive QoS. @Kingp1n I am also curious about other models besides the 2 listed.

I'll have to post my install/config instructions based on Page 3 later, as well as more stats -- example, I haven't restarted the router etc. as of yet to see how it behaves with the others mods on startup...unbound, skynet, diversion etc....

Don't mind hosting on my git if required..
Yes please share your instructions. Suricata looks interesting. Are you running Diverison and Skynet as well? I currently use the built DoT with Diversion and Skynet.

I will definitely try it and use it with unbound, but unbound also has its own firewall & adblocker. Don't want to mix everything up. Any recommendations?
 
Yes please share your instructions. Suricata looks interesting. Are you running Diverison and Skynet as well? I currently use the built DoT with Diversion and Skynet.

I will definitely try it and use it with unbound, but unbound also has its own firewall & adblocker. Don't want to mix everything up. Any recommendations?

I do use Skynet and Diversion. I used the Large list in Diversion and have issues loading it in Unbound, so I used Unbound for recursive DNS resolution etc. and use Diversion for ad-blocking and Youtube ads. Skynet is my firewall, Suricata hopefully my IPS/IDS and now Cake as my QoS (assuming all goes well).

Hope that helps.
 
See my results in the previous post. I have no reference to fq_codel as compared to yours...

Have you disabled Adaptive/Traditional QoS?
Yes, i disabled QOS, didn't reboot router yet though i just carried out the guide
 
I was also getting constant "B" grade bufferbloat on wireless testing. I would normally get C/Ds test previously using the same device!! I used 90% of my bandwidth speeds.

My question is, if we would get 'updates' to the ipk files we downloaded or where we can keep track (website) of these updates?

@ttgapers ...do you do any gaming? I wonder have latency works with cake. I havent had a chance to test at this time.
i hope i have the settings correct...i just set according to what spdmerlin reported?
 
Post the output of the commands below of: tc qdisc
Code:
ASUSWRT-Merlin RT-AC86U 384.18_alpha1-gb66d5282dd Sat Jun 13 21:56:32 UTC 2020
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root# tc qdisc
qdisc htb 1: dev eth0 root refcnt 2 r2q 10 default 0 direct_packets_stat 8453874 direct_qlen 1000
qdisc fq_codel 2: dev eth0 parent 1:2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc htb 10: dev eth0 parent 1:10 r2q 10 default 256 direct_packets_stat 0 direct_qlen 1000
qdisc fq_codel 1256: dev eth0 parent 10:256 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1002: dev eth0 parent 10:2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1004: dev eth0 parent 10:4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1005: dev eth0 parent 10:5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1003: dev eth0 parent 10:3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1007: dev eth0 parent 10:7 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1006: dev eth0 parent 10:6 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1008: dev eth0 parent 10:8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
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 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 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 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 ppp0 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 tun11 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
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root#
 
Code:
ASUSWRT-Merlin RT-AC86U 384.18_alpha1-gb66d5282dd Sat Jun 13 21:56:32 UTC 2020
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root# tc qdisc
qdisc htb 1: dev eth0 root refcnt 2 r2q 10 default 0 direct_packets_stat 8453874 direct_qlen 1000
qdisc fq_codel 2: dev eth0 parent 1:2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc htb 10: dev eth0 parent 1:10 r2q 10 default 256 direct_packets_stat 0 direct_qlen 1000
qdisc fq_codel 1256: dev eth0 parent 10:256 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1002: dev eth0 parent 10:2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1004: dev eth0 parent 10:4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1005: dev eth0 parent 10:5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1003: dev eth0 parent 10:3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1007: dev eth0 parent 10:7 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1006: dev eth0 parent 10:6 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
qdisc fq_codel 1008: dev eth0 parent 10:8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms
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 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 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 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 ppp0 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 tun11 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
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root#

Did you create the scripts as well? You'll need the 'cake-start' script and also inside the 'services-start' script you'll need to add the following rule: /jffs/scripts/cake-start start

Also, make sure they have the correct permissions.
 
Did you create the scripts as well? You'll need the 'cake-start' script and also inside the 'services-start' script you'll need to add the following rule: /jffs/scripts/cake-start start

Also, make sure they have the correct permissions.
Done all that as per guide....only thing i haven't done is restart the router etc
 
Here are my setup instructions:

Thanks to @robcore [USER]@Odkrys[/USER] and @jackiechun for their work!

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

Setup & project details: https://github.com/ttgapers/cakeqos-merlin

Install Example
1. Download and apply permissions:
Code:
/usr/sbin/curl --retry 3 "https://raw.githubusercontent.com/ttgapers/cakeqos-merlin/master/cake-qos.sh" -o "/jffs/scripts/cake-qos" && chmod 0755 /jffs/scripts/cake-qos
2. Convert (just in case):
Code:
dos2unix /jffs/scripts/cake-qos
3. Change for your router model:
Code:
/jffs/scripts/cake-qos install ac86u
4. Change for your linespeed and any overhead:
Code:
/jffs/scripts/cake-qos enable 135Mbit 13Mbit "docsis" "ack-filter"

Usage:
Code:
/jffs/scripts/cake-qos {install|enable|start|stop|disable} (install, enable and start have required parameters)
Install: Install binaries based on router parameter
Enable: Adds jobs to start/stop scripts and starts
Disable: Stops, removes jobs from start/stop scripts
Stop: Stop
Start: Start with parameters

Results
upload_2020-6-18_1-46-46.png
 
Last edited:
Try to restart and run the services-start command after.
 
It's been a long week, but I finally got it working!

...Okay I haven't hit "apply" yet for fear of a nuclear explosion (and next to 100% asp illiteracy), but the queuing discipline itself works when manually applied. I poured over Eric's history to ensure that it has hooks in all the right places to act as a legit option alongside sfq and the codels.

Anyone want to work on this with me? Downsides: I'm a kernel/project hacker at best, am super messy, and suck at git. Upsides: I am completely willing to break my own hardware but no one else's, am just familiar enough with universal programming techniques to hack together whatever I need, and will not stop until I accomplish my goals.

Check out the screen shot!

Willing to help on the git hosting/branching etc. if you like!
 
Try to restart and run the services-start command after.
What about calculating 90-95% which is best for upload\download values from speedtest what's the calculation to work that out?
 
What about calculating 90-95% which is best for upload\download values from speedtest what's the calculation to work that out?
You can get those by testing your internet speeds. For instance, my paid/advertise speeds are 100/5 mbps. My test speeds average around 95/4.5 mbps.

I used 90mpbs for my download and 4mpbs for my upload (roughly 95% of my speed test). You can play with this #s.
 
You can get those by testing your internet speeds. For instance, my paid/advertise speeds are 100/5 mbps. My test speeds average around 95/4.5 mbps.

I used 90mpbs for my download and 4mpbs for my upload (roughly 95% of my speed test). You can play with this #s.

Code:
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root# sh /jffs/scripts/cake-start.sh
Broadcom Packet Flow Cache learning via BLOG disabled.
Broadcom Packet Flow Cache flushing the flows
/jffs/scripts/cake-start.sh: line 11: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 13: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 15: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 18: /opt/sbin/tc: not found
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/tmp/home/root# cd /jffs/scripts/
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/jffs/scripts# sh /jffs/scripts/cake-start.sh
Broadcom Packet Flow Cache learning via BLOG disabled.
Broadcom Packet Flow Cache flushing the flows
/jffs/scripts/cake-start.sh: line 11: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 13: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 15: /opt/sbin/tc: not found
/jffs/scripts/cake-start.sh: line 18: /opt/sbin/tc: not found
KBvUTgSItSQdjpCB@RT-AC86U-87E8:/jffs/scripts#

still think i might need to reboot router for changes in config....
Any idea?
 
did you install tc-adv?
Yes, i have dont think im that far away from getting it working....just so i can double check what would be recommended way to install ipk's?
 
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