OpenTP1 Version 7 Description

[Contents][Glossary][Index][Back][Next]

7.3.4 Restricting the number of ports

If you create a large-scale system using OpenTP1, the number of ports that TCP/IP manages may run short. To prevent this, this appendix describes how to restrict the number of ports that OpenTP1 uses.

To reduce the overhead of establishing connections, OpenTP1 maintains the connections that are established and reuses them for the communications between the same processes. When the number of maintained connections reaches the limit, connections will be disconnected if the processes that established the connections agree with each other. This is temporary closing.

The user can specify the following operands in the system common definition, the user service definition, and the user service default definition.

set ipc_sockctl_highwater=a,b
set ipc_sockctl_watchtime=length-of-time-to-wait-until-the-
sockets-are-reusable

a
Percentage of sockets at which temporary closing starts

b
Percentage of sockets for which temporary closing is not performed

In the operation where communications between the same processes are infrequent or in a system that communicates with many remote processes, use temporary closing and release some connections when the number of maintained connections becomes great. This allows you to adjust the number of sockets that are used in a process and reuse the sockets.

When an OpenTP1 process sends data, it secures a send port before it establishes a connection. Since each computer has a limited number of send ports, you need to adjust the number of connections maintained by the UAP processes. Make this adjustment so the total number of send ports in the entire system does not exceed its limit.

If the values specified in these operands are inadequate, the number of sockets that can be used in a process reaches the upper limit. This causes new requests for establishing connections to overwhelm the number of sockets that become reusable by temporary closing. Alternatively, the process may terminate abnormally since the number of ports used in the entire system exceeds the limit of TCP/IP.