QosClassifier
Package: inet.linklayer.common
QosClassifier
simple moduleClassifies packets and assigns a User Priority based on the IP protocol or the transport protocol port numbers.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| SimpleModule | simple module |
Base module for all INET simple modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| ipProtocolUpMap | string | "1 BE 58 BE" | |
| udpPortUpMap | string | "21 BK 80 BE 4000 VI 5000 VO" | |
| tcpPortUpMap | string | "21 BK 80 BE 4000 VI 5000 VO" | |
| defaultUp | string | "BE" |
Properties
| Name | Value | Description |
|---|---|---|
| class | QosClassifier | |
| display | i=block/classifier |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Source code
// // Classifies packets and assigns a User Priority based on the IP // protocol or the transport protocol port numbers. // simple QosClassifier extends SimpleModule like IIeee8021dQosClassifier { parameters: @class(QosClassifier); string ipProtocolUpMap = default("1 BE 58 BE"); string udpPortUpMap = default("21 BK 80 BE 4000 VI 5000 VO"); string tcpPortUpMap = default("21 BK 80 BE 4000 VI 5000 VO"); string defaultUp = default("BE"); @display("i=block/classifier"); gates: input in; output out; }File: src/inet/linklayer/common/QosClassifier.ned