help with bufferbloat, fq_codel, codel and cake not working

hello I have been with this problem for a long time.
I bought a mikrotik router a long time ago exactly one (heX lite without wifi) to mitigate the bufferbloat but I have never achieved it with any possible way.
I managed to reduce lag to a minimum in video games but excessively limiting the network to the point of leaving 150k upload and 3999k download for the rest of the customers.
separating myself from the rules set to them.
them all together while me alone and without limit.
I activate the rules when I want to play a game. but sometimes when the games are long, the complaints of a slow internet are noticed.
I tried everything I did not get anywhere until I read and tried more than 45 different queue trees.
I give you a diagram of how my connection is composed.
It’s a slow internet, you can’t ask for more where I live.
I have exactly 6 megs of download and 1 of upload, the latter is around the (768kbps) almost does not reach the mega on occasions.
There are 14 devices on the network, a total of 2 are mine and the rest of my family members.
I have managed the connection in this way.
the isp router in bridge mode to the mikrotik router and from the mikrotik router to a nexxt solutions router to broadcast the network by wifi because I bought the hex lite instead of hap.
my interests are the new algorithms (cake, codel, fq_codel) as a purpose to eliminate the bufferbloat but none have worked for me.
I no longer know how to configure the router to eliminate or reduce the bufferbloat.
I have an adsl connection to top it off.
Someone had a similar case or what and how did he solve it?
exactly I have this case:https://www.youtube.com/watch?v=EMkhKrXbjxQ&t=2s&ab_channel=RichBrown

I’m not using a MikroTik product, however I had problems with fq_codel on another firewall (pfSense). It took me a while to figure out that I had to limit the bandwidth to ~85% of the published line speed (50Mbps), so i set it to limit around 45Mbps. For you 6 Mbps you would need to set around 5.0. You are essentially artificially trading some of your speed for total control of the by the fq_codel algorithm.

I saw no improvement in the unloaded vs loaded test on fast.com until I dropped my bandwidth limit. Try experimenting with ~4.5 and increment up with fast.com or dslreport speed test.
see this thread https://forums.whirlpool.net.au/archive/2692440

I’ve been using this for a year and no lagging/bufferbloat problems when the link is choking

/queue type
set 0 kind=sfq

/queue simple
add bucket-size=0.01/0.01 dst=pppoe-out1 max-limit=77M/77M name=ISP1-QoS queue=default/default target=""

My general rule of thumb is subtract 3 Mbps from the actual speed that you get from the ISP, in case actual speed is 80Mbps.

This is my example for CAKE configuration:
Delete any mangle, fasttrack, & queue tree first.


# jul/28/2021 14:00:25 by RouterOS 7.1beta6
#

# LAN/WLAN interface or ip addresses
:local ILAN "";

# Lets say 95% of 6M downlink
:local DOWNLINK "5700k";
:local CAKED "cake-down-6M";

# Lets say 95% of 1M uplink
:local UPLINK "950k";
:local CAKEU "cake-up-1M";

/queue type
add cake-bandwidth=$UPLINK cake-diffserv=diffserv4 cake-flowmode=\
    dual-srchost cake-rtt-scheme=internet kind=cake name=$CAKEU
add cake-autorate-ingress=yes cake-bandwidth=$DOWNLINK cake-diffserv=\
    diffserv4 cake-flowmode=dual-dsthost cake-rtt-scheme=internet cake-wash=\
    yes kind=cake name=$CAKED

# you might try to set max-limit & limit-at here
/queue simple
add name=CLIENT queue=$CAKEU/$CAKED target=$ILAN

Honestly, 6M bandwidth for 14 active client was not enough.
Also for ADSL link, theres some further CAKE configs.
You might try some research on OpenWRT forum for that.

Someone had a similar case or what and how did he solve it?
exactly I have this case:> https://www.youtube.com/watch?v=EMkhKrX > … =RichBrown

I’m the guy who posted that Youtube video. I use OpenWrt 19.07 on an Archer C7 router with my 7mbps/768kbps DSL link. I configured the SQM with fq_codel, and adjusted the download speed and upload speed settings until the latency increased (using DSLReports).

I only had two or three people using the link, and the performance was adequate. (I would never say it was fast.)

A few other thoughts:

  1. I don’t use MikroTik, so cannot say how their settings work. But if you tried 45 queue tree settings, you may have an error in those settings.
  2. The beauty of fq_codel is that it just works. It’s designed to give everyone low latency/high responsiveness, along with a fair share of the bandwidth. I did not have any special rules for different users.
  3. In OpenWrt, I set the Link Layer Adaptation to “ATM” with overhead of 44 bytes for an ADSL connection. This makes a huge difference… See https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm for details.
  4. Can you simply turn on fq_codel/cake in the MikroTik without any special rules to see how it works?
  5. As a previous poster said, 6 mbps is still slow. It really stinks that this is your only option. It’ll never be fast, but usually fq_codel makes it usable.

I would be interested to hear what you decide to do.

Default CAKE and fq_codel should work quite well against bufferbloat however setting bucket size on DL/UL to 0.001 makes them way more effective.

Can you help me with that? Similar situation with OP. I made a post earlier, but it’s pending approval.

In short, I have 22/1 connection and without speed limit, ping spikes +1000. By limiting to 21/0.9 it spikes ~200. With SFQ and fq_codel it doesn’t make any difference and keeps spiking ~150-200.
I have ISP’s modem connected and it’s a very stable connection.

1M upload? how much active user there?
Please upload your queue configuration.

Default fq_codel conf should works quite well.
Based on OpenWRT SQM Script, there’s function that adapt/tune fq_codel on small/slow link.
I’ve pick that functions on a simple script, you can try it here
I might missed something tho :neutral_face:

Yes, it’s just 1M upload for 3-4 users. Unfortunately I could only test it yesterday. The router is not mine and I have to return it. For the time being, I have a Xiaomi R3 that works very well for keeping the latency low. Some spikes here and there, but generally speaking its great.

https://www.waveform.com/tools/bufferbloat

I test there but is not working nothing :frowning:

Always worked for me. Maybe try a different browser/disable ad blocking/DNS filtering.
BR

Would you mind share your config? I open a new thread

http://forum.mikrotik.com/t/bufferbloat-and-download-speed-not-working/163464/1