Configuring Regular Tests

A core function of the perfSONAR Toolkit is to run regularly scheduled network measurements. You can define the tests you want run through the toolkit’s web interface. This section describes using the interface to manage the set of tests run by tour toolkit node.

See also

See Mesh Configuration Quick Start for information on an alternative way to configure tests when your host is participating in a large community or you manage multiple hosts.

Accessing the Configuration interface

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

  2. Click on Configure Tests in near the middle of the page that loads

    _images/install_quick_start-configtests1.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 regular tests. See the remainder of this document for details on adding, modifying, disabling and deleting tests as well as adding, modifying and deleting test hosts.

    _images/manage_regular_tests-configtests2.png

Types of Regular Tests

As a first step test definition must be added. Multiple types of tests can be configured through the web interface. They are described below:

Throughput
This type of test measures the amount of data that can be transferred over a period of time. It is implemented using a tool called BWCTL that make sures the throughput tests do not conflict with each other. BWCTL executes another tool called iperf to actually transfer the data and measure the results. By default it prefers the newest version of iperf, iperf3, but will fallback to an older version automatically if the remote endpoint does not support it.
Ping
This type of test measures the round-trip-time of packet and other statistics such as loss. The BWCTL tool is used to manage the schedule and it spawns a ping command to perform the actual measurement. Ping collects similar statistics to the one-way latency test (such as packet loss) but does so at a much less granular level and without regard for whether the measured value occurred on the forward or reverse path. The advantage of ping tests is that many sites accept ping tests without the need for firewall modifications or special daemon’s running on the target host.
One-way Delay
This type of test measures delay and loss separately for each direction of a path (as opposed to combining the values of each direction as ping tests). The underling tool run is an OWAMP client. This type of test runs constantly sending several packets each seconds. This allows it to find very small amounts of loss if present that may be missed by other tools. If also running throughput tests, you may see anomalies such as a sudden burst of loss when throughput tests run. For this reason it is often recommended you run this type of test on a separate interface or host than the throughput tests. See Configuring a Host with Multiple Interfaces for more information on running tests on separate interfaces.
Traceroute
Traceroute tests periodically measure the path between the source and destination. By default this type of test will automatically be added every time you add any of the other types of tests. This type of test is crucial in determining how a packet traverses a network and can be helpful in identifying events such as path changes that affect other test types. The underlying tool is BWCTL to manage scheduling the test and the tracepath command to actual perform the measurement. The tool will fallback to traceroute if tracepath is not installed on the source host for some reason (all Toolkit hosts come with tracepath by default).

