= GENI Network Stitching Example = This page uses gcf 2.4.1 to show an example experiment that creates a network stitching path between the GPO InstaGENI and the Utah InstaGENI racks. [[Image(IG-GPO-IG-Utah.jpg)]] The experiment uses [http://groups.geni.net/geni/wiki/GeniClearinghouse GENI Clearinghouse] credentials with the new Omni tool named ''stitcher.py''. GENI network stitching does not require any special configuration. If you haven't already configured Omni, please follow [http://trac.gpolab.bbn.com/gcf/wiki/OmniConfigure/Automatic these configuration instructions]. For a list of other GENI sites that support stitching see the [http://groups.geni.net/geni/wiki/GeniNetworkStitchingSites GENI Network Stitching Sites] page. If you need further assistance, please contact [mailto:help@geni.net]. == 1. Design the Stitching Experiment == {{{ #!html Design/Setup }}} GENI network stitching is available for the aggregates listed in the [http://groups.geni.net/geni/wiki/GeniNetworkStitchingSites GENI Network Stitching Sites] page. This example shows a simple stitching scenario with one server VM in the GPO InstaGENI rack and one client VM in the Utah InstaGENI rack. The server-gpo host is configured as a Web, Iperf and !PingPlus server; it also has a routable IP address that is used to access the web server and display results for all traffic types. We define an RSpec with 2 nodes and one link between them. The link ''' ''must'' ''' specify the 2 aggregates that are the endpoints of the link. The tools will do the rest of the work required to stitch the topology. This is the request RSpec used for this experiment: {{{ }}} Notes: - In the above RSpec, ''stitcher.py'' uses the link information in the ''component_manager name'' to contact the GENI Stitching Computation Service (SCS) and determine a path between the end-point hosts. - The default bandwidth allocation is 100 MB, but for the example we set the link to 20 MB, which is sufficient to show the experiment working. == 2. Execute the Stitching experiment == {{{ #!html Execute }}} We now use ''stitcher.py'' to set up a stitched topology between the two nodes. - ''Stitcher.py'' simplifies experiment set-up because it creates slivers at all aggregates, including the network stitching path. - ''Stitcher.py'' determines all your experiment compute resource aggregates from your RSpec. (You no longer need to enter “-a aggregateName”.) - ''Stitcher.py'' uses the MAX Stitching Computation Service (SCS) to determine VLAN paths needed for your experiment. - VLANs are a scarce commodity, and failures can happen. ''Stitcher.py'' will retry if it fails to create a sliver at an aggregate. We first create a slice for this experiment: {{{ $ omni.py createslice gpo2utah 10:15:41 INFO omni: Loading agg_nick_cache file '/home/lnevers/.gcf/agg_nick_cache' 10:15:41 INFO omni: Loading config file /home/lnevers/.gcf/omni_config 10:15:41 INFO omni: Using control framework portal 10:15:42 INFO omni: Created slice with Name gpo2utah, URN urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah, Expiration 2014-02-07 15:15:42 10:15:42 INFO omni: ------------------------------------------------------------ 10:15:42 INFO omni: Completed createslice: Args: createslice gpo2utah Result Summary: Created slice with Name gpo2utah, URN urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah, Expiration 2014-02-07 15:15:42 10:15:42 INFO omni: ============================================================ }}} Next, we create all necessary slivers using ''stitcher.py''. (Remember there is no need to specify the ''-a'' aggregate option.) The ''stitcher.py'' tool records the aggregates associated with the slice in a file that it creates in the directory where you run the tool. We type this command: {{{ $ stitcher.py createsliver gpo2utah stitch-demo.rspec -o 10:44:01 INFO stitcher: Loading agg_nick_cache file '/home/lnevers/.gcf/agg_nick_cache' 10:44:01 INFO stitcher: Loading config file /home/lnevers/.gcf/omni_config 10:44:01 INFO stitcher: Using control framework portal 10:44:01 INFO stitcher: Checking that slice gpo2utah is valid... <==(1) 10:44:02 INFO stitcher: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah expires on 2014-02-07 15:15:42 UTC 10:44:03 INFO stitcher: speaks AM API v3, but sticking with v2 10:44:04 INFO stitcher: speaks AM API v3, but sticking with v2 10:44:04 INFO stitcher: speaks AM API v3, but sticking with v2 10:44:04 INFO stitcher: Stitched reservation will include resources from these aggregates: <==(2) 10:44:04 INFO stitcher: 10:44:04 INFO stitcher: 10:44:04 INFO stitcher: 10:44:04 INFO stitcher: 10:44:04 INFO stitch.Aggregate: Writing to '/tmp/gpo2utah-createsliver-request-11-instageni-gpolab-bbn-com.xml' <==(3) 10:44:04 INFO stitch.Aggregate: Stitcher doing createsliver at https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am 10:44:20 ERROR omni: {'output': "vlan tag 3746 for 'link' not available", 'code': {'protogeni_error_log': 'urn:publicid:IDN+instageni.gpolab.bbn.com+log+92bb751082de32382c54b5f3e5159872', 'am_type': 'protogeni', 'geni_code': 1, 'am_code': 1, 'protogeni_error_url': 'https://boss.instageni.gpolab.bbn.com/spewlogfile.php3?logfile=92bb751082de32382c54b5f3e5159872'}, 'value': 0} 10:44:20 INFO stitch.Aggregate: Got AMAPIError doing createsliver gpo2utah at : AMAPIError: Error from Aggregate: code 1. protogeni AM code: 1: vlan tag 3746 for 'link' not available. <==(4) 10:44:20 INFO stitch.launcher: Will put back in the pool to allocate. Got Retry 2th time with new suggested 3711 (not 3746) 10:44:20 INFO stitch.launcher: Pausing for 30 seconds for Aggregates to free up resources... 10:44:50 INFO stitch.Aggregate: Writing to '/tmp/gpo2utah-createsliver-request-11-emulab-net.xml' 10:44:50 INFO stitch.Aggregate: Stitcher doing createsliver at https://www.emulab.net:12369/protogeni/xmlrpc/am <==(5) 10:45:27 INFO stitch.Aggregate: Allocation at complete. 10:45:27 INFO stitch.Aggregate: Writing to '/tmp/gpo2utah-createsliver-request-11-utah-geniracks-net.xml' 10:45:27 INFO stitch.Aggregate: Stitcher doing createsliver at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am <==(5) 10:45:54 INFO stitch.Aggregate: Allocation at complete. 10:45:54 INFO stitch.Aggregate: Writing to '/tmp/gpo2utah-createsliver-request-12-instageni-gpolab-bbn-com.xml' 10:45:54 INFO stitch.Aggregate: Stitcher doing createsliver at https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am <==(5) 10:46:16 INFO stitch.Aggregate: Allocation at complete. 10:46:16 INFO stitch.Aggregate: Writing to '/tmp/gpo2utah-createsliver-request-11-ion-internet2-edu.xml' 10:46:16 INFO stitch.Aggregate: Stitcher doing createsliver at http://geni-am.net.internet2.edu:12346 <==(5) 10:47:00 INFO stitch.Aggregate: DCN AM : must wait for status ready.... 10:47:00 INFO stitch.Aggregate: Pause 30 seconds to let circuit become ready... <==(6) 10:47:36 INFO stitch.Aggregate: DCN circuit 62281 is ready 10:47:43 INFO stitch.Aggregate: Allocation at complete. 10:47:43 INFO stitch.launcher: All aggregates are complete. 10:47:43 INFO stitcher: Writing to 'gpo2utah-manifest-rspec-stitching-combined.xml' 10:47:43 INFO stitcher: Saved combined reservation RSpec at 4 AMs to file gpo2utah-manifest-rspec-stitching-combined.xml <==(7) Stitching success: Reserved resources in slice gpo2utah at 4 Aggregates (including 2 intermediate aggregate(s) not in the original request), creating 1 link(s). }}} (1) ''Sticher.py'' gets the experimenter's slice credentials to make sure the named slice if valid. It also runs rspeclint on the ''stitch-ig-gpo-ig-utah.rspec '' file, if rspeclint is found in your search path. [[BR]] (2) ''Sticher.py'' contacts the Stitching Computation Service (SCS) and returns the list of AMs that are needed to establish the stitching path, including the Internet2/ION aggregate.[[BR]] (3) ''Stitcher.py'' generates a request RSpec for each of the aggregates in the path to request both network and compute resources. [[BR]] (4) ''Stitcher.py'' find that requested VLAN is not available and backs off before trying next VLAN. (5) ''Stitcher.py'' creates slivers at each aggregate (path & end-points) [[BR]] (6) The request to Internet2/ION waits for DCN circuits to be created. If this request fails, ''stitcher.py'' will try again after 600 seconds. [[BR]] (7) A combined manifest Rspec is assembled by using the ''-o'' option with the ''stitcher.py'' command. The combined manifest RSpec shows all aggregates and VLANs used in the slice. The above stitched scenario sliver creation accomplishes several steps that previously required manual set-up: - Switch configuration at rack endpoints - Static circuit configuration to reach ION in the aggregate - ION/OSCARS creation of a dynamic circuit with VLAN translation - A static connection over UEN - A routed connection across PG Utah - A dynamic circuit and then a fixed circuit to Utah InstaGENI. The overall information about allocated resources that can be found in the file are shown here: [[Image(IG-GPO-IG-Utah-tags.jpg)]] Below is part of the ig-gpo-ig-utah-manifest-rspec-stitching-combined.xml file showing the stitching manifest that includes all hops along the stitched VLAN path: {{{ ion.internet2.edu-62281 2014-02-01T15:46:20.000Z 2014-01-31T15:47:30.314Z 10 20000 l2sc ethernet 9000 3711 3711 false 2 10 20000.0 l2sc ethernet 9000 3711 3711 true 3 10 20000.0 l2sc ethernet 9000 978 978 true 4 10 20000 l2sc ethernet 9000 978 978 false 5 10 20000 l2sc ethernet 9000 978 978 false 6 10 20000 l2sc ethernet 9000 978 978 false null }}} In the stitching definition: - is for the GPO InstaGENI switch (procurve2:5.24.ion.newy.ae0) and uses VLAN 3711. - is for the Internet2 router in New York (rtr.newy:ae0:bbn) and uses VLAN 3711. - is for the Internet2 router in Atlanta (rtr.atla:ge-10/3/2:protogeni) and uses VLAN 978 - is for PG Utah switch that connects PG Utah to ION (procurve-pgeni-atla:3.21) and uses VLAN 978 - is for the Utah PG switch that connects to Utah IG (procurveA:3.19) and uses VLAN 978 - is for the Utah InstaGENI switch (procurve2:1.19) and uses VLAN 978 Also notice that each of the hops show the bandwidth that was originally requested: {{{ 20000 }}} At this point the experiment has been set up, and you may determine the login information at each compute aggregate: {{{ $ readyToLogin.py gpo2utah -a ig-gpo ... server-gpo's geni_status is: ready (am_status:ready) User lnevers logs in to server-gpo using: ssh -i /home/lnevers/.ssh/geni_cert_portal_key lnevers@pcvm1-22.instageni.gpolab.bbn.com $ readyToLogin.py gpo2utah -a ig-utah ...client-utah's geni_status is: ready (am_status:ready) User lnevers logs in to client-utah using: ssh -p 32826 -i /home/lnevers/.ssh/geni_cert_portal_key lnevers@pc1.utah.geniracks.net }}} We will use the ''server-gpo'' login to determine the routable IP address that was requested for the Web Server: {{{ $ ssh -i /home/lnevers/.ssh/geni_cert_portal_key lnevers@pcvm1-22.instageni.gpolab.bbn.com [lnevers@server-gpo ~]$ /sbin/ifconfig [lnevers@server-gpo ~]$ /sbin/ifconfig eth999 Link encap:Ethernet HWaddr 02:25:22:6C:A3:DC inet addr:192.1.242.161 Bcast:192.1.242.255 Mask:255.255.255.128 <==(a) UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17625 errors:0 dropped:0 overruns:0 frame:0 TX packets:9442 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:25433110 (24.2 MiB) TX bytes:530615 (518.1 KiB) eth3711 Link encap:Ethernet HWaddr 02:0C:AA:C1:1A:1F inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:576 (576.0 b) TX bytes:0 (0.0 b) }}} (a) publically routable IP address is 192.1.242.161 We can now connect to the web server to verify that iperf tests were run and that the client completed wget operations: [[Image(web-server.jpg)]] [[BR]] Select the ''' ''Web Server Statistics'' ''' link, and verify that wget was sucessfull for images: [[Image(web-server-stats.jpg)]] [[BR]] Next, select the ''' ''Iperf Server Logs'' ''' link to verify that the iperf test completed: [[Image(web-server-iperf.jpg)]] Before starting the !PingPlus portion of the experiment, verify that no information existing for !PingPlus by selecting the link ''' ''Layer 2 !PingPlus Statistics'' '''. Now we start the Layer 2 !PingPlus experiment, by logging into ''client-utah,'' determining its dataplane MAC address and then shutting down IP on that interface: {{{ $ ssh -p 32826 -i /home/lnevers/.ssh/geni_cert_portal_key lnevers@pc1.utah.geniracks.net Last login: Fri Jan 31 09:05:19 2014 from sendaria.gpolab.bbn.com [lnevers@client-utah ~]$ /sbin/ifconfig eth978 Link encap:Ethernet HWaddr 02:42:BF:A4:A5:45 inet addr:192.168.4.2 Bcast:192.168.4.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11704 errors:0 dropped:0 overruns:0 frame:0 TX packets:19519 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:626218 (611.5 KiB) TX bytes:28038324 (26.7 MiB) eth999 Link encap:Ethernet HWaddr 02:5C:66:E8:6B:AE inet addr:172.17.1.7 Bcast:172.31.255.255 Mask:255.240.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18192 errors:0 dropped:0 overruns:0 frame:0 TX packets:9638 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:23002760 (21.9 MiB) TX bytes:582428 (568.7 KiB) [lnevers@client-utah ~]$ sudo /sbin/ifconfig eth973 0 [lnevers@client-utah ~]$ }}} Now on the server, shutdown IP on the dataplane interface and run Layer 2 !PingPLus: {{{ [lnevers@server-gpo ~]$ sudo /sbin/ifconfig eth3711 0 [lnevers@server-gpo ~]$ sudo /local/scripts/runPingPlus.sh 02:42:BF:A4:A5:45 eth3711 [lnevers@server-gpo ~]$ }}} Now, we go back to the web server and select the ''' ''Layer 2 !PingPlus Statistics'' ''' link. You will find new statistics: [[Image(web-server-pingplus.jpg)]] We have now completed the experiment. == 3. Finish the Stitching Experiment == {{{ #!html Finish }}} Now that the experiment is completed, we release all resources: {{{ $ stitcher.py deletesliver gpo2utah 11:28:11 INFO stitcher: Loading agg_nick_cache file '/home/lnevers/.gcf/agg_nick_cache' 11:28:11 INFO stitcher: Loading config file /home/lnevers/.gcf/omni_config 11:28:11 INFO stitcher: Using control framework portal 11:28:11 INFO stitcher: Reading stitching slice gpo2utah aggregates from file ch\.geni\.net.ln-prj.gpo2utah-amlist.txt 11:28:11 INFO stitcher: Adding aggregate option https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am (urn:publicid:IDN+utah.geniracks.net+authority+cm) 11:28:11 INFO stitcher: Adding aggregate option https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am (urn:publicid:IDN+instageni.gpolab.bbn.com+authority+cm) 11:28:11 INFO stitcher: Adding aggregate option https://www.emulab.net:12369/protogeni/xmlrpc/am (urn:publicid:IDN+emulab.net+authority+cm) 11:28:11 INFO stitcher: Adding aggregate option http://geni-am.net.internet2.edu:12346 (urn:publicid:IDN+ion.internet2.edu+authority+am) 11:28:11 INFO omni: Loading agg_nick_cache file '/home/lnevers/.gcf/agg_nick_cache' 11:28:11 INFO omni: Loading config file /home/lnevers/.gcf/omni_config 11:28:11 INFO omni: Using control framework portal 11:28:12 INFO omni: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah expires on 2014-02-07 15:15:42 UTC 11:29:13 INFO omni: (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=5522324d8d14f2c9aa950314d5d86881) 11:29:13 INFO omni: Deleted sliver urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah on unspecified_AM_URN at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am 11:30:04 INFO omni: (PG log url - look here for details on any failures: https://www.emulab.net/spewlogfile.php3?logfile=12a477823c87d0e4f6417a15c780788f) 11:30:04 INFO omni: Deleted sliver urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah on unspecified_AM_URN++ at https://www.emulab.net:12369/protogeni/xmlrpc/am 11:30:08 INFO omni: Deleted sliver urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah on unspecified_AM_URN+++ at http://geni-am.net.internet2.edu:12346 11:31:01 INFO omni: (PG log url - look here for details on any failures: https://boss.instageni.gpolab.bbn.com/spewlogfile.php3?logfile=ba4ddf3cc03e020a56f6e325ed0cc9ae) 11:31:01 INFO omni: Deleted sliver urn:publicid:IDN+ch.geni.net:ln-prj+slice+gpo2utah on unspecified_AM_URN+ at https://boss.instageni.gpolab.bbn.com:12369/protogeni/xmlrpc/am Deleted slivers on 4 out of a possible 4 aggregates }}} Stitcher.py uses the files '' ch\.geni\.net.ln-prj.gpo2utah-amlist.txt'' which has the AM list associated with the slice. Note, that is this file does not exist in the current working directory, stitcher.py will try to delete the sliver at all know aggregates, but you will still have to delete the sliver manually at the Internet2/ION aggregate (http://geni-am.net.internet2.edu:12346). Now the sliver has been deleted and compute and network resources are released at all aggregates. == Additional Stitching Scenarios == Additional stitching scenarios have been tested and some example request RSpecs can be used as a reference at this [http://groups.geni.net/geni/browser/trunk/stitch-examples location]. If additional help is needed please contact [mailto:help@geni.net].