On a cAP ac, netinstalled to RouterOS 7.5 then put into cAP mode (local forwarding, datapath.vlan-id=10), I have these adjustments:
Code: Select all
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-vlan=yes
/ip firewall mangle
add action=set-priority chain=forward new-priority=from-dscp-high-3-bits out-bridge-port=all-wireless
add action=mark-packet chain=prerouting in-bridge-port=all-wireless new-packet-mark=upload
add action=mark-packet chain=postrouting new-packet-mark=download out-bridge-port=all-wireless
/queue type
add cake-diffserv=diffserv4 cake-flowmode=dual-srchost cake-memlimit=16.0MiB kind=cake name=upload-parent
add cake-diffserv=diffserv4 cake-flowmode=dual-dsthost cake-memlimit=16.0MiB kind=cake name=download-parent
/queue tree
add max-limit=40M name=upload-parent packet-mark=upload parent=global queue=upload-parent
add max-limit=60M name=download-parent packet-mark=download parent=global queue=download-parent
Without queues enabled, with laptop next to the cAP, I get ~100Mb/s (20MHz channels) [1]. With queues enabled, I get 37Mb/s download and 23Mb/s upload; this shows queue building is occurring in the tree rather than the AP or laptop WiFi MAC layer as expected.
The 95th percentile latency however is 107ms and 117ms respectively [2], not as well-controlled as expected for lower link utilisation; less importantly, the cAP single-core processor usage get to around 30%.
Bucket-size 1.0 doesn't help. Can anyone spot what I'm overlooking here to get better latency control with CAKE?
Thanks,
Dan
[1] https://www.waveform.com/tools/bufferbl ... a44b772c66
[2] https://www.waveform.com/tools/bufferbl ... b31004cc32