请输入您要查询的百科知识:

 

词条 OpenNTPD
释义

  1. History

  2. Goals

  3. Example

  4. Criticism

  5. Leap Seconds

  6. References

  7. External links

{{use dmy dates|date=May 2016}}{{Infobox software
| name = OpenNTPD
| logo = OpenNTPD.jpg
| logo size = 300px
| logo caption = "Saving the world again... on time"
| logo alt =
| screenshot =
| caption =
| screenshot alt =
| collapsible =
| author =
| developer = The OpenBSD Project
| released =
| discontinued =
| latest release version = 6.1p1
| latest release date = {{Start date and age|df=yes|2017|07|13}}[1]
| latest preview version =
| latest preview date =
| programming language = C
| operating system = OpenBSD, FreeBSD, NetBSD, Linux, macOS, Solaris[2]
| repo = https://github.com/openntpd-portable
| platform =
| size =
| language =
| language count =
| language footnote =
| genre = Time synchronization
| license = ISC
| alexa =
| website = {{URL|www.openntpd.org}}
| standard = RFC 1305, RFC 5905
| AsOf = May 2016
}}

OpenNTPD is a Unix daemon implementing the Network Time Protocol to synchronize the local clock of a computer system with remote NTP servers. It is also able to act as an NTP server to NTP-compatible clients.

OpenNTPD is primarily developed by Henning Brauer as part of the OpenBSD project. Its design goals include being secure (non-exploitable), easy to configure, and accurate enough for most purposes. Its portable version, like that of OpenSSH,[3] is developed as a child project which adds the portability code to the OpenBSD version and releases it separately. The portable version is developed by Brent Cook.[4] {{As of|2016|May||alt=The most recent portable version was released in 2016}}. The project developers receive some funding from the OpenBSD Foundation.

History

The development of OpenNTPD was motivated by a combination of issues with current NTP daemons: difficult configuration, complicated and difficult to audit code, and unsuitable licensing.[5] OpenNTPD was designed to solve these problems and make time synchronization accessible to a wider userbase. After a period of development, OpenNTPD first appeared in OpenBSD 3.6.[6] Its first release was announced on 2 November 2004.[7]

Goals

OpenNTPD is an attempt by the OpenBSD team to produce an NTP daemon implementation that is secure, simple to audit, trivial to set up and administer, reasonably accurate, and light on system resources. As such, the design goals for OpenNTPD are: security, ease of use, and performance.[8] Security in OpenNTPD is achieved by robust validity check in the network input path, use of bounded buffer operations via strlcpy, and privilege separation to mitigate the effects of possible security bugs exploiting the daemon through privilege escalation. In order to simplify the use of NTP, OpenNTPD implements a smaller set of functionalities than those available in other NTP daemons, such as that provided by the Network Time Protocol Project. The objective is to provide enough features to satisfy typical usage at the risk of unsuitability for esoteric or niche requirements. OpenNTPD is configured through the configuration file, ntpd.conf.[9] A minimal number of options are offered: IP address or hostname on which OpenNTPD should listen, a timedelta sensor device to be used, and the set of servers from which the time will be synchronized. The accuracy of OpenNTPD is best-effort; the daemon attempts to be as accurate as possible but no specific accuracy is guaranteed.

Example

OpenNTPD gradually adjusts the system clock, as seen here in the output of OpenNTPD running on a Linux system:

$ grep ntpd /var/log/daemon.log | grep adjustingAug  4 03:32:20 nikolai ntpd[4784]: adjusting local clock by -1.162333sAug  4 03:36:08 nikolai ntpd[4784]: adjusting local clock by -1.023899sAug  4 03:40:02 nikolai ntpd[4784]: adjusting local clock by -0.902637sAug  4 03:43:43 nikolai ntpd[4784]: adjusting local clock by -0.789431sAug  4 03:47:35 nikolai ntpd[4784]: adjusting local clock by -0.679320sAug  4 03:50:45 nikolai ntpd[4784]: adjusting local clock by -0.605858sAug  4 03:53:31 nikolai ntpd[4784]: adjusting local clock by -0.529821s

Criticism

OpenNTPD has been criticized as being less accurate than the NTP daemon produced by Internet Software Consortium (ISC).[10] Internally, OpenNTPD does not maintain millisecond accuracy and can vary 50-200ms from "real" time because it omits a variety of algorithms that increase accuracy in favour of code simplicity. The OpenNTPD project acknowledged the criticism, but stated that the lack of microsecond precision was a design tradeoff that benefited simplicity and security.[10] The OpenNTPD design goals state the project's intent is to "[r]each a reasonable accuracy" without sacrificing "secure design for getting that last nanosecond or obscure edge case."[11]

In September 2004, shortly after the release of OpenNTPD 3.6, ISC NTP contributor Brad Knowles published an article entitled OpenNTPd Considered Harmful[12] criticizing various aspects of OpenNTPD's implementation of the NTP protocol, as well as the split development model that the project employs, which is also used in the development of OpenSSH and OpenBGPD. In December 2004, Darren Tucker, the principal developer on the portable branch of OpenNTPD, wrote a detailed response to Knowles, acknowledging some issues as valid, rejecting several others as unwarranted, and considering yet others as misleading.[13] Among the more serious issues raised by Knowles was that OpenNTPD servers claimed to be stratum 1 servers. The issue had however already been fixed by the time of Tucker's response. In March 2005, Knowles acknowledged Tucker's response, and stated that he was "going to do everything [he could] to work with [Tucker] to get any remaining issues resolved".[14] Additionally, the OpenBSD networking FAQ was expanded with a response to Knowles' initial criticism.[15]

