Hi Fred, On Jul 10, 2015, at 21:14 , Fred Stratton wrote: > > > On 10/07/15 19:46, Sebastian Moeller wrote: >> Hi Fred, >> >> your results seem to indicate that cake is not active at all, as the latency under load is abysmal (a quick check is to look at the median in relation to the min and the 90% number, in your examples all of these are terrible). Could you please post the result of the following commands on your router: >> 1) cat /etc/config/sqm > config queue 'eth1' > option qdisc 'fq_codel' > option script 'simple.qos' > option qdisc_advanced '0' > option linklayer ‘none' For an ADSL link I could swear link layer ‘none’ is not optimal ;) > option enabled '0' > option interface 'eth1' > option download '0' > option upload ‘0' Not that it matters as you do not use the sqm-scripts machinery. > > >> 2) tc -d qdisc > qdisc fq_codel 0: dev eth0 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev eth1 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc mq 0: dev wlan1 root > qdisc fq_codel 0: dev wlan1 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan1 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan1 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan1 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc mq 0: dev wlan0 root > qdisc fq_codel 0: dev wlan0 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan0 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan0 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc fq_codel 0: dev wlan0 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn > qdisc cake 8002: dev pppoe-wan root refcnt 2 bandwidth 850Kbit besteffort flows raw You should enable the atm link layer accounting on both ingress (ifb4pppoe-wan) and egress (pppoe-wan). > qdisc ingress ffff: dev pppoe-wan parent ffff:fff1 ---------------- > qdisc cake 8001: dev ifb4pppoe-wan root refcnt 2 bandwidth 11500Kbit besteffort flows atm overhead 40 > >> 3) tc -d class show dev pppoe-wan > class cake 8002:2fa parent 8002: > > >> 4) tc -d class show dev ifb4pppoe-wqn > > class cake 8001:6e parent 8001: >> 5) /etc/init.d/sqm stop > SQM: Trying to start/stop SQM on all interfaces. > SQM: run.sh stop > SQM: /usr/lib/sqm/run.sh SQM for interface eth1 is not enabled, skipping over... >> 6) /etc/init.d/sqm start > /etc/init.d/sqm start > SQM: Trying to start/stop SQM on all interfaces. > SQM: /usr/lib/sqm/run.sh SQM for interface eth1 is not enabled, skipping over… Alas, not activated so this does not give any diagnostic output… Newer sqm-scripts should work with cake and luci-app-sqm also works well to set up cake. Please find the most recent files for sqm-scripts attached. The content of the sqm folder should replace the content of /usr/lib/sqm on your router.