Adding Regular Tests

  1. On the main page of the tests configuration interface click on the +Add Test button too choose and add the test type you would like.

    _images/manage_regular_tests-configtests-addtest1.png
  2. A drop-down list shows to choose the test type. Click on a selected test type you would like to add.

    _images/manage_regular_tests-configtests-addtest2.png
  3. A new window will appear prompting you for the parameters of the test. Each test contains a Test name/description field you are required to define. The Test name/description is a human-readable string and will only be used on this interface to identify the test. The remaining parameters are detailed in the tables below:

    Throughput

    Field Default Description
    Type Thoughput Indicates the current test type
    Test name/description   A string to identify this test
    Test Status Enabled Indicates if the test is enabled
    Interface Default The network interface on which to run the test. The default is the default interface of the host. Use this field if you have multiple interfaces and want to specify the interface where this test runs.
    Time Between Tests 6 hours The amount of time in between tests. Throughput tests consume bandwidth so usually only run a few times a day. The default is every 6 hours. Note that the tests will not run exactly every 6 hours as some randomization occurs to prevent tests from running in sequence at the beginning of the interval.
    Test Duration 20 seconds The length of the tests to be run. TCP requires time to ramp up, especially as the latency increases. Consider using a larger value if the test subjects are further away.
    Protocol TCP The transport protocol to be used. It can be TCP or UDP.
    UDP Bandwidth Not set Field only appears if Protocol is set to UDP. For UDP this sets the target bandwidth in Mbps. Note that you should be careful with high values since UDP is not a “fair” protocol (in contrast to TCP) and will not back-off on bandwidth if it encounters other traffic. Also note that many BWCTL instances disable UDP by default, setting this option may require coordination with remote testers to allow the test to complete.
    Use Autotuning Enabled Allows the TCP window size to be automatically calculated.
    Window Size Not Set If Use Autotuning is not checked then this field appears. Manually sets the value of the TCP window size.
    TOS bits 0 A value between 0 and 255 that will be set in the TOS field of the IP header, and will only have impact on networks that support QoS specifications. If you are unsure about this field, leave the default.

    Ping

    Field Default Description
    Type Ping Indicates the current test type
    Test name/description   A string to identify this test
    Test Status Enabled Indicates if the test is enabled
    Interface Default The network interface on which to run the test. The default is the default interface of the host. Use this field if you have multiple interfaces and want to specify the interface where this test runs.
    Time Between Tests 5 minutes The amount of time in between tests. Ping tests are low bandwidth and generally run every few minutes.
    Packets Sent Per Test 10 The number of packets to send per test. Multiplying by the Time between packets yields the duration of the test in seconds.
    Time Between Packets 1 second The time to wait in between sending packets. Multiplying by the Packets sent per test yields the duration of the test in seconds.
    Packet Size (bytes) 1000 The size of the packets sent

    One-way delay

    Field Default Description
    Type One-way latency Indicates the current test type
    Test name/description   A string to identify this test
    Test Status Enabled Indicates if the test is enabled
    Interface Default The network interface on which to run the test. The default is the default interface of the host. Use this field if you have multiple interfaces and want to specify the interface where this test runs.
    Packet Rate 10 packets per second The number of packets sent each second. Note that each OWAMP daemon has limitations on the bandwidth for tests. If the packet rate and packet size exceed available bandwidth, tests may be denied.
    Packet Size (bytes) 20 The size of the packets sent. Note that each OWAMP daemon has limitations on the bandwidth for tests. If the packet rate and packet size exceed available bandwidth, tests may be denied.

    Traceroute

    Field Default Description
    Type Traceroute Indicates the current test type
    Test name/description   A string to identify this test
    Test Status Enabled Indicates if the test is enabled
    Interface Default The network interface on which to run the test. The default is the default interface of the host. Use this field if you have multiple interfaces and want to specify the interface where this test runs.
    Tool Default The command-line utility used to perform the traceroute. If Default is selected then it will run the tracepath command and fall back to traceroute if both endpoints do not support the tool. Alternatively you can select amongst one of tracepath, traceroute or paris-traceroute.
    Time Between Tests 10 minutes The amount of time in between tests. Traceroute tests are low bandwidth and may run every few minutes.
    Packets Size 40 bytes The size of the packets sent
    First Hop to Report   The first hop to report starting at 1. The default is to report all hops. If you would like to hide the first few hops, set this to a value greater than 1.
    Maximum Number of Hops   The maximum number of hops to traverse before the traceroute is abandoned.
  4. On the same window you will be able to add hosts to which you want to test. You may also add hosts separately later:

  5. Go to the bottom of the page and edit Test members section.

    _images/manage_regular_tests-configtests_addhost_intest1.png
  6. Enter the address or host name of the test member you wish to add in the Host name field. You can also add a human-readable description to the Host description field that will only be used by this interface when displaying the host. If necessary select additional protocol type.

    Valid values are:
    • IPv4 - One test is run to the target host using IPv4
    • IPv6 - One test is run to the target host using IPv6
    By default the interface will automatically decide on whether to setup an IPv4 and/or an IPv6 test. The behavior is described below:
    • If the selected local interface has both IPv4 and IPv6 address AND the address added to the test is a hostname with both IPv4 and IPv6 entries, then both an IPv4 and IPv6 test will be setup.
    • If the local interface has only an IPv4 address or the remote host is an IPv4 address (or a hostname with only an IPv4 entry), then only an IPv4 test will be setup.
    • If the local interface has only an IPv6 address or the remote host is an IPv6 address (or a hostname with only an IPv6 entry), then only an IPv6 test will be setup.
    _images/manage_regular_tests-configtests_addhost_intest2.png
  7. When you are done click Add host.

    _images/manage_regular_tests-configtests_addhost_intest3.png
  8. The new test member for the test defined is now shown in the section Test members.

    _images/manage_regular_tests-configtests_addhost_intest4.png
  9. Repeat the above step clicking +Add Test Member(s) if you would like to add more hosts to the test.

    _images/manage_regular_tests-configtests_addhost_intest5.png
  10. If you are content with this setup then there is nothing to do. If you would like to remove these tests click Delete. See Deleting Test Members and Deleting Regular Tests for more details on removing these tests if you so desire.

  11. Click OK to save test definition. If you would like to add more tests click +Add Test button again and repeat above steps to add new test.

  12. Click the Save button at the bottom of the screen to apply your changes.

    _images/manage_regular_tests-configtests_addhost_intest6.png
  13. Wait while the configuration is applied and services are restarted. Your tests should now be running and you should see the message below on the top of the screen.

    _images/manage_regular_tests-configtests_addhost_intest7.png
  14. Take note that a traceroute test is automatically added when you add a non-traceroute test.

    _images/manage_regular_tests-configtests_addhost_intest8.png
  15. It may take several hours for throughput data to appear and several minutes (depending on the time between tests) for the other test types. If the tests are working you should be able to data in the graphs.

    See also

    See Regular Testing Graphs for details on reading graphs

