[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prob with queues



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>


hope this helps,
chris

 -----------------------------------------------------------------
  Christof Brandauer                        [email protected]
  Student of Applied Informatics                 
  Department of Computer Science, University of Salzburg, Austria
 -----------------------------------------------------------------