Changes between Version 44 and Version 45 of GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
- Timestamp:
- 08/22/14 14:32:38 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
v44 v45 264 264 == d. Automate `OSPF` Configuration == 265 265 266 By understanding the syntax of the `OSPF` configuration file for `XORP`, we are able to automate the `OSPF` configuration for every virtual router in a topology, assuming these virtual routers are identical. You can download the automation scripts from [http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_autostart.tar.gz XORPAutoStart].266 By understanding the syntax of the `OSPF` configuration file for `XORP`, we are able to automate the `OSPF` configuration for every virtual router in a topology, assuming these virtual routers are identical. You can download the automation scripts from [http://www.gpolab.bbn.com/exp/sysexpr/xorp_autostart.tar.gz XORPAutoStart]. 267 267 268 268 === i. Test the Automation === … … 277 277 Last login: Mon Jun 30 14:56:51 2014 from 128.89.69.127 278 278 xuanliu@router-3:~$ cd /local 279 xuanliu@router-3:/local$ sudo wget http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_autostart.tar.gz279 xuanliu@router-3:/local$ sudo wget http://www.gpolab.bbn.com/exp/sysexpr/xorp_autostart.tar.gz 280 280 xuanliu@router-3:/local$ sudo tar -zxvf xorp_autostart.tar.gz 281 281 xuanliu@router-3:/local/xorp_autostart$ /bin/bash start-xorp.sh … … 352 352 [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:import-rspec-from-file.png)]] 353 353 354 Now, we are ready to add an install script by editing the node property. For each node, click [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:info.jpg)]] to see the node information. By clicking [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:add-service-btn.png)]], we are able to add a service that usually refers to an install script. In this tutorial, we will add an install script called `xorp_autostart.tar.gz`, by entering the link ''http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_autostart.tar.gz'', and the install path is set as ''/local''. By clicking [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:add-exe-serv-btn.png)]], we can add the commend that execute the install script. In the execute box, we enter `/bin/bash /local/xorp_autostart/start-xorp.sh`, and the shell type is `sh`.354 Now, we are ready to add an install script by editing the node property. For each node, click [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:info.jpg)]] to see the node information. By clicking [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:add-service-btn.png)]], we are able to add a service that usually refers to an install script. In this tutorial, we will add an install script called `xorp_autostart.tar.gz`, by entering the link ''http://www.gpolab.bbn.com/exp/sysexpr/xorp_autostart.tar.gz'', and the install path is set as ''/local''. By clicking [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:add-exe-serv-btn.png)]], we can add the commend that execute the install script. In the execute box, we enter `/bin/bash /local/xorp_autostart/start-xorp.sh`, and the shell type is `sh`. 355 355 356 356 [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:node-install-service.png)]] … … 397 397 <services> 398 398 <execute command="/bin/bash /local/xorp_autostart/start-xorp.sh" shell="sh"/> 399 <install install_path="/local" url="http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_autostart.tar.gz"/>399 <install install_path="/local" url="http://www.gpolab.bbn.com/exp/sysexpr/xorp_autostart.tar.gz"/> 400 400 </services> 401 401 }}} … … 409 409 410 410 411 In this tutorial, one metric we would like to evaluate is how often the routing table will be updated when there is a link/node failure. To emulate a link failure, we can disable the virtual interfaces, and to emulate a virtual router failure, we can stop the XORP process at the virtual router. A short script (downloaded from [http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_run.tar.gz here] is available to be loaded as an install script.411 In this tutorial, one metric we would like to evaluate is how often the routing table will be updated when there is a link/node failure. To emulate a link failure, we can disable the virtual interfaces, and to emulate a virtual router failure, we can stop the XORP process at the virtual router. A short script (downloaded from [http://www.gpolab.bbn.com/exp/sysexpr/xorp_run.tar.gz here] is available to be loaded as an install script. 412 412 413 413 Delete any existing resources or create a new slice, '''LOAD''' the RSpec `4node-v2.rspec`, and add a new install service to every node in Flack. Now, the service portion for each node becomes to … … 415 415 <services> 416 416 <execute command="/bin/bash /local/xorp_autostart/start-xorp.sh" shell="sh"/> 417 <install install_path="/local" url="http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_autostart.tar.gz"/>418 <install install_path="/local" url="http:// geni-myvini.umkc.gpeni.net/resources/experiments/xorp_run.tar.gz"/>417 <install install_path="/local" url="http://www.gpolab.bbn.com/exp/sysexpr/xorp_autostart.tar.gz"/> 418 <install install_path="/local" url="http://www.gpolab.bbn.com/exp/sysexpr/xorp_run.tar.gz"/> 419 419 </services> 420 420 }}} … … 445 445 446 446 447 Or, we can also write a script to install `iperf` to the client and server, load it as an install script by following the same steps as we just did for XORP. The install scripts for client and server can be downloaded from [http:// geni-myvini.umkc.gpeni.net/resources/experiments/install_script.tar.gz here]. An sample RSpec with iperf install script and execute command can be downloaded at [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/4node-v4.rspec `4node-v4.rspec`].447 Or, we can also write a script to install `iperf` to the client and server, load it as an install script by following the same steps as we just did for XORP. The install scripts for client and server can be downloaded from [http://www.gpolab.bbn.com/exp/sysexpr/install_script.tar.gz here]. An sample RSpec with iperf install script and execute command can be downloaded at [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/4node-v4.rspec `4node-v4.rspec`]. 448 448 449 449 [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:4node-add-endhosts.png)]]