5G NR SDAP

SDAP sublayer is only for the user plane. Source: ShareTechnote 2021.
SDAP sublayer is only for the user plane. Source: ShareTechnote 2021.

Service Data Adaptation Protocol (SDAP) sublayer exists only in the user plane in both gNB and UE. It interfaces to upper layers via QoS flows and to the PDCP lower layer via Data Radio Bearers (DRBs). Traffic from QoS flows are mapped to suitable DRBs. This is an essential role of SDAP. SDAP layer doesn't exist in 4G/LTE since QoS flows were introduced only in 5G.

Quality-of-Service (QoS) is implemented in 5G using QoS Flows. On the Uu air interface between gNB and UE, data packets are carried in DRBs. Rules are either configured or derived to map QoS flows to DRBs. This mapping is executed at SDAP.

Discussion

  • What are the main functions of SDAP sublayer?
    Functional view of SDAP sublayer. Source: ETSI 2020a, fig. 4.2.2-1.
    Functional view of SDAP sublayer. Source: ETSI 2020a, fig. 4.2.2-1.

    The main service provided by SDAP to upper layers is the transfer of user plane data. From lower layers, SDAP expects in-sequence delivery of PDUs except when out-of-sequence delivery is configured by RRC at PDCP.

    Apart from the transfer of user plane data, SDAP maps QoS flows to DRBs in both DL and UL. It maps PC5 QoS flows to SL-DRB for sidelink communication. It marks packets with QoS flow ID (DL or UL) or PC5 QoS flow ID (SL).

    RRC configures the rules by which SDAP does the mapping. When uplink mapping is omitted, UE monitors the equivalent downlink mapping and applies the same to the uplink. This is called Reflective QoS. Reflective QoS is not supported for sidelink. It's also not applicable if DL SDAP PDUs don't have a header.

  • Could you describe how SDAP sublayer handles a PDU session?
    User plane stack for one PDU session. Source: Mataj 2020, fig. 5.7.
    User plane stack for one PDU session. Source: Mataj 2020, fig. 5.7.

    The SDAP sublayer can have multiple SDAP entities, one for each PDU session on the gNB-UE Uu interface. An SDAP entity establishment or release are initiated by RRC.

    The mapping of QoS flows to DRBs is not one to one; that is, multiple QoS flows can be mapped to a DRB. In the figure we show an example of a single PDU session with 4 QoS flows mapped to 3 DRBs. The first two flows are mapped to a single DRB. Each DRB is handled by a single PDCP entity, which may translate to one or two RLC entities depending on the RLC mode.

    In the uplink, a QoS flow is mapped to only one DRB at a time. A PDU session has at least one DRB. There's at most one default DRB in every PDU session. If there's no uplink mapping, SDAP PDU is sent on the default DRB.

    Packets belonging to different PDU sessions go on different DRBs.

  • Could you describe the format of an SDAP data PDU?
    SDAP data PDU formats. Source: Adapted from ETSI 2020a, sec. 6.2.2.
    SDAP data PDU formats. Source: Adapted from ETSI 2020a, sec. 6.2.2.

    An SDAP data PDU includes an optional 1-byte header and a variable length payload. Payload length is communicated between SDAP and PDCP sublayers.

    Presence of SDAP header in UL and DL are configured per DRB. A header isn't required if the DRB carries only one QoS flow. However, DL header presence is configured if reflective QoS is enabled. Any change to header presence is done in a synchronized manner such as a handover.

    DL SDAP header includes a 1-bit RDI (Reflective QoS flow to DRB mapping Indication), a 1-bit RQI (Reflective QoS Indication) and a 6-bit QFI. UL SDAP header includes QFI. When RDI=1, UE updates QoS flow to DRB mapping for uplink. When RQI=1, UE informs NAS that Service Data Flow (SDF) to QoS mapping rules have been updated. 1-bit D/C field is set to 1 to indicate data PDU. 1-bit R field is reserved.

    Non-GBR QoS flows can contain the Reflective QoS Attribute (RQA). This tells the NG-RAN to include QFI in downlink packets. UE may be configured to include QFI in uplink packets.

  • Which are the SDAP control PDUs?
    SDAP end-marker control PDU format. Source: ETSI 2020a, fig. 6.2.3-1.
    SDAP end-marker control PDU format. Source: ETSI 2020a, fig. 6.2.3-1.

    SDAP has only one control PDU called end-marker. It's sent to indicate that a specific QoS flow is no longer mapped to the DRB/SL-DRB on which this control PDU is sent. The QoS flow is indicated with a 6-bit QFI/PQFI field. A 1-bit D/C field is set to zero to indicate control PDU. A 1-bit R field is reserved.

    When RRC configures a new mapping, SDAP will send the end-marker PDU on the previously mapped DRB or SL-DRB. The latter could be a previously configured DRB/SL-DRB or the default DRB/SL-DRB.

Milestones

Jun
2017

At the 3GPP TSG-RAN WG2 #98 meeting, two proposals are made for SDAP operation: (a) QFI presence in SDAP PDU is configured semi-statically by RRC and can't be dynamically enabled or disabled; (b) SDAP header presence can be changed only via synchronized configuration such as a handover.

Sep
2017

SDAP specification TS 37.324 v1.0.0 is published.

May
2018
Message flow showing NAS reflective QoS functionality. Source: Jheng et al. 2018, fig. 11.
Message flow showing NAS reflective QoS functionality. Source: Jheng et al. 2018, fig. 11.

