Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - multicast reception with multiple NICs

Reply
 
Old 04-09-2008   #1 (permalink)
PhilD


 
 

multicast reception with multiple NICs

Windows seems to only allow itself to enroll in a multicast group once,
irrespective of how many NICs are on a given Windows machine.

For example, say I have three NICs on a machine (separate NICs, not just
three overloaded IPs on one NIC), as follows:
192.168.0.100 255.255.255.0
192.168.0.101 255.255.255.0
192.169.0.102 255.255.255.0

No gateways set up on any of these so weird routing issues should not be
relevant. Also, I can see that all three NICs are physically getting the
multicast packet from the switch, so the packet is being physically sent to
the NICs from the network.

Now, if I then have three separate C# programs, and each creates a socket,
binds to one of the three addresses above (none overlapping, obviously, or
I'd get a socket exception), and all three then enroll themselves in a
multicast group (say 224.2.3.4), why is it that only one address will be able
to receive multicast packets?

Even worse, whatever NIC got the first bind to that group, holds it forever
(or at least until the box is rebooted). Say Process B is using
192.168.0.101, and I boot up and start that process. It receives multicasts
fine. but starting the processes A on 192.168.0.100 and and Process C on
192.168.0.102 gives no exceptions on either process, both bind successfully
and successfully enroll in the multicast group, but neither receives
multicasts.

If I then stop all the processes, and reassign process B to 192.168.0.100
and process A to 192.168.0.101 and start them up, process B will receive
multicast packets fine but A and C will not.

I wonder if the .NET runtime is getting in the way of socket ownership, or
is this a Windows limitation?

When I get the time to build some virtual machines, I'll try running each
process in a separate VM and look at the behaviour to see if is any different.

Thanks for any assistance.

Phil






My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
MultiCast PowerShell
Re: Multiple NICs in VPC2007 Virtual PC
multiple NICs Vista networking & sharing
multiple NICs; automatic metrics Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46