QosFlowClassifier

Package: simu5g.stack.sdap

QosFlowClassifier

simple module

Classifies a UE's uplink packets to QoS flows: the uplink counterpart of TrafficFlowFilter's QFI assignment, sitting where uplink traffic enters the UE's stack just as the TFF sits where downlink traffic enters the tunnel at the core network. Each direction is classified once, at its ingress.

The classification rules are delivered by the BearerConfigurator (see its ulQfiRules parameter, where they can be scoped per UE), through the UE's RRC: the same rule grammar the downlink rules use, evaluated in order, first match wins. They model the QoS rules that NAS signaling installs into a UE at PDU session establishment (TS 23.501 5.7.1.4); this module never authors rules of its own.

A matched packet is stamped with a QfiReq tag, which NrSdap consumes for its QFI-to-DRB mapping. A packet no rule covers is left untagged -- deliberately not tagged with 0, because QFI 0 is a real classification (the default flow) and absence is what lets SDAP fall back to reflective QoS or the default DRB. A packet that already carries a QfiReq (an application that set the QFI directly) is not second-guessed. With no rules delivered, SDAP behaves as if this module were not there.

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
upperLayerIn input
lowerLayerOut output

Source code

//
// Classifies a UE's uplink packets to QoS flows: the uplink counterpart of
// ~TrafficFlowFilter's QFI assignment, sitting where uplink traffic enters the
// UE's stack just as the TFF sits where downlink traffic enters the tunnel at
// the core network. Each direction is classified once, at its ingress.
//
// The classification rules are delivered by the ~BearerConfigurator (see its
// ulQfiRules parameter, where they can be scoped per UE), through the UE's RRC:
// the same rule grammar the downlink rules use, evaluated in order, first match
// wins. They model the QoS rules that NAS signaling installs into a UE at PDU
// session establishment (TS 23.501 5.7.1.4); this module never authors rules of
// its own.
//
// A matched packet is stamped with a QfiReq tag, which ~NrSdap consumes for its
// QFI-to-DRB mapping. A packet no rule covers is left untagged -- deliberately
// not tagged with 0, because QFI 0 is a real classification (the default flow)
// and absence is what lets SDAP fall back to reflective QoS or the default DRB.
// A packet that already carries a QfiReq (an application that set the QFI
// directly) is not second-guessed. With no rules delivered, SDAP behaves as if
// this module were not there.
//
simple QosFlowClassifier like IQosFlowClassifier
{
    parameters:
        @display("i=block/classifier");
    gates:
        input upperLayerIn;
        output lowerLayerOut;
}
File: src/simu5g/stack/sdap/QosFlowClassifier.ned