Manuscript Offprint

arXiv:2609.37697

Sequence Models for Layer-3 Protocol Emulation

Alix Jeannerot, Petko Petkov, Alvaro Valcarce Rial

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Alix Jeannerot, Petko Petkov, Alvaro Valcarce Rial

Abstract—This article investigates whether Layer-3 radio-protocol behavior can be represented by compact sequence models suitable for deployment inside the RAN. We introduce the RRC sequence engine (RSE), a hybrid architecture in which a sequence model predicts protocol-dependent message structure while deterministic components retain control over security-sensitive or configured fields and over transport containers. Using NR protocol traces, we show that protocol-aware tokenization, cross-stack context, and explicit placeholders matter more than general-sequence model scale. A purpose-built 11M-parameter Mamba engine achieves 0.90 exact match on the evaluated next-generation Node B (gNB)-side test set with a median generation latency of 115 ms, sufficient for some timers of Layer-3, outperforming a fine-tuned 0.6B-parameter model. We discuss applications in testing, simulation, deployment specialization, and future trainable 6G control planes, as well as the validation, latency, robustness, and security challenges that remain before operational use.

Index Terms—6G, radio resource control, large language models, protocol emulation, AI-RAN

I. INTRODUCTION

The radio resource control (RRC) protocol [1] is a Layer-3 control-plane protocol between the user equipment (UE) and the gNB. Among others, it governs the connection and release of UEs to gNBs, the broadcast of system information, the radio-bearer management, and the mobility procedures. A correct and efficient RRC implementation is therefore essential to network stability and to the user experience.

Like other cellular protocols, RRC is specified by the 3rd Generation Partnership Project (3GPP), where working groups collect contributions from vendors, operators, and research organizations, debate them in successive meetings, and freeze the agreed procedures into a release of the specification. The resulting document contains procedure descriptions and message definitions that each vendor then implements. This process has well-known drawbacks. Because every change must accommodate a global set of stakeholders and use cases, the protocol grows by accumulation, the specification spanning thousands of pages with mandatory procedures interleaved with optional ones. As a result, only a fraction of the standardized procedures are effectively implemented and productized. Furthermore, customization of the protocol to optimize a specific deployment is impossible unless it was anticipated in the specification. The cadence of meetings and the subsequent implementation cycle also mean that the control plane evolves slowly: a feature agreed in one release typically takes years to appear in commercial networks. Lastly differences in interpretation of the same text further yields vendor-specific stacks that are difficult to compare, test, or replace, making interoperability certification costly.

These limitations have motivated alternative ways of realizing and implementing standardized protocols. Recent work [2] showed that a fine-tuned large language model (LLM) can partially emulate RRC: real and simulated network traces are presented to a Llama model, which produces the corresponding response. The key insight is to treat ASN.1 RRC messages as text, and therefore as sequences of predictable tokens. The results are encouraging, but not yet practical. Inference on an 1-billion parameter transformer takes a few seconds, far beyond the latency expected for Layer 3, and the generated message is not guaranteed to be the one the UE expects.

This article treats RRC as a domain-specific language on which the techniques developed for language models can be applied, and calls the sequence model that results from this treatment an RSE. We ask how far an RSE can be pushed toward the latency and reliability of rule-based RRC stacks. We follow two routes: fine-tuning a compact Qwen [3] model, and training a custom Mamba [4] architecture from scratch. Both rely on a protocol-aware tokenizer and on curated inputs and outputs. An important takeaway is that, for an AI-based protocol, message content and protocol logic should be decoupled to obtain a high accuracy. By doing so, the RSE is not asked to infer operator-provisioned or security-sensitive fields and focuses on creating the correct message with appropriate information elements (IEs). Although we focus on RRC, the same methods apply to other Layer-3 protocols in the 5G stack or in other radio technologies.

The remainder of this article is organized as follows. Section II motivates protocol emulation and reviews related work. Section III describes where the RSE sits in a disaggregated gNB and how traces are turned into training conversations. Section IV presents the two modeling routes. Experimental results follow in Section V.

References (19)