29 #include "ns3/packet.h"
30 #include "ns3/object.h"
31 #include "ns3/traced-callback.h"
140 void EnableRunningAverage (
Time averageWindow);
141 void DisableRunningAverage (
void);
143 double GetQueueSizeAverage (
void);
144 double GetReceivedBytesPerSecondAverage (
void);
145 double GetReceivedPacketsPerSecondAverage (
void);
146 double GetDroppedBytesPerSecondAverage (
void);
147 double GetDroppedPacketsPerSecondAverage (
void);
149 double GetQueueSizeVariance (
void);
150 double GetReceivedBytesPerSecondVariance (
void);
151 double GetReceivedPacketsPerSecondVariance (
void);
152 double GetDroppedBytesPerSecondVariance (
void);
153 double GetDroppedPacketsPerSecondVariance (
void);
Simulation virtual time values and global simulation resolution.
bool Enqueue(Ptr< Packet > p)
Place a packet into the rear of the Queue.
uint32_t m_nTotalDroppedBytes
Total dropped bytes.
virtual Ptr< Packet > DoDequeue(void)=0
Pull a packet from the queue.
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
Total received bytes.
void ResetStatistics(void)
Resets the counts for dropped packets, dropped bytes, received packets, and received bytes...
uint32_t m_nPackets
Number of packets in the queue.
Abstract base class for packet Queues.
uint32_t GetTotalReceivedBytes(void) const
static TypeId GetTypeId(void)
Get the type ID.
virtual bool DoEnqueue(Ptr< Packet > p)=0
Push a packet in the queue.
Ptr< Packet > Dequeue(void)
Remove a packet from the front of the Queue.
uint32_t GetNPackets(void) const
uint32_t m_nBytes
Number of bytes in the queue.
Use number of bytes for maximum queue size.
TracedCallback< Ptr< const Packet > > m_traceDequeue
Traced callback: fired when a packet is dequeued.
TracedCallback< Ptr< const Packet > > m_traceDrop
Traced callback: fired when a packet is dropped.
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
Total received packets.
uint32_t m_nTotalDroppedPackets
Total dropped packets.
void DequeueAll(void)
Flush the queue.
TracedCallback< Ptr< const Packet > > m_traceEnqueue
Traced callback: fired when a packet is enqueued.
virtual Ptr< const Packet > DoPeek(void) const =0
Peek the front packet in the queue.
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.