FeddUsersGuide: federation1.tcl

File federation1.tcl, 802 bytes (added by faber, 5 years ago)

Experiment Layout Description in ns2

Line 
1# Simple federated topology, all on DETER
2#
3# SERVICE: project_export:deter/exp1::project=TIED
4# SERVICE: project_export:deter/exp2::project=TIED
5#
6
7set ns [new Simulator]
8source tb_compat.tcl
9
10set a [$ns node]
11set b [$ns node]
12set c [$ns node]
13set d [$ns node]
14set e [$ns node]
15set f [$ns node]
16tb-set-node-testbed $a "deter/exp1"
17tb-set-node-testbed $b "deter/exp1"
18tb-set-node-testbed $c "deter/exp2"
19tb-set-node-testbed $d "deter/exp1"
20tb-set-node-testbed $e "deter/exp2"
21tb-set-node-testbed $f "deter/exp2"
22
23
24set link0 [ $ns duplex-link $a $b 1Gb 0ms DropTail]
25set link1 [ $ns duplex-link $a $c 1Gb 0ms DropTail]
26set link2 [ $ns duplex-link $a $d 1Gb 0ms DropTail]
27set link3 [ $ns duplex-link $e $c 1Gb 0ms DropTail]
28set link4 [ $ns duplex-link $f $c 1Gb 0ms DropTail]
29
30$ns rtproto Static
31$ns run