| 1 | = Multi-Party Experiment Creation Example = |
| 2 | |
| 3 | This example walks through creating a multiparty experiment from a single experiment description. That description may have been created from [wiki:FeddMulti#ComposingFragments a compostion program] or created by hand. We describe the key elements of the experiment description and walk through the creation. |
| 4 | |
| 5 | == Experiment Description == |
| 6 | |
| 7 | The ns-2 description of our example is: |
| 8 | |
| 9 | {{{ |
| 10 | # SERVICE: project_export:deter/a::project=TIED |
| 11 | # SERVICE: project_export:deter/b::project=SAFER |
| 12 | # SERVICE: seer_master:deter/a:deter/a,deter/b |
| 13 | # SERVICE: local_seer_control:deter/a |
| 14 | # SERVICE: local_seer_control:deter/b |
| 15 | set ns [new Simulator] |
| 16 | source tb_compat.tcl |
| 17 | |
| 18 | set a [$ns node] |
| 19 | set b [$ns node] |
| 20 | set c [$ns node] |
| 21 | set d [$ns node] |
| 22 | set e [$ns node] |
| 23 | |
| 24 | set deter_os "Ubuntu1004-STD" |
| 25 | set seer_tar "/users/faber/seer-deploy/seer-u10-current.tgz" |
| 26 | |
| 27 | tb-set-node-os $a $deter_os |
| 28 | tb-set-node-testbed $a "deter/a" |
| 29 | tb-set-node-tarfiles $a "/usr/local/" $seer_tar |
| 30 | tb-set-node-startcmd $a "sudo python /usr/local/seer/experiment-setup.py Basic" |
| 31 | |
| 32 | |
| 33 | tb-set-node-os $b $deter_os |
| 34 | tb-set-node-testbed $b "deter/a" |
| 35 | tb-set-node-tarfiles $b "/usr/local" $seer_tar |
| 36 | tb-set-node-startcmd $b "sudo python /usr/local/seer/experiment-setup.py Basic" |
| 37 | |
| 38 | |
| 39 | tb-set-node-os $c $deter_os |
| 40 | tb-set-node-testbed $c "deter/b" |
| 41 | tb-set-node-tarfiles $c "/usr/local" $seer_tar |
| 42 | tb-set-node-startcmd $c "sudo python /usr/local/seer/experiment-setup.py Basic" |
| 43 | |
| 44 | |
| 45 | tb-set-node-os $d $deter_os |
| 46 | tb-set-node-testbed $d "deter/b" |
| 47 | tb-set-node-tarfiles $d "/usr/local" $seer_tar |
| 48 | tb-set-node-startcmd $d "sudo python /usr/local/seer/experiment-setup.py Basic" |
| 49 | |
| 50 | |
| 51 | tb-set-node-os $e $deter_os |
| 52 | tb-set-node-testbed $e "deter/b" |
| 53 | tb-set-node-tarfiles $e "/usr/local" $seer_tar |
| 54 | tb-set-node-startcmd $e "sudo python /usr/local/seer/experiment-setup.py Basic" |
| 55 | |
| 56 | |
| 57 | |
| 58 | set link0 [ $ns duplex-link $a $b 100Mb 0ms DropTail] |
| 59 | set link1 [ $ns duplex-link $c $b 100Mb 0ms DropTail] |
| 60 | set lan0 [ $ns make-lan "$c $d $e" 100Mb 0ms ] |
| 61 | |
| 62 | $ns rtproto Static |
| 63 | $ns run |
| 64 | |
| 65 | }}} |