Hi Gustavo,
thank you very much for this fast and promising answer. I read about
the flow monitor, tried to implement it once but did not succeed.
Infact now I tried again with the information from your
presentation ... and did not succeed. Inserting around Simulator::Run
() your code snipped
flowmon_helper = ns3.FlowMonitorHelper();
monitor = flowmon_helper.InstallAll();
monitor.SetAttribute("DelayBinWidth",ns3.DoubleValue(0.001));
monitor.SetAttribute("JitterBinWidth",ns3.DoubleValue(0.001));
monitor.SetAttribute("PacketSizeBinWidth",ns3.DoubleValue(20));
ns3.Simulator.Run();
monitor.SerializeToXmlFile("results.xml",True,True);
gave me the error, flowmon_helper is not known. Adding the lines
FlowMonitorHelper flowmon_helper;
FlowMonitor monitor;
in the head of the given code, did not work neither... Could you
provide me with an more extensive example code how to implement the
flow monitor? Shall I replace the Simulator::Run() line with the
ns3.Simulator.Run() ? Am I missing something big time?
Thanks again,
Fabian
On 10 Dez., 15:20, Gustavo Carneiro <
gjcarne...@gmail.com> wrote:
> 2009/12/10 fab <
fabian.binterna...@gmail.com>
>
>
>
> > Hi,
>
> > I found this post (
http://groups.google.com/group/ns-3-users/
> > browse_thread/thread/3cc1ce3da81eb39d/a27277f63eabf6c3?lnk=gst&q=trace
> > +packets#a27277f63eabf6c3) with a pretty decent proposal how to
> > measure end to end delay using TimestampTags. As I was not able to
> > post in this thread I started this one. I followed the steps and had
> > to modify some small things (AddTag -> AddByteTag &
> > FindFirstMatchingTag -> FindFirstMatchingByteTag) but I get
> > segmentation faults once I implement the line (in the trace sink
> > within my project, not in onoff-application.cc)
>
> > p->FindFirstMatchingTag(timestamp);
>
> > I encapsulated this line in an if statement, but once the timestamp
> > object is accessed, my program crashes with the given error. I added
> > "ns3/onoff-application.h" to the headers and if I only write the
> > TimestampTag timestamp; line and do not access the object no error
> > occurs. It seems, he finds the class, but not the object.
>
> > Anyone got any hint to solve this, or an alternative to trace end to
> > end delay (at program runtitme, thus not a pcap analysis, etc)?
>
> You could also use Flow Monitor. See src/contrib/flow-monitor,
> examples/flow-monitor, andhttp://
telecom.inescporto.pt/~gjc/flowmon-presentation.pdf