Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: xnor <xnoreq@gmail.com>
To: Jeremy Marks <jmarks2@gmail.com>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] Trouble getting decent performance with CAKE
Date: Thu, 28 Jan 2021 18:17:51 +0100	[thread overview]
Message-ID: <556d6202-1719-297e-b950-38f7a66d04dd@gmail.com> (raw)
In-Reply-To: <C8807F75-D68B-4B98-BC5F-74A7618C5C0C@gmail.com>

 > I think the redirect command (in that alternate code block that I 
didn't use) is from older code, so it's no longer needed.
 >> 3. I set up CAKE with the following commands:
 >>        sudo tc qdisc add dev eth0 root handle 1:0 cake 
bandwidth...[switches]
 >>
 >>        sudo set interfaces input ifb0
 >>        sudo set interfaces ethernet eth0 redirect ifb0
 >>        sudo tc qdisc add dev ifb0 root handle 2:0 cake 
bandwidth...[switches]

What is that supposed to do? What is "set"? Which package does "set" 
come from?
It seems very weird to have a command that is a shell built-in...


 >> 4. Regarding your suggestion: "the download setting up tc mirred I 
assume you are doing with sqm? Do that."
 >>
 >>     This is outside my knowledge, and I have not done anything like 
that.
 >>     I have read an alternative (older?) way to set up CAKE for ingress:
 >>        sudo ip link add name ifb4eth0 type ifb
 >>        sudo tc qdisc del dev eth0 ingress
 >>        sudo tc qdisc add dev eth0 handle ffff: ingress
 >>        sudo tc qdisc del dev ifb4eth0 root
 >>        sudo tc qdisc add dev ifb4eth0 root cake bandwidth...
 >>        sudo ifconfig ifb4eth1 up
 >>        sudo tc filter add dev eth1 parent ffff: protocol all prio 10 
u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4eth1

No, this is the *proper* way, but there are mistakes in your example. It 
adds the tc filter to eth1 instead of eth0. You probably also don't want 
the flowid.


 > Do you think I can safely remove the imq0 interface? The stats (thank 
you!) suggest to me that it's not being used. Removing may not be 
necessary anyway.

As I said before, imq has been obsolete for a couple of years. Iirc it 
hasn't been shipped with the kernel for years.
imq was used for QoS back in the day. It extended iptables to do the 
redirection.
ifb is the "modern" replacement and works at a lower level, hence the 
need for the tc-mirred

It looks to me like the linux distribution on your router is doing some 
nonstandard things and possibly runs custom QoS scripts that could 
conflict with your setup. If that is the case you should ask the 
manufacturer for support.





  reply	other threads:[~2021-01-28 17:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27  0:21 jmarks2
2021-01-27  2:04 ` xnor
2021-01-27  5:19 ` Dave Taht
2021-01-27 17:49   ` jmarks2
2021-01-27 17:51     ` Dave Taht
2021-01-27 18:25       ` Jeremy Marks
2021-01-28 17:17         ` xnor [this message]
     [not found]           ` <00ba01d6f5a1$450d07f0$cf2717d0$@gmail.com>
2021-01-28 22:00             ` xnor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556d6202-1719-297e-b950-38f7a66d04dd@gmail.com \
    --to=xnoreq@gmail.com \
    --cc=cake@lists.bufferbloat.net \
    --cc=jmarks2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox