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