Package: inet.linklayer.common
QosClassifier
simple moduleThis module classifies 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.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
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 |
---|---|---|
display | i=block/classifier |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Direct method calls (observed)
call to | function | info |
---|---|---|
Ieee80211LlcLpd | inet::ieee80211::Ieee80211LlcLpd::handleRegisterProtocol | handleRegisterProtocol |
Ieee80211LlcLpd | inet::ieee80211::Ieee80211LlcLpd::handleRegisterService | handleRegisterService |
Called methods (observed)
function | info | call from |
---|---|---|
inet::QosClassifier::handleRegisterProtocol | handleRegisterProtocol | MessageDispatcher |
inet::QosClassifier::handleRegisterService | handleRegisterService | MessageDispatcher |
Incoming messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
in | Packet | 0 | Arp | InterfaceReq, MacAddressReq, PacketProtocolTag | |
in | Packet | 0 | Ipv4 | DispatchProtocolInd, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd |
Outgoing messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
out | Packet | 0 | Ieee80211LlcLpd | InterfaceReq, MacAddressReq, PacketProtocolTag, UserPriorityReq, DispatchProtocolInd?, MulticastReq?, NetworkProtocolInd?, TransportProtocolInd? |
Packet operations (observed)
chunkType | packetAction |
---|---|
Ipv4Header | peekDataAt |
UdpHeader | peekDataAt |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
PacketProtocolTag | getTag |
UserPriorityReq | addTagIfAbsent |
Source code
// // This module classifies packets and assigns a User Priority based on the IP // protocol or the transport protocol port numbers. // simple QosClassifier like IIeee8021dQosClassifier { parameters: string ipProtocolUpMap = default("1 BE 58 BE"); string udpPortUpMap @enum() = default("21 BK 80 BE 4000 VI 5000 VO"); string tcpPortUpMap @enum() = 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