Microsoft Knowledge Base Email Alertz

KBAlertz.com: Applications that try to establish a session to a remote host using NetBIOS over TCP/IP may experience a time-out longer than expected when the remote host is unavailable.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 200770 - Last Review: November 1, 2006 - Revision: 2.1

TCP/IP Connection Attempts Take Longer to Time Out

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you.Visit the Windows Vista Solution Center
This article was previously published under Q200770

SYMPTOMS

Applications that try to establish a session to a remote host using NetBIOS over TCP/IP may experience a time-out longer than expected when the remote host is unavailable.

The "longer than expected" time-out occurs when the TCP connection attempt process, which starts with the original SYN segment, is repeated.

For example, if the TcpMaxConnectRetransmissions registry parameter is set to 1, you would see the following incorrect behavior when the remote or target host is down:
  1. The client computer sends the first SYN segment.
  2. Three seconds later, the SYN segment is retransmitted
  3. Six seconds later, a different initial SYN segment, with a different sequence number, is sent.
  4. Three seconds later, the second initial SYN segment is retransmitted.
  5. Six seconds later, TCP reports a time-out error to the application.
The total time-out is approximately 18 seconds.

CAUSE

This behavior occurs because NetBIOS over TCP/IP (NetBT) is requesting the connection a second time.

RESOLUTION

A new NetBT.sys file included in Windows NT 4.0 Service Pack 4 fixes this problem.

To resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows NT Server 4.0, Terminal Server Edition. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
152734  (http://kbalertz.com/Feedback.aspx?kbNumber=152734/EN-US/ ) How to Obtain the Latest Windows NT 4.0 Service Pack

STATUS

Microsoft has confirmed that this is a problem in Windows NT 4.0 and Windows NT Server 4.0, Terminal Server Edition. This problem was first corrected in Windows NT 4.0 Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 4.

MORE INFORMATION

With the latest service pack, you will see the following behavior while trying to connect to another computer:

TCP, acting as the transport for the application, sends a SYN segment to the destination host specifying the initial sequence number in an attempt to initialize the connection. If the destination host is unavailable, TCP will retransmit this original SYN packet the number of times specified in the TcpMaxConnectRetransmissions registry parameter (the default is three times). The retransmission time-out is doubled with each successive retransmission in a given connection attempt. The initial time-out value is three seconds.

After retransmitting the number of times specified in the registry key mentioned above, the transport will notify the application of a time-out error.

For example, if the TcpMaxConnectRetransmissions registry parameter is set to 1, you should see the following correct behavior when the destination host is down:
  1. Client sends the first SYN segment
  2. Three seconds later, the SYN packet is retransmitted
  3. Six seconds later, TCP reports a timeout error to the application.
This time, the total time-out is approximately nine seconds, which is the correct behavior with the default configuration settings. For additional information, see the following article or articles in the Microsoft Knowledge Base:
172983  (http://kbalertz.com/Feedback.aspx?kbNumber=172983/EN-US/ ) Explanation of the Three-Way Handshake via TCP/IP
120642  (http://kbalertz.com/Feedback.aspx?kbNumber=120642/EN-US/ ) TCP/IP and NBT Configuration Parameters for Windows 2000 or Windows NT

APPLIES TO
  • Microsoft Windows NT Server 4.0, Terminal Server Edition
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
Keywords: 
kbbug kbfix kbnetwork KB200770
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please