Information on ACS_INSTANCE and ports

Port Allocation

ACS uses certain port ranges only, to avoid conflicts among ACS processes (especially when running multiple ACS_INSTANCEs), but also to be more predictable for other software.

There are several port ranges reserved / used by ACS:

Daemon ports

An ACS daemon is run as a single instance per computer, using a fixed port independently of $ACS_INSTANCE because it handles all acs instances. The same applies to the "Imp" child processes of the services daemon.

ACS reserves the port range 2900 - 2999 for daemon ports.

Currently we use:

DaemonFixed Port
Container Daemon2970 (was 3013)
Services Daemon2980 (was 3014)
Naming Service Imp2981 (was 3015)
Notification Service Imp2982 (was 3016)
CDB Imp2983 (was 3017)
Manager Imp2984 (was 3018)
acsLogSvc Imp2985 (was 3019)
Log service Imp2986 (was 3020)
IR Imp2987 (was 3021)
Alarm service Imp2988

ACS services ports

ACS reserves the port range 3000 - 3999 for services ports.

The actual port number is calculated using the following formula:

port = 3000 + ACS_INSTANCE*100 + port offset

which means 50 possible port offsets for ACS services per ACS instance (the other 50 are for containers, see below). Currently we use

ServicePort Offset
Manager0
Naming Service1
Notify Service2
Logging Service3
Interface repository4
(Logging) notification service5
(BACI monitor archiving) notification service6
(Alarm) notification service7
ACS Log Service (acsLogSvc)11
CDB (cdbjDAL) Service12
Alarm Service13
Additional Notify Service instances
(see COMP-3432)
20-49

How about federated manager instances?

ACS container ports

ACS reserves the port range 4000 - 4999 for container ports.

However the allocation of container ports depends on the ACS instance, with instance 0 getting the large range 4000-4999, while containers from other ACS instances each have to fit in the range of 100 ports that they share with the ACS services, according to the same offset formula.


ACS ContainersACS_INSTANCE 0: 4000 to 4999 (even numbers)
ACS_INSTANCE > 0: port offset 50 to 72 (even numbers)
Java containers ports for JVMDI remote debuggingAllocated range is (odd numbers paired with container number) 50 to 74
Maci Supervisor clients75 to 99 (see explanation below)

Client ports

Maci supervisor clients share the port offset range 75 - 99 (above the container port range).

This may be not necessary any more. See comment "Ports for Maci Supervisors" below for the historical context.

Other client applications using C++ SimpleClient, Java ComponentClient etc pick ports freely, typically in a higher port range > 40.000.

Background info on using ports in ACS

Utility APIs/classes are provided to access dynamic port numbers:

APIs and utilities are available to calculate proper port numbers.

Notice that persistent port numbers in services and containers are essential to the implementation of persistent connections, i.e. connections that are still valid after a restart of the service/container/component. Therefore when re-starting ACS services or containers, their ORBs must use the same port as in the previous run. For containers, the scripts from module acsstartup protect and find these ports in $ACSDATA/tmp/$ACS_INSTANCE/USED_CONTAINER_PORTS, while for the services most of them have fixed ports anyway, and only for the additional notify services the daemons take care of protecting the ports.

Does not really belong here but may be interesting: The Alma Exec subsystem uses port 10162 as default for SNMP traps.