[[PageOutline]] [[wiki:GEC21Agenda/OEDL/Experiment2 <-- Back to Experiment 2] | [wiki:GEC21Agenda/OEDL Next to Main Tutorial Page -->] {{{ #!html

GEC21 - OEDL Tutorial 3

Overview

This third part shows how to design, execute, and view the results of an experiment, which dynamically retrieves the resources available in the experimenter’s slice and select a subset to use in its execution.

This experiment demonstrate OEDL’s integration with the Slice Service of the Labwiki workspace, which allows user to dynamically retrieve the list of resources available in their slice and seamlessly select and use some of these resources in their experiment.

In this experiment:

Step 1 - Design/Setup

For specific help on using LabWiki, please refer to the LabWiki introduction page

The OEDL experiment description

Experiment 3 OEDL Extract

Walk-through the OEDL experiment description

  1. First, a reminder that all details on OEDL are available in the OEDL reference page

  2. loadOEDL (line 11). This command includes in your OEDL experiment other external OEDL scripts. In this example, we are loading the definition of a ping application (instrumented with OML)

  3. defProperty (line 13). This command defines experiment properties (aka variables), you can set the values of these properties as parameters for each experiment trials, and access them throughout the entire experiment run. In this example, we are defining 1 property, which holds the target for the ping application.

  4. getResources (line 41) This command retrieves the list of resources which are associated with the current slice used by the experimenter. It returns an array where each element is a resource record. Such a record is a hash describing the resource. The experiment script can then filter the list of resources based on specific keys and values in such a record (e.g. only retain the resources of type ‘node’)

  5. Some internal variables (line 42–47). These are simple Ruby commands that select a random subset of only ‘node’ type resources, and print some information about them. As opposed to the above defProperty variables, internal variables cannot be set at the start of each experiment trial (without having to change the content of the OEDL script itself)

  6. defGroup (line 49–54). This command is used to define a group of resources which we will use in this experiment. A group may contain many resources or any other group, and a resource may be included in many groups. This commands may also be used to associate a set of configurations and applications to all resources in a group. In this example, we define a single group ‘Random_Workers’ including the previously selected random resources, then we associate an instrumented ping application to them. This association is done using the addApplication.

  7. onEvent (line 56–62). This command declares the set of actions to perform when a specific event is triggered. In this example, the event is “APP_UP_AND_INSTALLED”, i.e. when all resources are ready to receive commands and all applications associated to them are installed. When this event triggers, we start the ping application on the resource within the ‘Random_Workers’ group, then after 40 seconds we stop all applications and terminate the experiment trial.

  8. defGraph (line 64–71). This commands defines the graphs that will be displayed while the experiment trial is running. In this example, we define 1 graph showing the RTT values from the ping applications against time for each resources in our experiment. This graph will be drawn using measurements enabled in the previous defGroup blocks.

Step 2 - Execute

Experiment 3 Execute Screenshot Experiment 3 Information Screenshot Experiment 3 Running Screenshot

Step 3 - Finish

Experiment 3 Result Screenshot Database Dump

Help & Additional Resources

}}} ---- [[wiki:GEC21Agenda/OEDL/Experiment2 <-- Back to Experiment 2] | [wiki:GEC21Agenda/OEDL Next to Main Tutorial Page -->] ----