From: Flavio Leitner <fleitner@redhat.com>
To: netdev@vger.kernel.org
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>,
David Miller <davem@davemloft.net>
Subject: possible bug in IPv6 MLD retransmissions
Date: Fri, 17 May 2013 00:24:49 -0300 [thread overview]
Message-ID: <20130517032449.GA3595@obelix.rh> (raw)
Hi,
A tcpdump captured while adding an IPv6 link-local address shows
two MLD reports. One with source ``::'' and another with the permanent
address.
Well, if you increase dad_retransmits from 1 to 10, for instance,
then both MLD reports are sent with source address ``::'' which
according with specs should be ignored by the routers.
* 4759.429868 :: -> ff02::16 ICMPv6 90 Multicast Listener
Report Message v2
4759.890934 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4760.893868 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4761.895867 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4762.897873 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4763.899868 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
* 4764.237923 :: -> ff02::16 ICMPv6 90 Multicast Listener
Report Message v2
4764.901866 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4765.903878 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4766.905867 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4767.907864 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4768.909865 :: -> ff02::1:ffe5:a8aa ICMPv6 78 Neighbor
Solicitation for fe80::f2de:f1ff:fee5:a8aa
4769.911919 fe80::f2de:f1ff:fee5:a8aa -> ff02::2 ICMPv6 70 Router
Solicitation from f0:de:f1:e5:a8:a9
4773.917868 fe80::f2de:f1ff:fee5:a8aa -> ff02::2 ICMPv6 70 Router
Solicitation from f0:de:f1:e5:a8:a9
4777.925855 fe80::f2de:f1ff:fee5:a8aa -> ff02::2 ICMPv6 70 Router
Solicitation from f0:de:f1:e5:a8:a9
Therefore, I believe this is a bug in IPv6 MLD because it should
sent at least 2 MLD reports after DAD is completed.
The specs says:
rfc3810
5.2.13. Source Addresses for Reports
An MLDv2 Report MUST be sent with a valid IPv6 link-local source
address, or the unspecified address (::), if the sending interface
has not acquired a valid link-local address yet. Sending reports
with the unspecified address is allowed to support the use of IP
multicast in the Neighbor Discovery Protocol [RFC2461]. For
stateless autoconfiguration, as defined in [RFC2462], a node is
required to join several IPv6 multicast groups, in order to perform
Duplicate Address Detection (DAD). Prior to DAD, the only address
the reporting node has for the sending interface is a tentative one,
which cannot be used for communication. Thus, the unspecified
address must be used.
On the other hand, routers MUST silently discard a message that is
not sent with a valid link-local address, without taking any action
on the contents of the packet. Thus, a Report is discarded if the
router cannot identify the source address of the packet as belonging
to a link connected to the interface on which the packet was
received. A Report sent with the unspecified address is also
discarded by the router. This enhances security, as unidentified
reporting nodes cannot influence the state of the MLDv2 router(s).
Nevertheless, the reporting node has modified its listening state for
multicast addresses that are contained in the Multicast Address
Records of the Report message. From now on, it will treat packets
sent to those multicast addresses according to this new listening
state. ***Once a valid link-local address is available, a node
SHOULD
generate new MLDv2 Report messages for all multicast addresses joined
on the interface****.
...
Does that make any sense?
Thanks,
--
fbl
next reply other threads:[~2013-05-17 3:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 3:24 Flavio Leitner [this message]
2013-05-18 17:31 ` possible bug in IPv6 MLD retransmissions Hannes Frederic Sowa
2013-05-21 15:06 ` Flavio Leitner
2013-05-22 0:40 ` Hannes Frederic Sowa
2013-05-22 11:30 ` David Stevens
2013-05-22 12:51 ` Hannes Frederic Sowa
2013-05-22 17:27 ` Flavio Leitner
2013-05-22 18:24 ` David Stevens
2013-05-22 21:21 ` Flavio Leitner
2013-05-23 20:21 ` Hannes Frederic Sowa
2013-06-23 14:18 ` Hannes Frederic Sowa
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=20130517032449.GA3595@obelix.rh \
--to=fleitner@redhat.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.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).