0% found this document useful (0 votes)
22 views2 pages

1410736_E_20240702[TCP_IP_ setting keepalive interval]

SAP Note 1410736 addresses the issue of network connections being closed due to inactivity, particularly in environments with routers or firewalls. It recommends setting a keepalive interval of 5 minutes and provides specific configuration instructions for Windows, Linux, and AIX systems to adjust keepalive settings. The document also references related SAP Notes and highlights the potential impact on network load when sending keepalive packets.

Uploaded by

pitikuss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

1410736_E_20240702[TCP_IP_ setting keepalive interval]

SAP Note 1410736 addresses the issue of network connections being closed due to inactivity, particularly in environments with routers or firewalls. It recommends setting a keepalive interval of 5 minutes and provides specific configuration instructions for Windows, Linux, and AIX systems to adjust keepalive settings. The document also references related SAP Notes and highlights the potential impact on network load when sending keepalive packets.

Uploaded by

pitikuss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SAP Note

1410736 - TCP/IP: setting keepalive interval


Component: BC-NET (Basis Components > Network Infrastructure), Version: 6, Released On: 15.06.2020

Symptom
In some landscapes the router(firewall, bridge etc.) between two or more network segments could
close the network connection if it remains inactive for longer time. Activated keepalive option
for SAP application server does not help because keepalive interval (set by the operating
system) is too large.

Other Terms
keepalive, so_keepalive, KeepAliveTime, tcp_keepalive_time, gw/so_keepalive,
icm/client_enable_tcp_keep_alive

Reason and Prerequisites


An idle connection is verified by TCP by sending so called "keep alive" packets. If the remote
computer is reachable it acknowledges the keep-alive packet. Keep alive packets are sent if the
application supports this option.
Default setting for keep alive might be configured too large and should be corrected.
Keep in mind that sending keep alive packets will increase your network load and might
potentially lead to firewalls having to keep to many connections open.

Solution
Set 5 minutes for keepalive interval. Depending on your connection enable either gw/so_keepalive
or icm/client_enable_tcp_keep_alive.

Windows:

Check MS KB 324270. If necessary set registry values (REG_DWORD)

KeepAliveTime = 300000
KeepAliveInterval = 75000

for registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters


Note: There is no special registry entry to determine the retransmission behavior of TCP
Keepalives.

Linux:
Check the configured values with:
sysctl net.ipv4.tcp_keepalive_time
sysctl net.ipv4.tcp_keepalive_intvl
sysctl net.ipv4.tcp_keepalive_probes
The recommended values are:

net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_intvl = 75
net.ipv4.tcp_keepalive_probes = 9
Use the -w flag to set the new values, e.g.:
sysctl -w net.ipv4.tcp_keepalive_time=300

AIX:
AIX uses values in half-second units. So the recommended values would be:
no -o tcp_keepidle = 600
no -o tcp_keepintvl = 150
no -o tcp_keepcnt = 9

For other operating system consult system administrator.

This document refers to


SAP Note/KBA Component Title

743888 BC-CST-GW GW: gw/so_keepalive profile parameter

2806747 BC-CST-IC Support of TCP/IP keepalive for ICM client connections

This document is referenced by


SAP Note/KBA Component Title

3117294 How-To Troubleshoot SQL Error -10807 'Connection down' in a SAP HANA Landscape

3255052 BC-CST-NI TCP keepalive for reverse invoke data connections

2963141 BC-CST-EQ ENQUEUE: frequent work process reconnect attempts to the enqueue server

2962111 BC-CST-EQ ENQU: ENSA 2.0: Network Close Events are Lost

1494757 BC-MID-RFC Improving stability of registered RFC server connections

743888 BC-CST-GW GW: gw/so_keepalive profile parameter

You might also like