Leap Seconds

OpenNTPD (and the OpenBSD kernel) ignore leap seconds[16]. Care should be taken when using OpenNTPD as a higher-stratum source for other ntpd servers, or with high-resolution time requirements that reference Coordinated Universal Time. Leap seconds are used in Coordinated Universal Time, but not International Atomic Time or Global Positioning System time signals.

The United States Naval Observatory and the Bureau International des Poids et Mesures recommends that systems not implementing leap seconds be referenced to International Atomic Time, or directly to GPS time signals.[17]

References

1. ^{{Cite web|url=http://www.openntpd.org/|accessdate=13 July 2017|title=OpenNTPD}}
2. ^{{Cite web| title=OpenNTPD Portable Release |url=http://www.openntpd.org/portable.html |publisher=OpenBSD |access-date=3 April 2016}}
3. ^{{Cite web|url=https://github.com/openssh/openssh-portable|title=openssh/openssh-portable|website=GitHub|access-date=13 May 2016}}
4. ^{{Cite web|url=https://github.com/openntpd-portable/openntpd-portable|title=openntpd-portable/openntpd-portable|website=GitHub|access-date=13 May 2016}}
5. ^{{cite web |url = http://www.openntpd.org/goals.html |title = OpenNTPD Goals |author = The OpenNTPD Project |website = The OpenNTPD Project |accessdate = 3 April 2016}}
6. ^{{cite web |url = http://www.openbsd.org/36.html |title = OpenBSD 3.6 |author = The OpenBSD Project |date = 1 November 2004 |website = The OpenBSD Project |accessdate = 3 April 2016}}
7. ^{{cite mailing list |url = http://marc.info/?l=openbsd-announce&m=109941451516444 |title = OpenNTPD 3.6 released |last = Brauer |first = Henning |mailinglist = openbsd-announce |date = 2 November 2004 |agency= MARC |accessdate = 7 June 2014}}
8. ^{{cite web |url = http://www.openbsd.org/papers/ntpd_sucon04/mgp00003.html |title = Page 3: OpenNTPD – Design Goals |last1 = Brauer |first1= Henning |date = September 2004 |website = The OpenBSD Project |accessdate = 16 September 2006}}
9. ^{{man|5|ntpd.conf|OpenBSD}}. 26 May 2006. Retrieved 16 September 2006.
10. ^{{cite web |url = http://www.openbsd.org/faq/faq6.html#OpenNTPDaccurate |title = FAQ 6.12.1: 'But OpenNTPD isn't as accurate as the ntp.org daemon!' |author = The OpenBSD Project |date = 21 August 2006 |website = The OpenBSD Project |accessdate = 16 September 2006}}
11. ^{{citation|author=OpenNTPD authors | year = 2004 | chapter= Goals | title= OpenNTPD | chapter-url = http://www.openntpd.org/goals.html | publisher = OpenNTPD project}}.
12. ^{{cite web |url = http://bradknowles.typepad.com/considered_harmful/2004/09/openntpd.html |archiveurl = https://web.archive.org/web/20050304032724/http://bradknowles.typepad.com/considered_harmful/2004/09/openntpd.html |archivedate = 4 March 2005 |title = OpenNTPd Considered Harmful |last1 = Knowles |first1 = Brad |date = 22 September 2004 |website = Considered Harmful |accessdate = 16 September 2006}}
13. ^{{cite web |url = http://www.advogato.org/person/dtucker/diary/52.html |title = Response to OpenNTPd Considered Harmful |last1 = Tucker |first1 = Darren |date = 12 December 2004 |website = Advogato: Blog for dtucker |accessdate = 16 September 2006}}
14. ^{{cite web |url = http://bradknowles.typepad.com/considered_harmful/2005/03/update_openntpd.html |archiveurl = https://web.archive.org/web/20050319050329/http://bradknowles.typepad.com/considered_harmful/2005/03/update_openntpd.html |archivedate = 19 March 2005 |title = Update: OpenNTPd... |last1 = Knowles |first1 = Brad |date = 12 March 2005 |website = Considered Harmful |accessdate = 16 September 2006}}
15. ^{{cite web |url = http://www.openbsd.org/faq/faq6.html#OpenNTPDharmful |title = FAQ: 6.12.2: 'Someone has claimed that OpenNTPD is 'harmful'!' |author = The OpenBSD Project |date = 21 August 2006 |website = The OpenBSD Project |accessdate = 16 September 2006}}
16. ^{{cite web | url=http://undeadly.org/cgi?action=article&sid=20150628132834 | title=Handling Leap Seconds the OpenBSD Way | date=28 June 2015 | work=OpenBSD Journal | accessdate=9 October 2018 }}
17. ^{{cite web | url=https://tycho.usno.navy.mil/leapsec.html | title=Leap Seconds | work=United States Naval Observatory | accessdate=27 February 2019 }}

External links

{{Portal|Free and open-source software}}
  • {{man|8|ntpd|OpenBSD}}
  • A paper explaining OpenNTPD by Henning Brauer
  • [https://www.openbsd.org/faq/faq8.html#OpenNTPD OpenBSD FAQ: Using OpenNTPD]
{{OpenBSD}}

4 : Network time-related software|BSD software|OpenBSD|OpenBSD software using the ISC license

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 21:03:02