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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| NTP client/server association | Supported | Clients poll configured servers; a sync needs a reachable, synchronised master. |
| NTP peer association | Supported | Synchronized peers can serve time to each other. |
| Stratum solver | Supported | Multi-tier stratum cascades and unsynchronized state are modelled. |
| Best source selection | Supported | Lower stratum wins; prefer wins among equal-stratum reachable sources. |
| Source interface | Partial | ntp source is stored and shown; it does not change reachability. Per-server source is not read. |
| Authentication | No effect | ntp authenticate, authentication-key, trusted-key are accepted and change nothing. |
| Access groups | No effect | ntp 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 fidelity | Partial | Client/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. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 5905 | Behaviour model | Client/server and peer synchronization, stratum, offset, reachability. |
| Cisco NTP auth/access syntax | No effect | Accepted; not modelled. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
ntp server <ip> | Supported | Adds a configured source. |
ntp peer <ip> | Supported | Adds a peer association. |
prefer | Supported | Preferred source wins among equal-stratum reachable sources. |
version <1-4> | No effect | Accepted on the line; not stored. |
key <id> | No effect | Accepted on the line; authentication is not modelled. |
source <iface> | Not modelled | Per-association source is not read. |
ntp source <iface> | Partial | Stored and shown; does not change the path. |
ntp master <stratum> | Supported | Local master source. |
ntp authenticate | No effect | Accepted; not enforced. |
ntp authentication-key <id> md5 <secret> | No effect | Accepted; not enforced. |
ntp trusted-key <id> | No effect | Accepted; not enforced. |
ntp access-group serve <acl> | No effect | Carried and written back; not enforced. |
ntp update-calendar | Not modelled | Not read. |
ntp logging | Not modelled | Not read. |
| Unsynchronised server | Supported | A server at stratum 16 answers but cannot be a time source. |
| Clock offset | Supported | A master can state an offset; a client measures the difference. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
ntp server 10.0.0.1 prefer | Supported | Supported | No effect | Association; prefer breaks a stratum tie. version, key, source on the line are not read. |
ntp peer 10.0.0.1 prefer | Supported | Supported | n/a | Peer association. Junos: set system ntp peer ADDR. |
ntp authenticate | No effect | n/a | n/a | Not modelled. |
ntp authentication-key 7 md5 SECRET | No effect | n/a | n/a | Not modelled. |
ntp trusted-key 7 | No effect | n/a | n/a | Not modelled. |
ntp access-group serve NTP_SERVE | No effect | n/a | n/a | Carried and written back; not enforced. |
set system ntp server 10.0.0.10 version 4 | n/a | Supported | n/a | Association, as IOS ntp server. version and key are not read. |
set system ntp server 10.0.0.11 prefer | n/a | Supported | n/a | prefer breaks a stratum tie. |
set system ntp source-address 10.0.0.9 | n/a | Partial | n/a | Resolved to the port that carries the address, as ntp source. |
set system ntp boot-server 10.0.0.1 | n/a | No effect | n/a | Accepted and reported. |
set system ntp authentication-key / trusted-key | n/a | No effect | n/a | Accepted and reported; authentication is not modelled. |
set system ntp server 10.0.0.1 | n/a | n/a | No effect | Accepted by the VyOS grammar; not applied. |
NX-OS ntp source-interface X | Partial | n/a | n/a | As IOS ntp source. |
ASA ntp server ADDR [prefer] | Supported | n/a | n/a | Association. |
Check Point Gaia set ntp server primary|secondary ADDR | Supported | n/a | n/a | Association, unless set ntp active off. delete ntp server ADDR removes it. |
show ntp status | Supported | Partial | Partial | Runtime sync status. |
show ntp associations | Supported | Supported | Partial | Association table. |
Behaviour notes
Section titled “Behaviour notes”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.
Examples
Section titled “Examples”Client with a preferred source
configure terminalntp server 10.0.0.1 preferntp server 10.0.0.2endshow ntp statusshow ntp associationsVendor styles
IOS-style
ntp server 10.0.0.1 preferntp server 10.0.0.2show ntp statusshow ntp associationsJunos-style
set system ntp server 10.0.0.10 version 4set system ntp server 10.0.0.11 preferVyOS-style
# No effect: accepted by the VyOS grammar, not applied.set system ntp server 10.0.0.10set system ntp server 10.0.0.11 preferLocal master
configure terminalntp master 3endshow ntp statusKnown limits
Section titled “Known limits”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.