Questions tagged [ntp]

Network Time Protocol is an application level network protocol that is used for synchronizing clocks of computer systems. The term also refers to the reference software implementation.

The Network Time Protocol version 4 is defined in RFC 5905, RFC 5906, RFC 5907, and RFC 5908. NTPv4 is also suitable for the Internet Protocol version 6 address family.

The reference software implementation is provided by the NTP Public Services Project.

http://en.wikipedia.org/wiki/Network_Time_Protocol

693 questions
6
votes
5 answers

how validate NTP time synchronization

I need create an application that validates NTP time synchronization on each machine. In other words, I need to determine if each machine is my LAN is synched to a common time server (stratum). So, far I came up with two ways. 1) Have the NTP…
user1316216
  • 61
  • 1
  • 1
  • 2
5
votes
1 answer

use of ntp service

I'm developing an app that needs to control real time in any location on the Earth and do something when time comes. At the same time not to rely on system time because user can easily change it. Does anybody have an experience of implementing…
Maxim
  • 4,152
  • 8
  • 50
  • 77
5
votes
2 answers

Convert date retrieved from ntp server with python

Is it possible to convert time retrieved from NTP server (with python script) in this format "Wed Jul 13 00:17:58 CEST 2011" to this format "2011-07-13 00:18:10" client = socket(AF_INET, SOCK_DGRAM) data = '\x1b' + 47 * '\0' …
rapidshell
  • 53
  • 1
  • 3
5
votes
2 answers

Convert 64bit timestamp to a readable value

In my dataset I have two timestamp columns. The first is microseconds since application was started - e.g., 1400805323. The second is described as 64bit timestamp which I'm hoping will indicate clock time, using NTP format of number of seconds from…
Steve Trawley
  • 147
  • 1
  • 2
  • 6
5
votes
4 answers

synchronize clocks over internet

I am sending real-time-critical data over the internet between two dedicated computers, using my own protocol. There is, of course, latency involved. For debugging and optimization, I like to have both computers use the same timebase. I.e, I need to…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
5
votes
0 answers

Which system calls made by NTP affect the CLOCK_MONOTONIC?

I have been looking for an answer to this one but no clear documentation yet. The CLOCK_MONOTONIC from clock_gettime man page says that it's affected by incremental adjustments performed by adjtime and NTP CLOCK_MONOTONIC Clock that cannot be…
mittal
  • 915
  • 10
  • 29
5
votes
1 answer

How reliable is using TrueTime for getting device independent time?

I recently found a library called TrueTime for getting the time which does not depend on device time. It uses NTP to get the time. https://github.com/instacart/TrueTime.swift As this library is primarily built for swift 3. But I found a post in…
TechChain
  • 8,404
  • 29
  • 103
  • 228
5
votes
2 answers

Determine NTP-regulated system clock accuracy

I can query a local NTP daemon using ntpq to get the system variables. For example: $ ntpq -c rv associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync, version="ntpd 4.2.6p5@1.2349 Fri Nov 7 20:40:06 UTC 2014…
awy
  • 5,271
  • 5
  • 23
  • 28
5
votes
2 answers

How can I sync the system clocks of two or more android phones?

I am trying to develop an app which allows other android phones to act as speakers and thus creating a party like thing. The app would be similar to the group play feature provided by Samsung. To implement this feature, I decided to perform the…
5
votes
3 answers

convert NTP time to Human-readable time

i have managed to make a NTP request and retrieve the server time from it's NTP response. i want to convert this number to a Human-readable time, writing in C++. can some one help me ? as example you can look…
Oded
  • 664
  • 2
  • 9
  • 30
5
votes
2 answers

How to ntp server time down to millisecond precision using Python ntplib?

I am creating a python module that will output the time from a selection of NTP Pool servers to millisecond precision as an exercise in showing how server timestamps vary. Thus far I have been able to print out the origin server timestamp to within…
eoghan.nolan
  • 53
  • 1
  • 4
5
votes
3 answers

How to get real time for a game

i am working with Java and i am making a game. In this game the real time is very essensial part. For this reason i am trying to get the real time using Ntp. What i found in the web is this code. import java.net.InetAddress; import…
Athorivos
  • 63
  • 6
5
votes
1 answer

What does the '\x1b' + 47 * '\0' message sent to an NTP server mean?

I am working on an NTP Client. A few other threads indicate that the a message containing "\x1b' + 47 * '\0" is sent to the NTP server, but none of these threads give an explanation about what this message actually means or why it is sent. I've…
utterfool
  • 51
  • 4
5
votes
1 answer

Will a NTP client work against a SNTP server?

SNTP is a simplification of the full NTP specification. I'd like to use a full NTP client against the internal SNTP server incorporated in Windows XP. Will that work or is a full NTP server required for the NTP client to work?
Jorge Córdoba
  • 51,063
  • 11
  • 80
  • 130
5
votes
1 answer

NTP round-trip delay

How does NTP, compute the round-trip delay time and the offset.
user2771205