27 #include "ns3/object.h" 28 #include "ns3/flow-classifier.h" 29 #include "ns3/nstime.h" 80 typedef std::map<FlowId, FlowStats>
Stats;
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
static TypeId GetTypeId(void)
Register this type.
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.
def indent(source, debug, level)
FlowProbe & operator=(FlowProbe const &)
Defined and not implemented to avoid misuse.
std::vector< uint32_t > packetsDropped
packetsDropped[reasonCode] => number of dropped packets
Stats GetStats() const
Get the partial flow statistics stored in this probe.
Structure to hold the statistics of a flow.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
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...
Time Seconds(double value)
Construct a Time in the indicated unit.
void SerializeToXmlStream(std::ostream &os, uint16_t 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.
static const uint32_t packetSize
A base class which provides memory management and object aggregation.
FlowProbe(FlowProbe const &)
Defined and not implemented to avoid misuse.
a unique identifier for an interface.
virtual void DoDispose(void)
Destructor implementation.
Stats m_stats
The flow stats.
uint32_t FlowId
Abstract identifier of a packet flow.