Configuring NTP

Note

These instructions do not apply to EL variants newer than CentOS 7. These operating systems use chrony and the NTP UIs are disabled. You can configure chrony by hand on these systems.

For perfSONAR tests to work correctly, it is critical that the Network Time Protocol (NTP) be configured properly. Almost all the measurements require an accurate system clock to calculate time-based metrics. Failure to have a synced clock can lead to unexpected results such as negative latency values. It is recommended to sync with 4-5 servers (not more), and that they all be fairly close in proximity (less than 20ms RTT). The perfSONAR web interface provides a convenient way to configure NTP. It allows you to select time servers using the following methods:

  1. By default the perfSONAR Toolkit will select the five closest known servers (perfSONAR ships with a known list of NTP servers). For details on refreshing this selection see Selecting the Closest Servers.

  2. You may also manually select servers from the list of known NTP servers as detailed in Manually Selecting a Known Server.

  3. Finally, you may manually define servers not in the default list as detailed in Manually Adding a Server.

If your network can not connect to enough close servers, you’ll want to identify some additional close NTP servers. Talk to your network administrator to see what NTP servers are typically used at your site, or look here for a nearby server:

Note

www.pool.ntp.org servers are not typically accurate enough for perfSONAR’s requirements, and should be avoided.

More details on NTP can be found at NTP Overview.

Accessing the NTP Interface

  1. Open http://<hostname> in your browser where <hostname> is the name of your toolkit host.

  2. Click on Edit (A) in the host information section of the main page or Configuration (B) button in the right-upper corner and login as the web administrator user created during installation.

    _images/manage_ntp-configure-icon.png

    See also

    See Managing Users for more details on creating a web administrator account.

  3. In the page that loads select Host tab to access NTP configuration. Section NTP Servers in the page that loads can be used to manage NTP. See the remainder of this document for details on using this interface.

    _images/manage_ntp-overview.png

Selecting the Closest Servers

  1. In order to refresh and select the closest NTP servers, go to the NTP Servers section and click Select the closest servers

    _images/manage_ntp-select-closest-wait.png
  2. After a loading screen you should see a possibly new list of selected servers. Note that by default perfSONAR selects the closest servers so it is possible this list will remain unchanged.

  3. Click Save to apply your changes. Green message appears to confirm successful configuration change.

Manually Selecting a Known Server

  1. In order to manually select a known NTP server available in a list of known servers, go to the NTP Servers section and click on the list of servers area.

    _images/manage_ntp-select-known-area.png
  2. A list of NTP servers opens. Select the servers you’d like to use (highlighted in blue). Other servers already selected in a list are highlighted in grey. Use Ctrl and Shift keys to select multiple servers at once. Selected servers will immediately be added to the list. Also, be sure to recall previously mentioned guidelines about good NTP server selection (4-5 servers less than 20ms RTT away).

    _images/manage_ntp-select-known-list.png
  3. Instead of selecting from the list of know servers you may simply click on the list of servers area and start writing the NTP server hostname or its description (A). Matching servers will automatically appear as available selections in the list below (B).

    _images/manage_ntp-select-known-write.png
  4. Click Save to apply your changes. Green message appears to confirm successful configuration change.

Manually Adding a Server

  1. In order to manually add an NTP server not yet available in a list of known servers, go to the NTP Servers section, click Manage available NTP servers

    _images/manage_ntp-manage-area.png
  2. In the windows that opens enter the address and a human-readable description of the NTP server and click Add server.

    _images/manage_ntp-add-new-server.png
  3. The new server is added to the list of known NTP servers. You may add more servers if needed. When finished click OK to accept the current list of NTP servers.

    _images/manage_ntp-add-new-server-added.png
  4. The new NTP server is also automatically added to the list of currently used servers. Click OK to confirm your changes and Save to apply all changes to the system. Green message appears to confirm successful configuration change.

Deselecting a Server

If you wish to deselect a server so that it remains in the known servers list but is not actively used to sync the clock then perform the following steps:

  1. In the NTP Servers section, click x symbol next to the server you want to deselect. As a result the list no longer contains your NTP server.

    _images/manage_ntp-deselect-server.png
  2. Click Save to apply your changes. Green message appears to confirm successful configuration change.

Deleting a Known Server

You may wish to permanently remove a server from the list of known servers. This removes it from consideration for closest server entirely and prevents accidental selection of the server by removing it from the list entirely. This task may be executed with the following steps:

  1. In the NTP Servers section, click Manage available NTP servers

    _images/manage_ntp-manage-area.png
  2. A list of NTP servers loads. Click Delete x next to the server you wish to remove from the list. As a result the list no longer contains your NTP server.

    _images/manage_ntp-delete-known-server.png
  3. Click OK to accept changes and then Save to apply your changes to the system. Green message appears to confirm successful configuration change.