27 #include "ns3/object.h"
28 #include "ns3/flow-classifier.h"
29 #include "ns3/nstime.h"
76 typedef std::map<FlowId, FlowStats>
Stats;
keep track of time values and allow control of global simulation resolution
smart pointer class similar to boost::intrusive_ptr
std::vector< uint64_t > bytesDropped
bytesDropped[reasonCode] => number of dropped bytes
void AddPacketStats(FlowId flowId, uint32_t packetSize, Time delayFromFirstProbe)
Add a packet data to the flow stats.
Ptr< FlowMonitor > m_flowMonitor
the FlowMonitor instance
uint32_t packets
Number of packets seen of this flow.
uint64_t bytes
Number of bytes seen of this flow.
FlowProbe & operator=(FlowProbe const &)
Defined and not implemented to avoid misuse.
std::vector< uint32_t > packetsDropped
packetsDropped[reasonCode] => number of dropped packets
Structure to hold the statistics of a flow.
void AddPacketDropStats(FlowId flowId, uint32_t packetSize, uint32_t reasonCode)
Add a packet drop data to the flow stats.
The FlowProbe class is responsible for listening for packet events in a specific point of the simulat...
Time delayFromFirstProbeSum
divide by 'packets' to get the average delay from the first (entry) probe up to this one (partial del...
void SerializeToXmlStream(std::ostream &os, int indent, uint32_t index) const
Serializes the results to an std::ostream in XML format.
std::map< FlowId, FlowStats > Stats
Container to map FlowId -> FlowStats.
Stats GetStats() const
Get the partial flow statistics stored in this probe.
a base class which provides memory management and object aggregation
FlowProbe(FlowProbe const &)
Defined and not implemented to avoid misuse.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Stats m_stats
The flow stats.
uint32_t FlowId
Abstract identifier of a packet flow.