Changes between Initial Version and Version 1 of FeddMultiSwapExample


Ignore:
Timestamp:
Sep 21, 2011 11:24:13 AM (13 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FeddMultiSwapExample

    v1 v1  
     1= Multi-Party Experiment Creation Example =
     2
     3This 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
     7The 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
     15set ns [new Simulator]
     16source tb_compat.tcl
     17
     18set a [$ns node]
     19set b [$ns node]
     20set c [$ns node]
     21set d [$ns node]
     22set e [$ns node]
     23
     24set deter_os "Ubuntu1004-STD"
     25set seer_tar "/users/faber/seer-deploy/seer-u10-current.tgz"
     26
     27tb-set-node-os $a $deter_os
     28tb-set-node-testbed $a "deter/a"
     29tb-set-node-tarfiles $a "/usr/local/" $seer_tar
     30tb-set-node-startcmd $a "sudo python /usr/local/seer/experiment-setup.py Basic"
     31
     32
     33tb-set-node-os $b $deter_os
     34tb-set-node-testbed $b "deter/a"
     35tb-set-node-tarfiles $b "/usr/local" $seer_tar
     36tb-set-node-startcmd $b "sudo python /usr/local/seer/experiment-setup.py Basic"
     37
     38
     39tb-set-node-os $c $deter_os
     40tb-set-node-testbed $c "deter/b"
     41tb-set-node-tarfiles $c "/usr/local" $seer_tar
     42tb-set-node-startcmd $c "sudo python /usr/local/seer/experiment-setup.py Basic"
     43
     44
     45tb-set-node-os $d $deter_os
     46tb-set-node-testbed $d "deter/b"
     47tb-set-node-tarfiles $d "/usr/local" $seer_tar
     48tb-set-node-startcmd $d "sudo python /usr/local/seer/experiment-setup.py Basic"
     49
     50
     51tb-set-node-os $e $deter_os
     52tb-set-node-testbed $e "deter/b"
     53tb-set-node-tarfiles $e "/usr/local" $seer_tar
     54tb-set-node-startcmd $e "sudo python /usr/local/seer/experiment-setup.py Basic"
     55
     56
     57
     58set link0 [ $ns duplex-link $a $b 100Mb 0ms DropTail]
     59set link1 [ $ns duplex-link $c $b 100Mb 0ms DropTail]
     60set lan0 [ $ns make-lan "$c $d $e" 100Mb 0ms ]
     61
     62$ns rtproto Static
     63$ns run
     64
     65}}}