Configuring NTP

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.

Accessing the NTP Interface

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

  2. Click on NTP in the left-hand menu

    _images/manage_ntp-access.png
  3. Login using the web administrator username and password.

    See also

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

  4. 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-access2.png

Selecting the Closest Servers

  1. On the main page of the NTP web interface, click Select Closest Servers

    _images/manage_ntp-closest1.png
  2. After a loading screen you should see a green success message with the list of selected servers below it. Note that by default perfSONAR selects the closest servers so it is possible this list will remain unchanged.

    _images/manage_ntp-closest2.png
  3. Click Save to apply your changes

Manually Selecting a Known Server

  1. On the main page of the NTP web interface, click Manually Select Servers

    _images/manage_ntp-known1.png
  2. A rather long list of NTP servers loads. Select the servers you’d like to use with the checkbox next to the name. Also, be sure to recall previously mentioned guidelines about good NTP server selection (4-5 servers less than 20ms RTT away).

    _images/manage_ntp-known2.png
  3. Click Save to apply your changes

Manually Adding a Server

  1. On the main page of the NTP web interface, click Add NTP server

    _images/manage_ntp-add1.png
  2. At the prompt enter the address and a human-readable description of the NTP server and click OK

    _images/manage_ntp-add2.png
  3. You should see a success message and your NTP server in the list

    _images/manage_ntp-add3.png
  4. Click Save to apply your changes

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. On the main page of the NTP web interface, click Remove next to the server you want to deselect

    _images/manage_ntp-deselect1.png
  2. On the page that loads you should see a success message and that the list no longer contains your NTP server

  3. Click Save to apply your changes

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. On the main page of the NTP web interface, click Manually Select Servers

    _images/manage_ntp-known1.png
  2. A rather long list of NTP servers loads. Click Delete next to the server you wish to remove from the list

    _images/manage_ntp-delete_known1.png
  3. A success message should display indicating the server was deleted and it should no longer be in the list

  4. Click Save to apply your changes