I think I have an issue with SQM in my home network. When I am making a download from a P2P network using QBittorrent on my computer, it affects the entire network. It slows down so much that most webpages become inaccessible unless I refresh the page for a few times. I use a Mi 4A Gigabit as my router. I do not think I had this issue before buying the router. I can make direct downloads using the browser on my computer and still download from P2P networks with the torrent app on my phone without experiencing any issues.
So you have issues when you try unlimited torrenting and latency-sensitive browsing on the same computer, but not if you separate these two uses to two different devices?
In which case, respectfully your problem might be that your torrent client is misconfigured.... Just enable sensible rate limits for download AND upload direction also limit the maximum number of connections to something sane. SQM will by default treat all flows equally and if an application like a torrent client uses a lot of parallel flow it gets more throughput than an application that uses only a few flows....
If however your problem occurs on all devices when you use the torrent client ob your computer sqm seems not to work as intended..
Please post the output of the following command issued on your router's command line interface (you can copy and paste the text from the terminal/ssh window into the forum, just click he </> preformatted text button and paste your text over the "type or paste code here" placeholder):
ifstatus wan | grep -e device
cat /etc/config/sqm
tc -d qdisc
tc -s qdisc
That will give baseline information about the sqm configuration and statistics.
The issue occurs on all clients in the home network when I use QBittorrent on my computer. It persists even when I am downloading a single file with both download and upload speeds capped at lower values for testing.
Here is a link to the output of the commands if anyone deems it too long for a post.
then issue /etc/init.d/sqm stop ; /etc/init.d/sqm start an repeat your test, the most important part is the nat keyword which will allow 'triple-isolate` to work... Please let me know whether that works better or not, and we will go to the next steps from there...
Outlook, triple-isolate tries to ascertain that no internal or internal host IP address can steal all the capacity for itself if other IP addresses also want to send/receive traffic, which often works quite well, but needs a correct view of the external and internal IP addresses and that is what the nat keyword is there for. But triple-isolate is not easy to predict and as an alternative, if the downloading and uploading directions are known is the use of dual-dsthost and dual-srchost as shown below which will implement strict per-internal-IP-fairness, which is relatively easy to predict and confirm.
Thanks for coming up with a potential solution. My tests will take a while because the issue is a bit random. I haven't changed any settings and can browse the internet while downloading on my PC right now. I will be sure to reply when I have the issue again and manage to test the new settings.
OK, if these issues are independent of your own router, maybe your ISP is at "fault" here maybe try one of the cake-autorate or sqm-autorate approaches that adaptively set the shaper limits to minimize latency under load... Because a static/fixed SQM configuration will only work if the true achievable rate through the ISP's network is >= the configured traffic shaper rate... if that is not the case than bufferbloat in your ISP's network will result in noticeable delay spikes on your side.
Came here having identical issues with OP, on the same router using the 21.02.2 build. Configuring the SQM with
Fixed the issue for me. I still limit P2P traffic but before setting this up, whole network would be bogged down even if I was downloading at 500KB/s now I am able to quadruple that.