[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prob with queues
On Wed, Nov 11, 1998 at 11:09:06AM +0100, Christof Brandauer wrote:
> On Tue, 10 Nov 1998, Sudhir Subramanian wrote:
>
> : hi
> :
> : I wanted to set the properties of some queuing algos eg. DRR
> : so what I did was this :
> :
> : set d [new Queue/DRR]
> : {here set properties}
> :
> :
> : $ns duplex-link $n0 $n2 1Mb 10ms $d
> :
>
> the duplex-link procedure does not take a queue object as its last
> argument, but rather the TYPE of queue that should be created.
>
> so you should better make a:
>
> $ns duplex-link $n0 $n2 1Mb 10ms DRR
>
> you can then get a handle for the queue object with
>
> set q [[$ns link $n0 $n2] queue]
>
> and change the default properties
>
> $q set <property> <value>
>
>
Thanks for the help. But can you tell me how to test whether this
> actually works. I tried changing some paramters but did not notice
> any change in out.nam.
Then I tried to add a command in drop-tail.cc to print out the value
of the parameter (qlim_) . But then when I used it in the tcl file as
$q qlimit
qlimit was the name of the command. This did not compile. Can you tell
me what is wrong?
Thanks again
--sudhir
> hope this helps,
> chris
>
> -----------------------------------------------------------------
> Christof Brandauer [email protected]
> Student of Applied Informatics
> Department of Computer Science, University of Salzburg, Austria
> -----------------------------------------------------------------
>