From: Simon Paillard <simon.paillard@resel.enst-bretagne.fr>
To: netdev@vger.kernel.org
Subject: should kernel IGMP rejoin on link up ?
Date: Tue, 4 Sep 2012 14:19:48 +0200	[thread overview]
Message-ID: <20120904121948.GJ11825@glenfiddich.mraw.org> (raw)
Hello,
Here is a scenario where IMO the kernel is not doing the job, where a host
running linux kernel is connected to a switch with igmp snooping enabled:
- nominal case: an interface is member of a multicast group, reports are
  performed 
- failure of link (like cable disconnected)
- the switch flushes the multicast membership for that port
- link is back
- kernel waits for switch query to report membership
-> The application miss packets until next General Query (default value in RFC:
125 seconds)
I cannot find in IGMPv2 RFC a specification of the behaviour to follow in such
a case, but :
- having a very little query interval would affect all the network, and polling
  is not a clean way. 
- it's imo not the application job to check for link failure and issue again
  joins
So I wonder if the kernel should rejoin when interface link flag is up
(ip_mc_rejoin_groups() is already used by bonding code when a new interface is
up).
The next question, if you agree that should be the kernel job, is where the fix
should be located.
Thanks.
PS: I know little about MLD in IPv6, I didn't see in bonding code something
related to MLD, but I guess the same question applies.
(Please CC me on replies)
-- 
Simon Paillard
                 reply	other threads:[~2012-09-04 13:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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=20120904121948.GJ11825@glenfiddich.mraw.org \
    --to=simon.paillard@resel.enst-bretagne.fr \
    --cc=netdev@vger.kernel.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).