nr_pdcp: support independent UL and DL PDCP SN sizes for DRBs #1005
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 329 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1005"
general
weight: 0.35
Paramveersingh-S
Summary
Implements independent uplink (
pdcp-SN-SizeUL) and downlink (pdcp-SN-SizeDL) PDCP sequence number lengths for DRBs per 3GPP TS 38.331 §6.3.2 (PDCP-Config) and 3GPP TS 38.323 §6.3.2 / §7.2, eliminating theexit(1)termination innr_pdcp_add_drb()and theAssertFatalinnr_pdcp_reconfigure_drb()when UL and DL SN lengths differ (e.g.,UL = 18 bits,DL = 12 bits).Root Cause & 3GPP Specification Context
Per 3GPP TS 38.331 §6.3.2 (
PDCP-Config),drbspecifiespdcp-SN-SizeULandpdcp-SN-SizeDLas independentENUMERATED {len12bits, len18bits}fields. Per 3GPP TS 38.323 §7.2,Window_Sizeis a constant of the receiving PDCP entity ($2^{ ext{pdcp-SN-SizeRX} - 1}$), while the transmitting PDCP entity wrapsTX_NEXTmodulo $2^{ ext{pdcp-SN-SizeTX}}$.Previously:
1.
nr_pdcp_add_drb()inopenair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.crejectedsn_size_ul != sn_size_dlwithexit(1), andnr_pdcp_reconfigure_drb()aborted viaAssertFatal.2.
nr_pdcp_entity_theld only a singlesn_size/sn_maxfor bothnr_pdcp_entity_process_sdu()(TX) andnr_pdcp_entity_recv_pdu()(RX).Changes
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.h&openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c:- Add
nr_pdcp_entity_set_sn_sizes(nr_pdcp_entity_t *entity, int sn_size_ul, int sn_size_dl)to configuresn_size_ul,sn_size_dl, directionalsn_size_tx(is_gnb ? sn_size_dl : sn_size_ul),sn_size_rx(is_gnb ? sn_size_ul : sn_size_dl),tx_sn_max,rx_sn_max, and receivingwindow_size = 1 << (sn_size_rx - 1).- Update
nr_pdcp_entity_process_sdu()to frame 2-byte (SHORT_SN_SIZE) or 3-byte (LONG_SN_SIZE) headers usingsn_size_txandtx_sn_max.- Update
nr_pdcp_entity_recv_pdu()to parse headers, compute HFN/COUNT, and evaluatewindow_sizeusingsn_size_rxandrx_sn_max.openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c:- Validate
drb->pdcp_SN_SizeUL,drb->pdcp_SN_SizeDL, anddrb->discardTimerforNULLinnr_pdcp_add_drb().- Remove the
sn_size_ul != sn_size_dlexit(1)block innr_pdcp_add_drb()andAssertFatalinnr_pdcp_reconfigure_drb(), applying both UL and DL SN lengths vianr_pdcp_entity_set_sn_sizes().openair2/LAYER2/nr_pdcp/tests/test_nr_pdcp_sn_sizes.cpp&CMakeLists.txt:- Add GoogleTest regression suite
test_nr_pdcp_sn_sizesverifying bidirectional UE $\leftrightarrow$ gNB PDCP SDU/PDU transfer (with NEA2 ciphering and NIA2 integrity enabled) across12/12,18/18,18/12(UL 18-bit / DL 12-bit), and12/18(UL 12-bit / DL 18-bit) configurations.Closes #980