29 #include "ns3/packet.h"
30 #include "ns3/object.h"
31 #include "ns3/traced-callback.h"
136 void EnableRunningAverage (
Time averageWindow);
137 void DisableRunningAverage (
void);
139 double GetQueueSizeAverage (
void);
140 double GetReceivedBytesPerSecondAverage (
void);
141 double GetReceivedPacketsPerSecondAverage (
void);
142 double GetDroppedBytesPerSecondAverage (
void);
143 double GetDroppedPacketsPerSecondAverage (
void);
145 double GetQueueSizeVariance (
void);
146 double GetReceivedBytesPerSecondVariance (
void);
147 double GetReceivedPacketsPerSecondVariance (
void);
148 double GetDroppedBytesPerSecondVariance (
void);
149 double GetDroppedPacketsPerSecondVariance (
void);
keep track of time values and allow control of global simulation resolution
bool Enqueue(Ptr< Packet > p)
Place a packet into the rear of the Queue.
uint32_t m_nTotalDroppedBytes
virtual Ptr< Packet > DoDequeue(void)=0
forward calls to a chain of CallbackAn ns3::TracedCallback has almost exactly the same API as a norma...
uint32_t GetTotalDroppedPackets(void) const
uint32_t m_nTotalReceivedBytes
void ResetStatistics(void)
Resets the counts for dropped packets, dropped bytes, received packets, and received bytes...
Abstract base class for packet Queues.
uint32_t GetTotalReceivedBytes(void) const
static TypeId GetTypeId(void)
virtual bool DoEnqueue(Ptr< Packet > p)=0
Ptr< Packet > Dequeue(void)
Remove a packet from the front of the Queue.
uint32_t GetNPackets(void) const
Use number of bytes for maximum queue size.
TracedCallback< Ptr< const Packet > > m_traceDequeue
TracedCallback< Ptr< const Packet > > m_traceDrop
uint32_t GetNBytes(void) const
QueueMode
Enumeration of the modes supported in the class.
Ptr< const Packet > Peek(void) const
Get a copy of the item at the front of the queue without removing it.
Use number of packets for maximum queue size.
uint32_t GetTotalReceivedPackets(void) const
uint32_t m_nTotalReceivedPackets
uint32_t m_nTotalDroppedPackets
void DequeueAll(void)
Flush the queue.
TracedCallback< Ptr< const Packet > > m_traceEnqueue
virtual Ptr< const Packet > DoPeek(void) const =0
uint32_t GetTotalDroppedBytes(void) const
a base class which provides memory management and object aggregation
a unique identifier for an interface.
void Drop(Ptr< Packet > packet)
Drop a packet.