Changes between Version 5 and Version 6 of GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
- Timestamp:
- 08/13/14 10:17:38 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
v5 v6 39 39 === i. Create VMs and Virtual Links === 40 40 41 Create four VMs from the same InstaGENI aggregate and add the links. Modify each VM's name and load the custom image by following [ GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftware#a4.LoadInstaGENICustomImage Load Custom Image].41 Create four VMs from the same InstaGENI aggregate and add the links. Modify each VM's name and load the custom image by following [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftware#a4.LoadInstaGENICustomImage Load Custom Image]. 42 42 43 43 [[Image(GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup:4node-topo.png)]] … … 92 92 In this tutorial, we configure each VM as an virtual router running `OSPF` routing protocol. Examples of `XORP` configurations can be found at [http://www.xorp.org/getting_started.html XORPExamples]. For each VM runs as a software router, the `OSPF` configuration file is named as `ospfd.conf` and stored at `/etc/xorp/`. 93 93 94 We first configure `OSPF` on `router-1`. The configuration file can be downloaded from [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/DesignSetup/r1-ospf.conf here].94 We first configure `OSPF` on `router-1`. The configuration file can be downloaded from [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/DesignSetup/r1-ospf.conf here]. 95 95 96 96 There are several key information we observed by manually creating the `OSPF` configuration file for `router-1`. … … 143 143 To simplify the configuration process, we assume the `interface-cost` is 10 and the `hello-interval` for every virtual interface. So the main information we need from each node is the virtual interface's `address` and its `prefix-length`, as well as the router's `router-id` that is required for the `protocol` section in the configuration file. 144 144 145 Similarly, we manually create `ospfd.conf` under `/etc/xorp/` for the other three virtual routers (see [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/SmallTopo/DesignSetup/r2-ospf.conf `router-2`], [http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/SmallTopo/DesignSetup/r3-ospf.conf `router-3`], and [http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/SmallTopo/DesignSetup/r4-ospf.conf `router-4`]).145 Similarly, we manually create `ospfd.conf` under `/etc/xorp/` for the other three virtual routers (see [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/DesignSetup/r2-ospf.conf `router-2`], [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r3-ospf.conf `router-3`], and [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r4-ospf.conf `router-4`]). 146 146 147 147 … … 263 263 /sbin/ifconfig | egrep 'eth|inet addr' | sudo tee -a vm_info.txt > /dev/null 264 264 }}} 265 A sample `vm_info.txt` is available at [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/DesignSetup/vm_info.txt.example SampleVMInfo]266 267 * Create `ospfd.conf` by running an `awk` script, available from [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/SmallTopo/DesignSetup/ospfd-conf-gen.awk here]265 A sample `vm_info.txt` is available at [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/DesignSetup/vm_info.txt.example SampleVMInfo] 266 267 * Create `ospfd.conf` by running an `awk` script, available from [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/ospfd-conf-gen.awk here] 268 268 {{{ 269 269 sudo /usr/bin/awk -f $ABS_PATH/ospfd-conf-gen.awk $vm_info_file "$timestamp" 24 | sudo tee $ABS_PATH/ospfd.conf > /dev/null 270 270 }}} 271 A sample `ospfd.conf` is available at [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/DesignSetup/ospfd.conf.example SampleOSPFConf]271 A sample `ospfd.conf` is available at [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/DesignSetup/ospfd.conf.example SampleOSPFConf] 272 272 273 273 * Start `XORP` Process … … 276 276 }}} 277 277 278 The complete shell script to wrap up the above procedures is available at [ http://groups.geni.net/syseng/attachment/wiki/XuanSandbox/DesignSetup/start-xorp.sh StartXORP]278 The complete shell script to wrap up the above procedures is available at [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/DesignSetup/start-xorp.sh StartXORP] 279 279 280 280 … … 327 327 Whenever we make a change to node information or link information in Flack, the user request RSpec is modified accordingly. In other words, we can rely on Flack to easily modify the request RSpec. 328 328 329 Now let's take a look at how the steps [ http://groups.geni.net/syseng/wiki/XuanSandbox/InstallSoftware#a4.LoadInstaGENICustomImage Load a Custom Image] and [http://groups.geni.net/syseng/wiki/XuanSandbox/SmallTopo/DesignSetup#e.PostbootScript Adding Install Scripts] will modify the request RSpec. For instance, before adding the custom image and install scripts, the RSpec describing `router-1` was like:329 Now let's take a look at how the steps [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftware#a4.LoadInstaGENICustomImage Load a Custom Image] and [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup#e.PostbootScript Adding Install Scripts] will modify the request RSpec. For instance, before adding the custom image and install scripts, the RSpec describing `router-1` was like: 330 330 331 331 {{{ … … 345 345 }}} 346 346 347 First, when we added the custom image (see [ http://groups.geni.net/syseng/wiki/XuanSandbox/InstallSoftware#a4.LoadInstaGENICustomImage Load a Custom Image]), a new tag `<sliver>` will be added to `router-1`'s RSpec, which is347 First, when we added the custom image (see [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftware#a4.LoadInstaGENICustomImage Load a Custom Image]), a new tag `<sliver>` will be added to `router-1`'s RSpec, which is 348 348 349 349 {{{ … … 354 354 355 355 356 Secondly, when we added the install scripts (see [ http://groups.geni.net/syseng/wiki/XuanSandbox/SmallTopo/DesignSetup#e.PostbootScript Adding Install Scripts]), a new tag `<service>` will be added to `router-1`'s RSpec, which is356 Secondly, when we added the install scripts (see [wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup#e.PostbootScript Adding Install Scripts]), a new tag `<service>` will be added to `router-1`'s RSpec, which is 357 357 {{{ 358 358 <services> … … 399 399 400 400 401 '''[ http://groups.geni.net/syseng/wiki/XuanSandbox/SmallTopo Small Topology: Introduction]'''402 403 '''[ http://groups.geni.net/syseng/wiki/XuanSandbox/SmallTopo/Execute Small Topology: Execute]'''401 '''[wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo Small Topology: Introduction]''' 402 403 '''[wiki:GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/Execute Small Topology: Execute]'''