Pie Queue Disc Test Item. More...
Public Member Functions | |
PieQueueDiscTestItem (Ptr< Packet > p, const Address &addr, bool ecnCapable) | |
Constructor. More... | |
virtual | ~PieQueueDiscTestItem () |
virtual void | AddHeader (void) |
Add the header to the packet. More... | |
virtual bool | Mark (void) |
Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification. More... | |
![]() | |
QueueDiscItem (Ptr< Packet > p, const Address &addr, uint16_t protocol) | |
Create a queue disc item. More... | |
virtual | ~QueueDiscItem () |
Address | GetAddress (void) const |
Get the MAC address included in this item. More... | |
uint16_t | GetProtocol (void) const |
Get the L3 protocol included in this item. More... | |
Time | GetTimeStamp (void) const |
Get the timestamp included in this item. More... | |
uint8_t | GetTxQueueIndex (void) const |
Get the transmission queue index included in this item. More... | |
virtual uint32_t | Hash (uint32_t perturbation=0) const |
Computes the hash of various fields of the packet header. More... | |
virtual void | Print (std::ostream &os) const |
Print the item contents. More... | |
void | SetTimeStamp (Time t) |
Set the timestamp included in this item. More... | |
void | SetTxQueueIndex (uint8_t txq) |
Set the transmission queue index to store in this item. More... | |
![]() | |
QueueItem (Ptr< Packet > p) | |
Create a queue item containing a packet. More... | |
virtual | ~QueueItem () |
Ptr< Packet > | GetPacket (void) const |
virtual uint32_t | GetSize (void) const |
Use this method (instead of GetPacket ()->GetSize ()) to get the packet size. More... | |
virtual bool | GetUint8Value (Uint8Values field, uint8_t &value) const |
Retrieve the value of a given field from the packet, if present. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Public Attributes | |
double | m_accuProbError = 0.0 |
Error in accumulated drop probability. More... | |
bool | m_checkAccuProb = false |
Enable/Disable accumulated drop probability checks. More... | |
bool | m_checkMaxAccuProb = false |
Enable/Disable Maximum accumulated drop probability checks. More... | |
bool | m_checkProb = false |
Enable/Disable drop probability checks. More... | |
bool | m_constAccuProb = false |
Enable/Disable fixed accumulated drop probability. More... | |
bool | m_ecnCapable = false |
Enable/Disable ECN capability. More... | |
uint32_t | m_expectedDrops = 0 |
Number of expected unforced drops. More... | |
double | m_maxDropProb = 0.0 |
Maximum value of drop probability. More... | |
double | m_maxDropProbDiff = 0.0 |
Maximum difference between two consecutive drop probability values. More... | |
double | m_prevAccuProb = 0.0 |
Previous accumulated drop probability. More... | |
double | m_prevDropProb = 0.0 |
Previous drop probability. More... | |
double | m_setAccuProb = 0.0 |
Value to be set for accumulated drop probability. More... | |
Private Member Functions | |
PieQueueDiscTestItem () | |
PieQueueDiscTestItem (const PieQueueDiscTestItem &) | |
Copy constructor Disable default implementation to avoid misuse. More... | |
PieQueueDiscTestItem & | operator= (const PieQueueDiscTestItem &) |
Assignment operator. More... | |
Private Attributes | |
bool | m_ecnCapablePacket |
ECN capable packet? More... | |
Additional Inherited Members | |
![]() | |
typedef void(* | TracedCallback) (Ptr< const QueueItem > item) |
TracedCallback signature for Ptr<QueueItem> More... | |
enum | Uint8Values { IP_DSFIELD } |
1-byte fields of the packet whose value can be retrieved, if present More... | |
Pie Queue Disc Test Item.
Definition at line 41 of file pie-queue-disc-test-suite.cc.
PieQueueDiscTestItem::PieQueueDiscTestItem | ( | Ptr< Packet > | p, |
const Address & | addr, | ||
bool | ecnCapable | ||
) |
Constructor.
p | the packet |
addr | the address |
ecnCapable | ECN capable flag |
Definition at line 90 of file pie-queue-disc-test-suite.cc.
|
virtual |
Definition at line 95 of file pie-queue-disc-test-suite.cc.
|
private |
|
private |
Copy constructor Disable default implementation to avoid misuse.
|
virtual |
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 100 of file pie-queue-disc-test-suite.cc.
|
virtual |
Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification.
Implements ns3::QueueDiscItem.
Definition at line 105 of file pie-queue-disc-test-suite.cc.
References m_ecnCapablePacket.
|
private |
Assignment operator.
double PieQueueDiscTestItem::m_accuProbError = 0.0 |
Error in accumulated drop probability.
Definition at line 69 of file pie-queue-disc-test-suite.cc.
bool PieQueueDiscTestItem::m_checkAccuProb = false |
Enable/Disable accumulated drop probability checks.
Definition at line 66 of file pie-queue-disc-test-suite.cc.
bool PieQueueDiscTestItem::m_checkMaxAccuProb = false |
Enable/Disable Maximum accumulated drop probability checks.
Definition at line 68 of file pie-queue-disc-test-suite.cc.
bool PieQueueDiscTestItem::m_checkProb = false |
Enable/Disable drop probability checks.
Definition at line 59 of file pie-queue-disc-test-suite.cc.
bool PieQueueDiscTestItem::m_constAccuProb = false |
Enable/Disable fixed accumulated drop probability.
Definition at line 67 of file pie-queue-disc-test-suite.cc.
bool PieQueueDiscTestItem::m_ecnCapable = false |
Enable/Disable ECN capability.
Definition at line 63 of file pie-queue-disc-test-suite.cc.
|
private |
ECN capable packet?
Definition at line 87 of file pie-queue-disc-test-suite.cc.
Referenced by Mark().
uint32_t PieQueueDiscTestItem::m_expectedDrops = 0 |
Number of expected unforced drops.
Definition at line 72 of file pie-queue-disc-test-suite.cc.
double PieQueueDiscTestItem::m_maxDropProb = 0.0 |
Maximum value of drop probability.
Definition at line 62 of file pie-queue-disc-test-suite.cc.
double PieQueueDiscTestItem::m_maxDropProbDiff = 0.0 |
Maximum difference between two consecutive drop probability values.
Definition at line 57 of file pie-queue-disc-test-suite.cc.
double PieQueueDiscTestItem::m_prevAccuProb = 0.0 |
Previous accumulated drop probability.
Definition at line 70 of file pie-queue-disc-test-suite.cc.
double PieQueueDiscTestItem::m_prevDropProb = 0.0 |
Previous drop probability.
Definition at line 58 of file pie-queue-disc-test-suite.cc.
double PieQueueDiscTestItem::m_setAccuProb = 0.0 |
Value to be set for accumulated drop probability.
Definition at line 71 of file pie-queue-disc-test-suite.cc.