FeddMulti: us_hex.tcl

File us_hex.tcl, 1000 bytes (added by faber, 7 years ago)
Line 
1# simple DETER topology
2# COMPOSITION: usa-0:optional:euintl:eintl
3# COMPOSITION: usa-1:optional:utransit:transit, stub
4# COMPOSITION: usa-2:optional:utransit:transit, stub
5# COMPOSITION: usa-3:optional:auintl:aintl
6# COMPOSITION: usa-4:optional:utransit:transit, stub
7# COMPOSITION: usa-5:optional:utransit:transit, stub
8
9set ns [new Simulator]
10source tb_compat.tcl
11
12set tarball "/users/faber/fedd-dev/split_view-routes.tgz"
13set seer_tarball "/users/faber/fedd-dev/seer-fc6-current.tgz"
14set startup "sudo python /usr/local/seer/experiment-setup.py Basic"
15
16for { set i 0 } { $i < 6} { incr i} {
17    set usa($i) [$ns node]
18    tb-set-node-os $usa($i) "FC6-STD"
19    tb-set-node-testbed $usa($i) "deter"
20    tb-set-node-startcmd $usa($i) $startup
21    tb-set-node-tarfiles $usa($i) /usr/local/botnet $tarball /usr/local $seer_tarball
22}
23
24for { set i 0 } { $i < 6} { incr i} {
25    set link($i) [ $ns duplex-link $usa([expr $i]) $usa([expr ($i+1) % 6]) 100Mb 0ms DropTail]
26}
27
28$ns rtproto Static
29$ns run 
30
31
32