INET Framework for OMNeT++/OMNEST
|
This class can be used as a meter in an ITrafficConditioner. More...
#include <TwoRateThreeColorMeter.h>
Public Member Functions | |
TwoRateThreeColorMeter () | |
Protected Member Functions | |
virtual int | numInitStages () const override |
virtual void | initialize (int stage) override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | refreshDisplay () const override |
virtual int | meterPacket (cPacket *packet) |
Protected Attributes | |
double | PIR = NaN |
long | PBS = 0 |
double | CIR = NaN |
long | CBS = 0 |
bool | colorAwareMode = false |
long | Tp = 0 |
long | Tc = 0 |
simtime_t | lastUpdateTime |
int | numRcvd = 0 |
int | numYellow = 0 |
int | numRed = 0 |
This class can be used as a meter in an ITrafficConditioner.
It marks the packets based on two rates, Peak Information Rate (PIR) and Committed Information Rate (CIR), and their associated burst sizes to be either green, yellow or red.
See RFC 2698.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedvirtual |
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |