LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* ntp
@ 2007-02-02 8:47 zhangxiliang
2007-02-02 9:10 ` ntp Matti Aarnio
2007-02-04 7:59 ` ntp David Schwartz
0 siblings, 2 replies; 5+ messages in thread
From: zhangxiliang @ 2007-02-02 8:47 UTC (permalink / raw)
To: Linux Kernel Mailing List
When i start the ntp service successful on server, the client must ntpdate
with the server after waiting a moment.
The moment may be 3~5 minutes, or it may be 10~15 minutes. I don't know why
it happens?
Regards
Zhang Xiliang
--------------------------------------------------
Zhang Xiliang
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
8/F., Civil Defense Building, No.189 Guangzhou Road,
Nanjing, 210029, China
TEL: +86+25-86630566-851
COINS: 79955-851
FAX: +86+25-83317685
MAIL:zhangxiliang@nanjing-fnst.com
--------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ntp
2007-02-02 8:47 ntp zhangxiliang
@ 2007-02-02 9:10 ` Matti Aarnio
2007-02-05 2:06 ` ntp zhangxiliang
2007-02-04 7:59 ` ntp David Schwartz
1 sibling, 1 reply; 5+ messages in thread
From: Matti Aarnio @ 2007-02-02 9:10 UTC (permalink / raw)
To: zhangxiliang; +Cc: Linux Kernel Mailing List
On Fri, Feb 02, 2007 at 04:47:26PM +0800, zhangxiliang wrote:
> When i start the ntp service successful on server, the client must
> ntpdate with the server after waiting a moment.
> The moment may be 3~5 minutes, or it may be 10~15 minutes. I don't
> know why it happens?
The ntp server takes several external clock comparisons to know its
local running environments (hosts) clock behaviour.
Before it knows that, it has no real knowledge of what the time is,
and it won't report anything out.
In my environments I have couple local machines (usually doing
something else too) assigned as network local NTP servers, and
all other machines refer to them.
> Regards
> Zhang Xiliang
> MAIL:zhangxiliang@nanjing-fnst.com
/Matti Aarnio
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: ntp
2007-02-02 8:47 ntp zhangxiliang
2007-02-02 9:10 ` ntp Matti Aarnio
@ 2007-02-04 7:59 ` David Schwartz
1 sibling, 0 replies; 5+ messages in thread
From: David Schwartz @ 2007-02-04 7:59 UTC (permalink / raw)
To: Linux Kernel Mailing List
> When i start the ntp service successful on server, the client must ntpdate
> with the server after waiting a moment.
> The moment may be 3~5 minutes, or it may be 10~15 minutes. I
> don't know why
> it happens?
Two clocks cannot be synchronized instantaneously. It takes time to compare
the two clocks and adjust so that they stay in sync. A client will not
accept a date from an NTP server whose clock is not synchronized -- why
should it?
Imagine this -- you have a clock you do not trust. You ask a clock you do
trust what time it is, and it tells you it is 10:00. A bit later, I ask you
what time it is. Your clock says 10:12. Can you trust that time? Your clock
may be fast, it may be slow. You don't know. Until you check the clock you
trust a few times and confirm both clocks are flowing at the same rate, you
cannot tell the client what time it is when it asks you.
DS
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ntp
2007-02-02 9:10 ` ntp Matti Aarnio
@ 2007-02-05 2:06 ` zhangxiliang
2007-02-05 8:22 ` ntp David Schwartz
0 siblings, 1 reply; 5+ messages in thread
From: zhangxiliang @ 2007-02-05 2:06 UTC (permalink / raw)
To: Matti Aarnio; +Cc: Linux Kernel Mailing List
Hello.
When I use the ntpd service, I see if I use the client attempt to connect
the server repeat before the server is ready, the ntpd on server can not be
ready all the times.
Sometimes the waiting time maybe very long.
----- Original Message -----
From: "Matti Aarnio" <matti.aarnio@zmailer.org>
To: "zhangxiliang" <zhangxiliang@nanjing-fnst.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Sent: Friday, February 02, 2007 5:10 PM
Subject: Re: ntp
> On Fri, Feb 02, 2007 at 04:47:26PM +0800, zhangxiliang wrote:
>> When i start the ntp service successful on server, the client must
>> ntpdate with the server after waiting a moment.
>> The moment may be 3~5 minutes, or it may be 10~15 minutes. I don't
>> know why it happens?
>
> The ntp server takes several external clock comparisons to know its
> local running environments (hosts) clock behaviour.
>
> Before it knows that, it has no real knowledge of what the time is,
> and it won't report anything out.
>
> In my environments I have couple local machines (usually doing
> something else too) assigned as network local NTP servers, and
> all other machines refer to them.
>
>
>> Regards
>> Zhang Xiliang
>> MAIL:zhangxiliang@nanjing-fnst.com
>
> /Matti Aarnio
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: ntp
2007-02-05 2:06 ` ntp zhangxiliang
@ 2007-02-05 8:22 ` David Schwartz
0 siblings, 0 replies; 5+ messages in thread
From: David Schwartz @ 2007-02-05 8:22 UTC (permalink / raw)
To: zhangxiliang; +Cc: Linux Kernel Mailing List
> Hello.
> When I use the ntpd service, I see if I use the client attempt to connect
> the server repeat before the server is ready, the ntpd on server
> can not be
> ready all the times.
>
> Sometimes the waiting time maybe very long.
Sounds like NTP is the wrong tool for the job. NTP is specifically designed
to synchronize clocks with high accuracy to timing sources traceable to UTC.
It requires stable servers in order to do that. There are any number of
other time settings tools that don't try to actually synchronize clocks.
DS
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-05 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02 8:47 ntp zhangxiliang
2007-02-02 9:10 ` ntp Matti Aarnio
2007-02-05 2:06 ` ntp zhangxiliang
2007-02-05 8:22 ` ntp David Schwartz
2007-02-04 7:59 ` ntp David Schwartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).