Scaling Up: How to Grow the Topology of an Existing Experiment
1. Design the Experiment
|
2. Establish the Environment
2.1 Pre-work: Install geni-lib
- Install the
geni-lib
tool using the installation instructions for your operating system. - Install `networkx` on your system.
pip install networkx
- On mac and UNIX you may need to add geni-lib to your path:
export PYTHONPATH="/PATH/TO/geni-lib:$PYTHONPATH"
2.2 Pre-work: Install ansible (for optional appendix)
- To run the optional appendix for this exercise, you will need two additional pieces of software. If you haven't already, get or install these now:
omni
installed and configured on your local machine (instructions), andansible
installed on your local machine (find the instructions for your package manager here).Windows users should do the following steps
Before reserving their resources, Windows users should follow the instructions for setting up a separate GENI node for running Ansible.
3. Obtain Resources
Now we will generate a topology and reserve it.
3.1 Generate RSpec based on existing smaller topology
- Download this config file to use with the
scaleup
tool distributed withgeni-lib
. - Open the file using your favorite text editor (e.g.
vi
oremacs
). - Replace each value of
X
with the value on your worksheet. Use search and replace in your text editor if possible. If you are doing this outside a tutorial, replaceX
with1
. - Run the
scaleup
script on the configuration file.- On Mac and UNIX-like systems run:
cd /to/your/geni-lib tools/scaleup/rspec_gen.py -r site.txt
- On Windows:
cd C:\\Development\geni-lib tools\scaleup\rspec_gen.py -r site.txt
- On Mac and UNIX-like systems run:
- Look at the generated file using your favorite tool (
less
,more
,emacs
,vi
). (Or you can look at an example of the generated file: site-1.xml.)- Can you find each node? Can you find the router node? The host nodes?
- Load the RSpec in your favorite tool (e.g. Jacks, jFed). Find the shared VLAN (it usually looks like a link with only one end point).
- Change the IP address of the shared VLAN as directed on your worksheet.
- Bind the topology to the aggregate listed on your worksheet.
- Save this RSpec. In a real experiment, if this topology works, you would save the RSpec in version control.
3.3 Reserve Topology
- Create a slice and reserve the resources
- Wait for the topology to come up.
Introduction
Next: Execute
Last modified 9 years ago
Last modified on 05/27/15 12:13:19