[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] How to see in the NAM the topology generated by ITM



 Hi, I'm actually trying to install correctly the scenario generation package. I've realized some modifications (for example, I've change the " duplex-link of interfaces" for" duplex-link". I've created a topology with the GT-ITM, but when I try to run the "executa.tcl", you can see it under, the screen displays messages like I everything would be right :

     Creating nodes...............    Creating links 0 .......... Creating link 100......

    Creating link 200......

    Creating link 300......

    Creating link 400......

    However, I try to see it in the NAM but anything is shown. Do you know what I'm doing wrong???

    Thanks in advance. Every comment would be very helpful

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

source topo.tcl

set ns [new Simulator]

 

#Open the nam trace file

set nf [open out.nam w]

$ns namtrace-all $nf

 

proc finish {} {

global ns nf

$ns flush-trace

#Close the trace file

close $nf

#Execute nam on the trace file

exec nam out.nam &

exit 0

}

$ns at 0.0 "create-topology ns node 1.5Mb"

#Call the finish procedure after 5 seconds of simulation time

$ns at 2.0 "finish"

#Run the simulation

$ns run

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx