Technical Notes |
|
The TN3270 host or printer, or any intermediate device between the server and the EXTRA! client, may be configured to terminate connections after a set amount of idle time. This technical note explains how to enable and configure EXTRA! and the Microsoft Windows TCP/IP protocol to send a keep-alive signal to the server at a set interval, to maintain an active connection.
The KeepAlive parameter enables the server or client to determine when a Telnet or TCP/IP connection is no longer valid. When a set amount of time elapses with no keep alive signal being received, the computer assumes that the connection has been terminated and that it may now reset the port or socket, making that resource available for further use.
A keep-alive signal can be sent from the server or the client.
Server-initiated keep-alive: EXTRA! X-treme supports TN3270 server-initiated keep-alive, including outbound NOP (No OPeration) and Timing Mark commands from the TN3270 server.
Server-initiated keep-alive is useful if
Client-initiated keep-alive: EXTRA! X-treme does not support outbound application level client-initiated keep-alive (like the NOP or Timing Mark commands); however, it can be configured to support the Microsoft Windows TCP/IP level keep-alive parameter.
Client-initiated keep-alive is useful if
The remainder of this technical note describes how to configure client-initiated keep-alive.
To enable client-initiated keep-alive support, you must configure EXTRA! to use the Microsoft TCP/IP KeepAlive parameter. Follow these steps:
By default, this file is located at C:\Program Files\Attachmate\EXTRA!\Sessions\ENU\Template\3270.EDP.
KeepAlive=YESOr, to disable this feature (the default), delete the line or change the value to NO.
KeepAlive=NOBy default, when enabled by the application, the Microsoft TCP/IP KeepAlive parameter is configured to verify that a connection is still valid every two hours. Depending on your network environment, you may need to reduce or increase this frequency interval.
The KeepAlive parameters are configured through the Windows Registry Editor.
The following parameters affect TCP/IP KeepAlive:
KeepAliveTime
Controls how often TCP attempts to verify that an idle connection is still valid by sending a keep alive packet to the server and waiting for an acknowledgement. The default is 7,200,000 (2 hours). Decrease this value to verify and idle the connection more frequently.
KeepAliveInterval
Controls how frequently the keep alive packet is resent if no response is received from the host. Increasing this value gives the server more time to reply to the request before a new request is sent.
TcpMaxDataRetransmissions
Controls how many times TCP resends a package (as the specified KeepAliveInterval) with no reply before the connection is terminated. Increasing or decreasing this value gives the server more or less time to respond.
For more information about TCP/IP parameters, see the following Microsoft articles:
To configure the TCP/IP KeepAlive parameters: