VM Time Sync 1 millisecond accuracy

David 1 Reputation point
2022-09-12T19:55:00.887+00:00

I have setup my virtual machines to sync with the host. So if I run w32tm /query /status, then I see Source: VM IC Time Synchronization Provider.

However, the pollinterval (the frequency with which it syncs to the host) is 10 seconds; in reality, it only does it every 16 seconds.

I need 1 millisecond time accuracy for my needs, which Microsoft offers, provided I am sub Stratum 5 (which I am, at 4).

However, to get this 1 millisecond time accuracy, I need to increase the frequency with which the machine syncs. How can I do that? The Azure machine seems to only sync every 16 seconds no matter what I change the pollinterval to.

For reference, here is the article from Microsoft explaining 1ms accuracy: https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/support-boundary

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,790 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-09-12T20:05:29.607+00:00

    Read on here about time sync configuration in Azure.
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/time-sync
    https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/configuring-systems-for-high-accuracy

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Anonymous
    2022-09-12T20:46:38.36+00:00
    0 comments No comments

  3. David 1 Reputation point
    2022-09-12T22:15:37.94+00:00

    Thanks, I've read through this and have configured with the limited information that is contained in those links. I actually posted the link you're referencing, noting that I am not achieving 1ms accuracy despite following configuration. I suspect that the issue is the pollinterval to sync with the host is 16 seconds. It should be more frequent than that to ensure 1ms accuracy; however, the virtual machines are not permitted to sync more frequently. So has anyone actually achieved 1ms accuracy with this configuration? Cause it doesn't seem possible given the 16 seconds.


  4. David 1 Reputation point
    2022-09-12T22:48:28.493+00:00

    The post regarding 1ms accuracy is actually for azure. That is indeed the only thing capable of the accuracy without its own GPS; the instructions are for syncing to the host (for virtual machines). Yet, the 16 second updates seem to make this not possible despite what's stated in those articles.

    0 comments No comments

  5. Anonymous
    2022-09-12T22:55:45.09+00:00

    A machines time is only as good as the source clock it synchronizes with. In order to achieve 1 ms of accuracy, you'll need GPS hardware or a time appliance on your network you reference as the master source clock. Using the default of time.windows.com, may not provide a stable and local time source. Additionally, as you get further away from the source clock, the network affects the accuracy. Having a master source clock in each data center is required for the best accuracy.
    https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-server-2016-improvements#solid-source-clock

    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.