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

[ns] FlowMonitor <-- Please someone help me !



Hey all,

After reading and digging thru the ns archive i managed to find some pieces
of code that once put together gave me a working flow monitoring script I
then customised it a bit.

Rite now the topology looks like this,


n0
  \
   \
    n1 ---------- n3
   /
  /
n2


I am monitoring 2 tcp flows (flow id 0 & 1) on the link n1 - n3

With my current script, the output file with the flows looks like this :

   0.300 0 0 2 0 0 3 31 9300 0 0 38 12800 0 0 0 0 0 0
   0.300 1 0 2 1 2 3 7 3500 0 0 38 12800 0 0 0 0 0 0
   0.400 0 0 2 0 0 3 71 21300 0 0 102 36800 0 0 0 0 0 0
   0.400 1 0 2 1 2 3 31 15500 0 0 102 36800 0 0 0 0 0 0

So its doing its job !
The only problem i have is that i would like to collect the same stats I
collected using monitor-queue.
I'd like to get are size_ pkts_ barrivals_ bdepartures_ parrivals_
pdepartures_ bdrops_ pdrops_.

I have attached the script to this email.

Could someone please add the necessary lines so i can gather those stats ...
that would really help me out cos i'm running a bit out of time ...

Thx ALOT

Thomas

flow_adv.tcl