CellRateThrottle.h File Reference

Declares the CellRateThrottle class. More...

#include "target.h"
#include "CompoundThrottle.h"
#include "Gcra.h"

Go to the source code of this file.

Classes

class  CellRateThrottle
 Implements a throttle that enforces a traffic contract based on a virtual scheduler implementation of a Generic Cell Rate Algorithm (GCRA) as defined in the ATM Forum Traffic Management 4.1 specification. More...

Functions

int unittestCellRateThrottle (void *pVM, unsigned int pcr, unsigned int cdvt, unsigned int scr, unsigned int mbs, unsigned int iterations)


Detailed Description

Declares the CellRateThrottle class.

See also:
CellRateThrottle
Author:
Author
jsloan
Version:
Revision
1.28
Date:
Date
2007/01/31 23:23:56

Definition in file CellRateThrottle.h.


Function Documentation

int unittestCellRateThrottle void *  pVM,
unsigned int  pcr,
unsigned int  cdvt,
unsigned int  scr,
unsigned int  mbs,
unsigned int  iterations
 

Run the CellRateThrottle unit test.

This may take a while on a typical system.

Parameters:
pVM points to the Ficl VM in whose context this function is being executed if being run from a Ficl shell, null otherwise.
pcr is the Peak Cell Rate in cells per second.
cdvt is the Cell Delay Variation Tolerance in microseconds.
scr is the Sustainable Cell Rate in cells per second.
mbs is the Maximum Burst Size in cells.
iterations is the number of iterations for sach sub-test.
Returns:
the number of errors detected by the unit test.

Definition at line 164 of file unittestCellRateThrottle.cpp.

Referenced by main().

Copyright © 2006 Digital Aggregates Corp., Arvada CO 80001-0587, USA.
Distributed under the terms of the GNU Free Documentation License.
http://www.diag.com/navigation/downloads/Desperado.html