27 #ifndef FQ_PIE_QUEUE_DISC    28 #define FQ_PIE_QUEUE_DISC    30 #include "ns3/queue-disc.h"    31 #include "ns3/object-factory.h" bool m_useL4s
True if L4S is used (ECT1 packets are marked at CE threshold) 
double m_a
Parameter to pie controller. 
double m_b
Parameter to pie controller. 
void SetQuantum(uint32_t quantum)
Set the quantum value. 
bool m_useDerandomization
Enable Derandomization feature mentioned in RFC 8033. 
Simulation virtual time values and global simulation resolution. 
std::map< uint32_t, uint32_t > m_flowsIndices
Map with the index of class for each flow. 
Smart pointer class similar to boost::intrusive_ptr. 
void SetStatus(FlowStatus status)
Set the status for this flow. 
ObjectFactory m_flowFactory
Factory to create a new flow. 
virtual bool DoEnqueue(Ptr< QueueDiscItem > item)
This function actually enqueues a packet into the queue disc. 
double m_markEcnTh
ECN marking threshold (default 10% as suggested in RFC 8033) 
A FqPie packet queue disc. 
void SetDeficit(uint32_t deficit)
Set the deficit for this flow. 
uint32_t FqPieDrop(void)
Drop a packet from the head of the queue with the largest current byte count. 
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
FlowStatus m_status
the status of this flow 
uint32_t m_perturbation
hash perturbation value 
int32_t GetDeficit(void) const
Get the deficit for this flow. 
void IncreaseDeficit(int32_t deficit)
Increase the deficit for this flow. 
static TypeId GetTypeId(void)
Get the type ID. 
void SetIndex(uint32_t index)
Set the index for this flow. 
uint32_t GetQuantum(void) const
Get the quantum value. 
Time m_ceThreshold
Threshold above which to CE mark. 
bool m_isCapDropAdjustment
Enable/Disable Cap Drop Adjustment feature mentioned in RFC 8033. 
static constexpr const char * OVERLIMIT_DROP
Overlimit dropped packets. 
uint32_t GetIndex(void) const
Get the index of this flow. 
bool m_useEcn
True if ECN is used (packets are marked instead of being dropped) 
uint32_t m_index
the index for this flow 
uint32_t m_meanPktSize
Average packet size in bytes. 
FqPieFlow()
FqPieFlow constructor. 
std::list< Ptr< FqPieFlow > > m_newFlows
The list of new flows. 
QueueDiscClass is the base class for classes that are included in a queue disc. 
static constexpr const char * UNCLASSIFIED_DROP
No packet filter able to classify packet. 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
virtual Ptr< QueueDiscItem > DoDequeue(void)
This function actually extracts a packet from the queue disc. 
uint32_t m_setWays
size of a set of queues (used by set associative hash) 
Time m_maxBurst
Maximum burst allowed before random early dropping kicks in. 
uint32_t m_quantum
Deficit assigned to flows at each round. 
static TypeId GetTypeId(void)
Get the type ID. 
uint32_t SetAssociativeHash(uint32_t flowHash)
Compute the index of the queue for the flow having the given flowHash, according to the set associati...
Instantiate subclasses of ns3::Object. 
virtual bool CheckConfig(void)
Check whether the current configuration is correct. 
int32_t m_deficit
the deficit for this flow 
virtual void InitializeParams(void)
Initialize parameters (if any) before the first packet is enqueued. 
Time m_tUpdate
Time period after which CalculateP () is called. 
virtual ~FqPieQueueDisc()
A flow queue used by the FqPie queue disc. 
Time m_sUpdate
Start time of the update timer. 
std::map< uint32_t, uint32_t > m_tags
Tags used by set associative hash. 
FlowStatus GetStatus(void) const
Get the status of this flow. 
bool m_useDqRateEstimator
Enable/Disable usage of dequeue rate estimator for queue delay calculation. 
uint32_t m_flows
Number of flow queues. 
std::list< Ptr< FqPieFlow > > m_oldFlows
The list of old flows. 
Time m_qDelayRef
Desired queue delay. 
ObjectFactory m_queueDiscFactory
Factory to create a new queue. 
bool m_enableSetAssociativeHash
whether to enable set associative hash 
uint32_t m_dropBatchSize
Max number of packets dropped from the fat flow. 
a unique identifier for an interface. 
FlowStatus
Used to determine the status of this flow queue. 
FqPieQueueDisc()
FqPieQueueDisc constructor. 
uint32_t m_dqThreshold
Minimum queue size in bytes before dequeue rate is measured.