Structure that keeps the queue disc statistics. More...
#include "queue-disc.h"
Public Member Functions | |
Stats () | |
constructor | |
uint64_t | GetNDroppedBytes (std::string reason) const |
Get the amount of bytes dropped for the given reason. | |
uint32_t | GetNDroppedPackets (std::string reason) const |
Get the number of packets dropped for the given reason. | |
uint64_t | GetNMarkedBytes (std::string reason) const |
Get the amount of bytes marked for the given reason. | |
uint32_t | GetNMarkedPackets (std::string reason) const |
Get the number of packets marked for the given reason. | |
void | Print (std::ostream &os) const |
Print the statistics. | |
Public Attributes | |
std::map< std::string, uint64_t, std::less<> > | nDroppedBytesAfterDequeue |
Bytes dropped after dequeue, for each reason. | |
std::map< std::string, uint64_t, std::less<> > | nDroppedBytesBeforeEnqueue |
Bytes dropped before enqueue, for each reason. | |
std::map< std::string, uint32_t, std::less<> > | nDroppedPacketsAfterDequeue |
Packets dropped after dequeue, for each reason. | |
std::map< std::string, uint32_t, std::less<> > | nDroppedPacketsBeforeEnqueue |
Packets dropped before enqueue, for each reason. | |
std::map< std::string, uint64_t, std::less<> > | nMarkedBytes |
Marked bytes, for each reason. | |
std::map< std::string, uint32_t, std::less<> > | nMarkedPackets |
Marked packets, for each reason. | |
uint64_t | nTotalDequeuedBytes |
Total dequeued bytes. | |
uint32_t | nTotalDequeuedPackets |
Total dequeued packets. | |
uint64_t | nTotalDroppedBytes |
Total dropped bytes. | |
uint64_t | nTotalDroppedBytesAfterDequeue |
Total bytes dropped after dequeue. | |
uint64_t | nTotalDroppedBytesBeforeEnqueue |
Total bytes dropped before enqueue. | |
uint32_t | nTotalDroppedPackets |
Total dropped packets. | |
uint32_t | nTotalDroppedPacketsAfterDequeue |
Total packets dropped after dequeue. | |
uint32_t | nTotalDroppedPacketsBeforeEnqueue |
Total packets dropped before enqueue. | |
uint64_t | nTotalEnqueuedBytes |
Total enqueued bytes. | |
uint32_t | nTotalEnqueuedPackets |
Total enqueued packets. | |
uint32_t | nTotalMarkedBytes |
Total marked bytes. | |
uint32_t | nTotalMarkedPackets |
Total marked packets. | |
uint64_t | nTotalReceivedBytes |
Total received bytes. | |
uint32_t | nTotalReceivedPackets |
Total received packets. | |
uint64_t | nTotalRequeuedBytes |
Total requeued bytes. | |
uint32_t | nTotalRequeuedPackets |
Total requeued packets. | |
uint64_t | nTotalSentBytes |
Total sent bytes – this value is not kept up to date, call GetStats first. | |
uint32_t | nTotalSentPackets |
Total sent packets – this value is not kept up to date, call GetStats first. | |
Structure that keeps the queue disc statistics.
Definition at line 187 of file queue-disc.h.
ns3::QueueDisc::Stats::Stats | ( | ) |
constructor
Definition at line 88 of file queue-disc.cc.
uint64_t ns3::QueueDisc::Stats::GetNDroppedBytes | ( | std::string | reason | ) | const |
Get the amount of bytes dropped for the given reason.
reason | the reason why packets were dropped |
Definition at line 132 of file queue-disc.cc.
uint32_t ns3::QueueDisc::Stats::GetNDroppedPackets | ( | std::string | reason | ) | const |
Get the number of packets dropped for the given reason.
reason | the reason why packets were dropped |
Definition at line 111 of file queue-disc.cc.
Referenced by CobaltQueueDiscEnhancedBlueTest::DoRun(), AredQueueDiscTestCase::RunAredDiscTest(), CobaltQueueDiscDropTest::RunDropTest(), PieQueueDiscTestCase::RunPieTest(), and RedQueueDiscTestCase::RunRedTest().
uint64_t ns3::QueueDisc::Stats::GetNMarkedBytes | ( | std::string | reason | ) | const |
Get the amount of bytes marked for the given reason.
reason | the reason why packets were marked |
Definition at line 166 of file queue-disc.cc.
uint32_t ns3::QueueDisc::Stats::GetNMarkedPackets | ( | std::string | reason | ) | const |
Get the number of packets marked for the given reason.
reason | the reason why packets were marked |
Definition at line 153 of file queue-disc.cc.
Referenced by PieQueueDiscTestCase::RunPieTest(), and RedQueueDiscTestCase::RunRedTest().
void ns3::QueueDisc::Stats::Print | ( | std::ostream & | os | ) | const |
Print the statistics.
os | output stream in which the data should be printed. |
Definition at line 179 of file queue-disc.cc.
References NS_ASSERT.
Referenced by ns3::operator<<().
std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nDroppedBytesAfterDequeue |
Bytes dropped after dequeue, for each reason.
Definition at line 224 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropAfterDequeue().
std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nDroppedBytesBeforeEnqueue |
Bytes dropped before enqueue, for each reason.
Definition at line 220 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropBeforeEnqueue().
std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nDroppedPacketsAfterDequeue |
Packets dropped after dequeue, for each reason.
Definition at line 214 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropAfterDequeue().
std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nDroppedPacketsBeforeEnqueue |
Packets dropped before enqueue, for each reason.
Definition at line 210 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropBeforeEnqueue().
std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nMarkedBytes |
Marked bytes, for each reason.
Definition at line 236 of file queue-disc.h.
Referenced by ns3::QueueDisc::Mark().
std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nMarkedPackets |
Marked packets, for each reason.
Definition at line 232 of file queue-disc.h.
Referenced by ns3::QueueDisc::Mark().
uint64_t ns3::QueueDisc::Stats::nTotalDequeuedBytes |
Total dequeued bytes.
Definition at line 204 of file queue-disc.h.
Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::GetStats(), and ns3::QueueDisc::PacketDequeued().
uint32_t ns3::QueueDisc::Stats::nTotalDequeuedPackets |
Total dequeued packets.
Definition at line 202 of file queue-disc.h.
Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::GetStats(), and ns3::QueueDisc::PacketDequeued().
uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytes |
Total dropped bytes.
Definition at line 216 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropAfterDequeue(), ns3::QueueDisc::DropBeforeEnqueue(), and ns3::QueueDisc::GetStats().
uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesAfterDequeue |
Total bytes dropped after dequeue.
Definition at line 222 of file queue-disc.h.
Referenced by QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), ns3::QueueDisc::DropAfterDequeue(), and ns3::QueueDisc::GetStats().
uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesBeforeEnqueue |
Total bytes dropped before enqueue.
Definition at line 218 of file queue-disc.h.
Referenced by QueueDiscTracesTestCase::CheckDroppedBeforeEnqueue(), ns3::QueueDisc::DropBeforeEnqueue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::GetStats().
uint32_t ns3::QueueDisc::Stats::nTotalDroppedPackets |
Total dropped packets.
Definition at line 206 of file queue-disc.h.
Referenced by ns3::QueueDisc::DropAfterDequeue(), ns3::QueueDisc::DropBeforeEnqueue(), and ns3::QueueDisc::GetStats().
uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsAfterDequeue |
Total packets dropped after dequeue.
Definition at line 212 of file queue-disc.h.
Referenced by QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), ns3::QueueDisc::DropAfterDequeue(), and ns3::QueueDisc::GetStats().
uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsBeforeEnqueue |
Total packets dropped before enqueue.
Definition at line 208 of file queue-disc.h.
Referenced by QueueDiscTracesTestCase::CheckDroppedBeforeEnqueue(), ns3::QueueDisc::DropBeforeEnqueue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::GetStats().
uint64_t ns3::QueueDisc::Stats::nTotalEnqueuedBytes |
Total enqueued bytes.
Definition at line 200 of file queue-disc.h.
Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::PacketEnqueued().
uint32_t ns3::QueueDisc::Stats::nTotalEnqueuedPackets |
Total enqueued packets.
Definition at line 198 of file queue-disc.h.
Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::PacketEnqueued().
uint32_t ns3::QueueDisc::Stats::nTotalMarkedBytes |
Total marked bytes.
Definition at line 234 of file queue-disc.h.
Referenced by ns3::QueueDisc::Mark().
uint32_t ns3::QueueDisc::Stats::nTotalMarkedPackets |
Total marked packets.
Definition at line 230 of file queue-disc.h.
Referenced by ns3::QueueDisc::Mark().
uint64_t ns3::QueueDisc::Stats::nTotalReceivedBytes |
Total received bytes.
Definition at line 192 of file queue-disc.h.
Referenced by ns3::QueueDisc::Enqueue().
uint32_t ns3::QueueDisc::Stats::nTotalReceivedPackets |
Total received packets.
Definition at line 190 of file queue-disc.h.
Referenced by ns3::QueueDisc::Enqueue().
uint64_t ns3::QueueDisc::Stats::nTotalRequeuedBytes |
Total requeued bytes.
Definition at line 228 of file queue-disc.h.
Referenced by ns3::QueueDisc::Requeue().
uint32_t ns3::QueueDisc::Stats::nTotalRequeuedPackets |
Total requeued packets.
Definition at line 226 of file queue-disc.h.
Referenced by ns3::QueueDisc::Requeue().
uint64_t ns3::QueueDisc::Stats::nTotalSentBytes |
Total sent bytes – this value is not kept up to date, call GetStats first.
Definition at line 196 of file queue-disc.h.
Referenced by ns3::QueueDisc::GetStats().
uint32_t ns3::QueueDisc::Stats::nTotalSentPackets |
Total sent packets – this value is not kept up to date, call GetStats first.
Definition at line 194 of file queue-disc.h.
Referenced by ns3::QueueDisc::GetStats().