rfc-5907

Definitions of Managed Objects for Network Time Protocol Version 4 (NTPv4)

H. Gerstung, C. Elliott, B. Haberman (Editor)
date2010-06 streamIETF areaint wgntp statusPROPOSED STANDARD pages26 canonicalhttps://www.rfc-editor.org/rfc/rfc5907 doi10.17487/RFC5907 errataview
The Network Time Protocol (NTP) is used in networks of all types and sizes for time synchronization of servers, workstations, and other networked equipment. As time synchronization is more and more a mission-critical service, standardized means for monitoring and management of this subsystem of a networked host are required to allow operators of such a service to set up a monitoring system that is platform- and vendor-independent. This document provides a standardized collection of data objects for monitoring the NTP entity of such a network participant and it is part of the NTP version 4 standardization effort. [STANDARDS-TRACK]

Extracted elements (24)

design-rationale §4

Some values are provided in both numeric and human-readable (DisplayString) format to simplify representation of status information; where the two representations differ, the numeric representation takes precedence.

ntp, snmp

design-rationale §5

The NtpDateTime textual convention explicitly prohibits use for setting the time of the node querying it, because NTP (or at least SNTP) should be used for that purpose rather than SNMP polling.

ntp, snmp

interoperability-note §5

ntpAssocAddressType supports IPv4, IPv6, IPv4 with zone index (ipv4z), and IPv6 with zone index (ipv6z), enabling the MIB to represent associations over both address families including scoped addresses.

ntp, snmp, ip

normative-requirement §7 RECOMMENDED

Deployment of SNMP versions prior to SNMPv3 is NOT RECOMMENDED. It is RECOMMENDED to deploy SNMPv3 and to enable cryptographic security (authentication and privacy).

ntp, snmp, security

normative-requirement §7 RECOMMENDED

It is RECOMMENDED that implementers consider the security features provided by the SNMPv3 framework, including full support for SNMPv3 cryptographic mechanisms for authentication and privacy.

ntp, snmp, security, crypto

protocol-element §5

Eight SNMP notifications are defined: ntpEntNotifModeChange, ntpEntNotifStratumChange, ntpEntNotifSyspeerChanged, ntpEntNotifAddAssociation, ntpEntNotifRemoveAssociation, ntpEntNotifConfigChanged, ntpEntNotifLeapSecondAnnounced, and ntpEntNotifHeartbeat.

ntp, snmp

protocol-element §5

ntpAssociationStatisticsTable provides per-association packet counters: ntpAssocStatInPkts, ntpAssocStatOutPkts, and ntpAssocStatProtocolError, indexed by ntpAssocId.

ntp, snmp

protocol-element §5

ntpAssociationTable provides per-association status including name, refclock driver ID, IPv4/IPv6 address (with optional zone index), time offset, stratum, jitter, delay, and root dispersion.

ntp, snmp

protocol-element §5

ntpEntHeartbeatInterval (default 60 seconds, read-write) controls the interval for heartbeat notifications. If set to 0 with the heartbeat bit enabled, exactly one heartbeat is sent. The value is stored persistently across restarts.

ntp, snmp

protocol-element §5

ntpEntNotifBits is a read-write BITS object that enables or disables each of eight SNMP notifications: entNotifModeChange(1), entNotifStratumChange(2), entNotifSyspeerChanged(3), entNotifAddAssociation(4), entNotifRemoveAssociation(5), entNotifConfigChanged(6), entNotifLeapSecondAnnounced(7), entNotifHeartbeat(8). Stored persistently.

ntp, snmp

protocol-element §5

ntpEntObjectsGroup1 (mandatory) includes: ntpEntSoftwareName, ntpEntSoftwareVersion, ntpEntSoftwareVendor, ntpEntSystemType, ntpEntStatusEntityUptime, ntpEntStatusDateTime, ntpAssocName, ntpAssocRefId, ntpAssocAddressType, ntpAssocAddress.

ntp, snmp

protocol-element §5

ntpEntStatPktModeTable tracks packets sent and received broken down by NTP packet mode: symetricactive(1), symetricpassive(2), client(3), server(4), broadcastserver(5), broadcastclient(6).

ntp, snmp

protocol-element §5

ntpEntStatusCurrentMode reports the NTP entity's operational mode as one of: notRunning(1), notSynchronized(2), noneConfigured(3), syncToLocal(4), syncToRefclock(5), syncToRemoteServer(6), or unknown(99).

ntp, snmp

protocol-element §5

ntpEntStatusDateTime provides the current NTP date/time on the device in 128-bit NTP format; it is intended for timestamping and correlating events, not for setting the time of the querying node.

ntp, snmp

protocol-element §5

ntpEntStatusLeapSecond and ntpEntStatusLeapSecDirection provide the date and direction (+1/-1) of the next announced leap second; both are 0 if no leap second is announced.

ntp, snmp

protocol-element §5

ntpEntStatusStratum reports the NTP entity's own stratum value, which should be the syspeer's stratum plus 1, or 16 if no syspeer is available.

ntp, snmp

protocol-element §4

The NTPv4-MIB is organized into six groups: ntpEntInfo (general server information), ntpEntStatus (current NTP status), ntpAssociation (mobilized associations), ntpEntControl (control objects), ntpEntNotifObjects (notification payload objects), and SNMP notification definitions.

ntp, snmp

protocol-element §5

Two compliance levels are defined: ntpEntNTPCompliance (mandatory: ntpEntObjectsGroup1) for full NTP entities, and ntpEntSNTPCompliance (mandatory: ntpEntObjectsGroup1; optional: ntpEntObjectsGroup2 and ntpEntNotifGroup) for SNTP entities.

ntp, snmp

registry §6

The NTPv4 MIB module is assigned the OBJECT IDENTIFIER { mib-2 197 } (descriptor: ntpSnmp) in the SMI Numbers registry.

ntp, registry, snmp

security-consideration §7

ntpEntHeartbeatInterval is a read-write object that can be abused to generate notifications at up to 1 per second (if set to 1) or used to flood the management system. Access to SET operations on this object must be protected.

ntp, snmp, security

security-consideration §7

ntpEntNotifBits can be set by an attacker to suppress notifications for critical events (stratum changes, syspeer loss), delaying or eliminating operator awareness of NTP failures.

ntp, snmp, security

security-consideration §7

ntpEntSoftwareName, ntpEntSoftwareVersion, ntpEntSoftwareVendor, and ntpEntSystemType expose software and platform identity that can aid an attacker in identifying vulnerabilities; GET and NOTIFY access to these objects should be controlled and values encrypted in transit.

ntp, snmp, security

wire-format §5

NtpDateTime is a 128-bit NTP date format encoded as OCTET STRING of SIZE 0 or 16. A zero-length string indicates time is not synchronized. It must not be used to set the time of the querying node.

ntp, snmp

wire-format §5

NtpStratum is a TEXTUAL-CONVENTION encoded as Unsigned32 in the range 1..16, where 16 represents 'no stratum' (unsynchronized).

ntp, snmp