[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Flow Monitor <-- Help Needed
Hi,
After a couple of days, I eventually managed to get the QueueMonitor working
and I get stats for queue size, packets dropped and bandwidth on a link -->
REALLY COOL ;-)
What i would like to do now is monitor 2 flows on 1 link to be able to
compute *each* flow's bandwidth, packets dropped and queue size (I marked
the flows with $tcp0 set fid_ 0, $tcp1 set fid_ 1).
I understand I need to use a FlowMonitor for this but I can't make it work.
I have read the Ns manual carefully, read the examples in
~ns/tcl/rtmechanisms and I searched the almost-5-years-big archive before
posting (there were many unanswered flow-monitor questions btw).
I was wondering if any kind soul would be ok to send me a working
flow-monitor script from which I could extract the info I need for my custom
work ?
This is how far I got :
set mylink [$ns duplex-link $n0 $n1 1.5Mb 10ms DropTail]
set flowf [open flow.flow w]
set fmon [$ns makeflowmon Fid]
$ns attach-fmon $mylink $fmon
$fmon attach $flowf
$ns at 3.0 "$fmon dump"
Thx alot
Thomas