Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hello,I have a question about NTPD service in LAN use a host as time source two other host as client

32 views
Skip to first unread message

xiaoni...@gmail.com

unread,
Jun 12, 2013, 11:49:18 PM6/12/13
to
I‘v recently start a work about NTP,it's about a ntp sync in
winodws LAN,no GPS,only a host as server,two host as client.But Ican't sync
the time ,because the server clock and reftime is not the same.I use ntpq-c
rv to query the time,but I,v got a different reftime and clock,especially I
adjust the server time to a time before it .


I had run ntpq -c rv on CMD.it shows lisk:
reftime=d5639c52.13c08ef6 thu,jun 13 2012 9:18:10:077,pool=10,
clock=d5639c68.5717350d thu,jun 13 2012 9:18:10:340,state=4,
offset=0.000,frequency=0.000,jitter=0.000,noise=0.000,stability=0.000,tai=0
I know that the clock above shows system clock of host as time source,

but if the clock item up shows the current system time,when I changed the clock below on the right taskbar of my system to 9:01.set local host as time source,

run ntpq -c rv on cmd but the clock item didn't changed to 9:01,that's why?

xiaoni...@gmail.com

unread,
Jun 12, 2013, 11:51:33 PM6/12/13
to

xiaoni...@gmail.com

unread,
Jun 12, 2013, 11:52:49 PM6/12/13
to
在 2013年6月13日星期四UTC+8上午11时51分33秒,xiaoni...@gmail.com写道:
it didn't change to 9:10,but still 9:18

David Woolley

unread,
Jun 13, 2013, 3:08:39 AM6/13/13
to
xiaoni...@gmail.com wrote:
> I‘v recently start a work about NTP,it's about a ntp sync in
> winodws LAN,no GPS,only a host as server,two host as client.But Ican't sync
> the time ,because the server clock and reftime is not the same.I use ntpq-c
> rv to query the time,but I,v got a different reftime and clock,especially I
> adjust the server time to a time before it .

I'm having difficulty understanding the above. Try to use very simple
language, but try not to keep it short. With a longer description, one
can better guess the meaning of parts one doesn't understand. Also,
please include a description in your native language (I would guess that
is Chinese).

>
>
> I had run ntpq -c rv on CMD.it shows lisk:
> reftime=d5639c52.13c08ef6 thu,jun 13 2012 9:18:10:077,pool=10,
> clock=d5639c68.5717350d thu,jun 13 2012 9:18:10:340,state=4,
> offset=0.000,frequency=0.000,jitter=0.000,noise=0.000,stability=0.000,tai=0
> I know that the clock above shows system clock of host as time source,

You need the output from peers and the rv output for the associations of
each of your servers.

>
> but if the clock item up shows the current system time,when I changed the clock below on the right taskbar of my system to 9:01.set local host as time source,
>
> run ntpq -c rv on cmd but the clock item didn't changed to 9:01,that's why?

ntpd is not designed to correct sabotage. Real time servers do not
suddenly change the time, and andy fault that causes the client to do so
needs fixing before using ntpd. In particular, it will shut down if the
clock is wrong by more than a few minutes.


unruh

unread,
Jun 13, 2013, 1:47:17 PM6/13/13
to
On 2013-06-13, xiaoni...@gmail.com <xiaoni...@gmail.com> wrote:
> I?v recently start a work about NTP,it's about a ntp sync in
Why should it? ntpd does not simply change the time on the host to agree
with the server. It first checks for a long time to make sure that the
time from the server is really correct, and has not been corrupted (it
takes at least 8 measurement cycles to do that) only then will it jump
the clock (if it is out by more than .128 sec).

ntpd operates slowly.

>
0 new messages