Community discussions

MikroTik App
 
Rfulton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 99
Joined: Tue Aug 08, 2017 2:17 am

Cake and Queue Trees

Sat Nov 05, 2022 9:53 pm

I've read about 20 different threads on this subject, some people say you can't use HTB with Cake, some say you can. Some are telling me you can only use Cake as an interface queue with the built in Shaper.

I want to know is,

Can you use HTB with Cake, if you can, is it even worth it?

Does cake work with multiple child queues? and Parent queue? Can you mix different child queues like pfifo and have the Cake be the parent queue?


Does something like this setup work? Or should I just do FQ_CODEL in a setup like this?
[Reid@ReidTik] /queue/type> print detail 
Flags: * - default 
 0 * name="default" kind=pfifo pfifo-limit=50 

 1 * name="ethernet-default" kind=pfifo pfifo-limit=50 

 2 * name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514 

 3 * name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000 

 4 * name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514 

 5   name="Default_U" kind=pfifo pfifo-limit=1300 

 6   name="FQ_CODEL" kind=fq-codel fq-codel-limit=10240 fq-codel-interval=100ms fq-codel-target=5ms fq-codel-ecn=yes fq-codel-flows=1024 fq-codel-memlimit=32.0MiB fq-codel-quantum=1514 

 7   name="Cake" kind=cake cake-bandwidth=0bps cake-overhead=0 cake-overhead-scheme="" cake-rtt=100ms cake-diffserv=diffserv4 cake-flowmode=triple-isolate cake-nat=yes cake-wash=no cake-ack-filter=aggressive 

 8   name="megabucket" kind=pfifo pfifo-limit=50000000 

 9   name="Fat Down" kind=bfifo bfifo-limit=75000000 

10 * name="pcq-upload-default" kind=pcq pcq-rate=0 pcq-limit=50KiB pcq-classifier=src-address pcq-total-limit=2000KiB pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128 

11 * name="pcq-download-default" kind=pcq pcq-rate=0 pcq-limit=50KiB pcq-classifier=dst-address pcq-total-limit=2000KiB pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32 pcq-src-address6-mask=128 pcq-dst-address6-mask=128 

12 * name="only-hardware-queue" kind=none 

13 * name="multi-queue-ethernet-default" kind=mq-pfifo mq-pfifo-limit=50 

14 * name="default-small" kind=pfifo pfifo-limit=10 



[Reid@ReidTik] /queue/tree> print detail 
Flags: X - disabled, I - invalid 
 0   name="Global_In" parent=UplinkToCisco-LAN packet-mark="" limit-at=0 queue=Cake priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 1   name="Global_Out" parent=SFP12-WAN packet-mark="" limit-at=0 queue=Cake priority=8 max-limit=37M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 2   name="Wifi_Download" parent=Global_In packet-mark=Wifi limit-at=100M queue=Cake priority=4 max-limit=900M burst-limit=0 burst-threshold=0 burst-time=9s bucket-size=0.1 

 3   name="Wifi_Upload" parent=Global_Out packet-mark=Wifi limit-at=0 queue=Cake priority=3 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 4   name="Guest_Download" parent=Global_In packet-mark=Guest limit-at=100M queue=Cake priority=7 max-limit=200M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 5   name="Guest_Upload" parent=Global_Out packet-mark=Guest limit-at=0 queue=Cake priority=7 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 6   name="Home_Download" parent=Global_In packet-mark=Home limit-at=0 queue=Cake priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 7   name="Home_Upload" parent=Global_Out packet-mark=Home limit-at=8M queue=Cake priority=4 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 8   name="Catchall_Download" parent=Global_In packet-mark=no-mark limit-at=0 queue=Cake priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 9   name="Catchall_Upload" parent=Global_Out packet-mark=no-mark limit-at=0 queue=Cake priority=1 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

10   name="Tor_Download" parent=Global_In packet-mark=Tor limit-at=0 queue=Fat Down priority=8 max-limit=600M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

11   name="Tor_Upload" parent=Global_Out packet-mark=Tor limit-at=0 queue=Default_U priority=8 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

12   name="Domain_Download" parent=Global_In packet-mark=Domain limit-at=0 queue=Cake priority=6 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

13   name="Domain_Upload" parent=Global_Out packet-mark=Domain limit-at=0 queue=Cake priority=5 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

14   name="Athens_Plex_Down" parent=Global_In packet-mark=Athens_Plex limit-at=0 queue=Cake priority=2 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

15   name="Athens_All_Down" parent=Global_In packet-mark=Athens_All limit-at=0 queue=Cake priority=4 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

16   name="Athens_Plex_Up" parent=Global_Out packet-mark=Athens_Plex limit-at=0 queue=Cake priority=2 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

17   name="Athens_All_Up" parent=Global_Out packet-mark=Athens_All limit-at=1M queue=Cake priority=5 max-limit=35M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

18   name="Game_Download" parent=Global_In packet-mark=Game limit-at=0 queue=Cake priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

19   name="Game_Upload" parent=Global_Out packet-mark=Game limit-at=1M queue=Cake priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size=0.1 

 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1387
Joined: Tue Jun 23, 2015 2:35 pm

Re: Cake and Queue Trees

Sun Nov 06, 2022 2:01 am

on which device are u running that? Be careful with cake.the cpe can get easy up to 100.
 
Rfulton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 99
Joined: Tue Aug 08, 2017 2:17 am

Re: Cake and Queue Trees

Tue Nov 08, 2022 7:53 pm

Running on CCR2004
 
User avatar
Xtreme512
Member Candidate
Member Candidate
Posts: 119
Joined: Sun Jun 08, 2014 2:43 pm
Location: Nicosia, CY
Contact:

Re: Cake and Queue Trees

Wed Nov 09, 2022 10:41 am

I'm also wondering that. Right now I use cake in simple queue attached to interface ether1 (WAN) and still using PCQ in queue tree HTB with packet mangles. Would it be better to migrate to fq_codel or cake in queue tree as well?
 
JJT211
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sun Apr 28, 2019 9:01 pm

Re: Cake and Queue Trees

Tue Nov 12, 2024 6:33 pm

I'm also wondering that. Right now I use cake in simple queue attached to interface ether1 (WAN) and still using PCQ in queue tree HTB with packet mangles. Would it be better to migrate to fq_codel or cake in queue tree as well?
I had someone mention using it this way recently....how has it been working for you?
 
moorezilla
just joined
Posts: 10
Joined: Fri Jan 20, 2023 4:29 pm

Re: Cake and Queue Trees

Tue Nov 12, 2024 7:31 pm

I waffle back and forth all the time.

I have 300M up and down from FiOS and honestly it's pretty good out of the box, but it isn't perfect all the time.

I'll go a month with FastTrack on and nothing but the default only-hardware-queue set, but then we'll get a zoom or YouTubeTV hiccup and I'll convince myself that queueing will help. So then I'll throw cake or fq_codel on a simple queue on eth1, but then I'll convince myself that it isn't doing anything, as there will be the same random hiccup. Then I'll mistrust the simple queue and throw a cake or fq_codel queue tree on eth1 and the bridge so that FastTrack can stay on, but then I'll wonder if that's unnecessarily slowing down the bridge due to it needing to be set with a max-limit of 290ish, so I'll just take it all off and start over with nothing. I also tried just changing the queue type to fq_codel for all the interfaces, but I couldn't figure out if it was doing anything without having any max-limits set.

At the moment I just have an fq_codel queue tree on eth1 at max-limit 290M to smooth anything coming from my network, but I'm leaving the bridge/download with just hardware-only-queue.

Who is online

Users browsing this forum: No registered users and 1 guest