== Discovering perfSONAR Web Interface == Once you login the perfSONAR web using https://[IP/Hostname]/toolkit you will see the below page. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps8.png)]] On the toolkit dashboard there will sections for displaying different information. On the top will be node information like the IP address, Owner, Address and the administrator information. On the right side there will be detailed host information such as Hardware profile, NTP status, Registration status, Access policy etc. On the middle there will be a list of perfsonar services running and there will be another section at the bottom to show the Test results of the perfSONAR measurements tests. To conduct performance tests you will need at least another perfsonar node to test with. There are hundreds of perfsonar nodes installed world wide. You can find a node from any location you need by accessing this [https://stats.es.net/ServicesDirectory/ directory]. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps9.png)]] You can search the directory with any keyword, and here we will search for a node hosted by NORDUnet. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps10.png)]] == Conducting 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. There are four test types you can schedule and run through the web interface. They are One-Way Latency (Ping), Throughput, Round Trip Latency (Ping) and Traceroute tests. === One-Way Ping Test === Here we are going to schedule a test for testing One-way ping. For that we need a OWAMP service. In the OWAMP directory we can find a suitable perfSONAR node. Here we will select the highlighted node. Now we will schedule a test and for that we need to first login to the perfSONAR. Click on Login at the top of the page. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps12.png)]] Next click on Configuration. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps13.png)]] Then go to Tests tab and click on +Test to add new test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps14.png)]] Next we have to choose the type of the test we need to add. In our case it is One-way latency. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps15.png)]] In the next field we have to choose the interface used for the test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps16.png)]] Then we will add the host or node we need to run the test with. We will enter the details of node we earlier searched for. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps17.png)]] Once entered click OK. Next you will have to save the test created. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps18.png)]] Now the test should run and after few minutes we can see the results by visiting the dashboard. === Throughput Test === In the same way a we configured One-Way Latency test we will configure the Throughput test here. Below shows the whole configuration of the test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps20.png)]] === Round Trip Latency (Ping) Test === Below shows the configuration of the Round Trip Latency test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps19.png)]] === Traceroute Test === Below shows the configuration of the Traceroute test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps21.png)]] == Conducting On-Demand Testing == In addition to above tools perfsonar provides some On-Demand testing tools checking connectivity and path on the reverse path. These are listed in the right bottom side of the dashboard. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps22.png)]] When you click on a test for a example Reverse Ping test it will open a new window run the test at once. By default the test will run from the perfsonar node the IP of the computer which browse the Toolkit. If your are inside a NATed network, the test will fail. But you can specify a target address you want to check and press enter to run the test. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps24.png)]] But it will be less useful to run the Reverse Ping or Reverse Traceroute test from your own perfSONAR node to a IP within your LAN. Most of the time you want to troubleshoot the reverse connectivity from remote server on which you may have a service to access or deployed. To use this scenario you need to access a toolkit website deployed on remote site. You can find the remote toolkit domain name or IP from the perfSONAR lookup directory. Below is an example test from a node at APAN-JP. For that you need to go to http://mtrace2.jp.apan.net/toolkit/ access the tool. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps25.png)]] == Viewing Graphs of Test Results == In perfSONAR test results are shown at the bottom section of the window. Toolkit also creates graphs based on test results so that user can view and analyse the measurements over the time. There is link for each test result and when you click on the link, the graphs will be displayed on a new page. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps26.png)]] A sample graph shown below. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps27.png)]] On the same time line there will be graphs for four different types of metrics. They are Throughput, Packet Loss, Latency and Response Time. The number of graphs shown will depend on the type of tests running between the selected perfSONAR nodes. When you click on the graph at a particular point, it will pop-up a window showing the result at that particular time. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps28.png)]] You can filter the graph results shown through the web interface. It has the options to choose a particualr time range or length per your choice. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps29.png)]] Also you can filter the results based on type of metric, type of protocol and using the direction of the traffic etc. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps30.png)]] [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Nmm2022/Agenda/perfSONARuse/ps31.png)]] == Archiving Measurements with esmond == Archiving of measurement results for storage and processing is essential for any network measurement system. perfSONAR also supports several methods for these through several archivers. perfSONAR supports esmond, http, tcp, kafka, rabbitmq, syslog, bitbucket, failer etc. In above all methods, esmond is more widely supported and scalable way to archive your measurement data. Here we will see how to archive the measurement data with esmond. In perfsonar measurement archive can be setup in two ways. First is by default every toolkit installation comes with esmond and the archives will be in the same host. If there are multiple perfSONAR nodes then we can setup a central archive for all the measurement results. A central measurement archive configuration is more the desirable way of archiving. When your perfSONAR nodes are less powerful and when you want to archive data in multiple locations you can use this setup. == Displaying Measurements with MaDDash == Archiving or storing measuring data is less use if they cannot be presented in effective and convenient way. The Monitoring and Debugging Dashboard (MaDDash) software is aimed at collecting and presenting two-dimensional monitoring data as a set of grids referred to as a dashboard. Many monitoring systems focus on one dimension, such as a single host or service. Unfortunately, users can quickly run into n-squared problems both in terms of configuration on the back-end and data presentation on the front-end if you try to present naturally two-dimensional data in this manner. Measurement archives and MaDDash always work together. For demonstration of these two systems we will follow a single lab setup. In this example we have two or more perfSONAR nodes and a single archive host for storing data. Step 1: Here we will use a central server for both as a central archiving host and to install the MaDDash as well. first we will install perfsonar-centralmanagement package which contains the MaDDash as well as other supporting packages like psconfig MadDash Agent.