Skip to content

NTP

netverdict models NTP as a deterministic UDP/123 service for lab time-sync scenarios. It tracks configured servers and peers, source selection, stratum, clock offset, reachability, and show output. Authentication and access-groups are accepted but have no effect.

AreaLevelNotes
NTP client/server associationSupportedClients poll configured servers; a sync needs a reachable, synchronised master.
NTP peer associationSupportedSynchronized peers can serve time to each other.
Stratum solverSupportedMulti-tier stratum cascades and unsynchronized state are modelled.
Best source selectionSupportedLower stratum wins; prefer wins among equal-stratum reachable sources.
Source interfacePartialntp source is stored and shown; it does not change reachability. Per-server source is not read.
AuthenticationNo effectntp authenticate, authentication-key, trusted-key are accepted and change nothing.
Access groupsNo effectntp access-group is carried with its reason and written back; the server answers any client that reaches it. Interface ACLs on UDP/123 still block NTP.
Wire fidelityPartialClient/server packets are on the wire in a capture (Packet Lens), decoded by Wireshark. Stratum 16 and the leap indicator mark an unsynchronised server. Timestamps are simulation time.
StandardCoverageNotes
RFC 5905Behaviour modelClient/server and peer synchronization, stratum, offset, reachability.
Cisco NTP auth/access syntaxNo effectAccepted; not modelled.
FeatureStatusNotes
ntp server <ip>SupportedAdds a configured source.
ntp peer <ip>SupportedAdds a peer association.
preferSupportedPreferred source wins among equal-stratum reachable sources.
version <1-4>No effectAccepted on the line; not stored.
key <id>No effectAccepted on the line; authentication is not modelled.
source <iface>Not modelledPer-association source is not read.
ntp source <iface>PartialStored and shown; does not change the path.
ntp master <stratum>SupportedLocal master source.
ntp authenticateNo effectAccepted; not enforced.
ntp authentication-key <id> md5 <secret>No effectAccepted; not enforced.
ntp trusted-key <id>No effectAccepted; not enforced.
ntp access-group serve <acl>No effectCarried and written back; not enforced.
ntp update-calendarNot modelledNot read.
ntp loggingNot modelledNot read.
Unsynchronised serverSupportedA server at stratum 16 answers but cannot be a time source.
Clock offsetSupportedA master can state an offset; a client measures the difference.
CommandIOS-styleJunos-styleVyOS-styleNotes
ntp server 10.0.0.1 preferSupportedSupportedNo effectAssociation; prefer breaks a stratum tie. version, key, source on the line are not read.
ntp peer 10.0.0.1 preferSupportedSupportedn/aPeer association. Junos: set system ntp peer ADDR.
ntp authenticateNo effectn/an/aNot modelled.
ntp authentication-key 7 md5 SECRETNo effectn/an/aNot modelled.
ntp trusted-key 7No effectn/an/aNot modelled.
ntp access-group serve NTP_SERVENo effectn/an/aCarried and written back; not enforced.
set system ntp server 10.0.0.10 version 4n/aSupportedn/aAssociation, as IOS ntp server. version and key are not read.
set system ntp server 10.0.0.11 prefern/aSupportedn/aprefer breaks a stratum tie.
set system ntp source-address 10.0.0.9n/aPartialn/aResolved to the port that carries the address, as ntp source.
set system ntp boot-server 10.0.0.1n/aNo effectn/aAccepted and reported.
set system ntp authentication-key / trusted-keyn/aNo effectn/aAccepted and reported; authentication is not modelled.
set system ntp server 10.0.0.1n/an/aNo effectAccepted by the VyOS grammar; not applied.
NX-OS ntp source-interface XPartialn/an/aAs IOS ntp source.
ASA ntp server ADDR [prefer]Supportedn/an/aAssociation.
Check Point Gaia set ntp server primary|secondary ADDRSupportedn/an/aAssociation, unless set ntp active off. delete ntp server ADDR removes it.
show ntp statusSupportedPartialPartialRuntime sync status.
show ntp associationsSupportedSupportedPartialAssociation table.

NTP polling is event-driven. The simulator does not sleep for wall-clock poll intervals; it schedules deterministic exchanges so shared URLs and tests replay the same way.

A client syncs only if the server is reachable on UDP/123 through routing, ACLs and firewalls, runs NTP, and is itself synchronised. Among reachable sources the lowest stratum wins; prefer breaks a tie.

ntp authenticate, ntp authentication-key and ntp trusted-key are accepted and have no effect. ntp access-group is carried and has no effect.

Client with a preferred source
configure terminal
ntp server 10.0.0.1 prefer
ntp server 10.0.0.2
end
show ntp status
show ntp associations

Vendor styles

IOS-style
ntp server 10.0.0.1 prefer
ntp server 10.0.0.2
show ntp status
show ntp associations
Junos-style
set system ntp server 10.0.0.10 version 4
set system ntp server 10.0.0.11 prefer
VyOS-style
# No effect: accepted by the VyOS grammar, not applied.
set system ntp server 10.0.0.10
set system ntp server 10.0.0.11 prefer
Local master
configure terminal
ntp master 3
end
show ntp status

Authentication, access-groups, per-server source and version, leap-second handling, orphan mode, manycast and broadcast modes, clock discipline, and poll backoff are not modelled.