From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [PATCHv3] batman-adv: Add multicast optimization support for bridged setups
Date: Fri, 11 Jul 2014 12:42:16 +0200 [thread overview]
Message-ID: <201407111242.21030.sw@simonwunderlich.de> (raw)
In-Reply-To: <1405043659-9086-1-git-send-email-linus.luessing@web.de>
[-- Attachment #1: Type: Text/Plain, Size: 2769 bytes --]
> So far, the recently added multicast optimizations did not support
> a configuration where a bridge is on top of the soft-interface (e.g.
> bat0).
>
> Now the Linux bridge code is able to provide us with the missing bits:
>
> Multicast Listeners: The bridge hands us a list of multicast listeners
> it has detected behind the bridge which we will announce through the
> mesh via the translation table, allowing other nodes to direct multicast
> packets to these clients behind the bridge even with enabled multicast
> optimizations.
>
> Queriers: The bridge informs us whether there is a selected IGMP or
> MLD querier behind the bridge or if there is no querier at all. In these
> cases we need all according IPv4 or IPv6 multicast traffic directed to us.
>
> These two parts together allow us to serve all multicast listeners with
> IPv6 link-local multicast packets even when bridges are involved and
> our multicast optimizations enabled.
>
> Signed-off-by: Linus Lüssing <linus.luessing@web.de>
> ---
> Changes in v3:
> * Removed "RFC" tag in title again: The stubs and new export are upstream
> in net-next and therefore going to be included in 3.17
> * Added some debug output:
> * Two warning messages:
> -> Old kernel version or no bridge IGMP/MLD snooping compiled
> * New batman-adv log-level "mcast":
> -> Logging mcast flag changes
> (a third debugging facility, a new table for debugfs for a global
> mcast flag overview will be added in a separate patch later
> as discussed with Simon)
I've tested the previous version (PATCH RFC v2), but since the changes are
minimal you can add for this patch:
Tested-by: Simon Wunderlich <sw@simonwunderlich.de>
The test included 3 hosts bridged together
host1 ---[LAN]--- host2 ---[Mesh]--- host 3
with the recent net-next kernel and patches as sent by Linus previously. I was
using his listener tool [1] which creates a multicast socket on the bridged-in
host 1, and enabled the multicast querier [2] on host2 or host3 (only one at a
time). Then I could verify that the desired multicast MAC address showed up in
batctl tl on host 2, so the announcement, snooping and list retrieval of
batman-adv for the multicast address worked correctly. Also the "bridge" tool
of iproute2 proved useful, "bridge mdb show" gives us the list of snooped
multicast listeners on the bridge.
Linus, please don't forget the batctl patch since you've added a loglevel
here. I'm also looking forward to the debugfs files patch, which would make
monitoring the status of the multicast operation a lot easier. :)
Cheers,
Simon
[1] https://github.com/T-X/sm-listener
[2] echo 1 > /sys/class/net/br0/bridge/multicast_querier
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2014-07-11 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 1:54 [B.A.T.M.A.N.] [PATCHv3] batman-adv: Add multicast optimization support for bridged setups Linus Lüssing
2014-07-11 10:42 ` Simon Wunderlich [this message]
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=201407111242.21030.sw@simonwunderlich.de \
--to=sw@simonwunderlich.de \
--cc=b.a.t.m.a.n@lists.open-mesh.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