multicast and join group issue

classic Classic list List threaded Threaded
4 messages Options
pcu
Reply | Threaded
Open this post in threaded view
|

multicast and join group issue

pcu
Hello,

I'm working with lwip and freertos on STM32.

I did a task based on sockets which is listening on multicast address.  
It works when I send a multicast message from PC, and my board answer. So far so good.

But I took a wireshark capture and lwip doesn't send an IGMP join group. Consequence: packet from PC are sent to the entire network/switch. Then there is no difference with a broadcast packet from my opinion.

I check in the igmp code and the program pass through the join group ( igmp_send() ) but nothing ontgoing on the network.

I think I'm not so far the solution...

thanks for your ideas,
Pierre
pcu
Reply | Threaded
Open this post in threaded view
|

Re: multicast and join group issue

pcu
This post was updated on .
Now it works, without change in the firmware...

May be after a good reset of switch, pc and router.
And the messages are not more broadcasted, just send to the right devices.

Pierre
Reply | Threaded
Open this post in threaded view
|

Re: multicast and join group issue

Bob Scheffler
Just remember that IP multicast terminates in an Ethernet broadcast. If your
switch supports IGMP snooping, it will keep the Ethernet broadcast off all
the ports. If the switch never sees the IGMP (or got confused) it probably
will send all Ethernet broadcasts out ALL switch ports. This is a fail-safe
for most smart switches. A cheap switch usually doesn't support IGMP
snooping, so it will broadcast all Ethernet broadcasts out ALL switch ports.

Probably with your testing, the switch got confused. The "good reset" caused
it to begin snooping again, and thus sending the broadcasts only out the
switch ports that sent an IGMP Membership Join. Do you see any IGMP
Membership Queries? Whoever the rendezvous point is should be sending
membership queries. This is to prune any members of the multicast that have
'dropped' off. If this is a small LAN, you probably don't see any of that,
and it is a simple IGMP snooping situation.

Bob
-----Original Message-----
From: lwip-users-bounces+bob=[hidden email]
[mailto:lwip-users-bounces+bob=[hidden email]] On Behalf Of pcu
Sent: Monday, May 12, 2014 1:57 AM
To: [hidden email]
Subject: Re: [lwip-users] multicast and join group issue

Now it works, without in the firmware...

May be after a good reset of switch, pc and router.
And the messages are not more broadcasted, just send to the right devices.

Pierre



--
View this message in context:
http://lwip.100.n7.nabble.com/multicast-and-join-group-issue-tp22632p22633.h
tml
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4570 / Virus Database: 3931/7477 - Release Date: 05/11/14

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4570 / Virus Database: 3931/7465 - Release Date: 05/09/14


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
pcu
Reply | Threaded
Open this post in threaded view
|

Re: multicast and join group issue

pcu
Bob, thank you for your informations.

Yes the router sends an IGMP queries, and all the multicast host replies. Including my STM32 board.

Pierre