From: Adam Baker <linux@baker-net.org.uk>
To: Cong Wang <amwang@redhat.com>
Cc: netdev@vger.kernel.org, Herbert Xu <herbert@gondor.hengli.com.au>,
Stephen Hemminger <stephen@networkplumber.org>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Patch net-next v5 1/3] bridge: use the bridge IP addr as source addr for querier
Date: Sat, 25 May 2013 21:52:24 +0100 [thread overview]
Message-ID: <51A12488.7080203@baker-net.org.uk> (raw)
In-Reply-To: <1369209176-6841-1-git-send-email-amwang@redhat.com>
On 22/05/13 08:52, Cong Wang wrote:
> From: Cong Wang<amwang@redhat.com>
>
> Quote from Adam:
> "If it is believed that the use of 0.0.0.0
> as the IP address is what is causing strange behaviour on other devices
> then is there a good reason that a bridge rather than a router shouldn't
> be the active querier? If not then using the bridge IP address and
> having the querier enabled by default may be a reasonable solution
> (provided that our querier obeys the election rules and shuts up if it
> sees a query from a lower IP address that isn't 0.0.0.0). Just because a
> device is the elected querier for IGMP doesn't appear to mean it is
> required to perform any other routing functions."
>
> And introduce a new troggle for it, as suggested by Herbert.
I've now tested this series applied to a 3.9.4 kernel
Using wireshark I can see that if the multicast_querier and
multicast_query_use_ifaddr flags are set then queries do get the correct
IP address in them and if multicast_querier is set and
multicast_query_use_ifaddr isn't we get queries with the address set to
0.0.0.0
I next tested with 2 bridges configured on different nodes (this is my
normal network configuration with the 2 bridge devices acting as
wireless routers with different coverage areas with a wired network
between them). If multicast_query_use_ifaddr is set whichever device
starts querying first will act as the querier and the other will shut
up. According to RFC 2236 it should be the device with the lower IP
address that ends up as the querier in that scenario but I can't imagine
a situation where that exact behaviour matters
If multicast_query_use_ifaddr is not set but multicast_querier is then
both bridges end up generating queries with a source address of 0.0.0.0.
Whilst this results in a small amount of unnecessary network traffic it
does provide a functional setup.
In all of these cases I also verified that multicast UPnP AV
applications on different network segments remain able to talk to each
other.
I would therefore suggest that making multicast_query_use_ifaddr the
default and making the querier only shut up if it sees a query from a
lower non zero address rather than any non zero address would constitute
minor improvements to this patch but as it stands it is still an
improvement on the current behaviour.
Tested-By: Adam Baker <linux@baker-net.org.uk>
prev parent reply other threads:[~2013-05-25 20:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 7:52 [Patch net-next v5 1/3] bridge: use the bridge IP addr as source addr for querier Cong Wang
2013-05-22 7:52 ` [Patch net-next v5 2/3] bridge: only expire the mdb entry when query is received Cong Wang
2013-06-18 12:03 ` [net-next,v5,2/3] " Linus Lüssing
2013-06-19 4:44 ` Herbert Xu
2013-06-21 7:31 ` Cong Wang
2013-06-21 7:34 ` Herbert Xu
2013-05-22 7:52 ` [Patch net-next v5 3/3] bridge: send query as soon as leave " Cong Wang
2013-05-22 7:55 ` [Patch net-next v5 1/3] bridge: use the bridge IP addr as source addr for querier Herbert Xu
2013-05-25 20:52 ` Adam Baker [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=51A12488.7080203@baker-net.org.uk \
--to=linux@baker-net.org.uk \
--cc=amwang@redhat.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.hengli.com.au \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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;
as well as URLs for NNTP newsgroup(s).