flowmonitor

752 views
Skip to first unread message

Research

unread,
May 16, 2013, 4:06:19 AM5/16/13
to ns-3-...@googlegroups.com
i have added code for creating xml file for flowmonitor
how can i view it in Netanim 
what are the other ways to view results from flowmonitor file

thanx

Konstantinos

unread,
May 16, 2013, 6:01:55 AM5/16/13
to ns-3-...@googlegroups.com
Hi,

To view them in NetAmin, you open NetAnim, select the second tab (Stats), in the drop-down menu on the left you select FlowMonitor and then you open your FlowMonitor file.

However, there are 2 other ways to view your results. 

1) Use the flowmon-parse-results.py script which exists in FlowMonitor examples folder
2) Parse the results within your scenario script without the need to create an xml file like this

If you search the mailing list you can find more discussions about FlowMonitor.

Regards
Konstantinos

Research

unread,
May 18, 2013, 3:33:55 AM5/18/13
to ns-3-...@googlegroups.com
hi sir

thanx for reply

when i open flowmonitor file (xml) in NetAnim as u have mentioned above ..nothing happens ..one message is being displayed .." No info available did you load xml file ".

Regards

Konstantinos

unread,
May 19, 2013, 8:26:37 AM5/19/13
to ns-3-...@googlegroups.com
Open flowmonitor file with any text_editor (it is just an .xml file) and see if there are entries or your file is empty.
You have to create the flowmonitor and install it on the nodes before the Simulator::Run and serialize to the .xml file AFTER the Run().

research scholar

unread,
May 22, 2013, 12:50:18 AM5/22/13
to ns-3-...@googlegroups.com
sir 
 .xml file has following contents 
<FlowMonitor>
  <FlowStats>
  </FlowStats>
  <Ipv4FlowClassifier>
  </Ipv4FlowClassifier>
  <FlowProbes>
    <FlowProbe index="0">
    </FlowProbe>
    <FlowProbe index="1">
    </FlowProbe>
    <FlowProbe index="2">
    </FlowProbe>
    <FlowProbe index="3">
    </FlowProbe>
    <FlowProbe index="4">
    </FlowProbe>
    <FlowProbe index="5">
    </FlowProbe>
    <FlowProbe index="6">
    </FlowProbe>
    <FlowProbe index="7">
    </FlowProbe>
    <FlowProbe index="8">
    </FlowProbe>
    <FlowProbe index="9">
    </FlowProbe>
    <FlowProbe index="10">
    </FlowProbe>
    <FlowProbe index="11">
    </FlowProbe>
    <FlowProbe index="12">
    </FlowProbe>
    <FlowProbe index="13">
    </FlowProbe>
    <FlowProbe index="14">
    </FlowProbe>
    <FlowProbe index="15">
    </FlowProbe>
    <FlowProbe index="16">
    </FlowProbe>
    <FlowProbe index="17">
    </FlowProbe>
    <FlowProbe index="18">
    </FlowProbe>
    <FlowProbe index="19">
    </FlowProbe>
  </FlowProbes>
</FlowMonitor>

when i open it in Netanim from stat tab (selected flow-Monitor from drop down menu and then FlowMon file )
same message of "No data available did you load xml file" is being shown and progress bar of parsing complete is moving side to side 
sir also tell other way of doing  result analysis from trace file etc. as i want to measure various Qos parameters for various protocols in ad hoc networks ..sir do you know how to make a node in DSR protocol to drop packets 
PLz help me 
 thanks '
Regards



--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/rZ9EIrJzmsI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

research scholar

unread,
May 23, 2013, 5:29:01 AM5/23/13
to ns-3-...@googlegroups.com
sir 
i am writing this code 

Simulator::Stop (Seconds (TotalTime));
FlowMonitorHelper flowmon;
Ptr<FlowMonitor> monitor = flowmon.InstallAll();
NS_LOG_INFO ("Run Simulation.");
  
  Simulator::Run ();

monitor->SerializeToXmlFile ("flownrew.xml", true, true);

  Simulator::Destroy ();
}


On Wed, May 22, 2013 at 2:19 PM, Konstantinos <dinos.k...@gmail.com> wrote:
Obviously your FlowMonitor xml file is empty. There are not entries. Correctly NetAnim says that.
Most likely you have done the SerialzeToXml before the Run(), that's why your file is empty.

If you read the documentation/wiki/mailing list you can find how you can create/parse/analyse trace file in NS-3.

For explicitly dropping packets, you have to go in the source code of the routing protocol and do not 'forward' the packet to the next node/layer. So it will be seen as dropped. 

Konstantinos

unread,
May 22, 2013, 4:49:54 AM5/22/13
to ns-3-...@googlegroups.com
Obviously your FlowMonitor xml file is empty. There are not entries. Correctly NetAnim says that.
Most likely you have done the SerialzeToXml before the Run(), that's why your file is empty.

If you read the documentation/wiki/mailing list you can find how you can create/parse/analyse trace file in NS-3.

For explicitly dropping packets, you have to go in the source code of the routing protocol and do not 'forward' the packet to the next node/layer. So it will be seen as dropped. 

On Wednesday, May 22, 2013 5:50:18 AM UTC+1, Research wrote:
Reply all
Reply to author
Forward
0 new messages