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

[ns] Queue Monitor - queue size vs time



(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