[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Add queue
Hi,
Thanks for the reply. Actually I was confused because when I looked into
monitor-queue function, there is a parameter SampleInstance, which is
actually used in init-monitor function. But I couldn't find any use of it. I
thought it was used to sample the queue length.
I am wondering if I want to record a trace of the instantaneous queue size
sampled at each packet arrival and departure, and compute the average of the
queue size over the duration of the simulation, should I use the trace file
to record it or I could just use queuemonitor? Where can I get a similar
example or has anyone done this before?
Thanks a lot,
Huiwen
> -----Original Message-----
> From: Haobo Yu [mailto:[email protected]]
> Sent: Monday, August 09, 1999 12:44 PM
> To: Huiwen Li
> Cc: Vincenzo Mazzota; Mailing List ns-2
> Subject: RE: Add queue
>
>
> No it counts packets/bytes per arrival and per departure. Pls look at
> queue-monitor.{cc,h}. You can access those stats using the bound
> variables, e.g., pdeparture_.
>
> - haobo
>
> On Mon, 9 Aug 1999, Huiwen Li wrote:
>
> > Hi,
> >
> > I looked into that file and as I understand, the
> monitor-queue function
> > monitors the queue every interval_ time. I am wondering if
> I want to monitor
> > the queue on per arrival packet base, what should I do? Is
> there any such
> > example or function?
> >
> > Thanks,
> > Huiwen
> >
> > > -----Original Message-----
> > > From: Haobo Yu [mailto:[email protected]]
> > > Sent: Saturday, August 07, 1999 1:10 PM
> > > To: Vincenzo Mazzota
> > > Cc: Mailing List ns-2
> > > Subject: Re: Add queue
> > >
> > >
> > > queue monitors are independent of ns/nam traces. Look at
> > > tcl/test/test-suite-intserv.tcl for an example of using
> them; grep for
> > > "monitor-queue". Look at tcl/lib/ns-lib.tcl for its syntax.
> > >
> > > - Haobo
> > >
> > > On Sat, 7 Aug 1999, Vincenzo Mazzota wrote:
> > >
> > > > Hi to everybody,
> > > >
> > > > Thanks for your answers....
> > > > I would like to add to my topology a queue-monitor that
> > > allows me of to
> > > > calculate the statistics of the queue as for instance
> middle time of
> > > > wait in the queue, middle length of the queue etc.
> > > > Besides I would like to save in the files out.tr or/and
> out.nam the
> > > > information related to the statistic of the queue...
> > > > If someone has some examples from to let see me respect
> to as the
> > > > queue-monitor it is used and to as the information of the
> > > simulation you
> > > >
> > > > can be chosen that want to save each other on the files...
> > > >
> > > > Thank you in advance
> > > >
> > > > Vincenzo Mazzotta
> > > > ([email protected])
> > > >
> > >
> > >
> >
>
>