I have installed SQM and put in 85% of my download and upload speed to the luci config.
I have 100MBit/s over Cable.
Without SQM 85 MBit/s. With SQM 98 MBit/s. Great!!
But now the internet pages are loading the pictures very slow.
In the iOS Youtube App for example also if I scroll down it takes about 1 second till the thumbnails appear. The whole surfing is very slow, although the download speed has increased.
Any ideas why and how I could solve this?
It doesn’t matter if I use cake and peace_of_cake or fq_codel…
Downloads are about 15% faster, but surfing the Internet everything is very slow!
This seems rather paradoxical, SQM should never increase the throughput...
Could you please post the output (copy and paste from a terminal window) of the following commands executed after logging in via SSH:
cat /etc/config/sqm
ifstatus wan | grep device
tc -s qdisc
Also it would be great if you could also run a dslreports speedtest both with SQM disabled and enabled as described here.
Okay. I am using 2 routers.
A Fritzbox (192.168.1.1) as main router.
A Raspberry Pi 3B with openWRT as little sister (192.168.1.2) with openVPN as VPN-Router.
The Raspberry ist connected to the Fritzbox with its LAN-Port.
Mmmh, that is not what I expected... Could you please post the output of ifstatus wan (the first tried to reduce the output to lines containing the word "device"), here is what I see:
root@turris:~# ifstatus wan | grep device
"l3_device": "pppoe-wan",
"device": "eth2",
That seems not ideal (read wrong). Please try the following replacement for your /etc/config/sqm
but I am not 100% sure whether eth0 is the correct interface... and due to VPN the overhead is going to be too small (18 bytes accounts for the overhead the DOCSIS shaper assumes).
For SQM on the Pi3B to actually have a fighting chance, no other machine should be connected to the FritzBox (using the FB for VoIP clients should not matter much, each conversation only takes ~100Kbps, but any computer/mobile device that connects to the internet directly through the FB will make SQM's job harder/impossible).
The dslreports tests report insane retransmission numbers, effortlessly explaining the shitty thoughput...
If all traffic is routed though tun0 than that is where SQM should live.
Yes, and you will also need to figure out the per-packet-overhead from the VPN software and add that to the 18 Bytes I recommend above.
Yes, if your bottleneck only carries 30 Mbps, SQM needs to aim below that number (or get a faster router, I hear a Pi4B should probably run VPN @ 90 Mbps and SQM).
As a starting point, surf over to speedguide.net's TCP analyzer through your VPN and copy and past the contents from the "Share Your Results" box, this might help to figure out the overhead... (or it might not, in which case we need to come up with plan B).
That looks better, but it still is worth getting the overhead roughly correct, see this for the consequences of getting the overhead and/or shaper gross rate wrong.
BTW, for the Uplink I guess it should be possible to go a bit higher without accumulating too much bufferbloat...
I think I have now found the best setting.
In conclusion, less bufferbloat makes for lower latency and thus faster surfing at the cost of some bandwidth for larger downloads.
That about sums it up, except you pay the bandwidth cost for all transfers, not just large(r) downloads, but for most use-cases, especially interactive uses that bandwidth sacrifice is more than compensated by the higher responsiveness through the reliably lower latency. Since you seem to understand German, Heise calls this "Schwuppdizitaet" oder gefuehlte Geschwindigkeit (roughly: perceived speed).