Individual Submission H. Tokita Internet-Draft Jikoku Mondai Kenkyujo (Time Issues Research Institute) Intended status: Informational 28 November 2026 Expires: 1 June 2027 NTP Era Estimation and the 2036 Rollover: Guidance for Implementers and Operators draft-tokita-ntp-era-handling-00 Abstract The Network Time Protocol (NTP) timestamp format carries a 32-bit seconds field counted from 1 January 1900. This field wraps on 7 February 2036 at 06:28:16 UTC, at the end of "era 0". The era number is not exchanged in the protocol. RFC 5905 notes that eras "can be derived from external means, such as the filesystem or dedicated hardware", but it gives no procedure for deciding the era of a timestamp received on the wire, and the simpler convention that RFC 4330 described for this purpose was not carried forward. As a result, implementations differ: some estimate the era correctly, some assume era 0, and some reject the roughly 136-year offset that a rollover produces in the same way they would reject a fault or an attack. This document gives concrete guidance: a reference-based era estimation procedure for clients and servers, rules for the cold- start case (a device that boots after the rollover with an unset or default clock, which is common in embedded equipment without a battery-backed real-time clock), a test method based on serving era- boundary timestamps from a configurable virtual-clock NTP server, and operational guidance for inventories and monitoring. The guidance is addressed to the installed base of NTPv4 and SNTP implementations, which will remain in service across the 2036 rollover regardless of the progress of any successor protocol version. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Tokita Expires 1 June 2027 [Page 1] Internet-Draft NTP Era Handling Guidance November 2026 Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 1 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Requirements Language . . . . . . . . . . . . . . . . . . . . 4 3. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 4. Failure Modes . . . . . . . . . . . . . . . . . . . . . . . . 4 4.1. Era-0 Assumption . . . . . . . . . . . . . . . . . . . . 5 4.2. Panic Rejection . . . . . . . . . . . . . . . . . . . . . 5 4.3. Cold-Start Capture . . . . . . . . . . . . . . . . . . . 5 4.4. Archive Ambiguity . . . . . . . . . . . . . . . . . . . . 5 5. Era Estimation Procedure . . . . . . . . . . . . . . . . . . 5 6. Cold-Start Guidance . . . . . . . . . . . . . . . . . . . . . 6 7. Testing Guidance . . . . . . . . . . . . . . . . . . . . . . 7 8. Operational Guidance . . . . . . . . . . . . . . . . . . . . 8 9. Security Considerations . . . . . . . . . . . . . . . . . . . 8 10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 9 11. References . . . . . . . . . . . . . . . . . . . . . . . . . 9 11.1. Normative References . . . . . . . . . . . . . . . . . . 9 11.2. Informative References . . . . . . . . . . . . . . . . . 9 Appendix A. Acknowledgements . . . . . . . . . . . . . . . . . . 10 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 10 Tokita Expires 1 June 2027 [Page 2] Internet-Draft NTP Era Handling Guidance November 2026 1. Introduction NTP version 4 [RFC5905] represents time internally as an NTP date: a signed 64-bit count of seconds since 1 January 1900, plus a fraction. On the wire, only the low-order 32 bits of the seconds count are carried. Each span of 2^32 seconds (about 136.1 years) is an era. Era 0 ends, and era 1 begins, on 7 February 2036 at 06:28:16 UTC. Because the era is not carried in the packet, a receiver must supply it from somewhere else. RFC 5905 says only this: "Eras cannot be produced by NTP directly, nor is there need to do so. When necessary, they can be derived from external means, such as the filesystem or dedicated hardware." An earlier specification, [RFC4330] (obsoleted by [RFC5905]), described a convention based on the most significant bit of the seconds field (set: 1968-2036, clear: 2036-2104). That convention resolves the era only inside a fixed window and only for timestamps, not for a running clock; it was not carried into RFC 5905. Implementers of clients, servers, and embedded SNTP code therefore each invent their own rule, or none. Field experience shows the consequences are real and near-term: * A 2025 evaluation of (S)NTP clients [SIDN2025] tested six clients across the rollover. Five were era-aware. One was not: the OpenNTPD package shipped by Ubuntu, built from a 2017 portable release, computed an offset of about 136 years and refused to update its clock, treating the rollover as an implausible time step. The OpenBSD upstream had added era support in 2020; the portable release line caught up only in May 2026. Era behaviour therefore depends not only on the implementation but also on the vintage of the packaged release. * Rollover-class failures are not hypothetical in production networks. In July 2026, a GPS timing card in a carrier's timing chassis -- replaced that day and missing a critical firmware update -- reset and computed a date 1,024 weeks in the past; the NTP server using it adopted that date, and the error propagated through the carrier's timing hierarchy, contributing to a major outage [TELSTRA2026] [IETF127ROLLOVER]. The mechanism (a counter wrap in a time source) is the same class of failure as the NTP era rollover. Tokita Expires 1 June 2027 [Page 3] Internet-Draft NTP Era Handling Guidance November 2026 * The NTP Working Group has taken up the 2036 rollover of the installed base as an operational topic, including testing of legacy clients and the preparation of operational guidance [IETF127ROLLOVER]. This document is written as a contribution to that work. This document does not change the NTP protocol. It specifies how implementations and operators can handle the era with the protocol as it stands. 2. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 3. Terminology Era: the number of times the 32-bit NTP seconds field has wrapped since 1900. Era n covers the NTP seconds range [n * 2^32, (n+1) * 2^32). Reference time: any trustworthy approximation of the current time that is independent of the NTP exchange being interpreted: a battery- backed RTC, a last-known-good time persisted in non-volatile storage, a filesystem timestamp, a firmware build date, or an operator- configured earliest-plausible date. Some of these (a build date, an earliest-plausible date) are lower bounds rather than approximations; a lower bound still resolves the era, provided the true time is less than half an era later. Cold start: a boot in which the device has no usable reference time beyond a compiled-in or default value (for example, the Unix epoch, or a firmware build date), which is the normal case for embedded equipment without a battery-backed RTC. 4. Failure Modes Implementations that mishandle the era fail in a small number of characteristic ways. Naming them makes them testable. Tokita Expires 1 June 2027 [Page 4] Internet-Draft NTP Era Handling Guidance November 2026 4.1. Era-0 Assumption The implementation interprets the received 32-bit seconds as era 0 unconditionally. After the rollover, every synchronisation sets the clock to a date in 1900-2036, typically 1900 itself. This is the most common defect in simple SNTP code. 4.2. Panic Rejection The implementation computes the offset against its (correct) local clock, obtains roughly +/-136 years, and classifies it as a fault or an attack, refusing to step the clock. A client synchronised before the rollover and left running can end in this state at the rollover if its era handling and its sanity checks disagree. Sanity thresholds (such as the NTP panic threshold) are a security feature; the failure is that era reconstruction happens after, or not at all, instead of before the threshold check. 4.3. Cold-Start Capture A device boots after the rollover with a default clock (for example, 1970). It receives correct era-1 timestamps. With no reference time, era estimation has nothing to anchor to, and the device either adopts a 1900 date (era-0 assumption) or cannot start. Devices without battery-backed clocks, and devices whose stored state was wiped, are exposed to this mode regardless of how well they handle the rollover while running. 4.4. Archive Ambiguity Timestamps recorded before the rollover (log files, captured packets, archived measurements) cannot be re-interpreted later without knowing the era in which they were taken. This is a data problem, not a protocol problem, and it is permanent once the context is lost. 5. Era Estimation Procedure The era is resolvable whenever a reference time is available that is within half an era (about 68 years) of the true time. In practice almost any persistent trace of the device's own past satisfies this: a device manufactured, installed, or previously run after 1968 carries such a trace. Implementations: 1. MUST maintain the full NTP date internally (signed 64-bit seconds or equivalent) and MUST NOT reduce received timestamps to era 0. Tokita Expires 1 June 2027 [Page 5] Internet-Draft NTP Era Handling Guidance November 2026 2. MUST obtain a reference time before interpreting received timestamps, from the best available source, in roughly this order of preference: (a) a battery-backed RTC believed valid; (b) a last-known-good time persisted in non-volatile storage; (c) the newest timestamp in a filesystem the device itself has written; (d) a firmware or software build date; (e) an operator-configured earliest-plausible date. If no reference time can be obtained, the implementation MUST follow rule 6 instead of assuming an era. 3. MUST select, for a received 32-bit seconds value s, the era n that minimises the difference between (n * 2^32 + s) and the reference time, and MUST use that full date in offset and delay computation. 4. MUST perform era reconstruction before applying sanity or panic thresholds to the computed offset, so that a genuine rollover is not classified as an implausible step. 5. SHOULD persist the last-known-good time periodically and at shutdown, in non-volatile storage, so that rule (b) remains available across power loss, including power loss that spans the rollover. 6. If no reference time is available, or the reference time is known to be unreliable, the implementation SHOULD NOT silently assume era 0. It SHOULD signal the condition to the operator (log, management interface, or equivalent) and MAY proceed with the era implied by the most significant bit convention of RFC 4330 as a last resort, recording that it did so. 7. Servers MUST construct the full NTP date for the timestamps they send (including the reference, receive, and transmit timestamps) from a clock source that itself maintains the era, and transmit the low-order 32 bits. A server whose own clock was set from an era-ambiguous source propagates the error to every client; server operators SHOULD verify era handling on stratum-1 sources fed by GNSS or other counters that have their own rollover behaviour. Note on rule 5: persisting a "last known time" and an era counter in non-volatile memory, initialised at installation with human confirmation that the displayed time is correct, is sufficient to carry a device across the rollover and across power loss at the boundary. 6. Cold-Start Guidance For devices that can cold-start after the rollover: Tokita Expires 1 June 2027 [Page 6] Internet-Draft NTP Era Handling Guidance November 2026 * Firmware SHOULD carry its build date as a compiled-in earliest- plausible date, updated at every release. A device MUST NOT treat a received time earlier than its build date as correct without operator confirmation. * A device with no reference time at all SHOULD prefer to report "time unknown" over adopting a date more than half an era from any of its candidate sources. * Provisioning procedures SHOULD set the clock, or at least a reference time, at installation, and record that this was done. 7. Testing Guidance Era handling cannot be verified against production time sources before 2036; it has to be tested with simulated time. A configurable virtual-clock NTP server -- one that serves an operator chosen start time, offset, rate, and era over ordinary NTP/UDP -- is sufficient as the stimulus. In the cases below, the MUST and MUST NOT statements are pass criteria for the implementation under test. Implementations SHOULD be tested, at minimum, in these cases: 1. Running across the boundary: synchronise the client shortly before 7 February 2036 06:28:16 UTC and let it run across the rollover. The clock MUST remain correct and MUST NOT step by about 136 years in either direction. 2. Cold start after the boundary: boot the client with its clock at its default (or at a pre-2036 date) while the server serves era-1 time. The client MUST reach the correct date or report that it cannot, and MUST NOT settle on a 1900 date. 3. Start before the boundary with a stale reference: boot with a reference time in era 0 while the server serves era 0. Normal operation MUST result. (Guards against era logic that breaks the common case.) 4. Archived data: record timestamps before the boundary and re- interpret them after it, confirming the era context is stored with the data or recoverable. Test results SHOULD be published per implementation and version: behaviour varies across releases of the same client, and a result for one version is not evidence about another. Tokita Expires 1 June 2027 [Page 7] Internet-Draft NTP Era Handling Guidance November 2026 8. Operational Guidance General NTP operational practice is collected in [RFC8633]; the items below are specific to era handling. Operators of networks with NTP- dependent equipment: * Include NTP and SNTP clients in the same inventory used for year-2038 assessment: make, model, firmware version, and whether the vendor states era handling. Equipment installed today will still be in service in 2036. * Monitor for the signatures of era failure: clocks reporting dates in 1900-1936 or 1970 after a restart, offsets of about 136 years, and synchronisation sources disagreeing by one era. * Treat GNSS-fed stratum-1 sources as part of the same inventory: their own counters (for example, the GPS week number) roll over on their own schedules, and a wrong date accepted at the top of the hierarchy propagates to every client below it. * Where a device cannot be updated and cannot estimate the era, mitigation is external to the device: serve it from a dedicated NTP source that presents time in the era the device assumes, on an isolated segment, and correct its timestamps downstream (for example, in log collection). Such arrangements SHOULD be recorded as known limitations with an owner and a review date. 9. Security Considerations Era ambiguity is a security-relevant property, not only a reliability one. An unauthenticated time source can push a client across an era boundary today, without waiting for 2036: a server (or a spoofer) that sends timestamps one era away induces the same failure modes described in this document. Network Time Security (NTS) authenticates the source, which narrows this surface, but it does not resolve era ambiguity for a client that has no reference time: an authenticated server in era 1 and a cold-started client still have to agree on which era the wire value belongs to. Conversely, sanity thresholds that reject large steps are a defence against time-shifting attacks. This document does not recommend weakening them. It recommends ordering: reconstruct the era first, then apply the threshold to the reconstructed offset. A rollover then appears as the small offset it is, and a genuine one-era attack still appears as a 136-year step and is rejected. Tokita Expires 1 June 2027 [Page 8] Internet-Draft NTP Era Handling Guidance November 2026 Persisted reference times (Section 5, rule 5) become part of the trusted state of the device. Implementations SHOULD protect them with the same care as other configuration: an attacker who can move the stored reference by more than half an era can capture the era estimation of an otherwise correct client. 10. IANA Considerations This document has no IANA actions. 11. References 11.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5905] Mills, D., Martin, J., Ed., Burbank, J., and W. Kasch, "Network Time Protocol Version 4: Protocol and Algorithms Specification", RFC 5905, DOI 10.17487/RFC5905, June 2010, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . 11.2. Informative References [RFC4330] Mills, D., "Simple Network Time Protocol (SNTP) Version 4 for IPv4, IPv6 and OSI", RFC 4330, DOI 10.17487/RFC4330, January 2006, . [RFC8633] Reilly, D., Stenn, H., and D. Sibold, "Network Time Protocol Best Current Practices", BCP 223, RFC 8633, DOI 10.17487/RFC8633, July 2019, . [SIDN2025] Konjerla, S., Moura, G. M., Dittrich, T., Smaragdakis, G., and SIDN Labs / TU Delft / Tweede Golf, "Is the Client Always Right? A Security Evaluation of (S)NTP Clients", October 2025, . Tokita Expires 1 June 2027 [Page 9] Internet-Draft NTP Era Handling Guidance November 2026 [IETF127ROLLOVER] Darley, T., "The 2036 Rollover in Practice (NTP WG, IETF 127)", November 2026, . [TELSTRA2026] Technology Audit Partners, "Findings Report on the July 8th Telstra Outage", August 2026, . Appendix A. Acknowledgements The era-counter mechanism referenced in Section 5 was developed and tested by the Jikoku Mondai Kenkyujo as part of its year 2036/2038 inspection programme, including verification on 32-bit ARM hardware and in a full-system emulated 32-bit environment. Author's Address H. Tokita Jikoku Mondai Kenkyujo (Time Issues Research Institute) Email: tokita@2038.jp URI: https://2038.jp/ Tokita Expires 1 June 2027 [Page 10]