Community discussions

MikroTik App
 
User avatar
supremexdfull
just joined
Topic Author
Posts: 3
Joined: Mon Oct 19, 2020 12:49 am

help with bufferbloat, fq_codel, codel and cake not working

Sun Jul 11, 2021 2:31 pm

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=EMkhKrX ... =RichBrown
 
Babstar
just joined
Posts: 1
Joined: Tue Jul 27, 2021 7:08 am

Re: help with bufferbloat, fq_codel, codel and cake not working

Tue Jul 27, 2021 7:17 am

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
Last edited by Babstar on Tue Jul 27, 2021 7:32 am, edited 1 time in total.
 
DarkNate
Forum Veteran
Forum Veteran
Posts: 997
Joined: Fri Jun 26, 2020 4:37 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Tue Jul 27, 2021 11:43 am

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.
 
zainarbani
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Thu Jul 22, 2021 9:42 am
Location: Pati, Indonesia

Re: help with bufferbloat, fq_codel, codel and cake not working

Wed Jul 28, 2021 10:39 am

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.
 
richbhanover
just joined
Posts: 2
Joined: Thu Oct 29, 2015 6:50 am

Re: help with bufferbloat, fq_codel, codel and cake not working

Wed Jul 28, 2021 2:27 pm

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/net ... haping/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.
 
zainarbani
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Thu Jul 22, 2021 9:42 am
Location: Pati, Indonesia

Re: help with bufferbloat, fq_codel, codel and cake not working

Thu Jul 29, 2021 12:43 pm

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 can confirm that fq_codel also works.
Managed to get A+ on dslreports with small 1M/2M link.
I think the ideal active client for 6M bandwidth was 5 maximum ?, not sure.
but i do agree that fq_codel usually makes it usable.
 
santyx32
Member Candidate
Member Candidate
Posts: 215
Joined: Fri Oct 25, 2019 2:17 am

Re: help with bufferbloat, fq_codel, codel and cake not working

Thu Jul 29, 2021 7:06 pm

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.
 
ntelas
just joined
Posts: 3
Joined: Sun Aug 08, 2021 1:37 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Sun Aug 08, 2021 2:35 pm

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.
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.
 
zainarbani
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Thu Jul 22, 2021 9:42 am
Location: Pati, Indonesia

Re: help with bufferbloat, fq_codel, codel and cake not working

Mon Aug 09, 2021 10:25 am

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 :-|
 
ntelas
just joined
Posts: 3
Joined: Sun Aug 08, 2021 1:37 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Mon Aug 09, 2021 2:49 pm

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 :-|

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.
 
kapi2454
newbie
Posts: 38
Joined: Mon Oct 09, 2017 2:54 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Wed Jan 04, 2023 6:49 pm

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

I test there but is not working nothing :(
 
User avatar
woland
Member Candidate
Member Candidate
Posts: 258
Joined: Mon Aug 16, 2021 4:49 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Wed Jan 04, 2023 8:21 pm

Always worked for me. Maybe try a different browser/disable ad blocking/DNS filtering.
BR
 
kapi2454
newbie
Posts: 38
Joined: Mon Oct 09, 2017 2:54 pm

Re: help with bufferbloat, fq_codel, codel and cake not working

Tue Jan 10, 2023 6:29 pm

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

viewtopic.php?p=976494#p976494

Who is online

Users browsing this forum: No registered users and 17 guests