<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MCB Systems &#187; ntp</title>
	<atom:link href="http://www.mcbsys.com/techblog/tag/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mcbsys.com/techblog</link>
	<description>Custom Software and I.T. Services</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:53:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hotfix Lets W32time Sync with Very High Precision NTP Servers</title>
		<link>http://www.mcbsys.com/techblog/2007/11/hotfix-lets-w32time-sync-with-very-high-precision-ntp-servers/</link>
		<comments>http://www.mcbsys.com/techblog/2007/11/hotfix-lets-w32time-sync-with-very-high-precision-ntp-servers/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 10:34:00 +0000</pubDate>
		<dc:creator>Mark Berry</dc:creator>
				<category><![CDATA[IT Administration]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[w32time]]></category>

		<guid isPermaLink="false">/mark/post/Hotfix-Lets-W32time-Sync-with-Very-High-Precision-NTP-Servers.aspx</guid>
		<description><![CDATA[Time Server Upgrades Expose W32Time Bug&#160;
Some time ago, I set up two NTP time sources for my Windows 2003 / SBS 2003 domain controllers:&#160; time-nw.nist.gov in Redmond, Washington, and time-a.nist.gov in Gaithersburg, Maryland.
I noticed that the machines don&#8217;t ever seem to sync with time-nw.nist.gov. I keep getting W32Time errors:

Event ID: 38
&#8220;The time provider NtpClient cannot [...]]]></description>
			<content:encoded><![CDATA[<h1>Time Server Upgrades Expose W32Time Bug&nbsp;</h1>
<p>Some time ago, I set up two NTP time sources for my Windows 2003 / SBS 2003 domain controllers:&nbsp; time-nw.nist.gov in Redmond, Washington, and time-a.nist.gov in Gaithersburg, Maryland.</p>
<p>I noticed that the machines don&#8217;t ever seem to sync with time-nw.nist.gov. I keep getting W32Time errors:<br />
<span id="more-72"></span></p>
<p style="padding-left: 30px;">Event ID: 38<br />
&#8220;The time provider NtpClient cannot reach or is currently receiving invalid time data from time-nw.nist.gov&#8221;</p>
<p style="padding-left: 30px;">Event ID: 47<br />
&#8220;No valid response has been received from manually configured<br />
peer time-nw.nist.gov,0&#215;8 after 8 attempts to contact it.&#8221;</p>
<p>However, my second source, time-a.nist.gov, usually works, so the servers&#8217; times are still in sync:</p>
<p style="padding-left: 30px;">Event ID: 37<br />
&#8220;The time provider NtpClient is currently receiving valid time data from time-a.nist.gov&#8221;</p>
<p>I tried replacing&nbsp; time-nw.nist.gov with a couple other servers from the NIST&#8217;s <a href="http://tf.nist.gov/service/time-servers.html" target="_blank">list of public servers</a>, but the other two options failed as well. What&#8217;s going on here? Only one clock in the country works? Finally I came across<a href="http://channel9.msdn.com/ShowPost.aspx?PostID=300216" target="_blank"> this thread</a> on a Channel 9 forum.</p>
<p>On April 25, 2007, &#8220;PeterInSydney&#8221; turned on w32time logging (<a href="http://support.microsoft.com/kb/816043" target="_blank">here&#8217;s how</a>), and discovered that the w32time client was rejecting time with a &#8220;precision&#8221; value of -31. A Microsoft employee in Redmond, Matthew van Eerde, confirmed that this is a bug in the w32time client:&nbsp; &#8220;The w32time client incorrectly rejects packets with precision &lt; -30.&#8221; Van Eerde followed up on April 27 with a very helpful summary of what situations are broken (basically any XP or Win2003 machine trying to talk to a &#8220;very high-precision&#8221; server). The April 27 post mentions that, &#8220;Recently (March time frame) time.nist.gov became &#8216;very high<br />
precision.&#8217;&#8221; The workaround is to use a lower-precision server.</p>
<p>Sure enough, when I turned on w32time debugging on my server, I see that time-nw.nist.gov is also returning a -31 precision, whereas time-a.nist.gov is still &#8220;only&#8221; -30. That explains why only time-a.nist.gov is working.</p>
<p>Pardon the pun, but isn&#8217;t this a time bomb waiting to explode? So far I haven&#8217;t been able to find a list of which servers offer what level of precision. But if the NIST servers are gradually being upgraded to higher precision, won&#8217;t the Windows machines that rely on them eventually be left high and dry?</p>
<h1>The Hotfix&nbsp;</h1>
<p>Fortunately, reading further in the (four-page) Channel 9 thread, on September 4, Microsoft&#8217;s van Eerde announced that a<a title="The Windows Time service in Windows Server 2003 does not synchronize time with a time server if the precision value of the NTP response is less than -30" href="http://support.microsoft.com/kb/940742" target="_blank"> hotfix</a> for Windows Server 2003 is available:</p>
<p style="padding-left: 30px;">The Windows Time service in Windows Server 2003 does not synchronize time<br />
with a time server if the precision value of the NTP response is less than -30<br />
<a title="The Windows Time service in Windows Server 2003 does not synchronize time with a time server if the precision value of the NTP response is less than -30" href="http://support.microsoft.com/kb/940742" target="_blank">http://support.microsoft.com/kb/940742</a></p>
<p>So I submitted an<a title="Submit an online request to obtain a Microsoft hotfix" href="http://support.microsoft.com/kb/935195" target="_blank"> online hotfix request</a>, and in under two hours, the hotfix instructions arrived. Once applied and rebooted, time is now syncing properly with very high precision servers.</p>
<h1>Still Getting Errors&nbsp;</h1>
<p>Even though the Windows servers will now sync with very high precision NTP servers, I still sometimes get the 38 and 47 errors. Examing the debug log, this time it is due simply to the NTP server not responding to a query:</p>
<p style="padding-left: 30px;">Polling peer time-nw.nist.gov (ntp.m|0&#215;8|192.168.1.2:123-&gt;131.107.1.10:123)<br />
Sending packet to time-nw.nist.gov (ntp.m|0&#215;8|192.168.1.2:123-&gt;131.107.1.10:123) in Win2K detect mode, stage 1.<br />
No response from peer time-nw.nist.gov (ntp.m|0&#215;8|192.168.1.2:123-&gt;131.107.1.10:123).<br />
Logging information: NtpClient cannot reach or is currently receiving invalid time data from time-nw.nist.gov (ntp.m|0&#215;8|192.168.1.2:123-&gt;131.107.1.10:123).</p>
<p>So even though Windows is now able to handle high precision servers, you still have to find servers that are responsive. I never got time-nw.nist.gov to respond, and time.nist.gov was intermittent. Maybe w32time made too many requests and was blocked by the servers. In any case, I finally found two geographically separated NIST servers that are responding well. Here&#8217;s how I set them up (commands adapted from KB<a title="Time synchronization may not succeed when you try to synchronize with a non-Windows NTP server in Windows Server 2003" href="http://support.microsoft.com/kb/875424" target="_blank"> 875424</a>):</p>
<p>w32tm /config /manualpeerlist:&#8221;nist1.symmetricom.com,0&#215;8 time-b.timefreq.bldrdoc.gov,0&#215;8&#8243; /syncfromflags:MANUAL</p>
<p>net stop w32time</p>
<p>net start w32time</p>
<p>w32tm /resync</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mcbsys.com/techblog/2007/11/hotfix-lets-w32time-sync-with-very-high-precision-ntp-servers/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

