Community discussions

MikroTik App
 
TuxPowered
just joined
Topic Author
Posts: 20
Joined: Mon May 23, 2022 12:35 pm

CAKE queue dropping traffic when using bandwidth limit

Fri May 03, 2024 8:31 pm

Good evening,

I'm trying to figure out the difference between using bandwidth limit of queue simple and queue type cake. Let's consider this very basic scenario without any limits and any real configuration:
/queue type
add kind=cake name=Cake_Down
add kind=cake name=Cake_Up
/queue simple
add name=LTE_Cake queue=Cake_Down/Cake_Up target=ether1
So far so good, it passes the traffic. Now if I add bandwidth limits to the simple queue, the limits are correctly applied. But are they applied in the right place?
/queue simple
add max-limit=100M/40M name=LTE_Cake queue=Cake_Down/Cake_Up target=ether1
I can add the limits on the Cake queues but that immediately drops all network traffic:
/queue type
add cake-bandwidth=10.0Mbps kind=cake name=Cake_Down
add cake-bandwidth=10.0Mbps kind=cake name=Cake_Up
/queue simple
# CAKE type with bandwidth setting detected, configure traffic limits within queue itself
add name=LTE_Cake queue=Cake_Down/Cake_Up target=ether1
The same happens if I set cake-autorate-ingress. I'm testing this on RouterOS 7.14.3 running in a VM on x86_64, freshly downloaded without licence. I wanted to test CAKE before implementing the config on my hAP AC3 router.
 
jollyrogr
newbie
Posts: 26
Joined: Sun Apr 21, 2024 10:31 pm

Re: CAKE queue dropping traffic when using bandwidth limit

Fri May 03, 2024 9:06 pm

You shouldn't need to set a bandwidth limit in the queue type.
 
User avatar
infabo
Forum Guru
Forum Guru
Posts: 1486
Joined: Thu Nov 12, 2020 12:07 pm

Re: CAKE queue dropping traffic when using bandwidth limit

Fri May 03, 2024 9:48 pm

autorate ingress does not work properly with HTB queues.
 
moorezilla
just joined
Posts: 11
Joined: Fri Jan 20, 2023 4:29 pm

Re: CAKE queue dropping traffic when using bandwidth limit

Fri May 03, 2024 9:56 pm

I think simple queues always want the max-limit set in the simple queue, as opposed to in the queue type added (like the cake bandwidth limit within the cake type when you add it as a cake type).

I think queue trees also want the max-limit added in the queue tree, as opposed to the queue type.

I think adding the bandwidth limit on the cake queue type would work if you were directly adding the cake queue to an interface (as opposed to using a queue tree to do this), but in that case you could add it to the wan for upload queuing, but I don't think you could add it anything for the download because I don't think you can add any queue directly to the bridge... although you can with a queue tree, as opposed to trying to add it directly to the bridge with interface queues.

I think Mikrotik might not have everything in place to take advantage of cake's internal bandwidth limiting functionality in all possible queuing situations. There are some discussions about this in the forum if you search, and you'll see that there are some reports of routers becoming unresponsive when using cake's bandwidth limiter, as opposed to adding max-limits with simple queues or queue trees. I don't know if these issues have been fixed, explained, or were the result of misconfiguration. I'm hoping someone who knows more can give you better details/advice.