A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
PieQueueDiscTestItem Class Reference

Pie Queue Disc Test Item. More...

+ Inheritance diagram for PieQueueDiscTestItem:
+ Collaboration diagram for PieQueueDiscTestItem:

Public Member Functions

 PieQueueDiscTestItem ()=delete
 
 PieQueueDiscTestItem (const PieQueueDiscTestItem &)=delete
 
 PieQueueDiscTestItem (Ptr< Packet > p, const Address &addr, bool ecnCapable)
 Constructor.
 
void AddHeader () override
 Add the header to the packet.
 
bool Mark () override
 Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification.
 
PieQueueDiscTestItemoperator= (const PieQueueDiscTestItem &)=delete
 
- Public Member Functions inherited from ns3::QueueDiscItem
 QueueDiscItem ()=delete
 
 QueueDiscItem (const QueueDiscItem &)=delete
 
 QueueDiscItem (Ptr< Packet > p, const Address &addr, uint16_t protocol)
 Create a queue disc item.
 
 ~QueueDiscItem () override
 
Address GetAddress () const
 Get the MAC address included in this item.
 
uint16_t GetProtocol () const
 Get the L3 protocol included in this item.
 
Time GetTimeStamp () const
 Get the timestamp included in this item.
 
uint8_t GetTxQueueIndex () const
 Get the transmission queue index included in this item.
 
virtual uint32_t Hash (uint32_t perturbation=0) const
 Computes the hash of various fields of the packet header.
 
QueueDiscItemoperator= (const QueueDiscItem &)=delete
 
void Print (std::ostream &os) const override
 Print the item contents.
 
void SetTimeStamp (Time t)
 Set the timestamp included in this item.
 
void SetTxQueueIndex (uint8_t txq)
 Set the transmission queue index to store in this item.
 
- Public Member Functions inherited from ns3::QueueItem
 QueueItem ()=delete
 
 QueueItem (const QueueItem &)=delete
 
 QueueItem (Ptr< Packet > p)
 Create a queue item containing a packet.
 
virtual ~QueueItem ()
 
Ptr< PacketGetPacket () const
 
virtual uint32_t GetSize () const
 Use this method (instead of GetPacket ()->GetSize ()) to get the packet size.
 
virtual bool GetUint8Value (Uint8Values field, uint8_t &value) const
 Retrieve the value of a given field from the packet, if present.
 
QueueItemoperator= (const QueueItem &)=delete
 
- Public Member Functions inherited from ns3::SimpleRefCount< QueueItem >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Public Attributes

double m_accuProbError = 0.0
 Error in accumulated drop probability.
 
bool m_checkAccuProb = false
 Enable/Disable accumulated drop probability checks.
 
bool m_checkMaxAccuProb = false
 Enable/Disable Maximum accumulated drop probability checks.
 
bool m_checkProb = false
 Enable/Disable drop probability checks.
 
bool m_constAccuProb = false
 Enable/Disable fixed accumulated drop probability.
 
bool m_ecnCapable = false
 Enable/Disable ECN capability.
 
uint32_t m_expectedDrops = 0
 Number of expected unforced drops.
 
double m_maxDropProb = 0.0
 Maximum value of drop probability.
 
double m_maxDropProbDiff
 Maximum difference between two consecutive drop probability values.
 
double m_prevAccuProb = 0.0
 Previous accumulated drop probability.
 
double m_prevDropProb = 0.0
 Previous drop probability.
 
double m_setAccuProb = 0.0
 Value to be set for accumulated drop probability.
 

Private Attributes

bool m_ecnCapablePacket
 ECN capable packet?
 

Additional Inherited Members

- Public Types inherited from ns3::QueueItem
typedef void(* TracedCallback) (Ptr< const QueueItem > item)
 TracedCallback signature for Ptr<QueueItem>
 
enum  Uint8Values { IP_DSFIELD }
 1-byte fields of the packet whose value can be retrieved, if present More...
 

Detailed Description

Pie Queue Disc Test Item.

Definition at line 28 of file pie-queue-disc-test-suite.cc.

Constructor & Destructor Documentation

◆ PieQueueDiscTestItem() [1/3]

PieQueueDiscTestItem::PieQueueDiscTestItem ( Ptr< Packet > p,
const Address & addr,
bool ecnCapable )

