A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::QueueDisc::Stats Struct Reference

Structure that keeps the queue disc statistics. More...

#include "queue-disc.h"

+ Collaboration diagram for ns3::QueueDisc::Stats:

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.
 

Detailed Description

Structure that keeps the queue disc statistics.

Definition at line 176 of file queue-disc.h.

Constructor & Destructor Documentation

◆ Stats()

Member Function Documentation

◆ GetNDroppedBytes()

uint64_t ns3::QueueDisc::Stats::GetNDroppedBytes ( std::string reason) const

Get the amount of bytes dropped for the given reason.

Parameters
reasonthe reason why packets were dropped
Returns
the amount of bytes dropped for the given reason

Definition at line 121 of file queue-disc.cc.

References nDroppedBytesAfterDequeue, and nDroppedBytesBeforeEnqueue.

◆ GetNDroppedPackets()

uint32_t ns3::QueueDisc::Stats::GetNDroppedPackets ( std::string reason) const

Get the number of packets dropped for the given reason.

Parameters
reasonthe reason why packets were dropped
Returns
the number of packets dropped for the given reason

Definition at line 100 of file queue-disc.cc.

References nDroppedPacketsAfterDequeue, and nDroppedPacketsBeforeEnqueue.

Referenced by CobaltQueueDiscEnhancedBlueTest::DoRun(), AredQueueDiscTestCase::RunAredDiscTest(), CobaltQueueDiscDropTest::RunDropTest(), PieQueueDiscTestCase::RunPieTest(), and RedQueueDiscTestCase::RunRedTest().

+ Here is the caller graph for this function:

◆ GetNMarkedBytes()

uint64_t ns3::QueueDisc::Stats::GetNMarkedBytes ( std::string reason) const

Get the amount of bytes marked for the given reason.

Parameters
reasonthe reason why packets were marked
Returns
the amount of bytes marked for the given reason

Definition at line 155 of file queue-disc.cc.

References nMarkedBytes.

◆ GetNMarkedPackets()

uint32_t ns3::QueueDisc::Stats::GetNMarkedPackets ( std::string reason) const

Get the number of packets marked for the given reason.

Parameters
reasonthe reason why packets were marked
Returns
the number of packets marked for the given reason

Definition at line 142 of file queue-disc.cc.

References nMarkedPackets.

Referenced by PieQueueDiscTestCase::RunPieTest(), and RedQueueDiscTestCase::RunRedTest().

+ Here is the caller graph for this function:

◆ Print()

void ns3::QueueDisc::Stats::Print ( std::ostream & os) const

Member Data Documentation

◆ nDroppedBytesAfterDequeue

std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nDroppedBytesAfterDequeue

Bytes dropped after dequeue, for each reason.

Definition at line 213 of file queue-disc.h.

Referenced by GetNDroppedBytes(), and Print().

◆ nDroppedBytesBeforeEnqueue

std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nDroppedBytesBeforeEnqueue

Bytes dropped before enqueue, for each reason.

Definition at line 209 of file queue-disc.h.

Referenced by GetNDroppedBytes(), and Print().

◆ nDroppedPacketsAfterDequeue

std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nDroppedPacketsAfterDequeue

Packets dropped after dequeue, for each reason.

Definition at line 203 of file queue-disc.h.

Referenced by GetNDroppedPackets(), and Print().

◆ nDroppedPacketsBeforeEnqueue

std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nDroppedPacketsBeforeEnqueue

Packets dropped before enqueue, for each reason.

Definition at line 199 of file queue-disc.h.

Referenced by GetNDroppedPackets(), and Print().

◆ nMarkedBytes

std::map<std::string, uint64_t, std::less<> > ns3::QueueDisc::Stats::nMarkedBytes

Marked bytes, for each reason.

Definition at line 225 of file queue-disc.h.

Referenced by GetNMarkedBytes(), and Print().

◆ nMarkedPackets

std::map<std::string, uint32_t, std::less<> > ns3::QueueDisc::Stats::nMarkedPackets

Marked packets, for each reason.

Definition at line 221 of file queue-disc.h.

Referenced by GetNMarkedPackets(), and Print().

◆ nTotalDequeuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalDequeuedBytes

Total dequeued bytes.

Definition at line 193 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalDequeuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalDequeuedPackets

Total dequeued packets.

Definition at line 191 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalDroppedBytes

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytes

Total dropped bytes.

Definition at line 205 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalDroppedBytesAfterDequeue

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesAfterDequeue

Total bytes dropped after dequeue.

Definition at line 211 of file queue-disc.h.

Referenced by Stats(), QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), and Print().

◆ nTotalDroppedBytesBeforeEnqueue

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesBeforeEnqueue

Total bytes dropped before enqueue.

Definition at line 207 of file queue-disc.h.

Referenced by Stats(), QueueDiscTracesTestCase::CheckDroppedBeforeEnqueue(), and Print().

◆ nTotalDroppedPackets

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPackets

Total dropped packets.

Definition at line 195 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalDroppedPacketsAfterDequeue

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsAfterDequeue

Total packets dropped after dequeue.

Definition at line 201 of file queue-disc.h.

Referenced by Stats(), QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), and Print().

◆ nTotalDroppedPacketsBeforeEnqueue

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsBeforeEnqueue

Total packets dropped before enqueue.

Definition at line 197 of file queue-disc.h.

Referenced by Stats(), QueueDiscTracesTestCase::CheckDroppedBeforeEnqueue(), and Print().

◆ nTotalEnqueuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalEnqueuedBytes

Total enqueued bytes.

Definition at line 189 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalEnqueuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalEnqueuedPackets

Total enqueued packets.

Definition at line 187 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalMarkedBytes

uint32_t ns3::QueueDisc::Stats::nTotalMarkedBytes

Total marked bytes.

Definition at line 223 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalMarkedPackets

uint32_t ns3::QueueDisc::Stats::nTotalMarkedPackets

Total marked packets.

Definition at line 219 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalReceivedBytes

uint64_t ns3::QueueDisc::Stats::nTotalReceivedBytes

Total received bytes.

Definition at line 181 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalReceivedPackets

uint32_t ns3::QueueDisc::Stats::nTotalReceivedPackets

Total received packets.

Definition at line 179 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalRequeuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalRequeuedBytes

Total requeued bytes.

Definition at line 217 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalRequeuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalRequeuedPackets

Total requeued packets.

Definition at line 215 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalSentBytes

uint64_t ns3::QueueDisc::Stats::nTotalSentBytes

Total sent bytes – this value is not kept up to date, call GetStats first.

Definition at line 185 of file queue-disc.h.

Referenced by Stats(), and Print().

◆ nTotalSentPackets

uint32_t ns3::QueueDisc::Stats::nTotalSentPackets

Total sent packets – this value is not kept up to date, call GetStats first.

Definition at line 183 of file queue-disc.h.

Referenced by Stats(), and Print().


The documentation for this struct was generated from the following files: