Ethernet Bridge development
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Getting + maintaining a consistent MDB view in userspace?
Date: Thu, 10 Aug 2023 00:56:50 +0200	[thread overview]
Message-ID: <ZNQZsl9YZXeCc7cf@sellars> (raw)
In-Reply-To: <20230807182051.47d4d613@hermes.local>

On Mon, Aug 07, 2023 at 06:20:51PM -0700, Stephen Hemminger wrote:
> Same issue as dumping routing table which routing daemons deal with.
> Most applications end up with two netlink sockets, one for monitor
> and one for dumping.
> 
> You really can't do it from the bridge utility, need to build your
> own tools.

Thanks for the reply, ok.

For the old MLDv1/IGMPv2 output when having
"multicast_mld_version" set to 1 the output of "bridge mdb show"
and "bridge monitor mdb" looks quite straightforward. And I can
piece something together with that (or its netlink messages underneath).
And I see symmetrical netlink events for additions and deletions.

When setting a bridge's "multicast_mld_version" to 2 it looks to me like
there is quite a bit of redundancy in both "bridge mdb show"
and "bridge monitor mdb" output. And addition and deletion notifications
don't look that symmetric to me then anymore. There doesn't
happen to exist some documentation about these (netlink specific)
additions that came with the IGMPv3/MLDv2 implementation, or does
it?

Also, are there tools people can recommend for Linux to test SSM
with various kinds of include/exclude settings?
The only tool I found for SSM so far is mcjoin:
https://github.com/troglobit/mcjoin
But it does not seem to support SSM in exclude mode yet.


The reason I'm interested in this is I'm currently experimenting
with creating proxied IGMP/MLD behaviour between bridge ports,
setup from a daemon in userspace. Which utilizes dummy network interfaces
and tc and is supposed to replicate multicast listeners.
Very early prototype: https://github.com/T-X/brmldproxy/tree/main

  reply	other threads:[~2023-08-09 22:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-08  0:29 [Bridge] Getting + maintaining a consistent MDB view in userspace? Linus Lüssing
2023-08-08  1:20 ` Stephen Hemminger
2023-08-09 22:56   ` Linus Lüssing [this message]
2023-08-10  2:07     ` Linus Lüssing

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

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

  git send-email \
    --in-reply-to=ZNQZsl9YZXeCc7cf@sellars \
    --to=linus.luessing@c0d3.blue \
    --cc=bridge@lists.linux-foundation.org \
    /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