FeddMulti: usa_trio.tcl

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