13 | | |
14 | | TIP: To add images to your markdown script, please add a line similar to below into your .md file at the place where you want the image to appear: |
15 | | <img src="http://emmy9.casa.umass.edu/GEC-20/threenoderoute.png">. |
16 | | The image has to be hosted on a webserver. |
17 | | |
18 | | === 2.5 The complete OEDL script is given Below === |
19 | | |
| 13 | === 3.1.2 The "Prepare" Window === |
| 14 | |
| 15 | This experiment will do the following |
| 16 | 1) Start Trema controllers on the two switch nodes in the topology shown in [http://groups.geni.net/geni/wiki/GEC20Agenda/LabWiki/ModuleC/DesignSetup ModuleC] |
| 17 | |
| 18 | {{{ |
| 19 | defApplication('trema') do |app| |
| 20 | app.description = 'This app runs trema from command line' |
| 21 | app.binary_path = '/usr/bin/trema run /root/learning-switch.rb' |
| 22 | end |
| 23 | defGroup('Source2', property.source1,property.source2) do |node| |
| 24 | node.addApplication("trema") |
| 25 | end |
| 26 | }}} |
| 27 | |
| 28 | 2) Start an Iperf server on nodef |
| 29 | |
| 30 | {{{ |
| 31 | defApplication('iperfserv') do |app| |
| 32 | app.description = "manually run Iperf server" |
| 33 | app.binary_path = "/usr/bin/iperf -s" |
| 34 | end |
| 35 | defGroup('Receiver', property.theReceiver) do |node| |
| 36 | node.addApplication("iperfserv") do |app| |
| 37 | end |
| 38 | end |
| 39 | }}} |
| 40 | |
| 41 | |
| 42 | 3) Start Iperf clients on nodea -nodee |
| 43 | |
| 44 | |
| 45 | {{{ |
| 46 | defApplication('iperfclient') do |app| |
| 47 | app.description = "manually run Iperf client" |
| 48 | app.binary_path = "/usr/bin/iperf -c 192.168.1.15 -t 100 -P 2 -i 2" |
| 49 | end |
| 50 | |
| 51 | defGroup('Sender2', property.theSender2) do |node| |
| 52 | node.addApplication("iperfclient") do |app| |
| 53 | end |
| 54 | end |
| 55 | }}} |
| 56 | |
| 57 | For reference, we show the Flow Statistics script here: |