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

[ns] Re: ask about queue-monitor



As far as I understood the Integrator object, it computers the integral (by
discrete aproximations) of the queue size over a time period.  So, in order
to get the average queue size, you have to divide this integrated value by
the total simulated time.

I would have to look at your code in order to try to figure out what is
going on... but perhaps your queue is just not large, since there are so
many dropped packets.

Portnoi

----- Original Message -----
From: "sun yiran" <[email protected]>
To: <[email protected]>
Sent: Wednesday, 3 de October de 2001 09:21
Subject: ask about queue-monitor


> Hi Portnoi,
>
> I found your code about queue-monitor in ns-mailing
> list and tried using it in my script file. It's really
> very good. However, when I analysed the result, I
> found a very strange thing. Please first look at the
> following data.
>
> queue:   r4 - r9
> arrival(pkts): 96530
> departure(pkts):58692
> drop(pkts): 37838
> average queue size(pkts): 0.433622
> sum(pkts): 0.008672
>
> Here I'd like to do some comments. The method to get
> above results is similar to the method described in
> the example provided by you. The max-time of
> simulation is 0.02s.
>
> I am very confused for the "average queue size" (or
> "sum" ) result. Why is it so small decimal number? And
> how to explain it here?
>
> Because you use
>
> set pktsInt [eval $qmon get-pkts-integrator]
> set avg_queue_p [eval [$pktsInt set sum_]/$MAX_TIME],
>
> I checked the NS-manual and it mentions that this
> integrator evaluation time range is [t0, now], and t0
> is either the start of the simulation or the last time
> the sum_ field of underlying Integrator class was
> reset. I think here it should be the start time of
> simulation, but why the "average queue size" is so
> small decimal?
>
> Look forward your email. Thank you!
>
> Sincerely,
> Yr
>
>
> __________________________________________________
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone.
> http://phone.yahoo.com
>
>