First, identify the device in WAN status that actually carries internet traffic. When SQM is bound to an interface with no corresponding traffic, LuCI may show it as enabled, but clients experiencing full upload will still face long queues.
Set speed first, then adjust queues
Install luci-app-sqm. On the SQM QoS page, enable actual WAN. If wired retesting yields stable download 300 Mb/s and upload 30 Mb/s, set initial available 稳定速率 × 0.90 × 1000; in the example, fill in 270000 and 27000 kbit/s. Set link overhead according to line encapsulation. Which layer does PPPoE, VLAN, and tunnel reside on will affect the bytes counted.
Comparison of CAKE and FQ-CoDel under identical bandwidth conditions
On the same WAN link with stable throughput, first set the upload rate slightly below the bottleneck. Use identical upload contention and real web task loads for both queues.
CAKE can combine integral, fair queueing, and link overhead handling into a single queue. FQ-CoDel can be paired with HTB, for example, sqm-scripts' simple.qos, and is worth evaluating when router CPU becomes a bottleneck. Both approaches maintain the same throughput and link conditions. On the router, run tc -s qdisc show to check WAN and IFB counters, then record client throughput, p95 latency, and single-core CPU usage. Perform a raw baseline after disabling SQM.
Keep the scheme if business latency is acceptable and the device is not at full utilization. A baseline period must be retained separately whenever the algorithm is changed or overhead compensation is adjusted.
Lab record

On the same virtual download path, the simulated uplink was set to 20 Mb/s and the router shapers to 18 Mb/s. Across three runs per mode, loaded median RTT was 28.67 ms for baseline, 0.79 ms for CAKE and 11.55 ms for TBF plus FQ-CoDel. The chart includes p95 and receive throughput.
Check the terminal output

Comments