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

Re: [ns] Re: queue calculation



Hi.

There is no concept of an average queue in DropTail. So you can only trace
the instantaneous queue. The problem is that DropTail does not maintain
ave_ and curq_ variables. So maybe you can run an awk script on the trace
file (.tr) and extract the instantaneous queue trace from it.

Or you can set the parameters of RED so that it degenerates to DropTail.
For instance, wq=1, thresh=maxthresh=queuelimit, maxp=1 etc. Then the same
code can be used.

Hope that helps.
Aravind

On Sun, 11 Nov 2001, Sai Swaroop Oruganti wrote:

> Hi All
> 	I had been trying to gather the queue statistics for DropTail and I
> couldn't get working with it. The following is the code for RED queue which
> I had tried getting worked for DropTail...all suggestions are desperately
> sought.
> ---------------------------------------
> ...
> ...
> $ns duplex-link $n1 $n3 1Mb 10ms DropTail
> $ns duplex-link $n2 $n3 1Mb 10ms DropTail
> ...
> ...
> # Tracing a queue
>
> set redq [[$ns link $n3 $n4] queue]
> set tchan_ [open example1_all.q w]
> $redq trace curq_
> $redq trace ave_
> $redq attach $tchan_
> ----------------------------------------
> I get an error saying that curq_ and ave_ are not a part of Object droptail.
> Any suggestions?
> 	Thanks in advance.
>
>
> Sincerely
> Sai Swaroop Oruganti
>