From: Dave Taht <dave.taht@gmail.com>
To: Pete Heist <pete@heistp.net>
Cc: Cake List <cake@lists.bufferbloat.net>
Subject: Re: [Cake] Cake on elements of a bridge
Date: Mon, 10 Sep 2018 12:55:21 -0700 [thread overview]
Message-ID: <CAA93jw488ChnekwRJWD+F=bVYe5H+3JM5W1OMfzSgEJ0_Lf2sw@mail.gmail.com> (raw)
In-Reply-To: <E19361D3-F8C0-4E47-9B45-4F62CD37A967@heistp.net>
On Mon, Sep 10, 2018 at 12:29 PM Pete Heist <pete@heistp.net> wrote:
>
>
> On Sep 6, 2018, at 8:51 PM, Pete Heist <pete@heistp.net> wrote:
>
> On Sep 6, 2018, at 8:04 PM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
> Pete Heist <pete@heistp.net> writes:
>
> But now, my neighbor will access the Internet through my CPE device,
> but they must have a separate IP obtained through DHCP (i.e. a
> separate MAC address as well), and I want to use cake to manage the
> queue for both of us. I could do this with two routers and a
> transparent bridge, but I want to see if I can make it work with as
> few devices as possible, preferably just one EdgeRouter-X. I had two
> failures thus far:
>
>
> DHCP relay and normal routing? Or bridging with a kernel software bridge
> rather than the hardware switch?
>
>
> I bet a regular software bridge would work. I’ll try it.
>
> It looks like I’ll also need to do stateful firewalling for the neighbors. I was able to get my transparent bridge to do this with net.bridge.bridge-nf-call-iptables=1, I believe, so this should also theoretically work fine, somehow… :)
>
>
> For anyone who followed this, yes, the regular soft bridge (i.e. set interfaces bridge br0) works fine on the ER-X, as I suspect it would on most any Linux. A few notes about it:
>
> - Your qdisc must be added to the physical interface (e.g. eth4), not the bridge interface
> - Unlike the hardware bridge which has its own MAC, the soft bridge seems to take the MAC of the lowest (or first listed?) interface port
> - On ER-X, bridge-nf-call-iptables=1 is the default so nothing needs to be changed there for firewalling
> - When firewalling the bridged WAN interface, ‘in’ corresponds to bridged traffic and ‘local’ to routed traffic, which is different from the semantics for ordinary routed traffic
> - I can do stateful firewalling for bridged hosts with “accept established and related”, but have to explicitly allow DHCP (UDP source/dest port 67-68) in the WAN interface’s ‘in’ rules for DHCP traffic to pass through the bridge
>
> Performance:
>
> Using Cake with this setup, the fun ends at around 110 Mbit with ksoftirqd thrashing. Unsurprisingly, there’s probably some overhead here with the soft bridge. For my purposes though (50 Mbit), it’s enough, barely…
Can I encourage you to give regular ole htb+fq_codel sqm a shot with a
bigger burst and cburst size for htb? Fiddling with the htb quantum
isn't helping much,
but try this, from: https://github.com/tohojo/sqm-scripts/issues/71
(I am thinking burst and cburst should be about 1.1ms of buffering in size)
root@apu2:/home/d/git/sqm-scripts/src# git diff .
diff --git a/src/functions.sh b/src/functions.sh
index 226a6c5..8ad4f38 100644
--- a/src/functions.sh
+++ b/src/functions.sh
@@ -364,7 +364,9 @@ htb_quantum_linear() {
sqm_debug "HTB_QUANTUM (linear): ${HTB_QUANTUM}, BANDWIDTH: ${BANDWIDTH}"
- echo $HTB_QUANTUM
+ echo $HTB_QUANTUM >> /tmp/taht.log
+ echo 32000
+#$HTB_QUANTUM
}
# Fixed step scaling
@@ -438,7 +440,7 @@ get_htb_burst() {
if [ -n "${HTB_MTU}" -a "${SHAPER_BURST}" -eq "1" ] ; then
BURST=$( get_burst $HTB_MTU $BANDWIDTH )
if [ -n "$BURST" ]; then
- echo burst $BURST cburst $BURST
+ echo burst 96000 cburst 96000
else
sqm_debug "Default Burst, HTB will use MTU plus shipping
and handling"
fi
>
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
--
Dave Täht
CEO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-669-226-2619
next prev parent reply other threads:[~2018-09-10 19:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 10:19 Georgios Amanakis
2018-09-04 10:31 ` Toke Høiland-Jørgensen
2018-09-04 12:01 ` Georgios Amanakis
2018-09-06 17:37 ` Pete Heist
2018-09-06 18:04 ` Toke Høiland-Jørgensen
2018-09-06 18:51 ` Pete Heist
2018-09-10 19:29 ` Pete Heist
2018-09-10 19:55 ` Dave Taht [this message]
2018-09-10 22:40 ` [Cake] Cake vs fq_codel and c/burst on an ER-X bridge Pete Heist
2018-09-11 7:54 ` Sebastian Moeller
2018-09-11 8:20 ` Dave Taht
2018-09-11 8:20 ` Sebastian Moeller
2018-09-11 8:30 ` Dave Taht
2018-09-11 8:43 ` Sebastian Moeller
2018-09-11 18:27 ` Pete Heist
2018-09-11 18:29 ` Dave Taht
2018-09-11 18:42 ` Dave Taht
2018-09-19 13:27 ` Sebastian Moeller
2018-09-19 17:02 ` Dave Taht
2018-09-20 10:34 ` Sebastian Moeller
2018-09-20 17:05 ` Dave Taht
2018-09-20 18:19 ` Sebastian Moeller
2018-09-20 18:31 ` Dave Taht
2018-09-11 18:09 ` Pete Heist
2018-09-11 18:28 ` Sebastian Moeller
2018-09-11 18:45 ` Pete Heist
2018-09-11 18:47 ` Dave Taht
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='CAA93jw488ChnekwRJWD+F=bVYe5H+3JM5W1OMfzSgEJ0_Lf2sw@mail.gmail.com' \
--to=dave.taht@gmail.com \
--cc=cake@lists.bufferbloat.net \
--cc=pete@heistp.net \
/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