Consultor Eletrônico



Kbase P1993: How to set TCP/IP KeepAlive for Windows NT/2000/XP
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/18/2009
Status: Verified

GOAL:

How to change the TCP/IP KeepAlive value for Windows NT / 2000 / XP

GOAL:

How to set TCP KeepAlive for Windows servers

GOAL:

How to change the TCP/IP timeout for windows?

GOAL:

How to chance TCP/IP configuration parameters for windows 2000?

GOAL:

How to chance TCP/IP configuration parameters for windows NT?

FACT(s) (Environment):

Windows NT 32 Intel/Windows 2000
Progress/OpenEdge Product Family

FIX:

There is no way within Progress to control the TCP/IP timeout. This keepalive timeout can only be controlled by parameters within the TCP/IP layer. Changing the timeout value will affect all other processes relying on TCP/IP. The following registry settings need to be changed or added to change the keepalive timeout value:


KeepAliveInterval
KeepAliveTime
TcpMaxDataRetransmissions

The value is located under the registry folder:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.

**KeepAliveInterval :
Key: Tcpip\Parameters
Value Type: REG_DWORD - Time in milliseconds
Valid Range: 1 - 0xFFFFFFFF
Default: 1000 (one second)
Description: This parameter determines the interval separating keep alive transmissions until a response is received. Once a response is receive, the delay until the next keep alive transmission is again controlled by the value of KeepAliveTime. The connection will be aborted after the number of retransmissions specified by
TcpMaxDataRetransmissions have gone unanswered.


**KeepAliveTime:
Key: Tcpip\Parameters
Value Type: REG_DWORD - Time in milliseconds
Valid Range: 1 - 0xFFFFFFFF
Default: 7,200,000 (two hours)
Description: The parameter controls how often TCP attempts to verify that an idle connection is still intact by sending a keep alive packet. If the remote system is still reachable and functioning, it will acknowledge the keep alive transmission. Keep alive packets are not sent by default. This feature may be enabled on a connection by an application.


**TcpMaxDataRetransmissions:
Key: Tcpip\Parameters
Value Type: REG_DWORD - Number
Valid Range: 0 - 0xFFFFFFFF
Default: 5
Description: This parameter controls the number of times TCP will retransmit an individual data segment (non connect segment) before aborting the connection. The retransmission timeout is doubled with each successive retransmission on a connection. It is reset when responses resume. The base timeout value is dynamically determined by the measured round-trip time on the connection.