Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5987965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:53:28+00:00 2026-05-22T22:53:28+00:00

I am looking for quantitative estimates on clock offsets between VMs on Windows Azure

  • 0

I am looking for quantitative estimates on clock offsets between VMs on Windows Azure – assuming that all VMs are hosted in the same datacenter. I am guesstimating that average clock offset between one VM and another is below 10 seconds, but I am not even sure it’s guaranteed property of the Azure cloud.

Has anybody some quantitative measurements on that matter?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:53:28+00:00Added an answer on May 22, 2026 at 10:53 pm

    I have finally settled to do some experiments on my own.

    A few facts concerning the experiment protocol:

    • Instead of looking for offset to an reference clock, I have simply checked clock differences between Azure VMs and the Azure Storage.
    • Clock time of the Azure Storage has been retrieved using the HTTP hack pasted below.
    • Measurements have been done within the North Europe datacenter of Azure with 250 small VMs.
    • Latency between storage and VMs measured with Stopwatch was always lower than 1ms for minimalistic unauthenticated requests (basically HTTP requests were coming back with 400 errors, but still with Date: available in the HTTP headers).

    Results:

    • About 50% of the VMs have a clock offset to the storage greater than 1s.
    • About 5% of the VMs have a clock offset to the storage greater than 2s.
    • Less than 1% observations for clock offsets close 3s.
    • A handfew outliers close to 4s.
    • The clock offset between a single VM and the storage typically vary of +1/-1s from one request to the next.

    So technically, we are not too far from the 2s tolerance target, although for intra-data-center sync, you don’t have to push the experiment far to observe close to 4s offset. If we assume a normal (aka Gaussian) distribution for the clock offsets, then I would say that relying on any clock threshold lower than 6s is bound to lead to scheduling issues.

    /// <summary>
    /// Substitute for proper NTP (Network Time Protocol) 
    /// when UDP is not available, as on Windows Azure.
    /// </summary>
    public class HttpTimeChecker
    {
        public static DateTime GetUtcNetworkTime(string server)
        {
            // HACK: we can't use WebClient here, because we get a faulty HTTP response
            // We don't care about HTTP error, the only thing that matter is the presence
            // of the 'Date:' HTTP header
            var tc = new TcpClient();
            tc.Connect(server, 80);
    
            string response;
            using (var ns = tc.GetStream())
            {
                var sw = new StreamWriter(ns);
                var sr = new StreamReader(ns);
    
                string req = "";
                req += "GET / HTTP/1.0\n";
                req += "Host: " + server + "\n";
                req += "\n";
    
                sw.Write(req);
                sw.Flush();
    
                response = sr.ReadToEnd();
            }
    
            foreach(var line in response.Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries))
            {
                if(line.StartsWith("Date: "))
                {
                    return DateTime.Parse(line.Substring(6)).ToUniversalTime();
                }
            }
    
            throw new ArgumentException("No date to be retrieved among HTTP headers.", "server");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking for a Linux application (or Firefox extension) that will allow me to scrape
Looking for a good rss/feed reader for windows or if there are any good
looking for windows software who can draw a Use Case diagram like yuml.me anyone
Looking at all the examples of Operational Transformation Frameworks out there, they all seem
Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is
Looking at the list of annotations in FindBugs 2.0 , I see that a
Looking for web service that download a webpage (we'll provide the URL), normalize it
Looking to pull the category ID of a specific page in WordPress that is
Looking through the getting started guide for scopes, it seems to imply that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.