Changes between Version 52 and Version 53 of GEC17Agenda/AdvancedOpenFlow/Procedure/Execute


Ignore:
Timestamp:
03/09/14 21:36:35 (9 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC17Agenda/AdvancedOpenFlow/Procedure/Execute

    v52 v53  
    3333=== 2.2. Setup your nodes ===
    3434 
    35   - '''2.2.1''' Check that all interfaces are configured: Issue `/sbin/ifconfig` and make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]]
    36   - '''2.2.2''' Start the example Load Balancer by executing the following :
     35  - '''2.2.1''' Check that all interfaces on the `switch` and on the `aggregator` are configured: Issue `/sbin/ifconfig` and make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]]
     36       On the `switch` node note which interfaces have the following IP addresses:
     37       * 192.168.2.1(left)
     38       * 192.168.3.1(right)
     39
     40  - '''2.2.2''' Setup the `switch` and the `aggregator`
    3741
    3842 On the Aggregator Node run
     
    4852     source  /etc/profile.d/rvm.sh
    4953 }}}
    50   - '''2.2.3'''
    5154 
    5255=== 2.3. Configure !LabWiki to orchestrate and monitor your experiment ===
    5356   - '''2.3.1''' Log on to !LabWiki on http://emmy9.casa.umass.edu:4609  [[BR]]
    5457
     58For this tutorial, we have a preloaded script (loadbalancer.rb). Type this in the '''Prepare column. Your script should appear. Click on it.
     59If the script does not appear then create one yourself.
     60   * in the `Prepare` Column, create a new Ruby script by clicking on the "*" at the top-left of the column.
    5561[[Image(labwikinew.png, 80%)]]
    5662
    57 For this tutorial, we have a preloaded script (loadbalancer.rb). Type this in the prepare column. Your script should appear. Click on it.
    58 
    59 Note: Outside this tutorial, to create a new script, in the `Prepare` Column, create a new Ruby script by clicking on the "*" at the top-left of the column.
    6063Type a name for the script, eg. loadbalancer and save it as an OEDL file. Enter the name of the script you just created, in the prepare column. It is now ready for editing.
    61 
    6264[[Image(labwikinew2.png, 80%)]]
    6365
    64 For running Iperf from node "Outside" to node "Inside" and observing information about the packets that come out of the two interfaces of "Switch", add the script below to a new file, loadbalancer.rb and click on save at the top of the Prepare Column.
    65 
    66 '''Note''':  You should change the slice name in the property bar to represent your slice name in the Execute window before you click on 'Start Experiment'.
     66Copy the contents of the script from [wiki:GEC17Agenda/AdvancedOpenFlow/Procedure/Appendices#A.LabWikiScriptfortheLoadBalancer Appendix A] and paste it in LabWiki.
    6767
    6868
    69 
    70 After your experiment is done, stop iperf servers manually. To do this, login to Nodes Outside and Inside and execute the following steps on both nodes
    71 {{{
    72 ps aux | grep "iperf"
    73 
    74 root      4728  0.0  1.1 273368  6044 ?        Ssl  19:13   0:00 /usr/bin/iperf_oml2 -s -p 6001 --oml-config /tmp/51449a37-ab3e-43a3-a872-37931c7785ee-1389294789.xml
    75 
    76 }}}
    77 Execute [[BR]]
    78 kill -9 <process_id> e.g 4278
    7969
    8070   - '''2.3.2''' On the terminal where you are logged in on node "Switch", rerun "ifconfig" to see the IP addresses on each interface.
     
    10292=== 3.1 Start your experiment with existing configuration ===
    10393   - '''3.1.1''' Drag the `file Icon` at the left-top corner on your !LabWiki page from `Prepare` column and drop it to `Execute` column. Fill in the name of your !LabWiki experiment (this can be anything that does not contain spaces, it is just to help you track the experiments you run), select your project from the drop-down list, select your slice from the list, and type "true" in the graph box to enable graphs. You can also create an experiment context if you wish to save each run of the experiment separately (Click on Add Context in the top right hand corner of the page). Then press the "Start Experiment" button.
    104    - '''3.1.2''' When your experiment is finished, turn off your controller and disconnect the switch from your controller:
    105       - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch"
    106       - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller:
    107      {{{
    108      ovs-vsctl del-controller br0
    109      }}}
    110    [[BR]][[Image(GENIExperimenter/Tutorials/Graphics:warning-icon-hi.png,5%)]]  Do not start another experiment (i.e., drag and drop the file icon in !LabWiki and press "Start Experiment") before your current experiment is finished.
     94
     95'''Note''':  You should change the slice name in the property bar to represent your slice name in the Execute window before you click on 'Start Experiment'.
     96
     97   - '''3.1.2''' When your experiment is finished, kill the iperf processes on `outside` and `inside` nodes. On both nodes do:
     98   {{{
     99ps aux | grep "iperf"
     100
     101root      4728  0.0  1.1 273368  6044 ?        Ssl  19:13   0:00 /usr/bin/iperf_oml2 -s -p 6001 --oml-config /tmp/51449a37-ab3e-43a3-a872-37931c7785ee-1389294789.xml
     102
     103}}}
     104Execute
     105{{{
     106kill -9 <process_id> e.g 4278
     107}}}
    111108   
    112109=== 3.2 Run the experiment in paths with different bandwidth ===