[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Blocking a DropTail queue
Hi,
Does anybody know how to set the variable blocked_ for a DropTail queue
at a specified time?
If I use:
$ns duplex-link $n0 $n1 10ms DropTail
set q [[$ns link $n0 $n1] queue]
$q set blocked_ 1
Then the queue is successfuly blocked at the beggining of the
simulation. However if I try to block the queue later instead of at the
start of the simulation:
$ns at 6.0 "$q set blocked_ 1"
Then there are no error messages but the queue is never blocked.
Any ideas would be greatly appreciated.
Cheers,
Gustavo.