As network technologies develop rapidly, it becomes increasingly important to ensure network security. Network Time Protocol (NTP) packets need to be protected against tampering and forgery because
NTP provides the following security policies at the protocol layer to improve security:
None
system-view
ntp-service authentication enable
ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } [ cipher ] password-key
The HMAC-SHA256 algorithm is recommended for NTP key authentication because it provides higher security than the MD5 algorithm.
ntp-service reliable authentication-keyid key-id
When NTP authentication is enabled, this command can be used to configure one or more NTP authentication keys as trusted.