A Discrete-Event Network Simulator
API
Classes | Macros | Functions | Variables
codel-queue-disc-test-suite.cc File Reference
#include "ns3/test.h"
#include "ns3/codel-queue-disc.h"
#include "ns3/packet.h"
#include "ns3/uinteger.h"
#include "ns3/string.h"
#include "ns3/double.h"
#include "ns3/log.h"
#include "ns3/simulator.h"

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  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 (uint32_t count, uint16_t rec_inv_sqrt)
 
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 35 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)

Function Documentation

◆ _codel_Newton_step()

static uint16_t _codel_Newton_step ( uint32_t  count,
uint16_t  rec_inv_sqrt 
)
static

◆ _reciprocal_scale()

static uint32_t _reciprocal_scale ( uint32_t  val,
uint32_t  ep_ro 
)
static