ExampleQosClassifier

Package: inet.linklayer.common

ExampleQosClassifier

simple module

An example QoS classifier that assigns a User Priority based on the transport protocol and port numbers.

Inheritance diagram

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

Properties

Name Value Description
display i=block/classifier

Gates

Name Direction Size Description
in input
out output

Direct method calls (observed)

call tofunctioninfo
Ieee80211LlcLpdinet::ieee80211::Ieee80211LlcLpd::handleRegisterProtocolhandleRegisterProtocol
Ieee80211LlcLpdinet::ieee80211::Ieee80211LlcLpd::handleRegisterServicehandleRegisterService

Called methods (observed)

functioninfocall from
inet::ExampleQosClassifier::handleRegisterProtocolhandleRegisterProtocolMessageDispatcher
inet::ExampleQosClassifier::handleRegisterServicehandleRegisterServiceMessageDispatcher

Incoming messages (observed)

gatemsgkindctrlsrcModuletags
inPacket0ArpInterfaceReq, MacAddressReq, PacketProtocolTag
inPacket0Ipv4DispatchProtocolInd, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd

Outgoing messages (observed)

gatemsgkindctrldestModuletags
outPacket0Ieee80211LlcLpdInterfaceReq, MacAddressReq, PacketProtocolTag, UserPriorityReq, DispatchProtocolInd?, MulticastReq?, NetworkProtocolInd?, TransportProtocolInd?

Packet operations (observed)

chunkTypepacketAction
Ipv4HeaderpeekDataAt
UdpHeaderpeekDataAt

Shared Tagging operations (observed)

tagTypetagAction
PacketProtocolTaggetTag
UserPriorityReqaddTagIfAbsent

Source code

//
// An example QoS classifier that assigns a User Priority based on
// the transport protocol and port numbers.
//
simple ExampleQosClassifier like IIeee8021dQosClassifier
{
    parameters:
        @display("i=block/classifier");
    gates:
        input in;
        output out;
}

File: src/inet/linklayer/common/ExampleQosClassifier.ned