The following expression will return a Node object in NS that you use to simulate ONE router:
set ns [new Simulator] set n0 [$ns node] |
Example: create Nodes n(0), n(1), ..., n(9):
for {set i 0} {$i < 10} {incr i} { set n($i) [$ns node] } |