|
NTP 4.2.4 compared with NTP 4.2.5/6It's possible that the issues discussed on this Web page have
been resolved by the excellent work done by Dave Hart (and very much
appreciated!) on NTP 4.2.7p241, so I have created a new NTP
4.2.7p241 Web page devoted to tests on that version. March 2010 - comparison on a Windows Vista systemThis system is wireless synced to a stratum-1 server on my LAN. Using wireless may well increase the jitter of the link between the stratum-1 server and the client PC. It isn't run continuously - just during the day. I plotted the offset on two different scales - the top graph has a range of +/- 100 milliseconds, and the lower graph a range of +/- 3 milliseconds. Here I compare ntpd 4.2.6 on the first day, with ntpd 4.2.4 on the second day. From the upper graph, it's obvious that there is much less variation of the offset with 4.2.4 (273) than with the more recent version. Event the transient event is reduced from some 60ms to 30ms (although that could be just by chance of exactly what the event was). As ever, the question is why is there so much difference between versions, and the disappointment is that the more recent version is the one which is significantly worse with Windows Vista and Windows-7? Version numbers: December 2009 - comparison on a Windows Vista systemI was able to get limited access to LAN-synced Windows Vista system and was interested to test it, as my existing Vista system is rather badly behaved due, I believe, to having a satellite data feed with a particular USB DVB card and driver. Here is the +/- 100ms scale plot. The monitoring was started at point A on the graph above, and the changes were:
It's obvious by inspection that the variation of offset was
substantially greater while running NTP 4.2.5 that while running NTP
4.2.4. The system was substantially unused during the period 21:00-07:00,
so if anything the offset should have been more stable than less. These
results serve to confirm what has already been found, and which is reported in
more detail below. September 2009 - comparison with 4.2.5p212 and 4.2.4p6The experiments were repeated over September 16-17, using a
more recent NTP, but without the "tick 1". However, the results
were very similar to those below. This newer NTP seemed no worse on a
Windows XP system (Narvik), so it was left running there. September 2009 - experiments with "tick 1"In September 2009 Dave Hart suggested that using NTP 4.2.5 with the "tick 1" (for ~1000us reported Windows clock precision) might produce comparable performance to the 4.2.4 which I had been using on both Vista and Windows-7 to get acceptable performance. I have two systems I could test, one with Windows Vista and one with Windows-7. As you can see from the quick-look graphs below, the Vista system wasn't made a lot worse, but the the performance of the Windows-7 system was rather upset. The experiment was stopped on the morning of September 08, as can be seen on the larger graphs below. Windows Vista system - PC GeminiPlease note: this system is not well behaved! It has a data stream fed from satellite with a DVB receiver connected to the PC over a USB port. It was switched from NTP 4.2.4 to 4.2.5 with "tick 1" at 01:00, about one-fifth of the way across the graphs below. The character of the offset has changed from almost all positive excursions with some relatively stable intervals, to a more symmetrical variation but missing the stable intervals. In general terms, I would have said the amount of offset deviation was similar, neither better nor worse. Near the centre of the graph, at 18:30, it was switched to "tick 0.3" which made little change, and later to "tick 0.1" at 05:00 but again with no obvious improvement. It was switched back to NTP 4.2.4 at 08:00 about forth-fifths of the way across the graph. The jitter as reported by NTP has changed from a rather high variability with peaks of 20ms and an averaged value around 4ms, to a somewhat steadier value averaging around 14ms. Windows-7 system - PC HydraThis system was less successful with "tick 1", although there was one glitch as well which is still to be resolved. NTP 4.2.5p186 was installed on this system at 00:50 - about one fifth of the way across the graphs below. It was immediately obvious that the performance was nothing like what was expected, and checks showed that NTP has measured the Windows clock precision as twice the correct value, so NTP was restarted just after 05:00. However, in spite of the measurement now being correct, the poor performance continued. Offset is now highly variable, being of a much greater amplitude than before. The spectrum of the offset is different, though, have a much greater low-frequency component. In the interests of experimentation, at 05:23 near the end of the graph it was switch to "tick 10", with no obvious change. At 08:00, four-fifths across the graph, the earlier NTP 4.2.4 was restored. Frequency offset is now wondering all over the place, having previously had a quiet stable value around 4.8 ppm. Jitter has increased from an average value of less than 2ms to around 10-11ms. This average value is not greatly different to the Vista system, possibly suggesting that in both cases an extra jitter of some 10ms has been added (I understood the intention was to add less jitter than this, but I could be wrong). 2009 Jun 09After running another 4.2.5 version of ntp [ntpd 4.2.5p181-o Jun 06 15:21:08.65 (UTC-00:00) 2009 (1)], I re-installed ntpd 4.2.4 [4.2.4p6@DLH-QPC-o Mar 10 15:23:14.36 (UTC) 2009 (230)]. As expected, the offset was much reduced for most of the time, although the transient peaks remained. I've also shown the results from my NTP Plotter program. Note that at 05:00 UTC at the end of the graph the system was being prepared for the Vista SP2 update, and hence the hour of higher offset. I would be really grateful if someone could look into this issue. The graphs below show three distinct symptoms:
2009 May 15Comparison between "ntpd 4.2.4p6@DLH-QPC-o (230)" before 0800 on the middle day shown, versus "ntpd 4.2.5p175@1.1858-o May 12 15:20:06.38 (UTC-00:00) 2009 (1)" after about 0800. Top system, Windows Vista Ultimate (with a rather bad USB driver, most likely). Lower system: Windows 7 RC (7100). The variation in offset on the Vista Ultimate system (with the problematic USB device) becomes more symmetrical, but much greater in amplitude, and the large 50+ms transients are still present. The average jitter from the NTP loopstats is rather difficult to judge, as using my "normal" 6-hour exponential average it's still rather variable. With the NTP 4.2.4 the average jitter reaches as low as 1.5ms, with a mean value around 4.5ms. With 4.2.5, the value is around 15ms, some three times worse. The Windows-7 PC shows a change from an offset variation almost too small to see at the plotted scale to a series of transients around 25ms amplitude. The average jitter changes from 1.2-1.8ms with NTP 4.2.4 to around 10ms. The frequency error changes from having a variation of less than 0.2 ppm to a variation of 1.5ppm, and appears some 3.7 ppm greater. Here is a plot of PC Hydra with an expanded vertical scale:
2009 March 28On 28 March 2009, I updated NTP from Dave Hart's (239) which was from -stable (4.2.4) to build "4.2.5p158@1.1823-o" of the -dev version (4.2.5). The PCs were updated at:
From the graphs of offset below, and checks on the loopstats I note:
I have so far had not answer to a newsgroup question as to whether there have been algorithm changes between these two versions which might account for the observed differences. Apart from the Windows Vista PC, the performance appears broadly
similar, although the offset shows a greater variability. Alternative presentationNormal presentation
Differences observed on another Vista PC (Dave Hart's VistaMC)The jitter has increased from about 1.5 milliseconds to 25 milliseconds.
|
|