Computing.Net > Forums > Networking > UDP broadcasts with multiple NICs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

UDP broadcasts with multiple NICs

Reply to Message Icon

Name: yalurker10
Date: March 19, 2009 at 09:31:30 Pacific
OS: Windows XP
Subcategory: General
Comment:

We have a device discovery protocol which uses a UDP broadcast to find devices on the local network, and I'm trying to understand the behavior of windows XP networking in a corner case.

When writing to the UDP broadcast address, without specifying an IP, the machine will normally send out the broadcast packet on all NICs, as desired. However, if the IP addresses and subnet masks on the two NICs overlap (example below) it will only send out the broadcast on one card.

example:
Eth0 IP: 10.0.x.y
Subnet: 255.255.255.128

Eth1 IP: 10.a.b.c
Subnet: 255.0.0.0

In this case, the broadcast will only be sent out on Eth0. If the subnet mask for Eth1 is changed to a typical 255.255.255.0, then both NICs will be used.

Is this expected (and explainable) behavior? Is there a resource somewhere to explain the inner workings of windows routing in scenarios like this? Anyone run into something like this before?

Thanks,
yalurker



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: March 19, 2009 at 11:29:33 Pacific
Reply:

You have to correct your subneting to get it to work.
In a well configured subneting, there is no overlapping.

When you've corrected you subnet configuration, each subnet has it's own broadcast address and will work as desired.

Please send a reply, if you solved the problem !!!


0

Response Number 2
Name: wanderer
Date: March 19, 2009 at 14:11:42 Pacific
Reply:

?

255.0.0.0 has 10.255.255.255 for broadcast
255.255.255.128 has 10.0.0.127 for broadcast

Even the subnet ids are different with the 10.x.y.z

I don't see your logic here.


0

Response Number 3
Name: jefro
Date: March 19, 2009 at 16:28:53 Pacific
Reply:

I think you expect both nics to reply to broadcast?

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: UDP broadcasts with multiple NICs

broadcasting with multiple NIC's www.computing.net/answers/networking/broadcasting-with-multiple-nics/29900.html

Receiving UDP packets with 2 NICs www.computing.net/answers/networking/receiving-udp-packets-with-2-nics/35446.html

PROXY with 1 NIC www.computing.net/answers/networking/proxy-with-1-nic/13712.html