Constructor.

Parameters
pthe packet
addrthe address
ecnCapableECN capable flag

Definition at line 71 of file pie-queue-disc-test-suite.cc.

◆ PieQueueDiscTestItem() [2/3]

PieQueueDiscTestItem::PieQueueDiscTestItem ( )
delete

◆ PieQueueDiscTestItem() [3/3]

PieQueueDiscTestItem::PieQueueDiscTestItem ( const PieQueueDiscTestItem & )
delete

Member Function Documentation

◆ AddHeader()

void PieQueueDiscTestItem::AddHeader ( )
overridevirtual

Add the header to the packet.

Subclasses may keep header and payload separate to allow manipulating the header, so this method allows to add the header to the packet before sending the packet to the device.

Implements ns3::QueueDiscItem.

Definition at line 78 of file pie-queue-disc-test-suite.cc.

◆ Mark()

bool PieQueueDiscTestItem::Mark ( )
overridevirtual

Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification.

Returns
true if the packet is marked by this method or is already marked, false otherwise

Implements ns3::QueueDiscItem.

Definition at line 83 of file pie-queue-disc-test-suite.cc.

References m_ecnCapablePacket.

◆ operator=()

PieQueueDiscTestItem & PieQueueDiscTestItem::operator= ( const PieQueueDiscTestItem & )
delete

Member Data Documentation

◆ m_accuProbError

double PieQueueDiscTestItem::m_accuProbError = 0.0

Error in accumulated drop probability.

Definition at line 62 of file pie-queue-disc-test-suite.cc.

◆ m_checkAccuProb

bool PieQueueDiscTestItem::m_checkAccuProb = false

Enable/Disable accumulated drop probability checks.

Definition at line 59 of file pie-queue-disc-test-suite.cc.

◆ m_checkMaxAccuProb

bool PieQueueDiscTestItem::m_checkMaxAccuProb = false

Enable/Disable Maximum accumulated drop probability checks.

Definition at line 61 of file pie-queue-disc-test-suite.cc.

◆ m_checkProb

bool PieQueueDiscTestItem::m_checkProb = false

Enable/Disable drop probability checks.

Definition at line 52 of file pie-queue-disc-test-suite.cc.

◆ m_constAccuProb

bool PieQueueDiscTestItem::m_constAccuProb = false

Enable/Disable fixed accumulated drop probability.

Definition at line 60 of file pie-queue-disc-test-suite.cc.

◆ m_ecnCapable

bool PieQueueDiscTestItem::m_ecnCapable = false

Enable/Disable ECN capability.

Definition at line 56 of file pie-queue-disc-test-suite.cc.

◆ m_ecnCapablePacket

bool PieQueueDiscTestItem::m_ecnCapablePacket
private

ECN capable packet?

Definition at line 68 of file pie-queue-disc-test-suite.cc.

Referenced by Mark().

◆ m_expectedDrops

uint32_t PieQueueDiscTestItem::m_expectedDrops = 0

Number of expected unforced drops.

Definition at line 65 of file pie-queue-disc-test-suite.cc.

◆ m_maxDropProb

double PieQueueDiscTestItem::m_maxDropProb = 0.0

Maximum value of drop probability.

Definition at line 55 of file pie-queue-disc-test-suite.cc.

◆ m_maxDropProbDiff

double PieQueueDiscTestItem::m_maxDropProbDiff
Initial value:
=
0.0

Maximum difference between two consecutive drop probability values.

Definition at line 49 of file pie-queue-disc-test-suite.cc.

◆ m_prevAccuProb

double PieQueueDiscTestItem::m_prevAccuProb = 0.0

Previous accumulated drop probability.

Definition at line 63 of file pie-queue-disc-test-suite.cc.

◆ m_prevDropProb

double PieQueueDiscTestItem::m_prevDropProb = 0.0

Previous drop probability.

Definition at line 51 of file pie-queue-disc-test-suite.cc.

◆ m_setAccuProb

double PieQueueDiscTestItem::m_setAccuProb = 0.0

Value to be set for accumulated drop probability.

Definition at line 64 of file pie-queue-disc-test-suite.cc.


The documentation for this class was generated from the following file: