A Discrete-Event Network Simulator
API
Public Member Functions | Public Attributes | List of all members
ns3::QueueDisc::Stats Struct Reference

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

#include "queue-disc.h"

Public Member Functions

 Stats ()
 constructor More...
 
uint64_t GetNDroppedBytes (std::string reason) const
 Get the amount of bytes dropped for the given reason. More...
 
uint32_t GetNDroppedPackets (std::string reason) const
 Get the number of packets dropped for the given reason. More...
 
uint64_t GetNMarkedBytes (std::string reason) const
 Get the amount of bytes marked for the given reason. More...
 
uint32_t GetNMarkedPackets (std::string reason) const
 Get the number of packets marked for the given reason. More...
 
void Print (std::ostream &os) const
 Print the statistics. More...
 

Public Attributes

std::map< std::string, uint64_t > nDroppedBytesAfterDequeue
 Bytes dropped after dequeue, for each reason. More...
 
std::map< std::string, uint64_t > nDroppedBytesBeforeEnqueue
 Bytes dropped before enqueue, for each reason. More...
 
std::map< std::string, uint32_t > nDroppedPacketsAfterDequeue
 Packets dropped after dequeue, for each reason. More...
 
std::map< std::string, uint32_t > nDroppedPacketsBeforeEnqueue
 Packets dropped before enqueue, for each reason. More...
 
std::map< std::string, uint64_t > nMarkedBytes
 Marked bytes, for each reason. More...
 
std::map< std::string, uint32_t > nMarkedPackets
 Marked packets, for each reason. More...
 
uint64_t nTotalDequeuedBytes
 Total dequeued bytes. More...
 
uint32_t nTotalDequeuedPackets
 Total dequeued packets. More...
 
uint64_t nTotalDroppedBytes
 Total dropped bytes. More...
 
uint64_t nTotalDroppedBytesAfterDequeue
 Total bytes dropped after dequeue. More...
 
uint64_t nTotalDroppedBytesBeforeEnqueue
 Total bytes dropped before enqueue. More...
 
uint32_t nTotalDroppedPackets
 Total dropped packets. More...
 
uint32_t nTotalDroppedPacketsAfterDequeue
 Total packets dropped after dequeue. More...
 
uint32_t nTotalDroppedPacketsBeforeEnqueue
 Total packets dropped before enqueue. More...
 
uint64_t nTotalEnqueuedBytes
 Total enqueued bytes. More...
 
uint32_t nTotalEnqueuedPackets
 Total enqueued packets. More...
 
uint32_t nTotalMarkedBytes
 Total marked bytes. More...
 
uint32_t nTotalMarkedPackets
 Total marked packets. More...
 
uint64_t nTotalReceivedBytes
 Total received bytes. More...
 
uint32_t nTotalReceivedPackets
 Total received packets. More...
 
uint64_t nTotalRequeuedBytes
 Total requeued bytes. More...
 
uint32_t nTotalRequeuedPackets
 Total requeued packets. More...
 
uint64_t nTotalSentBytes
 Total sent bytes – this value is not kept up to date, call GetStats first. More...
 
uint32_t nTotalSentPackets
 Total sent packets – this value is not kept up to date, call GetStats first. More...
 

Detailed Description

Structure that keeps the queue disc statistics.

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

Constructor & Destructor Documentation

◆ Stats()

ns3::QueueDisc::Stats::Stats ( )

constructor

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

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 134 of file queue-disc.cc.

◆ 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 113 of file queue-disc.cc.

Referenced by CoDelQueueDiscBasicDrop::Dequeue(), CoDelQueueDiscBasicEnqueueDequeue::DoRun(), CoDelQueueDiscBasicOverflow::DoRun(), AredQueueDiscTestCase::RunAredDiscTest(), PieQueueDiscTestCase::RunPieTest(), and RedQueueDiscTestCase::RunRedTest().

◆ 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 168 of file queue-disc.cc.

◆ 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 155 of file queue-disc.cc.

Referenced by RedQueueDiscTestCase::RunRedTest().

◆ Print()

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

Print the statistics.

Parameters
osoutput stream in which the data should be printed.

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

References NS_ASSERT.

Referenced by ns3::operator<<().

Member Data Documentation

◆ nDroppedBytesAfterDequeue

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

Bytes dropped after dequeue, for each reason.

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

Referenced by ns3::QueueDisc::DropAfterDequeue().

