|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #ifndef FQ_CODEL_QUEUE_DISC
23 #define FQ_CODEL_QUEUE_DISC
25 #include "ns3/queue-disc.h"
26 #include "ns3/object-factory.h"
a unique identifier for an interface.
void SetDeficit(uint32_t deficit)
Set the deficit for this flow.
A FqCoDel packet queue disc.
int32_t GetDeficit(void) const
Get the deficit for this flow.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetQuantum(void) const
Get the quantum value.
static constexpr const char * OVERLIMIT_DROP
Overlimit dropped packets.
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
std::map< uint32_t, uint32_t > m_flowsIndices
Map with the index of class for each flow.
bool m_enableSetAssociativeHash
whether to enable set associative hash
Time m_ceThreshold
Threshold above which to CE mark.
A flow queue used by the FqCoDel queue disc.
FlowStatus m_status
the status of this flow
std::list< Ptr< FqCoDelFlow > > m_newFlows
The list of new flows.
static constexpr const char * UNCLASSIFIED_DROP
No packet filter able to classify packet.
ObjectFactory m_flowFactory
Factory to create a new flow.
void SetStatus(FlowStatus status)
Set the status for this flow.
FqCoDelFlow()
FqCoDelFlow constructor.
static TypeId GetTypeId(void)
Get the type ID.
std::map< uint32_t, uint32_t > m_tags
Tags used by set associative hash.
FlowStatus
Used to determine the status of this flow queue.
std::string m_target
CoDel target attribute.
void SetIndex(uint32_t index)
Set the index for this flow.
QueueDiscClass is the base class for classes that are included in a queue disc.
uint32_t m_quantum
Deficit assigned to flows at each round.
ObjectFactory m_queueDiscFactory
Factory to create a new queue.
std::list< Ptr< FqCoDelFlow > > m_oldFlows
The list of old flows.
Smart pointer class similar to boost::intrusive_ptr.
bool m_useEcn
True if ECN is used (packets are marked instead of being dropped)
bool m_useL4s
True if L4S is used (ECT1 packets are marked at CE threshold)
uint32_t FqCoDelDrop(void)
Drop a packet from the head of the queue with the largest current byte count.
virtual bool DoEnqueue(Ptr< QueueDiscItem > item)
This function actually enqueues a packet into the queue disc.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t GetIndex(void) const
Get the index of this flow.
uint32_t m_index
the index for this flow
Instantiate subclasses of ns3::Object.
Simulation virtual time values and global simulation resolution.
uint32_t m_dropBatchSize
Max number of packets dropped from the fat flow.
int32_t m_deficit
the deficit for this flow
uint32_t m_setWays
size of a set of queues (used by set associative hash)
uint32_t m_flows
Number of flow queues.
uint32_t m_perturbation
hash perturbation value
uint32_t SetAssociativeHash(uint32_t flowHash)
Compute the index of the queue for the flow having the given flowHash, according to the set associati...
void SetQuantum(uint32_t quantum)
Set the quantum value.
FlowStatus GetStatus(void) const
Get the status of this flow.
virtual ~FqCoDelQueueDisc()
FqCoDelQueueDisc()
FqCoDelQueueDisc constructor.
virtual bool CheckConfig(void)
Check whether the current configuration is correct.
virtual void InitializeParams(void)
Initialize parameters (if any) before the first packet is enqueued.
std::string m_interval
CoDel interval attribute.
virtual Ptr< QueueDiscItem > DoDequeue(void)
This function actually extracts a packet from the queue disc.
void IncreaseDeficit(int32_t deficit)
Increase the deficit for this flow.