Internet-Draft NTP Era Handling Guidance November 2026
Tokita Expires 1 June 2027 [Page]
Workgroup:
Individual Submission
Internet-Draft:
draft-tokita-ntp-era-handling-00
Published:
Intended Status:
Informational
Expires:
Author:
H. Tokita
Jikoku Mondai Kenkyujo (Time Issues Research Institute)

NTP Era Estimation and the 2036 Rollover: Guidance for Implementers and Operators

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/.

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.

▲

Table of Contents

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:

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:

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.

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.

  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:

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.

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:

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.

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, , <https://www.rfc-editor.org/info/rfc2119>.
[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, , <https://www.rfc-editor.org/info/rfc5905>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.

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, , <https://www.rfc-editor.org/info/rfc4330>.
[RFC8633]
Reilly, D., Stenn, H., and D. Sibold, "Network Time Protocol Best Current Practices", BCP 223, RFC 8633, DOI 10.17487/RFC8633, , <https://www.rfc-editor.org/info/rfc8633>.
[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", , <https://www.sidnlabs.nl/downloads/7M1bz1otGu0D7hqr0hRT2c/ccf3102d712af473d1600f25c915c849/Technical_Report_SIDN_Labs_Is_the_Client_Always_Right.pdf>.
[IETF127ROLLOVER]
Darley, T., "The 2036 Rollover in Practice (NTP WG, IETF 127)", , <https://datatracker.ietf.org/meeting/127/materials/slides-127-ntp-the-2036-rollover-in-practice-00>.
[TELSTRA2026]
Technology Audit Partners, "Findings Report on the July 8th Telstra Outage", , <https://www.telstra.com.au/content/dam/tcom/dynamic-media-projects/luke-campbell/TAP-Findings-for-Telstra-Outage.pdf>.

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)