System information
Manual:System/Time
155
SNTP client
SNTP client is included in the system package. RouterOS implements SNTP protocol defined in RFC4330. Manycast
mode is not supported. NTP server and a NTP client is included in the separate ntp package, that is not installed by
default.
Client configuration is located in the /system ntp client console path, and the "System > NTP Client" WinBox
window. This configuration is shared by the SNTP client implementation in the system package and the NTP client
implementation in the ntp package. When ntp package is installed and enabled, the SNTP client is disabled
automatically.
• enabled (yes or no; default value: no)
• mode (One of broadcast or unicast; default value: broadcast) : In broadcast mode, client does not send any
requests, and listens for the broadcast messages sent by the NTP server. In unicast mode client periodically sends
requests to the currently selected active server, and waits for a reply message from that server.
• primary-ntp, secondary-ntp (IP address) : IP addresses of the NTP servers. These properties have effect only
when mode=unicast. Value 0.0.0.0 is ignored. If both values are zero and mode is unicast then SNTP client is
disabled. If both values are non-zero, then SNTP client will alternate between the two server addresses, switching
to the other when request to the current server times out or when the "KoD" packet is received, indicating that
server is not willing to respond to requiests from this client.
Status
• active-server (IP address; read-only property) : Currently selected NTP server address. This value is equal to
primary-ntp or secondary-ntp.
• poll-interval (Time interval; read-only property) : Current iterval between requests sent to the active server.
Initial value is 16 seconds, and it is increased by doubling to 15 minutes.
Last received packet information
Values of the following properties are reset when the SNTP client is stopped or restarted, either because of a
configuration change, or because of a network error.
• last-update-from (IP address; read-only property) : Source IP address of the last received NTP server packed that
was successfully processed.
• last-update-before (Time interval; read-only property) : Time since the last successfully received server
message.
• last-adjustment (Time interval; read-only property) : Amount of clock adjustment that was calculated from the
last successfully received NTP server message.
• last-bad-packet-from (IP address; read-only property) : Source IP address of last received SNTP packed that was
not successfully processed. Reason of the failure and time since this packet was received is available in the next
two properties.
• last-bad-packet-before (Time interval; read-only property) : Time since the last receive failure.
• last-bad-packet-reason (Text; read-only property) : Text that describes reason of the last receive failure. Possible
values are:
• bad-packet-length - Packet length is not in the acceptable range.
• server-not-synchronized - Leap Indicator field is set to "alarm condition" value, which means that clock on the
server has not been synchronized yet.
• zero-transmit-timestamp - Transmit Timestamp field value is 0.
• bad-mode - Value of the Mode field is neither 'server' nor 'broadcast'.