Changes between Initial Version and Version 1 of GENIExperimenter/Tutorials/GENIFIRE/jFed/GettingStarted_PartI/Procedure/Execute


Ignore:
Timestamp:
07/06/15 01:13:05 (9 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/GENIFIRE/jFed/GettingStarted_PartI/Procedure/Execute

    v1 v1  
     1= [http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/jFed/GettingStarted_PartI/Procedure  Lab Zero: A First Experiment Using GENI] =
     2{{{
     3#!html
     4
     5<div style="text-align:center; width:495px; margin-left:auto; margin-right:auto;">
     6<img id="Image-Maps_5201305222028436" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Execute.jpg?format=raw" usemap="#Image-Maps_5201305222028436" border="0" width="495" height="138" alt="" />
     7<map id="_Image-Maps_5201305222028436" name="Image-Maps_5201305222028436">
     8<area shape="rect" coords="18,18,135,110" href="./DesignSetup" alt="" title=""    />
     9<area shape="rect" coords="180,18,297,111" href="./Execute" alt="" title=""    />
     10<area shape="rect" coords="344,17,460,110" href="./Finish" alt="" title=""    />
     11<area shape="rect" coords="493,136,495,138" href="http://www.image-maps.com/index.php?aff=mapped_users_5201305222028436" alt="Image Map" title="Image Map" />
     12</map>
     13<!-- Image map text links - End - -->
     14
     15</div>
     16}}}
     17
     18
     19== 4.  Configure and Initialize ==
     20
     21
     22Now that you have reserved your resources, you are ready to run your first GENI experiment.
     23
     24=== 4.1 Login to nodes ===
     25{{{
     26#!html
     27<table border="0">
     28      <tr>
     29
     30       <td >
     31         <ol type='a'>
     32            <li>To login to a node, double click on the node.</li>
     33           <li>jFed may prompt you telling you that it is opening up an ssh client, a terminal for unix-based machines and putty for Window users. <b>If you don't see the terminal open, then switch to your Terminal or SSH application as it may have opened it in the background.</b>
     34           </li>
     35           <li><FONT COLOR="black">Repeat the previous step for the second node.</font></li>
     36          </ol>
     37
     38<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     39        <tr>
     40                <td>
     41                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     42               </td>
     43               <td>
     44                    To ssh from the command line, do the following (substituting the values that can be gotten from the <b>RSpec Viewer</b> tab):
     45<pre>
     46ssh USERNAME@HOSTNAME -p PORT
     47</pre>
     48        </tr>
     49</table>
     50
     51       </td>
     52        <td>
     53        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_15.png?format=raw" alt="Login information for a VM"  height="325" title="Login information for a VM" />
     54<br />
     55         <b>Figure 4-1</b> <i>Login to a VM</i>.</i>
     56       </td>
     57    </tr>
     58 </table>
     59}}}
     60
     61== 5.  Execute Experiment ==
     62
     63=== 5.1 Send IP traffic ===
     64The first simple experiment that we will run is to verify the IP connectivity between our hosts.
     65 
     66    a. Check the interfaces of your nodes. In the terminal type:
     67    {{{
     68   sudo ifconfig
     69  }}}
     70    You should see at least two interfaces:
     71      * The '''control interface'''. This is the interface you use to access the node, e.g. ssh into your host. The control interface is mainly used for control traffic, i.e. traffic for controlling the node and the experiment.
     72      * The '''data interface'''. This is the interface that is used for sending experimental traffic. This is the interface that connects to the other hosts of your experiment through GENI. The links between these interfaces are the ones that allow you to run non-IP experiments. '''The data interface is the one that has an IP address and mask that match what you configured before you reserved your resources.'''
     73    b. Fill in the worksheet, noting the name and  IP address of the control and of the data interfaces for each node. 
     74{{{
     75#!html
     76
     77<table id="Table_02" border="0" cellpadding="5" cellspacing="0">
     78        <tr>
     79                <td>
     80                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     81               </td>
     82               <td>
     83                    The command prompt on each node says "client" or "server" respectively.
     84               </td>
     85        </tr>
     86</table>
     87}}} 
     88    c. From the client, `ping` the server '''data plane interface'''. From the terminal window that is logged in to the client type :
     89{{{
     90    ping <server data IP addr> -c 5
     91}}}
     92       For example:
     93{{{
     94    ping 10.1.1.2 -c 5
     95}}}
     96    d. Now, `ping` the server '''control plane interface'''. From the terminal window that is logged in to the client type :
     97{{{
     98    ping <server control IP addr> -c 5
     99}}}
     100       For example:
     101{{{
     102    ping 172.17.1.9  -c 5
     103}}}
     104   
     105
     106=== 5.2 Install and use `iperf` ===
     107    a. Install the `iperf` software on both nodes, by running the
     108    appropriate command below.
     109
     110{{{
     111#!html
     112<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     113        <tr>
     114                <td>
     115                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/instageni-logo.png?format=raw" width="50" height="50" alt="InstaGENI">
     116               </td>
     117               <td>
     118If you are using resources at an InstaGENI aggregate do:
     119<pre>
     120    sudo yum install iperf
     121</pre>
     122</td>
     123                   
     124        </tr>
     125</table>
     126}}}
     127
     128{{{
     129#!html
     130<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     131        <tr>
     132                <td>
     133                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/exogeni-logo.png?format=raw" width="50" height="50" alt="ExoGENI">
     134               </td>
     135               <td>
     136If you are using resources at an ExoGENI aggregate do:
     137<pre>
     138    sudo apt-get install iperf
     139    hash
     140</pre>
     141</td>
     142                   
     143        </tr>
     144</table>
     145}}}
     146
     147
     148    b. Start an `iperf` server on the server node:
     149{{{
     150    iperf -s
     151}}}
     152    c. Run an `iperf` client via the data plane:
     153{{{
     154    iperf -c <server data IP addr>
     155}}}
     156       For example:
     157{{{
     158    iperf -c 10.1.1.2
     159}}}
     160''What is the bandwidth of this link?''
     161
     162''Why?''
     163    d. Run an `iperf` client via the control plane:
     164{{{
     165iperf -c <server control IP addr>
     166}}}
     167       For example:
     168{{{
     169iperf -c 172.17.2.2
     170}}}
     171''What is the bandwidth of this link?''
     172
     173''Why?''
     174    e. Type `CTRL-C` on the server node to stop the `iperf` server.
     175
     176=== 5.3 Bring down the server's data interface ===
     177
     178    a. ExoGENI nodes run a service called "neuca" that managed network interfaces on the node.  To manually adjust the IP address, we must first disable neuca on both nodes.
     179{{{
     180sudo service neuca stop
     181}}}
     182{{{
     183#!html
     184<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     185        <tr>
     186                <td>
     187                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/exogeni-logo.png?format=raw" width="50" height="50" alt="ExoGENI">
     188               </td>
     189               <td>The ExoGENI "neuca" service controls a variety of network configuration details.</td>
     190                   
     191        </tr>
     192</table>
     193}}}
     194    b. From the client node, start pinging the server '''data plane interface''':
     195{{{
     196    ping <server data IP addr>
     197}}}
     198    c. On the server node, bring down the '''data plane interface'''
     199    (being careful to disable the data interface NOT the control interface):
     200{{{
     201    sudo ifconfig <server data interface name> down
     202}}}
     203
     204''After you bring down the data interface, the pings should indicate that the destination is
     205unreachable.''
     206
     207''Why?''
     208
     209{{{
     210#!html
     211
     212<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     213        <tr>
     214                <td>
     215                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" width="50" height="50" alt="Warning">
     216               </td>
     217               <td>
     218                    Be extra careful to disable the IP on the data interface, bringing down the IP on the control interface means that you will lose connectivity to your host.
     219               </td>
     220        </tr>
     221</table>
     222}}}
     223
     224=== 5.4 Bring down the server's control interface ===
     225    a. From the client node, start pinging the server '''control plane interface''':
     226{{{
     227    ping <server control IP addr>
     228}}}
     229    b. From the server node, bring down the '''control plane interface''' and try to ping it from the client node:
     230{{{
     231    sudo ifconfig <server control interface name> down
     232}}}
     233
     234''Your ssh session should immediately hang.''' 
     235
     236''Why?''
     237
     238''After you bring down the control interface, the pings should indicate that the destination is
     239unreachable.  Why?''
     240
     241{{{
     242#!html
     243<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     244        <tr>
     245                <td>
     246                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     247               </td>
     248               <td>
     249                    Unfortunately, in order to recover from a situation like this where you've lost the ability to login to your nodes, the only way to recover is to delete your resources and start again.
     250        </tr>
     251</table>
     252}}}
     253
     254== 6.  Analyze Experiment ==
     255
     256Now is when you would ordinarily analyze the results of your experiment.
     257
     258=== 6.1 Logout of your nodes ===
     259 * Then type `exit` in your open terminal.
     260
     261Congratulations you have run an experiment in GENI!
     262
     263----
     264
     265= [wiki:GENIExperimenter/Tutorials/GENIFIRE/jFed/GettingStarted_PartI/Procedure/DesignSetup/ObtainResoruces Obtain Resources] =
     266= [wiki:GENIExperimenter/Tutorials/GENIFIRE/jFed/GettingStarted_PartI/Procedure/Finish Next:  Finish] =