[ns] dynamically create nodes and links
SnowK
unique_liu at hotmail.com
Wed Mar 26 09:38:32 PDT 2008
Hi, Can anybody point me out the reason following code does not work? Basically I want to create nodes and links at some random times. I know that the command $ns rtmodel-at can switch the up/down status of a node or a link. But it can only work on exsiting nodes or links. My question is how to dynamically CREATE them rather than to change their status. ------------------------------------------------------------$ns at 1.234567 "set n1 [$ns node]"$ns at 2.345678 "$ns simplex-link $n1 $n2 2Mb 10ms DropTail"------------------------------------------------------------Any help will be greatly appreciated. I have been stuck on this problem for days. Thank you,Hao
_________________________________________________________________
Watch “Cause Effect,” a show about real people making a real difference. Learn more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
More information about the Ns-users
mailing list