[AG-TECH] NetWorkadress allocation

Ivan R. Judson judson at mcs.anl.gov
Fri Sep 3 06:22:15 CDT 2004


Hi Michael,

in that method the block appears:

        # Check to see if port is used
        if even:
            modulus = 2
        else:
            modulus = 1

This should pretty clearly indicate that the even parameter is used to
indicate that the allocation should result in an even port number (which is
required for RTP sessions).

The INTERVAL/RANDOM parameters do appear to be unused, and upon further
reflection probably indicate a mis-use of those words. It seems the
allocators should have one mechanism to define the RANGE of the
ports/addresses to allocate from, and another parameter to indicate how to
allocate (e.g. SEQUENTIAL or RANDOM).

We can look at addressing this in the near future. Thanks for pointing this
out.

--Ivan 

> -----Original Message-----
> From: owner-ag-tech at mcs.anl.gov 
> [mailto:owner-ag-tech at mcs.anl.gov] On Behalf Of Michael Braitmaier
> Sent: Friday, September 03, 2004 3:31 AM
> To: ag-tech at mcs.anl.gov
> Subject: [AG-TECH] NetWorkadress allocation 
> 
> I recognized that when I startup the bridgeserver it assignes 
> the unicast ports to the multicast ports different than last 
> time. For example:
> 1st startup:
> 50096 --> 59922
> 
> 2nd startup:
> 50096 --> 59924
> 
> Therefore I looked into the code and finally arrived at 
> NetworkAddressAllocator.py.
> This class seems to select ports on a random base. I found 
> the symbol NetworkAddressAllocator.INTERVAL which I assumed 
> to be a sequential port selection approach. Unfortunately 
> this seems not to be implemented yet. So I tried to do it on 
> my own, for our local installation, as we required fixed 
> assignment of uc-ports to mc-ports. My question now is 
> regarding the method
> 
> def AllocatePortInRange(self, even, portBase, portMax):
> 
> I would like to know what the parameter even stands for. Is 
> it indicating whether the port to be allocated should be an 
> even port number or uneven?
> 
> Clearing this for me would be very helpful Thanks.
> 
> Michael Braitmaier
> ------------------
> Dipl.-Inf. Michael Braitmaier
> HLRS - Visualization / Video Conferencing University of 
> Stuttgart Germany
> Website: http://www.hlrs.de/organization/vis/people/braitmaier/ 
> 
> 




More information about the ag-tech mailing list