NTP Synchronization
This section provides information about how to set and monitor NTP on your Oracle Communications Session Border Controller.
When an NTP server is unreachable or when NTP service goes down, the Oracle Communications Session Border Controller generates traps for those conditions. Likewise, the Oracle Communications Session Border Controller clears those traps when the conditions have been rectified. The Oracle Communications Session Border Controller considers a configured NTP server to be unreachable when its reach number (whether or not the NTP server could be reached at the last polling interval; successful completion augments the number) is 0. You can see this value for a server when you use the ACLI show ntp server command.
- The traps for when a server is unreachable and then again reachable are: apSysMgmtNTPServerUnreachableTrap and apSysMgmtNTPServerUnreachableClearTrap
- The traps for when NTP service goes down and then again returns are: apSysMgmtNTPServiceDownTrap and apSysMgmtNTPServiceDownClearTrap
Note:
The Oracle Communications Session Border Controller does not support NTP service over wancom0 when that interface is configured for a VLAN.Setting NTP Synchronization
When the SBC requires time-critical processing, you can set NTP for time synchronization. Setting NTP synchronizes both the hardware and the software clocks with the reference time from an NTP server that you specify. NTP is most useful for synchronizing multiple devices located on one network, or across many networks, to a reference time standard.
To guard against NTP server failure, NTP is restarted periodically to support the dynamic recovery of an NTP server.
Note that ntp-sync works only by way of the management interface and only on wancom0. Do not configure ntp-sync by way of the media interface or any other port.
To set NTP synchronization:
FQDNs for Time Servers on the SBC
You can configure the SBC with an FQDN for establishing communications with NTP time servers. This feature supports FQDN resolution through a DNS query over wancom or media interfaces. Having received DNS resolution for the query, the SBC uses its standard selection process for DNS results to request time synchronization from one of multiple, redundant NTP servers.
The SBC includes a DNS client that it uses for FQDN resolution purposes within several contexts, including NTP server address resolution. You set the system to use FQDN resolution for NTP servers by configuring the add-server parameter in the ntp-config with an FQDN.
The SBC includes DNS configuration on network-interface elements to provide resolution services for any specific realm. For NTP, you can specify the realm you want to use to access DNS services within the ntp-config. The system can then use the network-interface configuration associated with that realm to make the DNS queries.
Other elementary ntp-config configuration detail includes:
- You cannot configure the add-server parameter with both IP addresses and an FQDN.
- You cannot configure add-server parameter with multiple FQDNs.
- A change to a network-interface always requires a reboot for the change to take effect. A change to the ntp-config, which impacts the network-interface, also requires a reboot for changes to take effect.
When configured with an FQDN, the SBC:
- Triggers the time synchronization process either after a reboot or the
system's periodic NTP daemon restart.
Note:
This is also true when configured with an IP address. - Issues a DNS request out the configured realm. This DNS SRV query uses the _ntp._udp prefix to specify the resolution type.
- Receives the SRV response from the DNS server, which includes the associated A records of IP addresses, and may or may not include priority.
- Provides its NTP client with the addresses it receives, either ordered by priority or in the same sequence as the DNS response.
- Issues an NTP synchronization request to the NTP server(s).
- Receives the NTP response.
- Synchronizes time.
Important operational detail includes the ability of the SBC to:
- Retry NTP server resolution after periodic intervals if the SRV FQDN lookup resolution fails.
- Retrieve TTL timing for each NTP resolution from the DNS response and retry this connection if and when this timer expires.
- Update the new IP List if there are any IP changes in the DNS Response.
- Apply priority provided within the DNS Response to decide the order of IP addresses it attempts to contact.
- Contact IP addresses using the sequential order presented in the DNS records if there is no priority provided.
- When a user configures NTP with an FQDN within an HA deployment, the active SBC resolves it and synchronizes the resolved IP list with the standby through NTP redundancy. After it receives the resolved IP list from the active, the standby SBC performs NTP update synchronization with the timer servers independently.
Important configuration detail includes:
- You must configure the dns-ip-primary, dns-ip-backup1 and dns-domain parameters on the realm's network-interface,
- You must configure the DNS-realm parameter when configured for FQDN in your ntp-config. This realm object must be attached to the network-interface with your DNS server configuration, which must be attached to the applicable phy-interface.
- If you want to use a media interface's realm for NTP SRV FQDN Resolution, you must configure that network-interface for DNS, and you must configure the ntp-config with that realm name.
- If you want the NTP SRV FQDN resolution to use wancom0, additional
configuration detail includes:
- If you want to reach DNS servers in the same subnet range as
the wancom0 address, you must configure the
phy-interface name to begin with the “wancom0”
prefix and set the operation-type to
maintenance.
For example, the name "wancom0ntp" would be correct.
- You must create and attach a wancom0 network-interface to a wancom0 phy-interface.
- You must configure your wancom0 network-interface with the same IP addressing as your boot parameters and include DNS server configuration.
- If you want to reach DNS servers in the same subnet range as
the wancom0 address, you must configure the
phy-interface name to begin with the “wancom0”
prefix and set the operation-type to
maintenance.
Configuration
You configure this functionality using the add-server parameter within the ntp-config. Required configuration includes setting the add-server parameter to a text name and the realm-id to the realm you want to use for DNS resolution.
ORACLE(configuration)#ntp-sync
ORACLE(ntp-config)#add-server example.ntp.com
ORACLE(ntp-config)#realm-id wancom0realm
- Create a new physical-interface using the text "wancom" as the prefix to its name, and set its operation-type type to maintenance.
- Create a network-interface for this
physical-interface.
- Configure the network-interface with your DNS Server configuration.
- Configure the network-interface with the same IP addressing values that you use within your boot parameters.
- Create a realm-config and attach it to this network-interface.
Resolution Process
Regardless of the interface you use to perform FQDN resolution for your NTP servers, the SBC performs the same DNS procedures to get and use the resolutions.
The SBC uses your configuration to reach DNS servers sequentially. The SBC extracts server information from the first successful DNS response and drops any subsequent responses. Information extracted for NTP purposes includes:
- IP address(es) of NTP servers—One or more addresses, based on the responding server's data.
- Priority—Each IP address can include a priority, which the SBC uses to establish a connection attempt order. The SBC uses the sequence of the resolutions in the DNS response when addresses have the same or no priority.
- Calculated minimum TTL—Each IP address includes a time to live value.
The SBC establishes the minimum value of the timer and starts it. When the timer expires, the SBC sends a new SRV-query to refresh its NTP server list. When it receives the response, the SBC stores the DNS results and rebuilds the NTP list, sorted based on priority or response sequence.
The SBC behaviors above are dependent on the DNS response:
- Single IP address received—Priority is irrelevant and the SBC simply delivers the received address to the NTP daemon.
- Multiple IP addresses received—The lowest priority value is the highest priority server. For addresses presented with the same priority, the SBC uses the DNS server list's order as the order to attempt contact with servers.
- Error/No Response—If the SBC receives an error response or no response to the SRV-query, it starts an internal DNS retry timer before it attempts to contact the servers. Also, if it finds the primary DNS Server is down, the SBC retries using your configured backup DNS Servers.
- TTL below 30 secs—If the SBC receives TTL that is less than 30 secs for any IP address, it uses 30 seconds as the TTL. This ensures that the system does not become overloaded by an incorrect configuration.
Configuring NTP Using an FQDN - Wancom
These instructions include the specific steps that apply to configuring a wancom interface as the source for synchronizing system time with an NTP server.
Configuring NTP Using an FQDN - Media Interfaces
These instructions include the specific steps that apply to configuring a media interface as the source for synchronizing system time with an NTP server.
Authenticated NTP
The Oracle Communications Session Border Controller can authenticate NTP server requests using MD5. The configured MD5 keys are encrypted and obscured in the ACLI. You configure an authenticated NTP server with its IP address, authentication key, and the key ID. Corresponding key and key IDs are provided by the NTP server administrator.
To configure an authenticated NTP server:
Monitoring NTP from the ACLI
NTP server information that you can view with the show ntp server command tell you about the quality of the time being used in terms of offset and delays measurements. You can also see the maximum error bounds.
When you use this command, information for all configured servers is displayed. Data appears in columns that are defined in the table below:
Display Column | Definition |
---|---|
server | Lists the NTP servers configured on the
Oracle Communications Session Border Controller by IP address. Entries are accompanied by characters:
Plus sign (+)—Symmetric active server Dash (-)—Symmetric passive server Equal sign (=)—Remote server being polled in client mode Caret (^)—Server is broadcasting to this address Tilde (~)—Remote peer is sending broadcast to * Asterisk (*)—The peer to which the server is synchronizing |
st | Stratum level—Calculated from the number of computers in the NTP hierarchy to the time reference. The time reference has a fixed value of 0, and all subsequent computers in the hierarchy are n+1. |
poll | Maximum interval between successive polling messages sent to the remote host, measured in seconds. |
reach | Measurement of successful queries to this server; the value is an 8-bit shift register. A new server starts at 0, and its reach augments for every successful query by shifting one in from the right: 0, 1, 3, 7, 17, 37, 77, 177, 377. A value of 377 means that there have been eight successful queries. |
delay | Amount of time a reply packet takes to return to the server (in milliseconds) in response. |
offset | Time difference (in milliseconds) between the client’s clock and the server’s. |
disp | Difference between two offset samples; error-bound estimate for measuring service quality. |
View Statistics
To view statistics for NTP servers:
- At the command line, type show ntp server and press Enter.
ORACLE# show ntp server
NTP Status FRI APR 11:09:50 UTC 2007
server st poll reach delay offset disp
----------------------- -- ---- ------ ------- -------- ---------
*64.46.24.66 3 64 377 0.00018 0.000329 0.00255
=61.26.45.88 3 64 377 0.00017 0.002122 0.00342
You can the see the status of NTP on your system by using the show ntp status command. Depending on the status of NTP on your system, one of the following messages will appear:
- NTP not configured
- NTP Daemon synchronized to server at [the IP address of the specific server]
- NTP synchronization in process
- NTP down, all configured servers are unreachable