Thank you.A simple example of customizing Cake on Merlin is to use the/jffs/configs/cake-qos.conf.add
file. If I want to add theack-filter
option to my upload options, but I don't want to replace the existing firmware-generated options, I can use this syntax:
This sets the predefined ULOPTIONS variable to itself, then tacks on myCode:ULOPTIONS="$ULOPTIONS ack-filter"
ack-filter
option. The double-quotes are needed (instead of single-quotes) so that the $ULOPTIONS variable is expanded.
If I wanted to completely replace the ULOPTIONS generated by the firmware, I would use this syntax without including the variable name within the double-quotes:
The original variable contents are ignored and replaced with my updated variable when qos is started.Code:ULOPTIONS="nat triple-isolate wash ack-filter"
I've also added iptables rules for Teams and Zoom to ensure that it takes advantage of the Voice tin in diffserv3 on upload.Code:# tc qdisc | grep cake qdisc cake 8006: dev eth0 root refcnt 2 bandwidth 24576Kbit diffserv3 dual-srchost nat nowash ack-filter split-gso rtt 100ms noatm overhead 18 mpu 64 qdisc cake 8007: dev ifb4eth0 root refcnt 2 bandwidth 215040Kbit besteffort dual-dsthost nat wash ingress no-ack-filter split-gso rtt 100ms noatm overhead 18 mpu 64
This is the contents of my/jffs/scripts/qos-start
script. I have IPv6 enabled, so the last 4 lines aren't needed if you do not have IPv6 enabled.
Code:#!/bin/sh iptables -t mangle -D POSTROUTING -o eth0 -p udp -m multiport --dports 3478:3481 -j DSCP --set-dscp-class EF 2>/dev/null iptables -t mangle -A POSTROUTING -o eth0 -p udp -m multiport --dports 3478:3481 -j DSCP --set-dscp-class EF iptables -t mangle -D POSTROUTING -o eth0 -p udp -m multiport --dports 8001:8010 -j DSCP --set-dscp-class EF 2>/dev/null iptables -t mangle -A POSTROUTING -o eth0 -p udp -m multiport --dports 8001:8010 -j DSCP --set-dscp-class EF ip6tables -t mangle -D POSTROUTING -o eth0 -p udp -m multiport --dports 3478:3481 -j DSCP --set-dscp-class EF 2>/dev/null ip6tables -t mangle -A POSTROUTING -o eth0 -p udp -m multiport --dports 3478:3481 -j DSCP --set-dscp-class EF ip6tables -t mangle -D POSTROUTING -o eth0 -p udp -m multiport --dports 8001:8010 -j DSCP --set-dscp-class EF 2>/dev/null ip6tables -t mangle -A POSTROUTING -o eth0 -p udp -m multiport --dports 8001:8010 -j DSCP --set-dscp-class EF
For me Diversion doesn't work correctly if I enable the Alternate blocking list. If I leave it Standard without fs enabled it works fine.Hi,
Is diversion working with this version?
What ip (10.218.0.1) is that? I can't test it.@RMerlin
I've done a few more tests with cake while gaming and It's pretty obvious cake is having issues when something that send a lot of small packets is running on the network. Like an online multiplayer game, or a meter.net/ping-test.
Funny thing is that these ping spikes don't show on any in-game ping stats that I've tested (PUBG and Apex Legends) and I don't notice anything while playing either. Soo maybe cake is doing something to ICMP packets? It's not related to having HW acceleration off either as it doesn't happen with Tradicional Qos or Adaptive QOS.
Have a look at this test clip, I've tried to make it as short as possible. I have both the router and pingplotter pinging my first hop while I run an online multiplayer game. Cake on vs off
It's much more likely to work on upload versus download.Thank you.
I implemented what you have here for my environment. I'm trying to learn more about DSCP for QOS and I found this. Do you think we would be able to use some, or maybe even most, of the recommendations here?
That's normal, first hop of my connection outside of the router. It's an internal IP from my isp. It really doesn't matter, even if i ping 1.1.1.1 or 8.8.8.8 it's the same. If there's something like a multiplayer game running i get ping spikes with cake on. Again this doesn't seem to affect the game itself.What ip (10.218.0.1) is that? I can't test it.
I re-read this and wondered if you looks at it too fast because your answer didn't make sense. This is not measuring connect speed, this is monthly totals. Is the that you meant?Yes it is. Traffic spike.
Set it manually instead of relying on the timezones. It's possible that the router's TZ database isn't up to date, with all the changes that happened these past few years to DST periods.I am completely lost.
It's not as visible on stock firmware because they do not save the database to disk, it gets wiped every reboot.Really? It's hard to believe they've had a known customer facing issue for years. It doesn't exactly build consumer confidence. One would think if it doesn't work they'd just disable/remove it until it does. Super weird.
Try tweaking your overhead settings, these are critical when dealing with small packets.I've done a few more tests with cake while gaming and It's pretty obvious cake is having issues when something that send a lot of small packets is running on the network. Like an online multiplayer game, or a meter.net/ping-test.
It's not as visible on stock firmware because they do not save the database to disk, it gets wiped every reboot.
Monthly tracking doesn't exist at all on stock firmware (as it would make no sense since the data isn't persistent, being stored only in RAM).Monthly cumulative internet usage gets wipe on every reboot? What am I missing here?
Thanks for the reply. So it's NOT an Asus issue then?Monthly tracking doesn't exist at all on stock firmware (as it would make no sense since the data isn't persistent, being stored only in RAM).
Very jealous, is there a way to use on RT-AC68?Cake is behaving brilliantly - in my experience at least much better than FlexQos - at least in what is being reported by DSLReports and fast.com. Difference between unloaded and loaded latency in Fast.com is only 4ms. Thats with
upload and download limits set at 20 and 54 ( my up/down NO QOS speeds are 19 up and 54 down so im actually setting the upload limit higher than the NO QOS upload speed in order to achieve max upload speed). I am getting triple A+ sometimes A for bufferbloat. The download/upload speeds with Cake on those settings is 52.5 download and roughly 18 upload. A perfect addition to our Routers. And thats with no tinkering with additional Cake configuration settings - just plain Merlin Vanilla.
PS I am on PPPoE VDSL connection 50/20 FTTN ISP connection.
Merlin you are a genius!!
Very jealous, is there a way to use on RT-AC68?
I use Ubiquiti myself, but I have an RT-AC68 at my parents that I manage remotely. If I replaced it with anything it would be an EdgeRouter.Unfortunately not - why dont you just go out and buy an AC86U - probably not much more than AUS$200 sometimes less on Ebay and retire your existing 68? Best investment you will ever make.
That's not what I said... All I said is that they do not display monthly data (only daily), and that this data is kept in RAM and therefore vanishes after a reboot, so people using stock firmware almost never pay attention to these. They use Traffic Analyzer data instead.Thanks for the reply. So it's NOT an Asus issue then?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!