Dear Experts,

I would like to change the bandwidth of a SimpleLink. I checked all previous 
posts but couldn't find answers. 

My simple link is created by:
$ns duplex-link $node_(m0) $node_(t) 100Mb 50ms DropTail

Let say I like to change it's bandwidth_ to 1Mb during the simulation, so I do:
$ns at 3.0 "puts \"Changing bandwidth_ to = [[[$ns link $node_(m0) $node_(t)] 
link] set bandwidth_ 1mb]\""

The simulations run, but the results look very weird in NAM. It looks to me the 
bandwidth_ is set to be 1mb at time 0.0, and I have many packet drops before 
3.0 sec. 

Any hints are highly appreciated. Many Thanks!

Regards,
Chenghsin

Reply via email to