[ns] NS: million nodes (SCALABILITY)
Jeu George
jg35@oak.njit.edu
Thu Apr 18 15:45:01 2002
Hello All,
I wanted to generate a topology that will generate a lot of node
set ns [new Simulator]
for {set i 0} {$i<10000} {incr i} {
set n$i [$ns node]
}
I have a few questions regarding this
1) How many nodes can NS support
2) After creating this node i need to reference them
Like I have now creating node n0 n1 n2 .. n10000
Now I need to do link them like
$ns duplex-link $n0 $r1 100Mb 1ms DropTail
$ns duplex-link $n1 $r1 100Mb 1ms DropTail
$ns duplex-link $n2 $r1 100Mb 1ms DropTail
$ns duplex-link $n3 $r1 100Mb 1ms DropTail
I also need to write a loop for this like
for {set i 0} {$i< 10} {incr i} {
$ns duplex-link $n$i $r1 100Mb 1ms DropTail
}
This DOESNOT work though. How do i do this?
ANy idea??
Jeu