File: large-sim.tcl

package info (click to toggle)
ns2 2.35%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,864 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 818; awk: 525; csh: 355
file content (23 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Testing for CPU/memory efficiency for routing code in ns-2
# using t1000 - a 1000 node ts topology

set ns [new Simulator]
###source /nfs/ruby/haldar/conser/ns-2/tcl/ex/t1000.tcl
source t1000.tcl
set linkBW 5Mb
global n ns

puts "starting to create topology"
puts "time: [clock format [clock seconds] -format %X]"

create-topology ns node $linkBW
puts [Node set nn_]

puts "completed creating topology"
puts "ns run.."
puts "time: [clock format [clock seconds] -format %X]"

$ns run

puts "completed simulation"
puts "time: [clock format [clock seconds] -format %X]"