Simple token bucket meter.
IP packets are classified according to two parameters, Committed Information Rate (cir), Committed Burst Size (cbs), to be either green, or red.
Green traffic is guaranteed to be under (in bits) cir * (t1 - t0) + 8 * cbs in every [t0,t1] interval.
When operating in color-aware mode, the meter does not classify a packet to be green, if it was marked with a higher color by a previous meter.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
DiffservQueue | compound module |
This is an example queue, that can be used in interfaces of DS core and edge nodes to support the AFxy (RFC 2597) and EF (RFC 3246) PHBs. |
TC2 | compound module |
Traffic conditioner used in Experiment 3.1. |
TC3 | compound module |
Traffic conditioner used in Experiment 3.2. |
TrafficConditioner | compound module |
TODO documentation |
Name | Type | Default value | Description |
---|---|---|---|
interfaceTableModule | string |
The path to the InterfaceTable module |
|
cir | string |
committed information rate, either absolute bitrate (e.g. "100kbps"), or relative to the link's datarate (e.g. "20%") |
|
cbs | int |
committed burst size |
|
colorAwareMode | bool | false |
enables color-aware mode |
Name | Value | Description |
---|---|---|
display | i=block/timer |
Name | Direction | Size | Description |
---|---|---|---|
in [ ] | input | ||
greenOut | output | ||
redOut | output |
// // Simple token bucket meter. // // IP packets are classified according to two parameters, // Committed Information Rate (cir), Committed Burst Size (cbs), // to be either green, or red. // // Green traffic is guaranteed to be under (in bits) // cir * (t1 - t0) + 8 * cbs // in every [t0,t1] interval. // // When operating in color-aware mode, the meter does not classify // a packet to be green, if it was marked with a higher color // by a previous meter. // simple TokenBucketMeter { parameters: @display("i=block/timer"); string interfaceTableModule; // The path to the InterfaceTable module string cir; // committed information rate, either absolute bitrate (e.g. "100kbps"), or relative to the link's datarate (e.g. "20%") int cbs @unit(B); // committed burst size bool colorAwareMode = default(false); // enables color-aware mode gates: input in[]; output greenOut; output redOut; }