On 2026-06-18 a user named Venjoa posted on the Hercules-390 group:
z/OS TCP/IP Connection Dropping on Hercules Emulator (OSA/HSCH Loop)
We are experiencing an intermittent connectivity drop between our CentOS Linux host system and the z/OS guest(3.1) running inside the Hercules emulator. The connection initializes correctly but drops after several hours, falling into an unrecoverable 5-minute retry loop.
18:01:12 HHC03997I 0:1501 OSA: tun0: using MAC address 02-AA-BB-CC-DD-EE
18:01:12 HHC03997I 0:1501 OSA: tun0: using IP address 192.168.100.1
18:01:12 HHC03997I 0:1501 OSA: tun0: using subnet mask 255.255.255.0
18:01:12 HHC03997I 0:1501 OSA: tun0: using MTU 1500
18:01:12 HHC03997I 0:1501 OSA: tun0: using drive MAC address 8e:6d:17:15:57:73
18:01:12 HHC03997I 0:1501 OSA: tun0: using drive IP address fe80::8e6d:17ff:fe15:5773
18:01:12 HHC03805I 0:1501 OSA: tun0: Register guest IP address 192.168.100.150
18:01:19 HHC03997I 0:1501 OSA: tun0: not using MAC address 02-AA-BB-CC-DD-EE
18:01:19 HHC03997I 0:1501 OSA: tun0: not using IP address 192.168.100.1
18:01:19 HHC03997I 0:1501 OSA: tun0: not using subnet mask 255.255.255.0
18:01:19 HHC03997I 0:1501 OSA: tun0: not using MTU 1500
18:01:19 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:01:19 HHC00905I 0:1502 OSA: HSCH completed for data device
18:01:21 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:01:21 HHC00905I 0:1502 OSA: HSCH completed for data device
18:01:21 HHC03800I 0:1501 OSA: Adapter mode set to Layer 3
18:06:46 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:06:46 HHC00905I 0:1502 OSA: HSCH completed for data device
18:07:16 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:07:16 HHC00905I 0:1502 OSA: HSCH completed for data device
18:07:16 HHC03800I 0:1501 OSA: Adapter mode set to Layer 3
18:12:32 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:12:32 HHC00905I 0:1502 OSA: HSCH completed for data device
18:13:02 HHC00905I 0:1502 OSA: HSCH recognized for data device
18:13:02 HHC00905I 0:1502 OSA: HSCH completed for data device
18:13:02 HHC03800I 0:1501 OSA: Adapter mode set to Layer 3
Hercules Log Says:
1) Initial startup and Guest IP registration (192.168.100.150) complete cleanly.
2) After an extended period of runtime(in this instance 16hrs), the connection is broken by z/OS sending a Halt Subchannel (HSCH) command to the OSA data device (01502).
3) Hercules attempts an automatic recovery every 5 minutes, but the z/OS stack immediately rejects the subchannel reconnection within seconds.
4) I did the IPL and working fine and not sure how long will it run
I have attached the log here.
Has anyone encountered this specific HSCH data device disconnect loop on a Hercules setup before? I am looking for a helping hand to fix the issue.
Thanks,
Venjoa
I was able to reproduce the problem between two Hercules' running on two Linux hosts. The problem appeared to be traffic rate related, the greater the packet rate between the Hercules' the less time before the problem occurred. There was never any indication of a problem on the failing Hercules, the guest would simply send a ULP_DISABLE request to the QETH before issuing the message:
EZZ4338I ERROR REPORTED ON INTERFACE OSAAFACE4 - CODE 80100040 DIAGNOSTIC CODE 03
The code and the diagnostic code were always the same. After issuing the message the guest would attempt to recover. Sometimes after two or three attempts the recovery was successful, sometimes after many attempts the recovery wasn't successful (or at least it wasn't before I lost patience!).
Referring to the Data link control (DLC) status codes the code isn't very helpful:
X'80' Permanent error
Explanation: Request rejected due to failure of either a system or network function.
X'10' LLC or DNI layer local error
Explanation: A request was processed and an error was found by the local VTAM.
X'0040' INOP-deact SAP
Explanation: SAP becomes inoperative.
I suspect, though I have no evidence in support, that there is an error in a buffer passed from QETH to the guest. The SNA sense code 8010 is described:
Segmented RU length error: An RU was found to exceed a maximum length, or required buffer allocation
that might cause future buffer depletion.
The use of 8010 in the code may be a coincidence, or not. Investigation continues.
On 2026-06-18 a user named Venjoa posted on the Hercules-390 group:
I was able to reproduce the problem between two Hercules' running on two Linux hosts. The problem appeared to be traffic rate related, the greater the packet rate between the Hercules' the less time before the problem occurred. There was never any indication of a problem on the failing Hercules, the guest would simply send a ULP_DISABLE request to the QETH before issuing the message:
The code and the diagnostic code were always the same. After issuing the message the guest would attempt to recover. Sometimes after two or three attempts the recovery was successful, sometimes after many attempts the recovery wasn't successful (or at least it wasn't before I lost patience!).
Referring to the Data link control (DLC) status codes the code isn't very helpful:
I suspect, though I have no evidence in support, that there is an error in a buffer passed from QETH to the guest. The SNA sense code 8010 is described:
The use of 8010 in the code may be a coincidence, or not. Investigation continues.