Simple Module BehaviorAggregateClassifier

Package: inet.networklayer.diffserv
File: src/inet/networklayer/diffserv/BehaviorAggregateClassifier.ned

C++ definition

This module reads the DSCP (lower six bits of ToS/TrafficClass) from the received datagram, and forwards the datagram to the corresponding output gate.

DSCPs are enumerated in the dscps parameter, first value is for out[0], second for out[1], etc. If the packet has no DSCP, or its value is not enumerated in the dscps parameter, it will be forwarded via the defaultOut gate.

BehaviorAggregateClassifier

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.

Used in compound modules:

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.

DSQueue1 compound module

Diffserv Queue used in Experiment 1.1 - 1.6 and 5.1.

DSQueue2 compound module

Diffserv Queue used in Experiment 2.1 - 2.4.

TrafficConditioner compound module

TODO documentation

Parameters:

Name Type Default value Description
dscps string ""

space separated dscp values of the gates, both names (e.g. AF11, EF) and numbers (0x0A,0b101110) can be used

Properties:

Name Value Description
display i=block/classifier

Gates:

Name Direction Size Description
in input
outs [ ] output
defaultOut output

Signals:

Name Type Unit
pkClass long

Statistics:

Name Title Source Record Unit Interpolation Mode
pkClass packet class pkClass vector none

Source code:

//
// This module reads the DSCP (lower six bits of ToS/TrafficClass) from the
// received datagram, and forwards the datagram to the corresponding output gate.
//
// DSCPs are enumerated in the dscps parameter, first value is for out[0], second
// for out[1], etc. If the packet has no DSCP, or its value is not enumerated
// in the dscps parameter, it will be forwarded via the defaultOut gate.
//
simple BehaviorAggregateClassifier
{
    parameters:
        string dscps = default(""); // space separated dscp values of the gates, both names (e.g. AF11, EF) and numbers (0x0A,0b101110) can be used
        @display("i=block/classifier");

        @signal[pkClass](type=long);
        @statistic[pkClass](title="packet class"; source=pkClass; record=vector; interpolationmode=none);
    gates:
        input in;
        output outs[];
        output defaultOut;
}