Consultor Eletrônico



Kbase P179950: How to determine correct UDP broadcast address for NameServer Load Balancing
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/01/2011
Status: Unverified

GOAL:

How to determine correct UDP broadcast address for NameServer Load Balancing

GOAL:

What is the method to calculate UDP broadcast address when NameServer Load Balancing is being used

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x

FIX:

In order to determine correct address to specify for UDP broadcasting, it is necessary to know
IP address as well as the network subnet mask.

UDP broadcast address is a bitwise OR operation between IP address and inverted subnet mask.
Example:

IP address is 192.168.200.1 and subnet mask is 255.255.252.0
192.168.200.001 = 11000000 10101000 11001000 00000001
255.255.252.0 = 11111111 11111111 11111100 00000000
For the broadcast address you need to to perform logical OR with
IP address and the inverted subnet mask :
11000000 10101000 11001000 00000001
00000000 00000000 00000011 11111111
===================================
11000000 10101000 11001011 11111111
=
192.168.203.255
Another example for 192.168.203.45 and the same subnet mask:
255.255.252.0 = 11111111 11111111 11111100 00000000
inverted subnet = 00000000 00000000 00000011 11111111
192.168.203.045 = 11000000 10101000 11001011 00101101
=====================================================
11000000 10101000 11001011 11111111
=
192.168.203.255