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

Re: [ns] Queue Monitor - queue size vs time



Hi,

Thanks for your reply. I would just like to bring to your notice that i am
not really a programmer. So I am not able to understand exactly what do
you mean  'create variables for your self'.. you mean in the C++ code of
ns or in the TCL code? Could you please demonstrate with a couple of
statements to show how?

Also I wanted to ask, if the queue monitor simply accumulates, then how do
i get certain part in the trace file where the size in bytes/packets
reduces. Here is that part of the trace file again for your reference:

> > file --> trace410.tr : sample every 0.05 secs
> >    time    Size(b)   size(pkts)  pdrops_    parrv_   pdep_
> >   10.350 -505600.000  -463.000   610.000   866.000   719.000
> >   10.400 -506112.000  -462.000   612.000   877.000   727.000
> >   10.450 -504576.000  -462.000   618.000   891.000   735.000
> >   10.500 -505600.000  -463.000   623.000   902.000   742.000
> >   10.550 -504832.000  -463.000   625.000   914.000   752.000
> >   10.600 -506112.000  -462.000   631.000   925.000   756.000
> >   10.650 -505344.000  -462.000   633.000   936.000   765.000
> >   10.700 -506368.000  -463.000   636.000   945.000   772.000
> >   10.750 -506880.000  -462.000   637.000   955.000   780.000
> >   10.800 -507136.000  -463.000   646.000   969.000   786.000
> >   10.850 -506112.000  -462.000   648.000   981.000   795.000
> >   10.900 -506880.000  -462.000   651.000   991.000   802.000
> >   10.950 -507136.000  -463.000   657.000  1003.000   809.000
> >   11.000 -505600.000  -463.000   663.000  1019.000   819.000
> >   11.050 -505344.000  -462.000   665.000  1031.000   828.000
> >   11.100 -506112.000  -462.000   668.000  1041.000   835.000


Thanks a lot for your help
With good wishes,
ns


On Wed, 19 Sep 2001, Abbas Makki wrote:

> Hello
>
> This is because the queue monitor simply accumulates arrivals ect until the end
> of the simulation run. The best way to achaive what you want is to create
> variables for your self where you could rest them after some interval of your
> choice vs packet interval.
>
>
> >X-Originating-IP: [152.14.27.101]
> >Date: Tue, 18 Sep 2001 23:48:58 -500
> >User-Agent: IMHO/0.97.1 (Webmail for Roxen)
> >To: [email protected]
> >Subject: [ns] Queue Monitor - queue size vs time
> >From: Nipul Shah <[email protected]>
> >MIME-Version: 1.0
> >Content-Transfer-Encoding: 8bit
> >
> >(sorry for the long email)
> >Hi,
> >I am interested in plotting queue size vs time, for which I used
> >monitor-queue to obtain the trace file for the queue. Here is a sample of
> >the output i received.
> >
> > file --> trace410.tr : sample every 0.05 secs
> >    time    Size(b)   size(pkts)  pdrops_    parrv_   pdep_
> >    0.000     0.000     0.000     0.000     0.000     0.000
> >    0.050     0.000     0.000     0.000     0.000     0.000
> >    0.100     0.000     0.000     0.000     0.000     0.000
> >    0.150  -512.000    -2.000     0.000     0.000     2.000
> >    0.200  -512.000    -2.000     0.000     0.000     2.000
> >    0.250  -512.000    -2.000     0.000     0.000     2.000
> >    0.300  -512.000    -2.000     0.000     0.000     2.000
> >    0.350  -512.000    -2.000     0.000     0.000     2.000
> >    0.400  -512.000    -2.000     0.000     0.000     2.000
> >    0.450  -512.000    -2.000     0.000     0.000     2.000
> >    0.500  -512.000    -2.000     0.000     0.000     2.000
> >    0.550  -512.000    -2.000     0.000     0.000     2.000
> >    0.600 -3584.000    -5.000     0.000     0.000     5.000
> >    0.650 -6656.000    -8.000     0.000     0.000     8.000
> >    0.700 -10752.000   -12.000     0.000     0.000    12.000
> >    0.750 -13824.000   -15.000     0.000     0.000    15.000
> >    0.800 -16896.000   -18.000     0.000     0.000    18.000
> >    0.850 -19968.000   -21.000     0.000     0.000    21.000
> >    0.900 -23040.000   -24.000     0.000     0.000    24.000
> >    0.950 -26112.000   -27.000     0.000     0.000    27.000
> >    1.000 -29184.000   -30.000     0.000     0.000    30.000
> >    1.050 -32256.000   -33.000     0.000     0.000    33.000
> >    1.100 -36352.000   -37.000     0.000     0.000    37.000
> >    1.150 -39424.000   -40.000     0.000     0.000    40.000
> >
> >QUESTION:
> >based on the simulation, there is atmost one packet in the queue at a
> >given instant of time, as confirmed by nam trace file and nam simulation
> >also. Thus, I should have only 1 packet at a given time, with also the
> >queue size being the size of the packet. But from the above trace file,
> >every time a packet enters and leaves, the queue monitor just seems to be
> >adding up the sizes.
> >
> >Here is another sample:
> > file --> trace410.tr : sample every 0.05 secs
> >    time    Size(b)   size(pkts)  pdrops_    parrv_   pdep_
> >   10.350 -505600.000  -463.000   610.000   866.000   719.000
> >   10.400 -506112.000  -462.000   612.000   877.000   727.000
> >   10.450 -504576.000  -462.000   618.000   891.000   735.000
> >   10.500 -505600.000  -463.000   623.000   902.000   742.000
> >   10.550 -504832.000  -463.000   625.000   914.000   752.000
> >   10.600 -506112.000  -462.000   631.000   925.000   756.000
> >   10.650 -505344.000  -462.000   633.000   936.000   765.000
> >   10.700 -506368.000  -463.000   636.000   945.000   772.000
> >   10.750 -506880.000  -462.000   637.000   955.000   780.000
> >   10.800 -507136.000  -463.000   646.000   969.000   786.000
> >   10.850 -506112.000  -462.000   648.000   981.000   795.000
> >   10.900 -506880.000  -462.000   651.000   991.000   802.000
> >   10.950 -507136.000  -463.000   657.000  1003.000   809.000
> >   11.000 -505600.000  -463.000   663.000  1019.000   819.000
> >   11.050 -505344.000  -462.000   665.000  1031.000   828.000
> >   11.100 -506112.000  -462.000   668.000  1041.000   835.000
> >in this sample area the queue size fluctuates between 2 packets.
> >
> >another sample:
> > file --> trace410.tr : sample every 0.05 secs
> >    time    Size(b)   size(pkts)  pdrops_    parrv_   pdep_
> >   49.300 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.350 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.400 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.450 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.500 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.550 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.600 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.650 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.700 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.750 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.800 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.850 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.900 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   49.950 -521728.000  -511.000  1264.000  4822.000  4069.000
> >   50.000 -521728.000  -511.000  1264.000  4822.000  4069.000
> >the queue is actually supposed to be empty with no data transfer taking
> >place over the link.. i am not able to understand this queue output.
> >
> >could anyone please help to plot this queue size vs time?
> >help urgently required.
> >
> >thanks.
> >
> >ns
> >
> >
> >
> >
> >
>
>

- Nipul Shah
  MS in Computer Engineering, NCSU.
  2500 Avent Ferry Rd., Apt 207,
  Raleigh, NC 27606.
  PH: 919-754-1779

Nipul - [email protected]
Chastity - [email protected]
http://www4.ncsu.edu/~njshah/faq.html