A Discrete-Event Network Simulator
API
codel-queue-disc-test-suite.cc File Reference
#include "ns3/codel-queue-disc.h"
#include "ns3/double.h"
#include "ns3/log.h"
#include "ns3/packet.h"
#include "ns3/simulator.h"
#include "ns3/string.h"
#include "ns3/test.h"
#include "ns3/uinteger.h"
+ Include dependency graph for codel-queue-disc-test-suite.cc:

Go to the source code of this file.

Classes

class  CoDelQueueDiscBasicDrop
 Test 5: enqueue/dequeue with drops according to CoDel algorithm. More...
 
class  CoDelQueueDiscBasicEnqueueDequeue
 Test 1: simple enqueue/dequeue with no drops. More...
 
class  CoDelQueueDiscBasicMark
 Test 6: enqueue/dequeue with marks according to CoDel algorithm. More...
 
class  CoDelQueueDiscBasicOverflow
 Test 2: enqueue with drops due to queue overflow. More...
 
class  CoDelQueueDiscControlLawTest
 Test 4: ControlLaw unit test - test against explicit port of Linux implementation. More...
 
class  CoDelQueueDiscNewtonStepTest
 Test 3: NewtonStep unit test - test against explicit port of Linux implementation. More...
 
class  CodelQueueDiscTestItem
 Codel Queue Disc Test Item. More...
 
class  CoDelQueueDiscTestSuite
 CoDel Queue Disc Test Suite. More...
 

Macros

#define REC_INV_SQRT_BITS_ns3   (8 * sizeof(uint16_t))
 
#define REC_INV_SQRT_SHIFT_ns3   (32 - REC_INV_SQRT_BITS_ns3)
 

Functions

static uint16_t _codel_Newton_step (uint16_t rec_inv_sqrt, uint32_t count)
 
static uint32_t _reciprocal_scale (uint32_t val, uint32_t ep_ro)
 

Variables

CoDelQueueDiscTestSuite g_coDelQueueTestSuite
 the test suite More...
 

Macro Definition Documentation

◆ REC_INV_SQRT_BITS_ns3

#define REC_INV_SQRT_BITS_ns3   (8 * sizeof(uint16_t))

Definition at line 34 of file codel-queue-disc-test-suite.cc.

◆ REC_INV_SQRT_SHIFT_ns3

#define REC_INV_SQRT_SHIFT_ns3   (32 - REC_INV_SQRT_BITS_ns3)

Definition at line 37 of file codel-queue-disc-test-suite.cc.

Function Documentation

◆ _codel_Newton_step()

static uint16_t _codel_Newton_step ( uint16_t  rec_inv_sqrt,
uint32_t  count 
)
static

Definition at line 40 of file codel-queue-disc-test-suite.cc.

References REC_INV_SQRT_SHIFT_ns3.

Referenced by CoDelQueueDiscNewtonStepTest::DoRun().

+ Here is the caller graph for this function:

◆ _reciprocal_scale()

static uint32_t _reciprocal_scale ( uint32_t  val,
uint32_t  ep_ro 
)
static

Definition at line 52 of file codel-queue-disc-test-suite.cc.

Referenced by CoDelQueueDiscControlLawTest::_codel_control_law().

+ Here is the caller graph for this function: