KeepAlive-Konfiguration

Die Versendung von KeepAlive-Nachrichten durch das TCP-Protokoll ermöglicht die Überprüfung, ob eine Verbindung im Leerlauf weiterhin aktiv ist. Seit Version 1.0.47 des TwinCAT TCP/IP Servers (TF6310 TCP/IP) wird die KeepAlive-Konfiguration des Windows-Betriebssystems verwendet, welche sich über die folgenden Windows-Registry-Einträge konfigurieren lässt.

Die folgende Dokumentation ist ein Auszug aus einem Microsoft Technet-Artikel.

KeepAliveTime

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Data type

Range

Default value

REG_DWORD

0x1–0xFFFFFFFF ( milliseconds )

0x6DDD00 ( 7,200,000 milliseconds = 2 hours )

Description

Determines how often TCP sends keep-alive transmissions. TCP sends keep-alive transmissions to verify that an idle connection is still active.This entry is used when the remote system is responding to TCP. Otherwise, the interval between transmissions is determined by the value of the KeepAliveInterval entry.By default, keep-alive transmissions are not sent. The TCP keep-alive feature must be enabled by a program, such as Telnet, or by an Internet browser, such as Internet Explorer.

KeepAliveInterval

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Data type

Range

Default value

REG_DWORD

0x1–0xFFFFFFFF ( milliseconds )

0x3E8 ( 1,000 milliseconds = 1 second )

Description

Determines how often TCP repeats keep-alive transmissions when no response is received. TCP sends keep-alive transmissions to verify that idle connections are still active. This prevents TCP from inadvertently disconnecting active lines.