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

[ns] Flowmonitor Trace - missing data



Hello,  I use flowmonitor to gather information about flows. The monitor
has been initiated this way: 

  set flow_stat [open flow.stat w]  
  set flowmon_ [$ns makeflowmon Fid]
  $ns attach-fmon [$ns link $receiver $final_receiver] $flowmon_ 0
  set_flowMonitor $flowmon_ $flow_stat

  proc set_flowMonitor {flowmon output_chan} {
      $flowmon attach $output_chan
      return $flowmon
  }

Thereafter I dump the flowinfo once every 0.1 seconds using the follwing
piece of code:
  
  proc dump_flow_info {}  {
      global ns flowmon_ 
      $flowmon_ dump
      $ns after 0.1 "dump_flow_info" 
  }


Looking in my trace file flow.stat I have lines looking like this:
   1.000 1 0 2 1 0 6 qd qd 156 0 qd qd 156000 0 0 0 341 0
   1.000 2 0 2 2 1 6 qd qd 159 0 qd qd 159000 0 0 0 341 0
   1.000 3 0 2 3 2 6 qd qd 26 0 qd qd 26000 0 0 0 341 0      

Some of the columns doesn't have proper values but instead are marked
"qd". Does anybody have any clue why this is happening? 

I get the same sort of result if I run the test file
test-suite-simple.tcl, suggesting that maybe I am not doing anything
wrong?? test-suite-simple.tcl plots the following information to the
screen:

koltrast$ ns test-suite-simple.tcl stats
...
...
tcp 0 total_packets_acked 335
tcp 1 total_packets_acked 87
fid: 0 per-link total_drops 13
fid: 0 per-link total_packets qd
fid: 0 per-link total_bytes qd
fid: 1 per-link total_drops 6
fid: 1 per-link total_packets qd
fid: 1 per-link total_bytes qd
aggregate per-link total_drops 19
aggregate per-link total_packets qd   


	Any suggestions would be greatly appreciated!

		Regards, Jorgen