Hi

I call addQueueWeights from a Tcl function that I schedule for the
necessary moment of time, it works. However, it should also be working if
you do it as described in your post:

$ns at 0.1 "$qE1C addQueueWeights 0 5"   *** does not works here


Sincerely,
Alexander Sayenko

>
> Dear ns users, I am trying to dynamically set a queue wight through the
> command addQeueWeights( ). It is successfully  set when called during the
> queue configuration (shown as follows)
>
> $qE1C setSchedularMode WFQ
> $qE1C meanPktSize $packetSize
> $qE1C set numQueues_ 3
> $qE1C setNumPrec 1
> $qE1C addPolicyEntry [$n(0) id] [$n(5) id] TokenBucket 01 $cir0 $cbs0
> $qE1C addPolicerEntry TokenBucket 01 01
> $qE1C addPHBEntry 01 0 0
> $qE1C configQ 0 0 50 70 0.02
> $qE1C addQueueWeights 0 1        ***** called here
>
> However, when called in the event shceduller or from my agent it does not
> make the alteration, contrary for instance the command printStats which
> works fine.
>
> $ns at 0.1 "$qE1C addQueueWeights 0 5"   *** does not works here
>
> I inserted printf( ) comman in order to print the queue and wights values
> in the addQueueWeights( ) function (in dsRED.cc), and the result is the
> value given in the simulation script, independent where it is called.
> However the alteration is ONLY performed when called during the queue
> configuration.
> Some help?
> I will be waiting for comments, king regards.
>
> Augusto
>


Reply via email to