Editing Regular Tests

Changing Test Parameters

  1. You may modify settings of a test after adding it. Access the regular testing interface under Tests tab and in the list of tests click the configuration icon under ACTIONS next to any test you wish to change:

    _images/manage_regular_tests-configtests-edit.png
  2. From the page that loads you can make a number of changes. See the sections that follow for details on how to make some specific changes. See the tables here for complete listing of parameters and their meanings. Click OK to leave the test configuration window and keep your changes.

  3. If you are done with making necessary tests modification click the Save button at the bottom of the screen to apply all your changes.

Deleting Test Members

  1. In the Configure Test configuration page, uder Test members section find the test member you wish to remove and click the trash bin symbol next to it.

    _images/manage_regular_tests-configtests-edit-delmember1.png
  2. You will be presented with a warning message to confirm you want to delete this host.

    _images/manage_regular_tests-configtests-edit-delmember2.png
  3. After confirmation you should no longer see the host in the list of Test members

    _images/manage_regular_tests-configtests-edit-delmember3.png
  4. If you are done making changes click OK to accept test configuration change and then Save to apply your changes to the system.

Adding Test Members

From the configuration interface, the process for adding more test members is the same as that detailed in the section _manage_reg_tests_add_host_in_test:.

Changing Test Member IP Address Settings

When you add a new test member, the configuration automatically determines if you should the test should run using IPv4, IPv6 or both. See the discussion on IP type when adding a new test for more details on the default behavior. If you would like to override the default behavior or update the host address do the following:

  1. In the Configure Test configuration page, uder Test members section find the test member you would like to update and select the desired protocol type.

    _images/manage_regular_tests-configtests-edit-ip1.png

    Warning

    Checking the IPv4 and IPv6 or text boxes will create a test that forces that address family. If the local interface or remote host does not support that address type your test will be unable to run. For example, if the remote host is an IPv4 address but only the IPv6 checkbox is selected then it will be impossible to run a test. There is also a warning in the web interface in these cases.

  2. If you are done making changes click OK to accept test configuration change and then Save to apply your changes to the system.

Disabling/Enabling Regular Tests

Disabling a Regular Test

In some cases it may be desirable to stop running tests for a period of time, but not to delete them entirely. This allows them to be enabled again at a later time without recreating the entire test set. To disable an existing test set do the following:

  1. Under Tests tab open the Configure Test configuration page selecting appropriate symbol from ACTIONS next to a test you want to disable.

    _images/manage_regular_tests-configtests-edit.png
  2. Click Test Status switch to change test status from Enabled to Disabled.

    _images/manage_regular_tests-configtests-disable1.png
  3. This should change the switch to gray indicating disabled test as shown below

    _images/manage_regular_tests-configtests-disable2.png
  4. When you are done making changes click OK to accept test configuration change and then Save to apply your changes to the system. Scheduled test list will indicate the current status of this option.

Enabling a Regular Test

If you have previously disabled a test and wish to enable it again do the following:

  1. Under Tests tab open the Configure Test configuration page selecting appropriate symbol from ACTIONS next to a test you want to disable.

    _images/manage_regular_tests-configtests-edit.png
  2. Click Test Status switch to change test status from Disabled to Enabled.

    _images/manage_regular_tests-configtests-enable1.png
  3. The text should change the switch to green indicating enabled test

    _images/manage_regular_tests-configtests-enable2.png
  4. When you are done making changes click OK to accept test configuration change and then Save to apply your changes to the system. Scheduled test list will indicate the current status of this option.

Deleting Regular Tests

The interface allows you to completely delete a test set. This will stop all tests in the set from running and completely remove them from the configuration interface. If after deleting a test set, you would like to re-add the tests, you will have to completely recreate the test set.

Note

Deleting a test set will NOT delete the historical results stored on the host. You will be able to view the historical data on the graphs after deleting the test set.

You may delete a test with the following steps:

  1. Go to the Tests tab to see the current list of tests. Uder list of tests find the test you wish to remove and click the trash bin symbol next to it.

    _images/manage_regular_tests-configtests-delete1.png
  2. You will be presented with a warning message to confirm you want to delete this test. When confirmed you should no longer see the test in the list of tests.

    _images/manage_regular_tests-configtests-delete2.png
  3. When you are done making changes click the Save button.