Jheng et al. of Mediatek Inc. file a patent detailing the operation of an apparatus that extracts from a downlink packet RQI and QFI. Subsequently, it derives the uplink Non-Access Stratum (NAS) mapping of Service Data Flow (SDF) to QoS flow. It's then able to send an uplink packet using this mapping. This is not actually an SDAP operation, since SDAP does only Access Stratum (AS) mapping of QoS flow to DRB.

Jun
2018

As part of Release 15 specifications, SDAP specification TS 37.324 v15.0.0 is approved and published.

Jul
2018

Li-Te Pan of ASUSTek Computer Inc. files a patent that restricts the network from changing the SDAP header presence configuration of the first DRB after it's established. The patent describes the challenges in changing this configuration.

Mar
2020

As part of Release 16 specifications, SDAP specification TS 37.324 v16.0.0 is published. This includes changes necessary for sidelink communication.

Sample Code

  • -- Source: https://www.etsi.org/deliver/etsi_ts/138300_138399/138331/16.04.01_60/ts_138331v160401p.pdf
    -- Accessed 2021-05-16
     
    DRB-ToAddMod ::= SEQUENCE {
      cnAssociation CHOICE {
        eps-BearerIdentity INTEGER (0..15),
        sdap-Config SDAP-Config
      } OPTIONAL, -- Cond DRBSetup
      drb-Identity DRB-Identity,
      reestablishPDCP ENUMERATED{true} OPTIONAL, -- Need N
      recoverPDCP ENUMERATED{true} OPTIONAL, -- Need N
      pdcp-Config PDCP-Config OPTIONAL, -- Cond PDCP
      ...,
      [[
        daps-Config-r16 ENUMERATED{true} OPTIONAL -- Cond DAPS
      ]]
    }
     
    SDAP-Config ::= SEQUENCE {
      pdu-Session PDU-SessionID,
      sdap-HeaderDL ENUMERATED {present, absent},
      sdap-HeaderUL ENUMERATED {present, absent},
      defaultDRB BOOLEAN,
      mappedQoS-FlowsToAdd SEQUENCE (SIZE (1..maxNrofQFIs)) OF QFI OPTIONAL, -- Need N
      mappedQoS-FlowsToRelease SEQUENCE (SIZE (1..maxNrofQFIs)) OF QFI OPTIONAL, -- Need N
      ...
    }
     
    QFI ::= INTEGER (0..maxQFI)
     
    PDU-SessionID ::= INTEGER (0..255)
     

References

  1. 3GPP. 2017. "Reflective QoS and Presence of Flow-ID." Tdoc R2-1704379, 3GPP TSG-RAN WG2 #98, June 27-29. Accessed 2021-05-15.
  2. ETSI. 2020a. "TS 137 324: LTE; 5G; Evolved Universal Terrestrial Radio Access (E-UTRA) and NR; Service Data Adaptation Protocol (SDAP) specification." V16.2.0, November. Accessed 2021-05-15.
  3. ETSI. 2021a. "TS 138 300: 5G; NR; NR and NG-RAN Overall description; Stage-2." V16.5.0, April. Accessed 2021-05-16.
  4. ETSI. 2021b. "TS 138 331: 5G; NR; Radio Resource Control (RRC); Protocol specification." V16.4.1, April. Accessed 2021-05-16.
  5. Jheng, Yu-Syuan, Pavan Santhana Krishna Nuggehalli, and Chia-Chun Hsu. 2018. "Using SDAP headers for handling of AS/NAS reflective QoS and to ensure in-sequence packet delivery during remapping in 5G communication systems." U.S. Patent US20180324631A1, November 8. File 2018-05-04. Accessed 2021-05-15.
  6. Mataj, Enida. 2020. "Network slicing and QoS in 5G systems and their impact on the MAC layer." Master Thesis, Department of Electronics and Telecommunications, Politecnico di Torino, July 10. Accessed 2021-05-15.
  7. Pan, Li-Te. 2019. "Method and apparatus for servicing QoS (quality of service) flow in a wireless communication system." European Patent EP 3 432 633 B1, January 23. Filed 2019-07-20. Accessed 2021-05-15.
  8. ShareTechnote. 2021. "5G/NR - Radio Protocol Stack Architecture." ShareTechnote. Accessed 2021-05-15.

Further Reading

  1. ETSI. 2020a. "TS 137 324: LTE; 5G; Evolved Universal Terrestrial Radio Access (E-UTRA) and NR; Service Data Adaptation Protocol (SDAP) specification." V16.2.0, November. Accessed 2021-05-15.
  2. ETSI. 2021a. "Section 12: QoS." In: TS 138 300: 5G; NR; NR and NG-RAN Overall description; Stage-2, V16.5.0, April. Accessed 2021-05-16.
  3. Jheng, Yu-Syuan, Pavan Santhana Krishna Nuggehalli, and Chia-Chun Hsu. 2018. "Using SDAP headers for handling of AS/NAS reflective QoS and to ensure in-sequence packet delivery during remapping in 5G communication systems." U.S. Patent US20180324631A1, November 8. File 2018-05-04. Accessed 2021-05-15.

Article Stats

Author-wise Stats for Article Edits

Author
No. of Edits
No. of Chats
DevCoins
2
0
1412
977
Words
5
Likes
12K
Hits

Cite As

Devopedia. 2021. "5G NR SDAP." Version 2, May 16. Accessed 2023-11-12. https://devopedia.org/5g-nr-sdap
Contributed by
1 author


Last updated on
2021-05-16 13:14:22