Limitations of Traditional QoS vs. Modern SQM
Old-school QoS prioritizes specific ports or IP addresses, but fails when total bandwidth saturates because packet queues still overflow.
Modern SQM (CAKE — Common Applications Kept Enhanced) breaks traffic into hundreds of isolated hash buckets and uses active drop algorithms (CoDel/ECN) to maintain near-zero queue latency.
Core Advantages of CAKE SQM
- •Fair Queueing: Automatically separates traffic flows by IP and connection.
- •Active Queue Management: Early packet drop or marking (ECN/CoDel) before buffers fill.
- •No Manual Rules: No need to prioritize individual ports or static IPs.
Configuration by Router Platform
OpenWrt
Difficulty:: Mediumluci-app-sqm / kmod-sched-cakeInstall luci-app-sqm, go to Network -> SQM. Enable on WAN interface. Select CAKE as qdisc and piece_of_cake.qos. Set download and upload bandwidth to 90-95% of measured speed.
ASUSWRT-Merlin
Difficulty:: LowAdaptive QoS / fq_codelGo to QoS -> Enable Smart QoS. Select "Bandwidth Limiter" or "Cake QoS" on recent models. Set symmetric or asymmetric limits with an 8% safety margin.
pfSense / OPNsense
Difficulty:: AdvancedFreeBSD Dummynet / FQ_CoDelCreate two limiters in Firewall -> Traffic Shaper -> Limiters (one Ingress, one Egress). Assign FQ_CoDel queue discipline to both pipes and link them in your WAN/LAN rules.
Keenetic OS
Difficulty:: Very LowIntelliQoS / SQMIn the Keenetic app or web UI, enable IntelliQoS and set your contracted line speed. The firmware dynamically manages queues automatically.
The 90-95% Bandwidth Margin Formula
SQM Limit = Actual Sustained Speed × 0.93 (7% saturation margin)Setting SQM bandwidth around 90–95% of measured line capacity keeps queueing within your router's active scheduler rather than unmanaged ISP/ONT buffers, significantly reducing latency under load.