1 | # simple DETER topology federated to a desktop |
---|
2 | # |
---|
3 | |
---|
4 | set ns [new Simulator] |
---|
5 | source tb_compat.tcl |
---|
6 | |
---|
7 | set a [$ns node] |
---|
8 | set b [$ns node] |
---|
9 | set c [$ns node] |
---|
10 | set d [$ns node] |
---|
11 | set e [$ns node] |
---|
12 | set f [$ns node] |
---|
13 | tb-set-node-testbed $a "deter" |
---|
14 | tb-set-node-testbed $c "deter" |
---|
15 | tb-set-node-testbed $d "deter" |
---|
16 | tb-set-node-testbed $e "deter" |
---|
17 | tb-set-node-testbed $f "deter" |
---|
18 | |
---|
19 | tb-set-node-testbed $b "desktop" |
---|
20 | |
---|
21 | set link0 [ $ns duplex-link $a $b 1Gb 0ms DropTail] |
---|
22 | set link1 [ $ns duplex-link $a $c 1Gb 0ms DropTail] |
---|
23 | set link2 [ $ns duplex-link $a $d 1Gb 0ms DropTail] |
---|
24 | set link3 [ $ns duplex-link $e $c 1Gb 0ms DropTail] |
---|
25 | set link4 [ $ns duplex-link $f $c 1Gb 0ms DropTail] |
---|
26 | |
---|
27 | $ns rtproto Static |
---|
28 | $ns run |
---|