Keep statistics based on traces. More...
Public Member Functions | |
TestCounter () | |
Constructor. | |
virtual | ~TestCounter () |
void | ConnectTraces (Ptr< QueueDisc > qd) |
Connect private methods to the queue disc traces. | |
Private Member Functions | |
void | PacketDad (Ptr< const QueueDiscItem > item, const char *reason) |
Update statistics after a packet has been dropped after dequeue. | |
void | PacketDbe (Ptr< const QueueDiscItem > item, const char *reason) |
Update statistics after a packet has been dropped before enqueue. | |
void | PacketDequeued (Ptr< const QueueDiscItem > item) |
Update statistics after a packet has been dequeued. | |
void | PacketEnqueued (Ptr< const QueueDiscItem > item) |
Update statistics after a packet has been enqueued. | |
Private Attributes | |
uint32_t | m_nBytes |
Number of queued bytes. | |
uint32_t | m_nDadBytes |
Number of packets dropped after dequeue. | |
uint32_t | m_nDadPackets |
Number of packets dropped after dequeue. | |
uint32_t | m_nDbeBytes |
Number of packets dropped before enqueue. | |
uint32_t | m_nDbePackets |
Number of packets dropped before enqueue. | |
uint32_t | m_nPackets |
Number of queued packets. | |
Friends | |
class | QueueDiscTracesTestCase |
Needs to access private members. | |
Keep statistics based on traces.
Definition at line 189 of file queue-disc-traces-test-suite.cc.
TestCounter::TestCounter | ( | ) |
Constructor.
Definition at line 238 of file queue-disc-traces-test-suite.cc.
|
virtual |
Definition at line 248 of file queue-disc-traces-test-suite.cc.
Connect private methods to the queue disc traces.
qd | the queue disc |
Definition at line 281 of file queue-disc-traces-test-suite.cc.
References ns3::MakeCallback(), PacketDad(), PacketDbe(), PacketDequeued(), and PacketEnqueued().
|
private |
Update statistics after a packet has been dropped after dequeue.
item | the dropped packet |
reason | the reason why the packet was dropped |
Definition at line 274 of file queue-disc-traces-test-suite.cc.
References m_nDadBytes, and m_nDadPackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been dropped before enqueue.
item | the dropped packet |
reason | the reason why the packet was dropped |
Definition at line 267 of file queue-disc-traces-test-suite.cc.
References m_nDbeBytes, and m_nDbePackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been dequeued.
item | the dequeued packet |
Definition at line 260 of file queue-disc-traces-test-suite.cc.
References m_nBytes, and m_nPackets.
Referenced by ConnectTraces().
|
private |
Update statistics after a packet has been enqueued.
item | the enqueued packet |
Definition at line 253 of file queue-disc-traces-test-suite.cc.
References m_nBytes, and m_nPackets.
Referenced by ConnectTraces().
|
friend |
Needs to access private members.
Definition at line 235 of file queue-disc-traces-test-suite.cc.
|
private |
Number of queued bytes.
Definition at line 229 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDequeued(), and PacketEnqueued().
|
private |
Number of packets dropped after dequeue.
Definition at line 233 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDad().
|
private |
Number of packets dropped after dequeue.
Definition at line 232 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDad().
|
private |
Number of packets dropped before enqueue.
Definition at line 231 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDbe().
|
private |
Number of packets dropped before enqueue.
Definition at line 230 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDbe().
|
private |
Number of queued packets.
Definition at line 228 of file queue-disc-traces-test-suite.cc.
Referenced by PacketDequeued(), and PacketEnqueued().