[ns] How to modify the bandwidth during simulation (urgent)

haicheng flammy flammy_ns at yahoo.com
Wed Apr 6 21:22:40 PDT 2005


Hi, everyone
 
I want to change the bandwidth of a link during simulation.  How can I do it?
 
for example, I used:
.........
set link [$ns duplex-link n0 n1 2Mb 20ms DropTail]
.........
$ns at 1.0 [$link set bandwidth 1Mb]
 
But it doesn't work.  Why? How can I do it?
 
Thanks a lot

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Ns-users mailing list