TopdlLibrary: out.tcl

File out.tcl, 2.6 KB (added by faber, 7 years ago)

Output from example

Line 
1
2set ns [new Simulator]
3source tb_compat.tcl
4
5set r(0) [$ns node]
6tb-set-node-os ${r(0)} FBSD8-STD
7
8set r(1) [$ns node]
9tb-set-node-os ${r(1)} FBSD8-STD
10
11set r(2) [$ns node]
12tb-set-node-os ${r(2)} FBSD8-STD
13
14set r(3) [$ns node]
15tb-set-node-os ${r(3)} FBSD8-STD
16
17set leaf0 [$ns node]
18tb-set-node-os ${leaf0} Ubuntu1204-64-STD
19
20set leaf1 [$ns node]
21tb-set-node-os ${leaf1} Ubuntu1204-64-STD
22
23set leaf2 [$ns node]
24tb-set-node-os ${leaf2} Ubuntu1204-64-STD
25
26set leaf3 [$ns node]
27tb-set-node-os ${leaf3} Ubuntu1204-64-STD
28
29set leaf4 [$ns node]
30tb-set-node-os ${leaf4} Ubuntu1204-64-STD
31
32set leaf5 [$ns node]
33tb-set-node-os ${leaf5} Ubuntu1204-64-STD
34
35set leaf6 [$ns node]
36tb-set-node-os ${leaf6} Ubuntu1204-64-STD
37
38set leaf7 [$ns node]
39tb-set-node-os ${leaf7} Ubuntu1204-64-STD
40
41set leaf8 [$ns node]
42tb-set-node-os ${leaf8} Ubuntu1204-64-STD
43
44set leaf9 [$ns node]
45tb-set-node-os ${leaf9} Ubuntu1204-64-STD
46
47set leaf10 [$ns node]
48tb-set-node-os ${leaf10} Ubuntu1204-64-STD
49
50set leaf11 [$ns node]
51tb-set-node-os ${leaf11} Ubuntu1204-64-STD
52
53set rlink0 [$ns make-lan "${r(0)} ${r(1)}" 100000.000000kb 0.000000ms ]
54
55set rlink1 [$ns make-lan "${r(0)} ${r(2)}" 100000.000000kb 0.000000ms ]
56
57set rlink2 [$ns make-lan "${r(0)} ${r(3)}" 100000.000000kb 0.000000ms ]
58
59set rlink3 [$ns make-lan "${r(1)} ${r(2)}" 100000.000000kb 0.000000ms ]
60
61set rlink4 [$ns make-lan "${r(1)} ${r(3)}" 100000.000000kb 0.000000ms ]
62
63set rlink5 [$ns make-lan "${r(2)} ${r(3)}" 100000.000000kb 0.000000ms ]
64
65set llink0 [$ns make-lan "${r(0)} ${leaf0}" 100000.000000kb 0.000000ms ]
66
67set llink1 [$ns make-lan "${r(0)} ${leaf1}" 100000.000000kb 0.000000ms ]
68
69set llink2 [$ns make-lan "${r(0)} ${leaf2}" 100000.000000kb 0.000000ms ]
70
71set llink3 [$ns make-lan "${r(0)} ${leaf3}" 100000.000000kb 0.000000ms ]
72
73set llink4 [$ns make-lan "${r(1)} ${leaf4}" 100000.000000kb 0.000000ms ]
74
75set llink5 [$ns make-lan "${r(1)} ${leaf5}" 100000.000000kb 0.000000ms ]
76
77set llink6 [$ns make-lan "${r(1)} ${leaf6}" 100000.000000kb 0.000000ms ]
78
79set llink7 [$ns make-lan "${r(1)} ${leaf7}" 100000.000000kb 0.000000ms ]
80
81set llink8 [$ns make-lan "${r(2)} ${leaf8}" 100000.000000kb 0.000000ms ]
82
83set llink9 [$ns make-lan "${r(2)} ${leaf9}" 100000.000000kb 0.000000ms ]
84
85set llink10 [$ns make-lan "${r(2)} ${leaf10}" 100000.000000kb 0.000000ms ]
86
87set llink11 [$ns make-lan "${r(2)} ${leaf11}" 100000.000000kb 0.000000ms ]
88
89set new-link0 [$ns make-lan "${leaf0} ${leaf7}" 100000.000000kb 0.000000ms ]
90
91set new-link1 [$ns make-lan "${leaf4} ${leaf11}" 100000.000000kb 0.000000ms ]
92
93set new-link2 [$ns make-lan "${leaf3} ${leaf8}" 100000.000000kb 0.000000ms ]
94
95$ns rtproto Static
96$ns run