◆ nDroppedBytesBeforeEnqueue

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

Bytes dropped before enqueue, for each reason.

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

Referenced by ns3::QueueDisc::DropBeforeEnqueue().

◆ nDroppedPacketsAfterDequeue

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

Packets dropped after dequeue, for each reason.

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

Referenced by ns3::QueueDisc::DropAfterDequeue().

◆ nDroppedPacketsBeforeEnqueue

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

Packets dropped before enqueue, for each reason.

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

Referenced by ns3::QueueDisc::DropBeforeEnqueue().

◆ nMarkedBytes

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

Marked bytes, for each reason.

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

Referenced by ns3::QueueDisc::Mark().

◆ nMarkedPackets

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

Marked packets, for each reason.

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

Referenced by ns3::QueueDisc::Mark().

◆ nTotalDequeuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalDequeuedBytes

Total dequeued bytes.

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

Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::GetStats(), and ns3::QueueDisc::PacketDequeued().

◆ nTotalDequeuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalDequeuedPackets

Total dequeued packets.

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

Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::GetStats(), and ns3::QueueDisc::PacketDequeued().

◆ nTotalDroppedBytes

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytes

Total dropped bytes.

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

Referenced by ns3::QueueDisc::DropAfterDequeue(), ns3::QueueDisc::DropBeforeEnqueue(), and ns3::QueueDisc::GetStats().

◆ nTotalDroppedBytesAfterDequeue

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesAfterDequeue

Total bytes dropped after dequeue.

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

Referenced by QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), ns3::QueueDisc::DropAfterDequeue(), and ns3::QueueDisc::GetStats().

◆ nTotalDroppedBytesBeforeEnqueue

uint64_t ns3::QueueDisc::Stats::nTotalDroppedBytesBeforeEnqueue

◆ nTotalDroppedPackets

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPackets

Total dropped packets.

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

Referenced by ns3::QueueDisc::DropAfterDequeue(), ns3::QueueDisc::DropBeforeEnqueue(), and ns3::QueueDisc::GetStats().

◆ nTotalDroppedPacketsAfterDequeue

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsAfterDequeue

Total packets dropped after dequeue.

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

Referenced by QueueDiscTracesTestCase::CheckDroppedAfterDequeue(), ns3::QueueDisc::DropAfterDequeue(), and ns3::QueueDisc::GetStats().

◆ nTotalDroppedPacketsBeforeEnqueue

uint32_t ns3::QueueDisc::Stats::nTotalDroppedPacketsBeforeEnqueue

◆ nTotalEnqueuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalEnqueuedBytes

Total enqueued bytes.

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

Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::PacketEnqueued().

◆ nTotalEnqueuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalEnqueuedPackets

Total enqueued packets.

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

Referenced by ns3::QueueDisc::Dequeue(), ns3::QueueDisc::Enqueue(), and ns3::QueueDisc::PacketEnqueued().

◆ nTotalMarkedBytes

uint32_t ns3::QueueDisc::Stats::nTotalMarkedBytes

Total marked bytes.

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

Referenced by ns3::QueueDisc::Mark().

◆ nTotalMarkedPackets

uint32_t ns3::QueueDisc::Stats::nTotalMarkedPackets

Total marked packets.

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

Referenced by ns3::QueueDisc::Mark().

◆ nTotalReceivedBytes

uint64_t ns3::QueueDisc::Stats::nTotalReceivedBytes

Total received bytes.

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

Referenced by ns3::QueueDisc::Enqueue().

◆ nTotalReceivedPackets

uint32_t ns3::QueueDisc::Stats::nTotalReceivedPackets

Total received packets.

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

Referenced by ns3::QueueDisc::Enqueue().

◆ nTotalRequeuedBytes

uint64_t ns3::QueueDisc::Stats::nTotalRequeuedBytes

Total requeued bytes.

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

Referenced by ns3::QueueDisc::Requeue().

◆ nTotalRequeuedPackets

uint32_t ns3::QueueDisc::Stats::nTotalRequeuedPackets

Total requeued packets.

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

Referenced by ns3::QueueDisc::Requeue().

◆ nTotalSentBytes

uint64_t ns3::QueueDisc::Stats::nTotalSentBytes

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

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

Referenced by ns3::QueueDisc::GetStats().

◆ nTotalSentPackets

uint32_t ns3::QueueDisc::Stats::nTotalSentPackets

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

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

Referenced by ns3::QueueDisc::GetStats().


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