Article ID: 170359 - Last Review: February 22, 2007 - Revision: 3.5 How to modify the TCP/IP maximum retransmission timeoutThis article was previously published under Q170359 SUMMARY TCP starts a retransmission timer when each outbound
segment is handed down to IP. If no acknowledgment has been received for the
data in a given segment before the timer expires, then the segment is
retransmitted, up to the TcpMaxDataRetransmissions times. The default value for
this parameter is 5. The retransmission timer is initialized to three seconds when a TCP connection is established; however, it is adjusted on the fly to match the characteristics of the connection using Smoothed Round Trip Time (SRTT) calculations as described in RFC793. The timer for a given segment is doubled after each retransmission of that segment. Using this algorithm, TCP tunes itself to the normal delay of a connection. TCP connections over high-delay links will take much longer to time out than those over low- delay links. By default, after the retransmission timer hits 240 seconds, it uses that value for retransmission of any segment that needs to be retransmitted. This can be a cause of long delays for a client to time out on a slow link. For more information about the latest service pack for Windows 2000, click the following article number to view the article in the Microsoft Knowledge Base: 260910
(http://support.microsoft.com/kb/260910/
)
How to obtain the latest Windows 2000 service pack
MORE INFORMATIONImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows Windows provides a mechanism to control the initial retransmit time, and then the retransmit time is self-tuning. To change the initial retransmit time, modify the following values in the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters Value Name: TcpMaxDataRetransmissions Data Type: REG_DWORD - Number Valid Range: 0 - 0xFFFFFFFF Default: 5 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters Value Name: InitialRtt Data Type: REG_DWORD Valid Range: 0-65535 (decimal) Default: 0xBB8 (3000 decimal) For example, the value data 5000 decimal sets the initial retransmit time to five seconds. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ID for Adapter Value Name: TCPInitialRtt Data Type: REG_DWORD Valid Range: 300-65535 (milliseconds in decimal) Default: 0xBB8 (3000 milliseconds expressed in hexadecimal) NOTE: You can only increase the value for the initial timeout. Decreasing the value is not supported. For more information about retransmit time, click the following article numbers to view the articles in the Microsoft Knowledge Base: 232512
(http://support.microsoft.com/kb/232512/
)
TCP/IP may retransmit packets prematurely
223450
(http://support.microsoft.com/kb/223450/
)
TCP Initial retransmission timer adjustment added to Windows NT
For additional information, search the Web for RFC 793 (Section 3.7) TCP Protocol Specification.
APPLIES TO
| Article Translations
|
Back to the top
