[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: trace Average Queue Size in RED
Thanks for the prompt reply.
I look at the ns documentation but I couldn't find how to access my queue
instance. I just defined the queue in this line.
$ns duplex-link $n1 $n2 3Mb 10ms RED
how can I define the variable $redq to this queue?
set redq .........?
set avgque [$redq set ave_]
puts " Average Queue Size = $avgque "
Thanks again,
Fusun.
> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to
[email protected] using -f
> From: "Jeremy Ethridge" <[email protected]>
> To: [email protected]
> Subject: RE: trace Average Queue Size in RED
> Date: Thu, 10 Jun 1999 07:52:39 -0500
> MIME-Version: 1.0
>
> Hi Fusun,
>
> The RED TCL parameter for the instantaneous weighted average queue size
> is ave_. So, if the variable $redq is set to the queue that you want to
> monitor, then the command
>
> [$redq set ave_]
>
> will return the current value of the weighted average queue size. Please
> note that you do not want to access simply Queue/RED; instead you must
> access the particular queue instance for the link between $n1 and $n2.
>
> The mean_pktsize_ parameter should be set to the mean size, in bytes, of
> the packets that will enter this queue. The RED algorithm uses this
> parameter to adjust the weighted queue average when the link is idle.
>
> Jeremy Ethridge,
> Computing Technology Lab,
> Nortel Networks.
>
>
> > -----Original Message-----
> > From: Fusun Inanc [SMTP:[email protected]]
> > Sent: Wednesday, June 09, 1999 5:35 PM
> > To: [email protected]
> > Subject: trace Average Queue Size in RED
> >
> >
> >
> > Hi,
> >
> > I created a link which uses RED queue algoritm. And I want to trace
> > average
> > queue size . How can I do that?
> >
> > I used the following , but it doesn't help...
> >
> > $ns duplex-link $n1 $n2 3Mb 10ms RED
> > set avgque [Queue/RED set mean_pktsize_]
> > puts " Average Queue Size = $avgque "
> >
> > Thanks in advance..
> >
> > Fusun Inanc
> >