Hello, Can anyone tell me why the maximum number of members in a multicast group is set at 20? Are there issues with increasing this number? Any information would be greatly appreciated. Thanks, Steve Clark -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)
I'm running with multicast group set at 60. So far it's ok. IMO, the developer will increase the numbers soon or in new development. On 4/13/06, Stephen Clark <Stephen.Clark@seclark.us> wrote:> > Hello, > > Can anyone tell me why the maximum number of members in a multicast > group is set at > 20? > > Are there issues with increasing this number? > > Any information would be greatly appreciated. > > Thanks, > Steve Clark > > -- > > "They that give up essential liberty to obtain temporary safety, > deserve neither liberty nor safety." (Ben Franklin) > > "The course of history shows that as a government grows, liberty > decreases." (Thomas Jefferson) > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
On Wed, Apr 12, 2006 at 10:34:13PM -0400, Stephen Clark wrote:> Can anyone tell me why the maximum number of members in a multicast > group is set at > 20? > Are there issues with increasing this number?Why would one wish to join more than 20 groups on a single socket? I realize making such a statement leaves me wide open to the charge of 640KB being enough for anyone, but... This limit in no way affects multicast routing, btw. Based on my reading of the code... This is a per-socket limit. The structures to support per-socket multicast group membership are simple linked lists or statically allocated arrays. The reason for this is so as not to break the ABI for struct ip_moptions which has been present since 4.4BSD. Changing this structure to not use the static allocation would probably break your kernel for modules compiled without such a change. Also there are IGMP timers involved. The other poster who replied is probably talking about a per-interface-card limit to do with the multicast hash filter on most Ethernet cards - this is a hard limit, and the driver/hardware has to either support multicast promiscuous mode (IFF_ALLMULTI) or be able to support full promiscuous mode (which may not work correctly with IP forwarding in my experience). Patches to refactor kernel multicast system gladly accepted! Regards, BMS P.S. Someone was meant to be porting IGMPv3/SSM but there were licensing issues with Apple.
On Thu, Apr 13, 2006 at 07:32:14AM +0100, Bruce M Simpson wrote:> On Wed, Apr 12, 2006 at 10:34:13PM -0400, Stephen Clark wrote: > > Can anyone tell me why the maximum number of members in a multicast > > group is set at > > 20? > > Are there issues with increasing this number?Ah. Your original question appears not to have been answered. My bad. I do not see a limit on the members of a multicast group on FreeBSD either for individual sockets or for multicast forwarding based on my reading of the source code. BMS
Bruce M Simpson wrote:>On Thu, Apr 13, 2006 at 07:32:14AM +0100, Bruce M Simpson wrote: > > >>On Wed, Apr 12, 2006 at 10:34:13PM -0400, Stephen Clark wrote: >> >> >>>Can anyone tell me why the maximum number of members in a multicast >>>group is set at >>>20? >>>Are there issues with increasing this number? >>> >>> > >Ah. Your original question appears not to have been answered. My bad. > >I do not see a limit on the members of a multicast group on FreeBSD >either for individual sockets or for multicast forwarding based on my >reading of the source code. > >BMS > > >From FreeBSD 6.0 prerelease also in 4.9 /usr/src/sys/netinet/in.h #define IP_MAX_MEMBERSHIPS 20 /* per socket */ Steve -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)