spread-5.0.0rc1 : data_link.c : algorithm to choose interface(s) for multicast binding changed ?

Martin Schu <[email protected]> Wed, 14 Dec 2016 13:18:39 +0100
Newsgroups gmane.network.spread.user
Message-ID <CAOSQKUU=gchOZ1ZiXYnrXz2tmpi8TG_tx5HfERBdeRty6gsFdg@mail.gmail.com>
--===============7496909320133769669==
Content-Type: multipart/alternative; boundary=001a114349c240513c05439d56e4

--001a114349c240513c05439d56e4
Content-Type: text/plain; charset=UTF-8

Hi John,

we have some strange observation:
With spread-4.4.0 running on some of our hosts we see a wrong binding of an
additional interface for multicast, which makes no sense to us and might be
causing problems due to wrong routed traffic.
With spread-5.5.0rc1 this malfunction is gone. Only the correct interface
is bound.

Maybe you can help us to understand what is happening here. Below is the
output of netstat -g on the same host with same configuration. Only the
spread installation was updated! No other change.

Any advice is greatly welcome. We don't understand what causes that wrong
interface binding.

Best regards,
Martin

** spread.conf:
Spread_Segment  239.192.2.2:8982 {
        host1 155.1.1.1  { 155.1.1.1 }
        host2 155.1.1.2  { 155.1.1.2 }
        host3 155.1.1.3  { 155.1.1.3 }
}
Spread_Segment  239.192.2.4:8982 {
        host4 155.1.1.4 { 155.1.1.4 }
        host5 155.1.1.5 { 155.1.1.5 }
        host6 155.1.1.6 { 155.1.1.6 }
}

** *spread-4.4.0 *running:
$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      239.192.2.2  *!!!WRONG!!!*
eth2            1      224.0.0.1
eth3            1      239.192.2.2    CORRECT
eth3            1      224.0.0.1
eth4            1      224.0.0.1


** no spread running:

$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      224.0.0.1
eth3            1      224.0.0.1
eth4            1      224.0.0.1

** *spread-5.0.0rc1 *running:
$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      224.0.0.1
eth3            2      239.192.2.2  CORRECT
eth3            1      224.0.0.1
eth4            1      224.0.0.1

--001a114349c240513c05439d56e4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div>Hi John,<br><br></div>we have some str=
ange observation:<br></div>With spread-4.4.0 running on some of our hosts w=
e see a wrong binding of an additional interface for multicast, which makes=
 no sense to us and might be causing problems due to wrong routed traffic.<=
br></div>With spread-5.5.0rc1 this malfunction is gone. Only the correct in=
terface is bound.<br><br></div>Maybe you can help us to understand what is =
happening here. Below is the output of <span style=3D"font-family:monospace=
,monospace">netstat -g</span> on the same host with same configuration. Onl=
y the spread installation was updated! No other change.<br><div><br></div><=
div>Any advice is greatly welcome. We don&#39;t understand what causes that=
 wrong interface binding.<br><br></div><div>Best regards,<br></div><div>Mar=
tin<br><br></div><div><span style=3D"font-family:monospace,monospace">** sp=
read.conf:<br><font size=3D"1">Spread_Segment=C2=A0 <a href=3D"http://239.1=
92.2.2:8982">239.192.2.2:8982</a> {<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 host1 155.1.1.1=C2=A0 { 155.1.1.1 }<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 host2 155.1.1.2=C2=A0 { 155.1.1.2 }<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 host3 155.1.1.3=C2=A0 { 155.1.1.3 }<br></font></sp=
an></div><font size=3D"1"><span style=3D"font-family:monospace,monospace">}=
</span><br><span style=3D"font-family:monospace,monospace"></span></font><d=
iv><font size=3D"1"><span style=3D"font-family:monospace,monospace">Spread_=
Segment=C2=A0 <a href=3D"http://239.192.2.4:8982">239.192.2.4:8982</a> {<br=
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 host4 155.1.1.4 { 155.1.1.4 }<b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 host5 155.1.1.5 { 155.1.1.5 }<=
br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 host6 155.1.1.6 { 155.1.1.6 }=
<br>}</span><br><br></font></div><div><pre class=3D"gmail-m_-77279266008601=
14543gmail-bz_comment_text" id=3D"gmail-m_-7727926600860114543gmail-comment=
_text_6">** <b>spread-4.4.0 </b>running:

<font size=3D"1">$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      239.192.2.2  <u><b><font size=3D"2">!!!WRONG!!!</fon=
t></b></u>
eth2            1      224.0.0.1
eth3            1      239.192.2.2    <font size=3D"2">CORRECT</font>
eth3            1      224.0.0.1
eth4            1      224.0.0.1</font>


** no spread running:<br><br><font size=3D"1">$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      224.0.0.1
eth3            1      224.0.0.1
eth4            1      224.0.0.1

</font>
** <b>spread-5.0.0rc1 </b>running:

<font size=3D"1">$ netstat -g
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.1
eth1            1      224.0.0.1
eth2            1      224.0.0.1
eth3            2      239.192.2.2  CORRECT
eth3            1      224.0.0.1
eth4            1      224.0.0.1</font></pre><br></div></div>

--001a114349c240513c05439d56e4--


--===============7496909320133769669==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Spread-users mailing list
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users

--===============7496909320133769669==--