Compound Module TrafficConditioner

Package: inet.examples.diffserv.simple_
File: examples/diffserv/simple_/TrafficConditioner.ned

TODO documentation

MultiFieldClassifier TokenBucketMeter SingleRateThreeColorMeter DSCPMarker DSCPMarker DSCPMarker DSCPMarker DSCPMarker Join DSCPMarker BehaviorAggregateClassifier DSCPMarker Sink

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters:

Name Type Default value Description
interfaceTableModule string

Properties:

Name Value Description
display i=block/classifier

Gates:

Name Direction Size Description
in input
out output

Unassigned submodule parameters:

Name Type Default value Description
efMeter.interfaceTableModule string

The path to the InterfaceTable module

efMeter.cir string

committed information rate, either absolute bitrate (e.g. "100kbps"), or relative to the link's datarate (e.g. "20%")

efMeter.cbs int

committed burst size

efMeter.colorAwareMode bool false

enables color-aware mode

defaultMeter.interfaceTableModule string

The path to the InterfaceTable module

defaultMeter.cir string

committed information rate, either absolute bitrate (e.g. "100kbps"), or relative to the link's datarate (e.g. "20%")

defaultMeter.cbs int

committed burst size

defaultMeter.ebs int

excess burst size

defaultMeter.colorAwareMode bool false

enables color-aware mode

Source code:

//
// TODO documentation
//
module TrafficConditioner like ITrafficConditioner
{
    parameters:
        string interfaceTableModule;
        *.interfaceTableModule = default(absPath(interfaceTableModule));
        @display("i=block/classifier");
    gates:
        input in;
        output out;
    submodules:
        mfClassifier: MultiFieldClassifier {
            filters = xmldoc("filters.xml");
            @display("p=52,296");
        }
        efMeter: TokenBucketMeter {
            @display("p=339,113");
        }
        defaultMeter: SingleRateThreeColorMeter {
            @display("p=339,356");
        }
        efMarker: DSCPMarker {
            dscps = "EF";
            @display("p=204,113");
        }
        af11Marker: DSCPMarker {
            dscps = "AF11";
            @display("p=204,236");
        }
        af21Marker: DSCPMarker {
            dscps = "AF21";
            @display("p=204,356");
        }
        af13Marker: DSCPMarker {
            dscps = "AF13";
            @display("p=556,405");
        }
        af23Marker: DSCPMarker {
            dscps = "AF23";
            @display("p=556,512");
        }
        join: Join {
            @display("p=665,296");
        }
        beMarker: DSCPMarker {
            dscps = "BE";
            @display("p=204,479");
        }
        baClassifier: BehaviorAggregateClassifier {
            dscps = "AF11 AF21";
            @display("p=450,405");
        }
        af11Marker2: DSCPMarker {
            dscps = "AF11";
            @display("p=517,114");
        }
        dropper: Sink {
            @display("p=450,512");
        }
    connections:
        in --> mfClassifier.in;
        mfClassifier.outs++ --> efMarker.in++;
        mfClassifier.outs++ --> af11Marker.in++;
        mfClassifier.outs++ --> af21Marker.in++;
        mfClassifier.defaultOut --> beMarker.in++;
        efMarker.out --> efMeter.in++;
        efMeter.greenOut --> { @display("ls=green"); } --> join.in++;
        efMeter.redOut --> { @display("ls=red"); } --> af11Marker2.in++;
        af11Marker2.out --> join.in++;
        af11Marker.out --> defaultMeter.in++;
        af21Marker.out --> defaultMeter.in++;
        beMarker.out --> defaultMeter.in++;
        defaultMeter.greenOut --> { @display("ls=green"); } --> join.in++;
        defaultMeter.yellowOut --> { @display("ls=yellow"); } --> baClassifier.in;
        baClassifier.outs++ --> af13Marker.in++;
        baClassifier.outs++ --> af23Marker.in++;
        baClassifier.defaultOut --> join.in++;
        af13Marker.out --> join.in++;
        af23Marker.out --> join.in++;
        join.out --> out;
        defaultMeter.redOut --> { @display("ls=red"); } --> dropper.in++;
}