Strovent SystemsSign in
Reference

EZZ6034I CONN DROP after idle, TN3270 TIMEMARK and SCANINTERVAL

Why an idle TN3270 session drops with EZZ6034I ERR 1027 or reason TIMEMARK, how z/OS Telnet TIMEMARK and SCANINTERVAL work, and what keeps the line busy.

A TN3270 session that sits unused and then stops responding has usually been cut by a firewall or other network device that ends quiet connections. The z/OS Telnet server logs the drop with message EZZ6034I, and the reason on that message tells you which side gave up.

Read the reason on EZZ6034I

The message looks like this, with the reason at the end of the first line:

EZZ6034I TELNET CONN 00001234 LU TCPM1001 CONN DROP ERR 1027
  • ERR 1027: The server sent data and got no TCP acknowledgement, so the stack dropped the connection after its retries. IBM's technote gives this as the result when a firewall silently discards packets for a session that has passed its idle limit.
  • TIMEMARK: The server sent a TIMEMARK "are you there" request and nothing came back from the client before the next scan.
  • CLNTDISC: The connection was closed from the client end (EZZ6035I RCODE 1001-02, client disconnected). IBM notes that many firewalls send a TCP reset when they drop an idle session, and the drop is then logged at once, with no retries.
  • INACT-S: The server's own INACTIVE timer ended a terminal connection that had no SNA traffic for too long. This is a host policy, not a network fault.

With DEBUG DETAIL turned on, the server also writes EZZ6035I with an RCODE, for example 1027-02 Last send not ACKed. Stack drops connection.

How TIMEMARK and SCANINTERVAL work

IBM documents that the TN3270 server does not use TCP keep-alive packets on its connections. It relies on TIMEMARK instead:

  • SCANINTERVAL is how often the server walks its list of connections.
  • TIMEMARK is how long a connection may go without data from the client before the server sends a Telnet DO TIMEMARK.

At each scan, a connection with no client data for the TIMEMARK period gets a TIMEMARK request. At the next scan, if still nothing has arrived from the client, the server drops it with reason TIMEMARK. Any data from the client, including the reply to the request, keeps the connection open.

So the time from the last data to the first TIMEMARK can be anything from TIMEMARK to TIMEMARK plus SCANINTERVAL. IBM's example uses 1800 and 10800 seconds: a check every 30 minutes for connections idle for 3 hours. The technote says that with the default settings the exchange happens 3 to 3.5 hours after the last data, which is longer than many firewall idle limits.

Fixing it

  • On the host: set TIMEMARK and SCANINTERVAL so their total is shorter than the idle timeout of every firewall in the path. They can be set in TELNETGLOBALS, TELNETPARMS or PARMSGROUP. IBM warns that very low values can cost CPU and flood the network with TIMEMARK commands, and that TIMEMARK is meant to clean up abandoned connections, not to reset lost ones quickly. For that, IBM points to CHECKCLIENTCONN.
  • On the network: a longer idle timeout on the firewall for the TN3270 port has the same effect.
  • On the client: any client data resets the server's idle clock. A client that sends Telnet traffic on its own while idle keeps the path busy from its side too.

IBM also notes a knock-on effect: if TIMEMARK is much longer than the network's idle timeout, clients that keep reconnecting can use up the LU pool, and new connections then fail with RCODE 3003 (LUs are all in use).

The INACTIVE family of timers is separate. They count SNA data traffic between Telnet and VTAM, so keep-alive traffic from a client does not reset them.

After the drop

The TSO or CICS session behind the connection may still be waiting for you. See Reconnect to a TSO session after the connection drops.

Sources

Spotted a mistake? Email [email protected].