Ntpd

Ntpd

The ntpd (Network Time Protocol daemon) program is an operating system daemon which sets and maintains the system time of day in synchronism with time servers (Mills).

Description

The ntpd program is an operating system daemon which sets and maintains the system time of day in synchronism with Internet standard time servers. It is a complete implementation of the Network Time Protocol (NTP) version 4, but also retains compatibility with version 3, as defined by RFC-1305, and version 1 and 2, as defined by RFC-1059 and RFC-1119, respectively. ntpd does most computations in 64-bit floating point arithmetic and does relatively clumsy 64-bit fixed point operations only when necessary to preserve the ultimate precision, about 232 picoseconds. While the ultimate precision is not achievable with ordinary workstations and networks of today, it may be required with future gigahertz CPU clocks and gigabit LANs. The Solaris version of ntpd is named xntpd.

Ntpd uses a single configuration file to run the daemon in server and/or client modes. The configuration file is usually named ntpd.conf and is located under the /etc directory. Other important files include the driftfile, which is used by ntpd to correct for hardware clock skew in the absence of a connection to a more accurate upstream time server.

Debugging

If ntpd does not work (but is correctly configured) assuming an RFC-compliant implementation, your clock may have drifted too far. If you view "/var/log/ntp.log", you may see an entry similar to: 18 Aug 21:04:40 ntpd [7220] : time correction of 1738 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time. This sanity check can be overridden by adding the command-line switch "-g" when starting ntpd. ntpd -g

To manually force the time to synchronize, use: ntpd -qor on older systems ntpdate ntpserver

Note that switching time settings by large amounts may cause undefined behavior in long-running or complex processes, and is not advised for servers.

The ntpq command can be used to connect to a ntpd daemon and query it for various parameters. To show what peers are available and synchronization status try:

ntpq -p localhost

Implementations

* [http://www.ntp.org The NTP Reference Implementaion] from [http://www.ntp.org The NTP Project] at the University of Delaware
* [http://www.openntpd.org/ OpenNTP] – A [http://www.openntpd.org/portable.html portable Simple NTPD] implementation by the OpenBSD group
* [http://www.dragonflybsd.org/cvsweb/src/usr.sbin/dntpd/ dntpd] – A simple [http://leaf.dragonflybsd.org/cgi/web-man?command=dntpd&section=8 client ntpd] in DragonFly BSD
* [http://www.meinberg.de/english/sw/ntp.htm Windows Port of NTPD] – Free Windows port of [http://www.ntp.org The NTP Reference Implementaion] from http://www.ntp.org with an easy-to-use installer

ntpd guides

* [http://www.eecis.udel.edu/~mills/ntp/html/index.html Official NTP Documentation]
* [http://support.ntp.org/support Community Supported NTP Documentation]
* [http://support.ntp.org/dev NTP Development Collaboration Tool]
* [http://lists.ntp.org NTP Mailing Lists]
* [http://archive.ntp.org NTP Software and Documentation Archive]
* [http://doc.ntp.org NTP Documentation Archive] for stable releases
* [http://www.openntpd.org/manual.html OpenNTP manual pages]
* [http://gentoo-wiki.com/HOWTO_NTP Gentoo Wiki]
* [http://users.dslextreme.com/~craig.lawson/linux_notes/clock.html Generic Linux notes]

References

* Mills, D. L. (2005) "ntpd - Network Time Protocol (NTP) daemon", The University of Delaware, USA. 2005. Available from http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html (Date Accessed: 19 August 2005)


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • NTPD — ntpd, acronyme de Network Time Protocol Daemon, est un daemon qui définit et maintient l heure sur un système d exploitation par synchronisation avec les serveurs dédiés à donner cette information. Sommaire 1 Description 2 Debugging 3… …   Wikipédia en Français

  • Ntpd — ntpd, acronyme de Network Time Protocol Daemon, est un daemon qui définit et maintient l heure sur un système d exploitation par synchronisation avec les serveurs dédiés à donner cette information. Sommaire 1 Description 2 Debugging 3… …   Wikipédia en Français

  • ntpd — ntpd, sigle de Network Time Protocol Daemon, est un daemon qui définit et maintient l heure sur un système d exploitation par synchronisation avec les serveurs dédiés à donner cette information. Sommaire 1 Description 2 Debugging 3… …   Wikipédia en Français

  • Ntpd — (Network Time Protocol daemon) программа демон, который устанавливает и обслуживает системное время, используется для синхронизации с другими серверами времени. Описание ntpd демон, который используется для обслуживания и синхронизации системного …   Википедия

  • ntpd — The Network Time Protocol daemon (ntpd) is an operating system daemon program that maintains the system time in synchronization with time servers using the Network Time Protocol (NTP). Contents 1 Description 2 Debugging 3 Implementations …   Wikipedia

  • Network Time Protocol Daemon — ntpd ntpd, acronyme de Network Time Protocol Daemon, est un daemon qui définit et maintient l heure sur un système d exploitation par synchronisation avec les serveurs dédiés à donner cette information. Sommaire 1 Description 2 Debugging 3… …   Wikipédia en Français

  • OpenNTPD — Saving the world again... on time Developer(s) The OpenBSD Project Stable release 4.6 / November 1, 2009 …   Wikipedia

  • Network Time Protocol — NTP (Network Time Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Synchronisierung von Uhren in Computersystemen Ports: 123/UDP NTP im TCP/IP‑Protokollstapel: Anwendung NTP Transport …   Deutsch Wikipedia

  • Network Time Protocol — The Network Time Protocol (NTP) is a protocol and software implementation for synchronizing the clocks of computer systems over packet switched, variable latency data networks. Originally designed by David L. Mills of the University of Delaware… …   Wikipedia

  • Internetzeitserver — NTP (Network Time Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Synchronisierung von Uhren in Computersystemen Ports: 123/UDP NTP im TCP/IP‑Protokollstapel: Anwendung NTP Transport UDP …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”