Whole document tree NTP 4.x for Windows NTDo not try to compile NTP-4.0.99i under WINNT, it will not work. Fixed NTP-4.0.99i; look for next release to be functional. Sven - May 11 2000Download NTP-4.0.99g for the last stable WINNT port. I am working on adapting the major changes starting with 99i and getting things running again. Sven - April 25 2000IntroductionThe NTP 4 distribution runs as service on (i386) Windows NT 4.0 and Windows 2000. The binaries work on dual processor systems. This port has not been tested on the Alpha platform.Refer to System Requirements and Instructions for how to compile the program. Reference ClocksRefernce clock support under Windows NT is tricky because the IO functions are so much different. The following reference clocks are supported by Windows NT:Type 1 Undisciplined Local Clock (LOCAL)
Functions SupportedAll NTP functions are supported with some constraints. See the TODO list below.AccuracyGreg Brackley has implemented a fantastic interpolation scheme that improves the precision of the NTP clock using a realtime thread (is that poetic or what!) which captures a tick count from the 8253 counter after each OS tick. The count is used to interpolate the time between operating system ticks.On a typical 200+ MHz system NTP achieves a precision of about 5 microseconds and synchronizes the clock to +/-500 microseconds using the Trimble Palisade as UTC reference. This allows distributed applications to use the 10 milliseconds ticks available to them with high confidence. BinariesRecent InstallShield based executable versions of NTP for Windows NT (i386) are available from:http://www.trimble.com/oem/ntp and http://www.five-ten-sg.com/ ToDo
Compiling Requirements
Compiling Instructions
Configuration FileThe default NTP configuration file path is %SystemRoot%\system32\drivers\etc\. (%SystemRoot% is an environmental variable that can be determined by typing "set" at the "Command Prompt" or from the "System" icon in the "Control Panel").Refer to your system environment and create your ntp.conf file in the directory corresponding to your system installation. The older <WINDIR>\ntp.conf is still supported but you will get a log entry reporting that the first file wasn't found. Installation InstructionsThe instsrv program in the instsrv subdirectory of the distribution can be used to install 'ntpd' as a service and start automatically at boot time. Instsrv is automatically compiled with the rest of the distribution if you followed the steps above.
Removing NTPYou can also use instsrv to delete the NTP service by entering: "instsrv.exe remove"Command Line Parameters and Registry EntriesUnlike the Unix environment, there is no clean way to run 'ntpdate' and reset the clock before starting 'ntpd' at boot time.NTP will step the clock up to 1000 seconds by default. While there is no reason that the system clock should be that much off during bootup if 'ntpd' was running before, you may wish to override this default and/or pass other command line directives. Use the registry editor to edit the value for the ntpd executable under LocalMachine\System\CurrentControlSet\Services\NTP. Add the -g option to the ImagePath key, behind "%INSTALLDIR>\ntpd.exe". This will force NTP to accept large time errors (including 1.1.1980 00:00) Bug ReportsSend bug reports to news://comp.protocols.time.ntp and Sven_Dietrich@Trimble.COMChange LogLast revision 16 February 1999 Version 4.0.99e.by Sven Dietrich (sven_dietrich@trimble.com)Significant Changes:
Last revision 15 November 1999 Version 4.0.98f.by Sven Dietrich (sven_dietrich@trimble.com)Significant Changes:
Last revision 27 July 1999 Version 4.0.95.This version compiles under WINNT with Visual C 6.0.Greg Brackley and Sven Dietrich Significant changes:
Last revision: 20-Oct-1996This version corrects problems with building the XNTPversion 3.5-86 distribution under Windows NT. The following files were modified:
In order to build the entire Windows NT distribution you
Greg Schueman
Last revision: 07-May-1996This set of changes fixes all known bugs, and it includesseveral major enhancements. Many changes have been made both to the build environment as
The multiple interface support was adapted from Larry Kahn's
Enhancements:
Bug fixes:
See below for more detail: Note: SIGINT is not supported for any
Win32 application including
Possible enhancements and things left to do:
Known problems:
Last revision: 12-Apr-1995This NTPv3 distribution includes a sample configuration file and the projectmakefiles for WindowsNT 3.5 platform using Microsoft Visual C++ 2.0 compiler. Also included is a small routine to install the NTP daemon as a "service" on a WindowsNT box. Besides xntpd, the utilities that have been ported are ntpdate and xntpdc. The port to WindowsNT 3.5 has been tested using a Bancomm TimeServe2000 GPS receiver clock that acts as a strata 1 NTP server with no authentication (it has not been tested with any refclock drivers compiled in). Following are the known flaws in this port: 1) currently, I do not know of a way in NT to get information about multiple network interface cards. The current port uses just one socket bound to INADDR_ANY address. Therefore when dealing with a multihomed NT time server, clients should point to the default address on the server (otherwise the reply is not guaranteed to come from the same interface to which the request was sent). Working with Microsoft to get this resolved. 2) There is some problem with "longjmp" in xntpdc/ntpdc.c that causes a software exception on doing a Control-C in xntpdc. Be patient! 3) The error messages logged by xntpd currently contain only the numerical error code. Corresponding error message string has to be looked up in "Books Online" on Visual C++ 2.0 under the topic "Numerical List of Error Codes". Last HTML Update: November 17, 1999
|