Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NTP (ntp)

Reached from

Lower layerSelectorValue
udpdst_port / src_port123 (0x007b)

Fields

FieldTypeDefaultAutoDescription
lienum(2)0 (no_warning)Leap indicator (3 = clock unsynchronized).
versionuint(3)4NTP version number (4).
modeenum(3)3 (client)Association mode (3 = client, 4 = server, 5 = broadcast).
stratumuint(8)0Stratum (0 = unspecified, 1 = primary reference, 2-15 = secondary).
pollint(8)6Maximum poll interval, log2 seconds (signed).
precisionint(8)-20Clock precision, log2 seconds (signed).
root_delayuint(32)0Round-trip delay to the reference clock (16.16 fixed point seconds).
root_dispersionuint(32)0Dispersion to the reference clock (16.16 fixed point seconds).
reference_idbytes(4)00 00 00 00Reference ID (ASCII code for stratum 1, else an IPv4 address or hash).
reference_tsuint(64)0Time the system clock was last set (64-bit NTP timestamp).
origin_tsuint(64)0Client transmit time echoed by the server (64-bit NTP timestamp).
receive_tsuint(64)0Time the request arrived at the server (64-bit NTP timestamp).
transmit_tsuint(64)0Time the packet left the sender (64-bit NTP timestamp).
extensionsbytes — rest of the PDU""Extension fields and MAC; opaque octets.

li

ValueName
0no_warning
1last_minute_61
2last_minute_59
3unsynchronized

mode

ValueName
0reserved
1symmetric_active
2symmetric_passive
3client
4server
5broadcast
6control
7private

Constraints

LevelRule
warningversion within 1..4

Sample templates

  • ntp-client — templates/protocols/app/ntp-client.wpg.yaml