FeddMulti: defend.tcl

File defend.tcl, 2.1 KB (added by faber, 8 years ago)
Line 
1set ns [new Simulator]
2source tb_compat.tcl
3# tb-use-endnodeshaping 1
4# COMPOSITION: di1:required:stub:transit
5# COMPOSITION: di2:required:stub:transit
6# COMPOSITION: di3:required:stub:transit
7
8set tarball "/users/faber/fedd-dev/split_view-routes.tgz"
9set seer_tarball "/users/faber/fedd-dev/seer-fc6-current.tgz"
10
11set irc_count 1
12
13set OS FC6-STD
14#set dest_OS FBSD62-STD
15set dest_OS FC6-STD
16
17set HW pc
18
19set startup "sudo python /usr/local/seer/experiment-setup.py Basic"
20
21set di1 [$ns node]
22tb-set-node-os $di1 $OS
23tb-set-hardware $di1 $HW
24tb-set-node-startcmd $di1 $startup
25tb-set-node-tarfiles $di1 /usr/local/botnet $tarball /usr/local $seer_tarball
26tb-set-node-testbed $di1 "deter/defend"
27
28set di2 [$ns node]
29tb-set-node-os $di2 $OS
30tb-set-hardware $di2 $HW
31tb-set-node-startcmd $di2 $startup
32tb-set-node-tarfiles $di2 /usr/local/botnet $tarball /usr/local $seer_tarball
33tb-set-node-testbed $di2 "deter/defend"
34
35set di3 [$ns node]
36tb-set-node-os $di3 $OS
37tb-set-hardware $di3 $HW
38tb-set-node-startcmd $di3 $startup
39tb-set-node-tarfiles $di3 /usr/local/botnet $tarball /usr/local $seer_tarball
40tb-set-node-testbed $di3 "deter/defend"
41
42set defender1 [$ns node]
43tb-set-node-os $defender1 $dest_OS
44tb-set-hardware $defender1 $HW
45tb-set-node-startcmd $defender1 $startup
46tb-set-node-tarfiles $defender1 /usr/local/botnet $tarball /usr/local $seer_tarball
47tb-set-node-testbed $defender1 "deter/defend"
48
49set defender2 [$ns node]
50tb-set-node-os $defender2 $dest_OS
51tb-set-hardware $defender2 $HW
52tb-set-node-startcmd $defender2 $startup
53tb-set-node-tarfiles $defender2 /usr/local/botnet $tarball /usr/local $seer_tarball
54tb-set-node-testbed $defender2 "deter/defend"
55
56set defender3 [$ns node]
57tb-set-node-os $defender3 $dest_OS
58tb-set-hardware $defender3 $HW
59tb-set-node-startcmd $defender3 $startup
60tb-set-node-tarfiles $defender3 /usr/local/botnet $tarball /usr/local $seer_tarball
61tb-set-node-testbed $defender3 "deter/defend"
62
63set defender1-di1 [$ns make-lan "defender1 di1" 100Mb 0ms]
64set defender2-di2 [$ns make-lan "defender2 di2" 100Mb 0ms]
65set defender3-di3 [$ns make-lan "defender3 di3" 100Mb 0ms]
66
67$ns rtproto Static
68$ns run
69
70