FeddMultiSwapExample: multi-swap-example.tcl

File multi-swap-example.tcl, 1.5 KB (added by faber, 8 years ago)
Line 
1# SERVICE: project_export:deter/a::project=TIED
2# SERVICE: project_export:deter/b::project=SAFER
3# SERVICE: seer_master:deter/a:deter/a,deter/b
4# SERVICE: local_seer_control:deter/a
5# SERVICE: local_seer_control:deter/b
6set ns [new Simulator]
7source tb_compat.tcl
8
9set a [$ns node]
10set b [$ns node]
11set c [$ns node]
12set d [$ns node]
13set e [$ns node]
14
15set deter_os "Ubuntu1004-STD"
16set seer_tar "/users/faber/seer-deploy/seer-u10-current.tgz"
17
18tb-set-node-os $a $deter_os
19tb-set-node-testbed $a "deter/a"
20tb-set-node-tarfiles $a "/usr/local/" $seer_tar
21tb-set-node-startcmd $a "sudo python /usr/local/seer/experiment-setup.py Basic"
22
23
24tb-set-node-os $b $deter_os
25tb-set-node-testbed $b "deter/a"
26tb-set-node-tarfiles $b "/usr/local" $seer_tar
27tb-set-node-startcmd $b "sudo python /usr/local/seer/experiment-setup.py Basic"
28
29
30tb-set-node-os $c $deter_os
31tb-set-node-testbed $c "deter/b"
32tb-set-node-tarfiles $c "/usr/local" $seer_tar
33tb-set-node-startcmd $c "sudo python /usr/local/seer/experiment-setup.py Basic"
34
35
36tb-set-node-os $d $deter_os
37tb-set-node-testbed $d "deter/b"
38tb-set-node-tarfiles $d "/usr/local" $seer_tar
39tb-set-node-startcmd $d "sudo python /usr/local/seer/experiment-setup.py Basic"
40
41
42tb-set-node-os $e $deter_os
43tb-set-node-testbed $e "deter/b"
44tb-set-node-tarfiles $e "/usr/local" $seer_tar
45tb-set-node-startcmd $e "sudo python /usr/local/seer/experiment-setup.py Basic"
46
47
48
49set link0 [ $ns duplex-link $a $b 100Mb 0ms DropTail]
50set link1 [ $ns duplex-link $c $b 100Mb 0ms DropTail]
51set lan0 [ $ns make-lan "$c $d $e" 100Mb 0ms ]
52
53$ns rtproto Static
54$ns run
55