If a large upload freezes the video call while speed tests still look healthy, check latency under load. Bufferbloat may be holding small interactive packets behind too much queued traffic. OpenWrt’s Smart Queue Management (SQM), using CAKE, gives you a way to control the WAN queue and test whether the delay improves. Plan time for measurement and tuning, and check the router’s processing capacity before expecting it to shape a gigabit link.

Save the current router configuration in an access-controlled backup before changing settings, then test from a wired client while the rest of the network is quiet. Record idle latency, download and upload throughput, then loaded latency during a transfer. Check whether the bad delay occurs on the WAN rather than Wi-Fi or a local server. A segmented home network can improve separation, but VLANs do not fix a full WAN queue.

Why a fast connection can feel slow

A queue is useful until it is too long. When packets arrive faster than a link can send them, they wait; a large unmanaged queue can add significant delay to a small interactive packet. A speed test by itself therefore says little about responsiveness.

For a rough illustration, a full 2 MB queue in front of a 10 Mb/s bottleneck accounts for about 1.6 seconds of serialization time, before other delay. Your modem and traffic will differ, but the calculation shows why a fast-looking connection can still feel unresponsive.

CAKE[1]—Common Applications Kept Enhanced—combines rate shaping, flow queuing and active queue management in a Linux queue discipline. Its configured rate tries to move the bottleneck into a queue the router can manage, instead of letting a large upstream modem or ISP queue grow. Download shaping is more indirect: by managing packets after they arrive, SQM tries to make senders slow down before an upstream queue remains full. The configured rate must sit below the link's sustained available capacity with enough headroom for framing overhead and variation. If it sits too high, the unmanaged bottleneck still controls delay; if too low, you give away throughput.

CAKE offers flow and host isolation and optional Diffserv priority classes. Its native default isolation mode is triple-isolate, not dual-dsthost. On a NAT router, CAKE's nat option can reveal internal host addresses to the fairness logic when NAT is performed on that same box. Its default traffic-class mode depends on the exact SQM script options, so do not assume that every OpenWrt install puts a video call in a voice tin. DSCP markings have to exist and be trusted before priority classification helps.

CAKE combines shaping and overhead accounting with its queue management, which can simplify the setup compared with assembling a shaper and fq_codel separately. Either arrangement still needs a sensible rate and measurements on your link. Use bounded queues and fair sharing under congestion as the test of the configuration.

Install SQM for the OpenWrt release you run

Read System → Software or cat /etc/openwrt_release to confirm the release and available packages. OpenWrt 25.12 uses apk[2]. OpenWrt 24.10 uses opkg[3]. Install luci-app-sqm through LuCI if you prefer, or use the command that matches your release:

# OpenWrt 25.12
apk -U add luci-app-sqm

# OpenWrt 24.10
opkg update
opkg install luci-app-sqm

The LuCI package depends on the SQM scripts; if you do not want LuCI, install sqm-scripts instead. The required CAKE kernel module must be present in the image or available as a package matching the running kernel. Check package errors and lsmod | grep sch_cake if CAKE is absent. Avoid tc qdisc add as an installation check: that command changes the live queue. If the router cannot sustain the intended shaping rate with its CPU, package installation alone will not fix throughput.

Open Network → SQM QoS. Identify the actual WAN-facing device in Network → Interfaces or with ifstatus wan; do not assume it is eth0, wan, or a particular VLAN. Put the shaper on the device carrying traffic toward the internet. On PPPoE, VLAN, or bridged installations, verify the device the WAN interface actually uses and the resulting tc attachment before trusting a dropdown label. Shape the path where traffic crosses the bottleneck you measured.

Start with a plain, testable profile

Begin with one SQM instance on the selected WAN device, using CAKE and the documented default piece_of_cake.qos. That keeps uncertain DSCP markings out of the first comparison. If you later want deliberate priority classes, test layer_cake.qos with the actual traffic markings and counters so the extra policy has a purpose.

Enter download and upload rates in kbit/s. Try about 90% of measured throughput as an initial experiment, then adjust from the loaded-latency results. The OpenWrt SQM setup guide[4] is a useful configuration reference. Measure both directions at several times on a wired client; an evening link may have less available capacity than a 3 a.m. speed test. The rate is the controlled bottleneck, intentionally. You can raise it after verifying loaded latency, or lower it if the unmanaged queue still fills.

For a hypothetical repeatedly measured 100/10 Mb/s link, a 90% starting point is 90,000 down and 9,000 up in the UI. This conversion is an example, not a prediction that your ISP will sustain either speed or that 90% will be the final setting.

Set link-layer adaptation to match the real access link. Ethernet, PPPoE, DOCSIS and DSL framing have different overhead; a precise figure depends on encapsulation. The CAKE manual[1] explains overhead and minimum packet unit (MPU). Do not copy a fixed DOCSIS or DSL byte count from another connection without identifying your own framing. If you do not know it, start with the documented conservative setting, record it, and change one factor at a time while testing.

Save and apply. Inspect the running queue rather than assuming LuCI saved a working shaper:

ifstatus wan
tc -s qdisc show
logread | grep -i sqm

The output should show CAKE on the appropriate egress path and an ingress counterpart on the IFB device when download shaping is enabled. Check the configured bandwidth and counters; they should change during a loaded test. If tc shows no relevant queue, fix interface selection, missing modules or SQM startup errors before interpreting a speed-test grade.

Measure before and after under the same load

Repeat the wired idle and loaded latency tests with the same client and similar background conditions. Flent's Realtime Response Under Load (RRUL) test[5] is useful when you have a suitable test endpoint: it runs four TCP downloads and four uploads while measuring ICMP and UDP round-trip time. A simpler simultaneous upload/download and ping can still reveal the problem. Compare median and tail latency as well as throughput, not just one score or a single spike.

If latency remains high under upload, lower the upload rate modestly and retest. If it rises mainly under download, adjust the download rate. If throughput collapses while CPU is saturated, the router may not have enough processing capacity at that rate. Recheck hardware or software flow offloading: hardware flow offload can bypass the SQM path, so a deceptively high speed result with no CAKE counters is not success. Disable it for the SQM path if necessary and remeasure CPU and throughput.

Judge the added delay under comparable load while keeping useful throughput in view. Baseline RTT, the test endpoint, Wi-Fi, ISP variation and applications all affect the graph, so a perfectly flat one-millisecond line is an unhelpful target. A 5% rate reduction gives you another experiment to compare; the measurements determine whether further steps are worthwhile.

When the basic setup is not enough

If one household device dominates, inspect CAKE's isolation mode and NAT setting in the running tc output before changing them. dual-dsthost suits downlink host fairness and dual-srchost uplink host fairness; triple-isolate is CAKE's general default. The nat lookup matters only when the router doing the shaping also performs NAT. Change one option at a time and rerun the same loaded test. Do not blame a choppy call on Diffserv settings until the measured bottleneck and queue behavior support that diagnosis.

If you choose layer_cake.qos, verify actual DSCP markings and inspect tin counters. wash clears DSCP marks and is a trust or policy decision, not a CPU speed switch. CAKE's ACK filtering is optional; leave it off until measurements show a reason to test it. For a link whose capacity varies significantly, fixed-rate SQM may be an imperfect fit. Projects such as cake-autorate adjust rates externally; CAKE's fixed-rate setting does not infer changing ISP capacity for you.

Keep a record of the release, WAN device, rates and options that produced the improvement. When the link or router changes, repeat the same comparison: locate the bottleneck, check the queue attachment and test below sustained capacity. CAKE supplies the managed queue; loaded-latency and throughput results tell you whether calls, games and other traffic now share the connection more comfortably.