use of peer/server in ntp.conf

use of peer/server in ntp.conf

Post by ryandr » Fri, 05 Sep 2003 05:40:32


If a stratum-2 client tries to synchronise with a stratum-1 server
with the following line in its configuration file:

peer ntp2.usno.navy.mil

does anything happen, since it should be using the keyword server
rather than peer?
 
 
 

use of peer/server in ntp.conf

Post by roy » Fri, 05 Sep 2003 12:08:26


Try reading the Association Management page of the official
documentation for help with server and peer usage.


roy
--
The suespammers.org mail server is located in California. Please do
not send unsolicited bulk e-mail or unsolicited commercial e-mail to
my suespammers.org address or any of my other addresses. These are my
opinions, not necessarily my employer's.

 
 
 

use of peer/server in ntp.conf

Post by David L. M » Fri, 05 Sep 2003 12:13:46

Drk,

Absolutely. You might want to search the configuration page from the
ntpd page and note the difference. To be more clear with other NTP
documentation, a server keyword mobilizes a client/server assocation,
while a peer keyword mobilizes a symmetric active/passive association.

Dave
 
 
 

use of peer/server in ntp.conf

Post by David J Ta » Fri, 05 Sep 2003 17:08:04

> > If a stratum-2 client tries to synchronise with a stratum-1 server

I do wish someone would give a straight answer - there are times when
"read the documentation" isn't a particularly helpful reply! If I knew I
would tell you, but I am as interested in the answer as you are....

Cheers,
David
 
 
 

use of peer/server in ntp.conf

Post by Ulrich Win » Fri, 05 Sep 2003 22:20:44

"David J Taylor" < XXXX@XXXXX.COM > writes:


I think "peer" (as compared to "server") not only pulls the time, but
also pushes it. What the receiving party does with that time message
is another question (the usual algorithms apply). I think that's the
basics...

Regards,
Ulrich
 
 
 

use of peer/server in ntp.conf

Post by David Magd » Sat, 06 Sep 2003 05:40:41

"David J Taylor" < XXXX@XXXXX.COM > writes:


It is a valid reply because the documentation is there to provide the
answers. If you says, "I looked at the docs and couldn't find the
answer", or "I looked and didn't understand" that's one thing. To not
bother looking (which many people (not necessarilly you) do) is lazy.

From ntp.conf(5) on my FreeBSD system:

[...]
peer For type s addresses (only), this command mobilizes a
persistent symmetric-active mode association with the
specified remote peer. In this mode the local clock can
be synchronized to the remote peer or the remote peer
can be synchronized to the local clock. This is useful
in a network of servers where, depending on various
failure scenarios, either the local or remote peer may
be the better source of time. This command should NOT
be used for type b, m or r addresses.
[...]

--
David Magda <dmagda at ee.ryerson.ca>, http://www.yqcomputer.com/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
 
 
 

use of peer/server in ntp.conf

Post by David J Ta » Sat, 06 Sep 2003 07:46:19

> From ntp.conf(5) on my FreeBSD system:

David,

Thanks for that. Actually, it don't believe it answers the original
poster's question which, as I recall: What happens if I accidentally try
to "peer" with e.g. nist.gov instead of making them a "server"?

Cheers,
David
 
 
 

use of peer/server in ntp.conf

Post by ryandr » Sun, 07 Sep 2003 21:32:51

If a stratum-2 peer(A) lists a stratum-2 server(B) in its config file
as follows:

peer B

Can B use information from A for its own synchronisation purposes
without having A listed in its config file?
 
 
 

use of peer/server in ntp.conf

Post by David L. M » Mon, 08 Sep 2003 05:05:19

Drk,

The answer depends on several factors as revealed in the specification
rfc-1305. They include whether A or B is synchronized to a stratum-1
source and whether a synchronization loop would form.

As for your earlier question, I have duplicated your configuration with
two stratum-2 peers A and B (symmetric active mode) and both configured
for a stratum-1 server (client/server mode). Both peers are operating as
expected with low dispersion. See ntpq with bridgeport.udel.edu and
baldwin.udel.edu. This test configuration might be withdrawn without
notice.

Dave



...
 
 
 

use of peer/server in ntp.conf

Post by Ulrich Win » Wed, 10 Sep 2003 23:35:22


XXXX@XXXXX.COM (Drk Ryan) writes:


Didn't you or somebody else ask the same thing with little different
words last week? The answer is: yes, it can, but likely won't. It's a
lot like receiving a broadcast time package. If it seems good it will
be used.

Regards,
Ulrich