Default Settings and Behavior or NbtKeepAlive and TcpKeepCnt

Last reviewed: May 13, 1997
Article ID: Q110136
The information in this article applies to:
  • Microsoft Windows NT Resource Kit for Windows NT and Windows NT Advanced Server version 3.1

SUMMARY

The Windows NT Resource Kit Volume 1 incorrectly documents the default settings and behavior for NbtKeepAlive and TcpKeepCnt parameters.

MORE INFORMATION

According to the Windows NT Resource Kit Volume 1, the following are default values for keepalive parameters:

   NbtKeepAlive = 0 (disabled)
   TcpKeepCnt = 120 seconds

However, the actual defaults are the following:

   NbtKeepAlive = 60 seconds
   TcpKeepCnt = 120 seconds

Any frame sent by NBT (including a NetBIOS keep-alive) is considered to be data by TCP. Because the NbtKeepAlive parameter is set lower than TcpKeepCnt, on an idle NetBIOS session there will be one NBT keep-alive sent per minute, and no TCP keep-alives sent. On an idle non-NetBIOS TCP session, such as that used by a Windows Sockets program, TCP keep-alives will be sent, with their frequency controlled by the TcpKeepCnt parameter.

As documented in the Windows Resource Kit, these parameters can be modified to produce different behavior. To change these parameters, use the following procedure:

WARNING: Using the Registry Editor incorrectly can cause serious, system-

   wide problems that may require you to reinstall Windows NT to correct
   them. Microsoft cannot guarantee that any problems resulting from the
   use of Registry Editor can be solved. Use this tool at your own risk.

  • Open the Registry Editor (REGEDT32.EXE).

  • For NbtKeepAlive, use the following path:

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Nbt\Parameters
    

  • Add a value for the NbtKeepAlive parameter as a REG_DWORD with the desired value in seconds. "0" disables NBT keepalives.

  • For TcpKeepCnt use the following path:

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    

  • Add a value for the TcpKeepCnt parameter as a REG_DWORD with the desired value in seconds. "0" disables TCP keepalives.

    For example, if you want to send one TCP keep-alive every five minutes, and no NetBIOS keep-alives, use the following values:

       NbtKeepAlive = 0
       TcpKeepCnt = 300
    
    

    REFERENCES

    Windows NT Resource Kit, Volume 1


  • Additional query words: prodnt
    Keywords : kbother ntdocerr ntreskit
    Version : 3.1
    Platform : WINDOWS


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: May 13, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.