Manuscript Offprint
arXiv:2611.07550SEROA: Stable Encrypted-Traffic Representation and Online Adaptation for Service-Aware Networks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Zongxi Liu, Shuai Mao, Jie Chuai, and Hongyang Du*
Abstract—Mobile networks are evolving toward service-aware operation to support heterogeneous applications with diverse quality-of-service (QoS) and quality-of-experience (QoE) requirements. In practice, however, the widespread use of encryption makes service types difficult to observe directly, which limits the deployment of service-aware optimization in operational networks. Recent raw-byte representation learning methods have improved offline encrypted-traffic classification, but their robustness in realistic deployment remains limited due to temporal drift and the lack of explicit labels for online adaptation. This paper proposes Stable Encrypted-Traffic Representation and Online Adaptation (SEROA), a deployment-oriented framework for encrypted-traffic classification in service-aware mobile networks. In the offline stage, SEROA exploits protocol structure to learn temporally stable representations by applying masked modeling to stable fields, protocol-aware transformations and contrastive learning to unstable fields, and time-adversarial learning to suppress time-specific cues. In the online stage, SEROA uses feedback records containing QoE measurements, wireless states, and allocation decisions to update the deployed classifier through contextual-bandit learning. Experiments show that SEROA consistently outperforms representative pretrained baselines under both random and time-based evaluation protocols, and remains effective under QoE-driven online adaptation. These results demonstrate the value of stable representation learning and online adaptation for practical service-aware mobile networks.
Index Terms—Encrypted traffic classification, online learning, temporal drift, representation learning.
1 INTRODUCTION
MOBILE networks are evolving from the traditional best-effort service model toward a service-aware paradigm, driven by the rapid growth of latency-sensitive and experience-driven applications such as artificial intelligence (AI) agents, eExtended Reality (XR), cloud gaming, and live streaming [1]–[4]. To meet these heterogeneous requirements, 5G and the emerging 5G-Advanced/6G architectures introduce fine-grained quality-of-service (QoS) management mechanisms, including QoS Flows, the 5G QoS Identifier (5QI), and the QoS Flow Identifier (QFI) [5], [6]. The core network can configure QoS parameters according to the service type, and the radio access network (RAN) can
in turn exploit this information for base station (BS) radio resource scheduling, thereby improving the user-perceived quality-of-experience (QoE) [7]–[10].
In practice, however, obtaining such service-type information has become increasingly difficult because most operational traffic is now encrypted. The widespread deployment of transport layer security (TLS) has made encrypted traffic increasingly ubiquitous in operational networks [11]. Encryption hides application-layer payloads and most protocol semantics, rendering traditional deep packet inspection (DPI) methods that rely on plaintext content largely ineffective [12]. As a result, the service-type information assumed by many service-aware optimization studies is not directly observable in encrypted mobile networks, which limits the practical deployability of service-aware resource management [10]. Consequently, accurately and robustly identifying the service type of each flow under encryption has become a central problem in service-aware mobile networking [10].
To infer service types from encrypted traffic, recent encrypted-traffic classification studies have shifted from manual inspection and hand-crafted features to representation learning from observable packet bytes. Representative methods such as ET-BERT [13], YaTC [14], and Net-Mamba [15] adapt masked modeling from natural language processing (NLP) and computer vision (CV) to encrypted traffic, and achieve strong performance on offline classification benchmarks. These results suggest that raw-byte traffic contains exploitable signals for service identification, while removing the dependence on hand-crafted features. Despite this progress, existing raw-byte-based pretraining approaches remain largely confined to idealized offline evaluation, and their robustness in real mobile-network deployment remains limited [16]–[18]. In deployment, a classifier is pretrained and fine-tuned on historical traffic, and then applied to future flows whose distribution shifts as applications and protocols evolve over time. This temporal drift can substantially degrade the accuracy of encrypted-traffic classifiers [16], [19], [20]. If the pretrained encoder encodes time-specific shortcuts, fine-tuning has limited ability to remove them, and temporal drift can induce larger performance degradation [17], [18].
We argue that this limitation mainly comes from two causes. The first is field-agnostic pretraining. Existing meth-
Zongxi Liu and Hongyang Du are with the Department of Electrical and Computer Engineering, The University of Hong Kong, Hong Kong SAR, China (e-mail: duhy@hku.hk). Shuai Mao and Jie Chuai are with Noah's Ark Lab, Huawei Technologies Ltd., Hong Kong SAR, China.
ods directly transplant NLP or CV objectives to encrypted traffic and treat all bytes as homogeneous tokens or patches [13], [14], [21], [22]. Encrypted traffic contains protocol-structural fields, environment-dependent statistical fields, and session-specific or cryptographically opaque fields, whose semantics and temporal stability differ substantially. In particular, IP, TCP, and TLS fields can have different stability properties. A uniform pretraining objective can spend capacity reconstructing random content or memorizing environment-specific patterns, yielding representations that generalize poorly across time. The second cause is insufficient support for online adaptation. When the deployment distribution drifts substantially, historical offline training alone cannot ensure accurate prediction for current traffic, and the classifier must adapt to the new distribution. Existing raw-byte pretraining studies largely stop at offline evaluation and do not specify how a deployed model should learn online in a mobile network. Such learning is difficult because ground-truth service labels are usually unavailable after deployment. The network can only log weak deployment signals, such as radio conditions, scheduling outcomes, and QoE measurements, which are noisy and indirectly related to class labels. Offline pretraining must therefore produce representations robust enough to support lightweight online updates under noisy weak feedback.
Motivated by these observations, we propose Stable Encrypted-Traffic Representation and Online Adaptation (SEROA), a deployment-oriented framework for encrypted-traffic classification in service-aware mobile networks. SEROA first learns temporally stable traffic representations by exploiting protocol structure and reducing the influence of time-sensitive fields. It then supports lightweight online adaptation after deployment by using feedback records containing QoE, wireless-state, and allocation information. This design connects robust offline pretraining with online service-aware resource allocation under temporal drift.
Our main contributions are summarized as follows.
- We conduct a deployment-aware empirical analysis of representative raw-byte pretrained classifiers, showing that their strong random-split performance does not directly transfer to time-based testing or frozen-encoder adaptation. This performance gap motivates stable representations and online adaptation for practical deployment.
- We propose a protocol-aware offline pretraining framework that combines stable-field masked modeling, protocol-aware transformations, contrastive learning, and time-adversarial learning to learn representations that remain robust across time and effective under lightweight adaptation.
- We design a joint online feedback framework between the core network and the RAN, which uses classification-assisted resource allocation and feedback records containing QoE, wireless-state, and allocation information to update the deployed classifier through online contextual-bandit learning.
- We conduct extensive offline and online experiments on public CSTNET datasets. The results show consistent gains over representative pretrained baselines in both offline evaluation settings and under QoE-driven online adaptation.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 formalizes the deployment pipeline and the service-aware allocation model. Section 4 presents the deployment gap analysis. Section 5 introduces the proposed pretraining method. Section 6 develops the online adaptation mechanism, and Section 7 reports the experimental results.
2.1 Encrypted Traffic Classification
Early network-traffic classifiers relied on port numbers and DPI, matching signatures against plaintext headers or payloads. The deployment of TLS-based encryption has reduced the visibility of application-layer content, and shifted traffic classification toward side-channel signals such as packet length, packet direction, timing, and early flow behavior [23]–[25]. Taylor et al. showed that encrypted mobile applications can be identified from statistical fingerprints extracted from traffic traces, as demonstrated by AppScanner and a later robustness-oriented follow-up study [19], [26]. Lotfollahi et al. and Rezaei et al. then introduced end-to-end deep models over raw packets or early-flow features, improving classification accuracy under encrypted payloads [27], [28]. Other studies map flows into intermediate representations, such as flowpic images, and exploit convolutional, few-shot, or contrastive learning architectures [29], [30]. However, the wide deployment of TLS and rapidly evolving application protocols has reduced the reliability of such manually designed features. As payload semantics are hidden and traffic patterns change across versions, devices, and deployment environments, classifiers based on fixed statistical descriptors become increasingly difficult to generalize.
To reduce the dependence on hand-crafted features, recent work has further moved from supervised deep models to raw-byte self-supervised pretraining. Lin et al. proposed ET-BERT, which learns contextual datagram representations with masked language modeling [13]. Zhao et al. introduced YaTC, which adapts masked autoencoding to traffic bytes [14]. Wang et al. proposed NetMamba, which improves long-sequence traffic modeling with state-space architectures [15]. Chen et al. and Liu et al. developed MIETT and FlowletFormer to model packet-to-flow relations and protocol-aligned context for traffic representation learning [31], [32]. These methods demonstrate the value of raw-byte representations for encrypted-traffic classification. However, they treat packet bytes as homogeneous tokens and adopt pretraining objectives from NLP or computer vision. The heterogeneous stability properties of IP, TCP, and TLS fields are therefore not explicitly modeled in these pretraining objectives.
2.2 Drift Robustness
Temporal drift is an important challenge for encrypted-traffic classification. It can be induced by server-side deployment changes, device heterogeneity, and evolving user behavior. Earlier mobile-app fingerprinting studies reported accuracy variation across time, devices, and application versions [19]. Recent evaluations further show that random-split benchmarks can substantially overestimate deployment performance when future traffic is chronologically separated from the training data [16], [17]. Malekghaini et al. studied classifier aging in mobile-network traffic and explored lightweight architectures for future data [20]. Shapira et al.'s FlowPic and related systematization-of-knowledge (SoK)-style studies also report performance degradation under distribution shift and emphasize the limitations of static legacy benchmarks [18], [29].
These studies establish the importance of time-based evaluation and drift-aware encrypted-traffic classification. However, most existing analyses and mitigation methods are still built on flow-level statistics, image-like flow descriptors, graph representations, architecture search, or post-deployment model updates. Cui et al. proposed FG-SAT, which selects stable attributes from flow-graph representations to reduce environmental sensitivity [33]. Chen et al. proposed drift-oriented self-evolving encrypted-traffic classification, which updates a deployed classifier with imperfect labels [34], while Lin et al. addressed non-independent-and-identically-distributed (non-IID) traffic classification through self-supervised instruction tuning in ETooL [35]. Despite improving robustness to distribution shifts, these methods are not suitable for raw-byte pretraining.
2.3 Service-Aware Mobile Networking and Online Adaptation
Service-aware mobile networking is supported by the 5G QoS architecture. The 3GPP TS 23.501 defines QoS Flows, 5QI, and QFI as standard mechanisms for mapping service requirements to forwarding and access-side treatment [5]. The next-generation RAN (NG-RAN) then binds QoS flows to radio resources according to the configured QoS profiles [6], [36]. In this context, encrypted-traffic classification supplies the service type required for QoS management and dynamic resource allocation. Fei et al. studied real-time encrypted-traffic classification in 5G non-standalone (NSA) networks as a support module for QoS control and mobile-network resource management [12], [37].
In parallel, QoE-oriented scheduling, application-aware resource allocation, and slice-aware RAN optimization have developed into active research directions. QoE-aware wireless scheduling studies optimize radio resources for user-perceived experience [38]. Reinforcement learning and contextual-bandit methods have also been used for RAN slicing, Open RAN (O-RAN) control, and cellular-network configuration [9], [39]. Bronzino et al. inferred streaming video quality from encrypted traffic, and Dimopoulos et al. measured video QoE from encrypted traffic [4], [40]. These works show that service identification, QoE estimation, and online wireless control are individually feasible. However, public studies rarely couple them into a closed loop in which the classifier supports RAN scheduling and RAN-side QoE feedback records are used to update the deployed classifier itself.
Overall, prior work has advanced encrypted-traffic representation learning, drift-aware evaluation, and service-aware mobile-network optimization along largely separate directions. Existing raw-byte pretraining methods mainly
target offline classification, drift-robust methods are not designed for raw-byte pretraining models, and service-aware networking studies usually treat traffic classifiers as fixed inputs to resource allocation. Therefore, the joint problem of temporally robust raw-byte representation learning, QoE-driven RAN scheduling, and label-free online classifier adaptation remains insufficiently studied. This paper addresses this gap by incorporating protocol-field stability into pretraining and updating a lightweight classifier head from RAN-side QoE feedback records after deployment.
3 SYSTEM MODEL AND PROBLEM FORMULATION
3.1 Deployment Pipeline for Encrypted-Traffic Representation
Deploying an encrypted-traffic classification model in a mobile network typically involves three stages: offline pretraining, downstream fine-tuning, and online inference at deployment time as shown in Fig. 1.
3.1.0.1 Pretraining: The network first collects a large dataset of encrypted traffic with M samples from historical operations
where is an encrypted-traffic sample, is its capture time, and is the time at which the model is trained and ready for deployment. Pretraining is carried out in a self-supervised manner that does not rely on manual labels and learns representations from past traffic:
where denotes the encoder and can take the form of masked modeling or other self-supervised objectives [13]–[15].
3.1.0.2 Fine-Tuning: After pretraining, the model is adapted to the downstream classification task using a set of labeled historical data with samples
where denotes the service class or application type of the flow and is the set of admissible services or applications. Two typical fine-tuning strategies are considered. The first, unfrozen fine-tuning, jointly updates the pretrained encoder and the classification head:
where is the classification head and is the cross-entropy loss. The second, frozen fine-tuning, keeps the encoder frozen and trains only the lightweight classification head:
Although unfrozen full-parameter fine-tuning typically attains stronger offline accuracy, it degrades model stability and generalization. Therefore, both strategies remain viable depending on the target objective and deployment scenario.

Fig. 1. The pipeline of deploying an encrypted-traffic classification model in a mobile network.
3.1.0.3 Deployment Inference: Once trained, the model is shipped to inference modules co-located with the core network. For each newly arriving encrypted-traffic sample , the classifier forms the class posterior
and emits the predicted service class . denotes an early-flow sample constructed from the initial packets of a newly arriving flow. The classifier is invoked once, and the resulting service prediction is retained throughout the flow lifetime for QoS mapping and scheduling.
3.2 Service-Aware Resource Allocation
Consider a single-cell downlink system in which the BS serves a set of active users . Each user is associated with one application flow whose true service class is . The downlink transmission from the BS to user is modeled as
where is the received baseband signal at user , is the transmit power allocated to user , is the unit-power transmitted symbol, is additive white Gaussian noise, and denotes the circularly symmetric complex Gaussian distribution. The channel follows Rayleigh fading [41], is small-scale fading and is large-scale path loss. When the BS allocates transmit power to user , the achievable downlink rate is
where denotes the normalized channel gain, is the achievable downlink rate of user i, and W is the system bandwidth. The predicted service class is used by the core-network QoS control logic to select the treatment of the corresponding service data flow. Under policy control function (PCF) policy, the session management function (SMF) provides the QoS Flow context with the assigned
QFI and 5QI to the RAN over N2, while the user plane function (UPF) marks N3 packets with the QFI, enabling the RAN to map the flow to radio resources according to the received QoS context [5], [6], [36]. We abstract the class-dependent effect to a reference rate , defined as the baseline throughput required for a minimally acceptable experience of service class c. Motivated by the Weber-Fechner law [42], we adopt a logarithmic QoE model for each user i with service class :
(9)
The inner ratio normalizes the radio-side rate by the service requirement, while the outer logarithm captures diminishing marginal returns.
The RAN performs power allocation using the service information available on the QoS path. Let denote the reference rates used by the RAN for the active flows. For a fixed channel vector and a fixed reference-rate vector , define the convex allocation operator
(10)
where is a total transmit-power budget. For fixed , each term in the objective is concave in , and the feasible set is convex. Hence (10) can be solved directly by standard convex optimization methods.
In current classification-assisted deployment, the core-network classifier emits the predicted classes . The RAN then uses Predicted-Class allocation:
The realized user experience is still governed by the true service classes through . Therefore, classifi
TABLE 1
Service profiles used to construct CSTNET-SERVICE and perform online evaluation.
| Class | Service category | 5QI | |
|---|---|---|---|
| Interactive low-rate services | 3 | 50 kbps | |
| Lightweight information-access services | 6 | 24 kbps | |
| High-rate media and content services | 4 | 5 Mbps | |
| General data services | 8 | 3 Mbps | |
| Background support and distribution services | 9 | 100 kbps |
cation accuracy directly affects the mismatch between the allocation objective used by the RAN and the QoE perceived by users. When for all active flows, the predicted-class allocation coincides with the Oracle allocation :
which serves as an ideal upper reference for classification-assisted allocation.
Additionally, in some deployment and evaluation settings, the allocation module may not have access to reliable per-flow service-class information. For example, in LTE evolved packet core (EPC) deployments, the RAN-side scheduler may not receive an end-to-end QFI/5QI for each encrypted flow [5], [6], [36], [43]. In this low-information setting, all flows are assigned the same class-mix reference rate with a Class-Agnostic allocation:
where denotes the N-dimensional all-one vector.
4 DEPLOYMENT GAP ANALYSIS
Building on the deployment setting defined in Section 3, this section examines whether existing pretrained encrypted-traffic models remain effective when applied to future traffic. We evaluate three representative methods, including ET-BERT [13], YaTC [14], and NetMamba [15], on the public CSTNET dataset [13], where all three were originally reported to achieve Macro-F1 scores above 90%.
4.1 Dataset Construction and Evaluation Protocols
CSTNET is a public TLS 1.3 encrypted-traffic dataset whose flows are annotated with fine-grained application-type labels [13]. The collection window spans roughly eleven months, and the per-label arrival pattern is shown in Fig. 2a. To reduce confounding effects from limited support and uneven temporal coverage, we retain application types with sufficient samples and active days, adequate presence on both sides of the chronological boundary, and no excessive concentration on a single day. This procedure retains 89 of the original 120 application types and forms CSTNET-APP. We then aggregate the retained application types by service semantics into five categories to form CSTNET-SERVICE. Table 1 summarizes their service profiles, standardized 5QI values, and reference rates used in the online evaluation [5], [44]–[46].
We evaluate CSTNET-SERVICE under two protocols. The first is the conventional random split, adopted by prior

(a) Per-label sample time distribution for the CSTNET

(b) Two evaluation protocols on CSTNET-SERVICE.
Fig. 2. Temporal characteristics of the CSTNET dataset and the two evaluation protocols compared in this work.
work [13]–[15], shuffles all flows and partitions them into training and test sets with a 7:3 ratio. The other is the deployment-oriented time-based split uses the chronological threshold . Samples collected before form the training set, and those collected on or after form the test set. Detailed cleaning criteria, the domain-to-service mapping, and exact split indices are provided in the implementation. The two protocols are illustrated in Fig. 2b.
4.2 Existing Methods Degrade under Time-Based Split
Fig. 3a reports the Macro-F1 of ET-BERT, YaTC, and Net-Mamba on CSTNET-SERVICE under random split with unfrozen fine-tuning, time-based split with unfrozen fine-tuning, and time-based split with frozen fine-tuning. Under the conventional random-split protocol, all three methods exceed 90% Macro-F1, in agreement with their original reports. However, when the protocol is changed to the time-based split, the Macro-F1 of all three methods drops to roughly 75%. When the backbone is further frozen, all three methods collapse to 20%–50% Macro-F1. This indicates that the high accuracy reported by these raw-bytes pretrained models relies simultaneously on a temporally independent and identically distributed (i.i.d.) test set, which is violated in the real deployment scenario.
4.3 Confirming Temporal Drift via Feature Divergence
We further measure how strongly the train and test sets differ in protocol-level features. For each flow, we extract a set of protocol-aware features from its packet trace, including flow-level statistics and commonly used fields from IP and TCP headers, TLS records, and TLS handshakes. The complete feature definitions and extraction procedure are provided in the accompanying implementation.
For each service class , each feature , and each split protocol , we estimate the empirical train and test distributions and and
- The implementation are provided in the supplementary material.

(a) Macro-F1 of prior works on CSTNET-SERVICE under three different settings.

(b) Per-class mean Jensen-Shannon divergence under time-based split versus random split.
TABLE 2 Field sets used for protocol-aware traffic modeling.
| Field set | Included fields |
|---|---|
| Packet length, TLS record type, TLS handshake type, and other protocol-structural fields. | |
| ip.{tos, dsfield, ttl},tcp.window_size. | |
| ip.id, tcp.{seq, ack}, tls.handshake.{random, session_id, key_share}, tls.app_data. |
Fig. 3. Empirical evidence that chronological evaluation is substantially harder than random-split evaluation.
quantify their disagreement via the Jensen–Shannon (JS) divergence [47]:
where . Averaging over features gives a service-level drift score , and the gap induced by chronological evaluation is
Fig. 3b plots against for the five service categories. All five lie strictly above the diagonal y = x, i.e. for every class. These observations confirm that temporal drift exists in CSTNET-SERVICE and changes the protocol-level features used by the pretrained models.
4.4 Source of the Degradation
The key limitation of existing raw-byte pretraining methods is their field-agnostic design. These methods directly inherit token- or patch-level objectives from NLP and CV [13]–[15], [21], [22] and apply them uniformly to encrypted traffic bytes. As a result, all sampled bytes are optimized as if they had the same protocol role and temporal stability.
In practice, encrypted-traffic fields exhibit heterogeneous statistical properties. For example, a TLS session_id is generated for a specific connection and is therefore essentially random. ip.ttl is coupled to routing and collection environments. And packet length is comparatively stable because it reflects protocol and application-level structure. Motivated by this observation, we partition the feature vocabulary into three field sets: protocol-structural stable fields , environment-dependent fields , and session-specific ephemeral fields . Table 2 summarizes the corresponding assignment within this feature vocabulary.
Therefore, an effective encrypted-traffic pretraining method should explicitly account for field heterogeneity. It should exploit stable protocol structure while reducing reliance on environment- and session-specific variation.
5 STABLE OFFLINE REPRESENTATION LEARNING
Motivated by the insight in Section 4.4, we propose a protocol-aware pretraining method that handles stable, and
unstable information separately. Our method uses the same encoder as ET-BERT [13] for fair comparison, but with a different pretraining method. It comprises three modules: (i) stable masked language modeling (StableMLM) (Section 5.1), which performs masked reconstruction only on stable fields. (ii) Protocol-aware Contrastive Learning (Section 5.2), which improves the stability of the learned representations. And (iii) Time-Adversarial Module (Section 5.3), which suppresses residual time-correlated information at the representation level.
5.1 Stable Masked Byte Modeling
We use the field sets , , and defined in Section 4.4. To connect field-level categories to byte-level inputs, let denote the byte positions occupied in by fields in a field set . We attach to each sample of length a stability mask defined as
which means only positions belonging to protocol-structural stable fields are flagged .
StableMLM performs masked byte reconstruction only on stable positions, so the encoder learns byte-level embeddings from stable protocol structure instead of spending capacity on random content. Given , we sample the MLM mask with probability only over stable positions:
Masked positions are replaced with a [MASK] token to form the corrupted input , and the encoder output is fed to a reconstruction head that predicts the original byte . Here denotes the categorical distribution predicted over the byte vocabulary at position j of sample i, and is the probability assigned to the original byte . The StableMLM objective is the cross-entropy averaged over masked positions in a mini-batch of size B:
5.2 Protocol-aware Contrastive Learning
StableMLM teaches the encoder to predict stable bytes from their context, but does not guarantee that the resulting

Fig. 4. Overview of the proposed protocol-aware pretraining method.
representation is invariant to changes on unstable fields. We make this invariance explicit through a contrastive objective built on a protocol-aware augmentation.
5.2.0.1 Protocol-aware Transform: The positive view keeps every stable byte of () intact and redraws unstable fields. Let and denote the values of field in the original sample and the augmented view , respectively. For each session-specific ephemeral field ,
where is the admissible value space of . For ordinary ephemeral fields, sampling is independent across fields. For stateful ephemeral fields such as tcp.seq and tcp.ack, we instead apply one shared per-flow transformation to all coupled fields to preserve intra-flow consistency. For each environmental field ,
which means is sampled from the distribution of field estimated from the pretraining set. Because fields in encode both environment-specific statistics and temporal noise, sampling from preserves the former while randomizing the latter. Additionally, checksums that depend on the modified bytes are recomputed and length-related parsing boundaries are kept intact, so is a syntactically valid sample that differs from precisely on .
5.2.0.2 Contrastive Objective: We feed the transformed pairs into a contrastive objective to obtain a better representation, and instantiate it with the MoCo v2 [48], [49] framework. Under this framework, the encoder trained in StableMLM continues to be updated by back-propagation and plays the role of the query encoder. Additionally, we introduce a momentum encoder that shares the architecture of and whose parameters track through an exponential moving average (EMA),
With close to 1, evolves slowly, so the keys produced by over many past steps remain mutually consistent and can be reused as negatives. The encoder embeds the original view and embeds the augmented view. Each branch is
followed by a multilayer perceptron (MLP) projection head denoted by and , respectively, and normalization:
where Pool(·) is a sequence-pooling operator. To decouple the number of negatives from the batch size, we maintain a first-in first-out queue Q of recently produced keys with capacity . At each step, the current-batch keys are enqueued and the oldest entries are evicted, so Q caches a large negative pool accumulated over many past steps without enlarging the batch.
Given a mini-batch of queries , positive keys , and the negative keys in , the information noise-contrastive estimation (InfoNCE) loss [50] is
where is a temperature hyperparameter. Because differs from only on positions in , minimizing is equivalent to enforcing that the encoder be insensitive to perturbations of ephemeral and environment-dependent bytes, while remaining free to exploit the information carried by .
5.3 Time-Adversarial Module
The two modules above rely on manually specified protocol priors. As a complement, we add an end-to-end implicit branch that lets the encoder suppress residual time-correlated information.
We linearly normalize the capture time of each pretraining sample to . Let denote the pooled sequence representation. We route through a gradient reversal layer (GRL) [51] into a time-regression head :
and supervise the prediction with a Smooth- loss:
The GRL acts as the identity in the forward pass but reverses the gradient propagated to the encoder during back-propagation. The resulting adversarial objective is
where learns to recover the capture time, whereas learns to remove time-predictive information from .
5.4 Training Pipeline
Both the contrastive objective and the day-regression branch operate on the pooled representation . If has not yet acquired informative byte-level features, the gradients of both objectives are computed on a representation without discriminative structure and carry little useful signal. We therefore adopt a two-stage pretraining schedule.
5.4.0.1 StableMLM Warm-up: We first optimize alone for epochs, so that acquires byte-level embeddings and contextual representations on stable positions, providing an effective initialization for the subsequent two objectives.
5.4.0.2 Joint Training: Starting from the warmed-up encoder, all three objectives are optimized jointly for epochs:
where are loss weights. The complete training procedure is summarized in Algorithm 1.
5.4.0.3 Stage 3: Fine-Tuning: The pretrained encoder is then used directly in the two downstream configurations defined in Section 3, namely the unfrozen and frozen fine-tuning given by (4) and (5).
6 CLOSED-LOOP ONLINE ADAPTATION
Section 5 provides an offline training method that is more robust to temporal drift. A more accurate classifier enables the RAN to select reference rates closer to the true service requirements, thereby improving the QoE of the power allocation in Section 3.2. However, when the deployment distribution drifts severely, the predicted service classes may still deviate from the latent services. The resulting allocation then deviates from the Oracle allocation in (12). This gap motivates a closed-loop online learning framework that uses QoE feedback to adapt the deployed classifier and improve the allocation performance simultaneously.
6.1 Closed-Loop Formulation
Online learning is difficult in deployment because explicit service labels are unavailable. However, QoE feedback can serve as a weak label. Although it is affected by the wireless channel and the applied allocation, it still reflects whether the selected service treatment matches the latent service. We therefore use QoE-based weak feedback to update the deployed classifier in a closed loop.
The closed loop requires two additional information paths. The first path carries the classifier posterior from the core-network inference function to the RAN-side allocation module. In the standard QoS procedure, QFI and 5QI provide the RAN with a hard QoS treatment, whereas online
Algorithm 1 Protocol-aware Pretraining for Time-Drift Encrypted Traffic Classification
Require: pretraining set ; encoder ; MLP heads ; time head .
1: // Stage 1: StableMLM warm-up
2: for do
3: sample ; build via (16)–(17)
4: update along in (18)
5: end for
6: ; ; fill Q with keys produced by
7: // Stage 2: joint pretraining
8: for do
9: sample
10: build via (16)–(17)
11: build positive view via (19)–(20)
12: compute on via (18)
13: compute and via (22)–(23)
14: compute with negatives in Q via (24)
15: normalize to ;
16: compute via (25)
17: compute via (26)
18:
19: update along // GRL flips the sign of
20: ;
21: enqueue into Q; evict oldest entries
22: end for
23: // Stage 3: fine-tuning
24: return ; downstream fine-tune via (4) or (5)
adaptation requires posterior confidence over candidate services. We therefore expose as a flow-level soft service descriptor. This descriptor can be carried as operator-internal AI/ML control metadata, without changing the user-plane QoS marking or the QFI and 5QI mapping procedure. Although current specifications do not define this posterior as a standard QoS field, its use is consistent with 3GPP AI/ML data-collection studies [52].
The second path provides the feedback required for classifier-head adaptation. The allocation decision is made at the RAN, whereas is maintained in the core network. Updating therefore requires the gradient signal induced by RAN-side allocation outcomes. Since current 3GPP QoS and RAN-control interfaces do not specify transport of neural-network gradients, the RAN reports an update-equivalent record from which the core-network learner can reconstruct the objective. The update-equivalent record contains deployment feedback such as QoE measurements and RAN-side execution information. Such records can be collected through multi-access edge computing (MEC) or operations, administration, and maintenance (OAM) data-collection paths [52]–[54]. If model parameters or policy updates are exchanged, they can be handled through 3GPP management-plane AI/ML model management. This design is consistent with 3GPP AI/ML management support for model training, testing, loading, update, and inference reporting [55].
With these two paths, the deployed system can be modeled as an online expected-QoE maximization problem. At

Fig. 5. The online learning framework.
each decision epoch, the core-network classifier produces the posterior for each active flow, and the RAN observes the wireless state . The allocation rule then maps these quantities to a feasible power vector. The joint optimization problem is
This problem is nonconvex because the classifier posterior is nonlinear, and the allocation rule is optimized jointly with this posterior input.
6.2 Policy-Gradient Solution
To solve (29), we instantiate with a stochastic policy and optimize its parameters jointly with the classifier head. Since each flow arrival is a single decision without a state transition, we cast the problem as a contextual bandit [56] and solve it by policy gradient. Let and normalize it within each rollout as , where and are the rollout mean and standard deviation and is a small constant. The context state concatenates the normalized log channel gain with the classifier posterior,
and the system context is . The policy outputs Dirichlet concentrations and samples the power allocation
which meets the power budget by construction. The RAN executes the sampled allocation and returns a rollout record to the core-network learner. The rollout buffer stores the context, the sampled power vector, the behavior log probability, the policy version or parameter snapshot, and the measured aggregate QoE reward .
Let denote the Dirichlet policy. We maximize the expected reward in (29) by REINFORCE [57], whose policy-gradient component is
The aggregate QoE reward varies strongly with service type and channel realization, so we subtract a value-network baseline and use the advantage
normalized to zero mean and unit variance within each rollout, where is trained with . To reuse each rollout under the limited online sample budget, we adopt the proximal policy optimization (PPO) clipped surrogate [58]. Let denote the importance ratio between the current posterior-dependent policy and the behavior policy stored during rollout collection:
Here and denote the behavior policy and classifier-head parameters used to collect the rollout.
where is the PPO clipping parameter that limits each update to a small trust region. The collected QoE rewards are fixed during the K update epochs. With an entropy regularizer for exploration, the total loss is
The coefficients and are the weight of the value-function regression term and the entropy regularization term, respectively. Since the context state (30) contains the posterior , the core-network learner back-propagates into the local classifier head when replaying the feedback record and the corresponding policy information. Because the observed QoE reward is corrupted by channel randomness and user-side estimation noise, updating the full encoder could distort the stable representation learned offline. We therefore freeze and update only . After each update round, the refreshed policy parameters are synchronized to the RAN-side allocation module through the same management path. Algorithm 2 summarizes the procedure.
For implementation, the RAN reports the measured QoE reward, the wireless state, the applied power vector, the behavior log probability through MEC/OAM data-collection paths [52]–[54]. And the policy network parameter updates can be exchanged through management-plane AI/ML model management [55].
7 EXPERIMENTS
7.1 Experimental Setup
Hardware and Implementation. All experiments were conducted on the same Ubuntu 24.04 server using PyTorch 2.8.0 and CUDA 12.8, with a 38-core x86-64 CPU and data-center GPUs, each providing 80 GB of memory and 19.5 TFLOPS peak FP32 performance.
Datasets and protocols. We evaluate on CSTNET-APP and CSTNET-SERVICE under the random and time-based splits defined in Section 4.1. For both splits, we report unfrozen and frozen fine-tuning and use classification accuracy (ACC) and Macro-F1 as the main metrics.
Algorithm 2 Closed-Loop Bandit Adaptation
Require: frozen encoder ; classifier head ; policy ; value network .
1: ;
2: for each rollout do
3: initialize rollout buffer
4: for each online decision epoch in the rollout do
5: obtain classifier posteriors for active flows
6: combine the posteriors with channel gains to form via (30)
7: allocate power using via (31) and record the behavior log probability and policy version
8: apply and store the QoE reward, channel gains, applied power, behavior log probability, and policy version or snapshot in
9: end for
10: compute and normalize advantages in via (33)
11: for do
12: recompute current posteriors and states for transitions in
13: evaluate via (34)–(36)
14: update along ; keep frozen
15: end for
16: synchronize the updated policy parameters to the RAN-side allocation module
17: ;
18: end for
7.2 Offline Evaluation
The offline pretraining hyperparameters of the proposed method are summarized in Table 3. Our model uses the same encoder architecture as ET-BERT and changes only the pretraining objective. We use AdamW with batch size 32, learning rate , and weight decay 0.02. The learning rate is warmed up from for 10 epochs and then cosine-decayed to over a 50-epoch optimizer schedule. StableMLM is optimized alone for 30 epochs, followed by 50 epochs of joint training.
We compare against ET-BERT [13], YaTC [14], and Net-Mamba [15] using their released weights and official fine-tuning protocols. ET-BERT is fine-tuned with AdamW for 50 epochs using batch size 32 and learning rate and its classifier learning rate in the frozen setting is . YaTC is fine-tuned with AdamW for 200 epochs using batch size 128 and base learning rate . NetMamba is fine-tuned with AdamW for 120 epochs using batch size 128 and base learning rate .
Time-based split. Table 4 reports the performance comparison under the time-based split. Our method attains the best ACC and Macro-F1 on both datasets and in both fine-tuning settings. On CSTNET-APP, Macro-F1 improves from 38.48%/16.33%/7.41% to 67.89% in the frozen setting and from 69.88%/68.65%/68.28% to 72.14% in the unfrozen setting. On CSTNET-SERVICE, it improves from 50.03%/27.71%/20.75% to 73.02% in the frozen setting and from 74.56%/74.90%/74.54% to 82.19% in the unfrozen setting. The larger gain in the frozen setting indicates stronger transfer under temporal drift.
Random split. Table 5 reports the performance com-
TABLE 3 Hyperparameters of the proposed offline method.
| Hyperparameter | Value |
| Mask probability | 0.3 |
| EMA coefficient | 0.995 |
| InfoNCE temperature | 0.07 |
| MoCo queue capacity | 8192 |
| Contrastive loss weight | 10.0 |
| Time-adversarial weight | 5.0 |
| StableMLM warm-up epochs | 30 |
| Joint training epochs | 50 |
parison under the random split. Our method also leads in this setting. On CSTNET-APP, frozen Macro-F1 increases from 48.31%/24.93%/13.93% to 86.85%, and on CSTNET-SERVICE it increases from 55.12%/27.66%/23.86% to 90.47%. The unfrozen results are best in every column. The result confirms a consistent gain on the i.i.d. benchmark, which means our method is also effective in conventional benchmarks without temporal drift.
Ablation study. Table 6 reports the ablation results under the time-based setting. StableMLM alone lifts frozen Macro-F1 to 57.34% on CSTNET-APP and 66.48% on CSTNET-SERVICE. Adding the contrastive branch raises it to 64.41% and 72.14%, and adding the time-adversarial branch raises it to 60.05% and 69.77%. The full model reaches 67.89% and 73.02%. These results show complementary contributions from the three objectives.
Representation visualization. Figure 6 visualizes the pooled encoder outputs with t-distributed stochastic neighbor embedding (t-SNE) for seven randomly selected service classes from the cross-time test split. ET-BERT, YaTC, and NetMamba show overlapping clusters, whereas the full model yields compact class-wise clusters. The ablated models occupy intermediate positions. The five-nearest-neighbor (5-NN) purity further provides a quantitative view of this local structure. For each sample, it counts how many of its five nearest neighbors in the representation space share the same class label. Larger values therefore indicate stronger local class consistency. The baseline distributions are dominated by the 0/5 bin, meaning that most samples have no same-class neighbor among their five nearest neighbors. This suggests that the released pretraining provides limited class separation. By contrast, the full model is concentrated in the 5/5 bin, showing that the proposed pretraining learns locally coherent and class-discriminative representations. The ablation variants perform between the baselines and the full model. Removing either the contrastive or time-adversarial objective reduces high-purity mass, while StableMLM alone also underperforms the full model. These trends confirm complementary contributions from all three pretraining components.
7.3 Online Evaluation
Online setting. The online policy-gradient hyperparameters are summarized in Table 7. The policy and value networks are three-layer MLPs with two 256-neuron hidden layers and rectified linear unit (ReLU) activations. The classifier-head update is sensitive to the learning rate under weak
TABLE 4 Performance comparison under the time-based setting.
| Method | CSTNET-APP(time-based split) | CSTNET-SERVICE(time-based split) | ||||||
|---|---|---|---|---|---|---|---|---|
| Unfrozen | Frozen | Unfrozen | Frozen | |||||
| ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | |
| ET-BERT | 73.24 | 69.88 | 43.12 | 38.48 | 77.02 | 74.56 | 57.91 | 50.03 |
| YaTC | 72.31 | 68.65 | 21.79 | 16.33 | 78.55 | 74.90 | 44.48 | 27.71 |
| NetMamba | 72.47 | 68.28 | 10.76 | 7.41 | 78.59 | 74.54 | 40.16 | 20.75 |
| Ours | 78.53 | 72.14 | 73.56 | 67.89 | 83.93 | 82.19 | 76.03 | 73.02 |
TABLE 5 Performance comparison under the random-based setting.
| Method | CSTNET-APP(random split) | CSTNET-SERVICE(random split) | ||||||
|---|---|---|---|---|---|---|---|---|
| Unfrozen | Frozen | Unfrozen | Frozen | |||||
| ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | |
| ET-BERT | 91.52 | 90.17 | 53.50 | 48.31 | 94.15 | 93.88 | 61.91 | 55.12 |
| YaTC | 88.41 | 86.81 | 32.49 | 24.93 | 90.57 | 89.49 | 44.21 | 27.66 |
| NetMamba | 89.73 | 88.21 | 21.51 | 13.93 | 91.63 | 90.36 | 40.89 | 23.86 |
| Ours | 92.25 | 90.67 | 88.12 | 86.85 | 94.63 | 94.37 | 91.35 | 90.47 |
TABLE 6 Ablation study under the time-based setting.
| Method | CSTNET-APP(time-based split) | CSTNET-SERVICE(time-based split) | ||||||
|---|---|---|---|---|---|---|---|---|
| Unfrozen | Frozen | Unfrozen | Frozen | |||||
| ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | ACC (%) | Macro-F1 (%) | |
| Ours | 78.53 | 72.14 | 73.56 | 67.89 | 83.93 | 82.19 | 76.03 | 73.02 |
| Ours w/o Time Adv | 77.14 | 70.68 | 69.31 | 64.41 | 82.48 | 79.51 | 75.42 | 72.14 |
| Ours w/o Contrastive | 76.44 | 71.24 | 64.12 | 60.05 | 84.00 | 81.97 | 74.29 | 69.77 |
| Ours w/o Both | 79.76 | 74.67 | 61.12 | 57.34 | 83.70 | 81.23 | 71.32 | 66.48 |
QoE feedback. Small values yield little adaptation, and large values destabilize training. Hence we set the classifier-head learning rate to for SEROA and ET-BERT, for YaTC, and for NetMamba.
TABLE 7 Hyperparameters of the online-learning module.
| Hyperparameter | Value |
|---|---|
| Online adaptation episodes | 150 |
| Policy/value hidden widths | 256, 256 |
| Activation function | ReLU |
| Multi-step updates | 8 |
| PPO clipping parameter | 0.2 |
| Value-loss weight | 0.5 |
| Entropy weight | 0.01 |
| Optimizer | Adam |
| Policy/value learning rate | |
| Classifier-head learning rate | Method-specific |
We conduct online evaluation on CSTNET-SERVICE under the time-based split. The post-threshold portion is randomly divided at a 1:1 ratio into an online adaptation stream and a held-out online test set. In addition to the Macro-F1 on these two portions, we report the Macro-F1 on the original offline-training split to measure forgetting during online adaptation.
We consider an urban macrocell single-cell downlink with active users, bandwidth MHz, total transmit-power budget W, and noise power . The users are distributed within a 0.05–0.30 km range from the BS. The large-scale fading for user is generated from the urban macrocell path-loss model in 3GPP Technical Report (TR) 36.942 [59]:
where is measured in kilometers. The service profiles and reference rates of the five CSTNET-SERVICE categories are given in Table 1.
Online comparison. Following Section 6, we freeze the encoder and update the policy network , the value network , and the classifier head under QoE feedback. ET-BERT, YaTC, NetMamba, and our method use the same RAN online-learning framework and the same reward nor-

(a) ET-BERT
(b) YaTC
(c) NetMamba
(d) Ours

(e) Ours w/o Time Adv
(f) Ours w/o Contrastive
(g) Ours w/o Both
(h) 5-NN Purity
Fig. 6. Representation visualization on the cross-time test split. (a)–(c) are baselines, (d) is the proposed StableMLM+Contrastive+Time-Adversarial method, (e)–(g) ablate one or both components of (d), and (h) reports the 5-NN class purity for all methods.

(a) Reward
(b) Train Macro-F1
(c) Test Macro-F1
(d) Offline Train Macro-F1
Fig. 7. Online-learning performance initialized from frozen fine-tuning. The reward panel includes online policies and static allocation references; the other panels report online-adaptation Macro-F1, held-out online-test Macro-F1, and offline-training Macro-F1 of the online learners.
malization. The reward also compares the online policies with the static allocation references defined in Section 3.2, including Oracle, Class-Agnostic, and the predicted-class allocations driven by ET-BERT and our method. For comparison, we normalize all reward curves by Oracle.
Initialization from frozen fine-tuning. Figure 7 reports the results for models initialized by frozen fine-tuning. In the reward panel, Ours Pred-Class is already well above ET-BERT Pred-Class and the Class-Agnostic reference, showing that the frozen representation provides reliable service information for static RAN allocation. The online policy initialized from our method further improves the oracle-normalized reward and moves closer to Oracle. The online rewards of ET-BERT, YaTC, and NetMamba remain close to the Class-Agnostic reference. Our method also maintains the highest held-out online-test Macro-F1 throughout adaptation, whereas the online-test and offline-training Macro-F1 scores of the comparison methods decrease. These curves show that limited representation performance makes the classifier head more susceptible to noisy QoE feedback.
Initialization from unfrozen fine-tuning. Figure 8 re-
ports the results for models initialized by unfrozen fine-tuning. The initial offline classification gap is narrower than in the frozen setting, and both predicted-class references provide competitive static allocation rewards above the Class-Agnostic reference. Our online policy still attains the highest reward and remains closest to Oracle, indicating that QoE-feedback adaptation improves power allocation beyond the fixed predicted-class mapping. Our method also improves the held-out online-test Macro-F1 while preserving its offline-training Macro-F1. The classification curves of the comparison methods degrade during adaptation. These results show that stable representations remain important when online learning relies on noisy QoE feedback.
Offline pretraining ablation. Figure 9 evaluates the offline pretraining components under both initialization settings. Adding the contrastive objective to StableMLM substantially improves the reward and held-out online-test Macro-F1. Adding the time-adversarial objective provides a further gain. The same ordering holds for both frozen and unfrozen fine-tuning. These results confirm that robust offline representations improve adaptation under noisy QoE

(a) Reward
(b) Train Macro-F1
(c) Test Macro-F1
(d) Offline Train Macro-F1
Fig. 8. Online-learning performance initialized from unfrozen fine-tuning. The reward panel includes online policies and static allocation references; the other panels report online-adaptation Macro-F1, held-out online-test Macro-F1, and offline-training Macro-F1 of the online learners.

(a) Frozen Reward
(b) Frozen Test Macro-F1
(c) Unfrozen Reward
(d) Unfrozen Test Macro-F1
Fig. 9. Offline pretraining component ablation under frozen and unfrozen fine-tuning. The panels show oracle-normalized reward and held-out online-test Macro-F1.

(a) Frozen Reward
(b) Frozen Test Macro-F1
(c) Unfrozen Reward
(d) Unfrozen Test Macro-F1
Fig. 10. Online policy-gradient component ablation under frozen and unfrozen fine-tuning. The panels show oracle-normalized reward and held-out online-test Macro-F1.
feedback.
Online policy-gradient ablation. Figure 10 evaluates the advantage baseline and PPO clipped surrogate. The full method converges faster and attains the highest reward and held-out online-test Macro-F1 under both initialization settings. Removing PPO clipping reduces performance, while removing the advantage baseline causes a further decline.
7.4 Inference Efficiency
To evaluate the computational overhead of the proposed method, we measure pretraining and inference efficiency. Table 8 reports the number of trainable and total parameters, peak memory, per-sample latency, and throughput with batch size 32 on a single GPU. Compared with the baseline pretraining stage, our pretraining requires higher memory and latency because it jointly optimizes StableMLM, contrastive learning and the time-adversarial branch. However, this additional cost is incurred only in the offline stage before deployment and will not influence online inference.
At deployment time, the classifier is invoked once for each early-flow sample, and the predicted service class is retained throughout the flow lifetime for QoS mapping and scheduling. Therefore, the deployed classifier does not require per-slot inference. The inference latency is 0.64 ms per sample, corresponding to a throughput of 1563.4 samples/s, which is sufficient for real-time flow-level service iden-
TABLE 8 Pretraining overhead and inference efficiency.
| Stage | Params Train/Total | Mem. (GB) | Time (ms/sample) | Throughput (samples/s) |
|---|---|---|---|---|
| Baseline pretrain | 86.2M/86.2M | 5.29 | 2.18 | 458.7 |
| Ours pretrain | 86.9M/173.9M | 9.81 | 4.88 | 205.1 |
| Inference | 86.8M/86.8M | 1.00 | 0.64 | 1563.4 |
tification in the considered service-aware mobile-network setting.
8 DISCUSSION AND CONCLUSION
8.1 Discussion
This paper reports results on the public CSTNET datasets to ensure reproducibility and fair comparison. Beyond this public evaluation, the proposed method has also been tested on a private industrial dataset and deployed with an industrial collaborator. The dataset cannot be released because traffic traces are closely related to user privacy and operational confidentiality, which remains a fundamental constraint in network-trace sharing [60].
Moreover, the current online-learning setting is still simplified. It considers service-aware power allocation with a minimum-rate-oriented QoE utility, while practical RAN optimization may involve additional resource dimensions such as subcarrier assignment and scheduling, together with richer QoE metrics beyond minimum rate [7], [9], [38], [39]. Extending the framework to these settings is left for future work.
8.2 Conclusion
This paper presented a deployment-oriented framework for encrypted traffic classification under temporal drift. The offline component learns stable representations by separating protocol-structural and time-sensitive bytes, combining stable-field masked modeling, protocol-aware contrastive learning, and time-adversarial training. The online component uses feedback records containing QoE, wireless-state, and allocation information to update the classifier head without explicit service labels.
Experiments on CSTNET-APP and CSTNET-SERVICE show consistent gains over representative pretrained baselines under random and time-based splits, frozen and unfrozen fine-tuning, and QoE-driven online adaptation. These results show that stable representation learning and label-efficient online adaptation can improve encrypted traffic classification for service-aware mobile networks.
REFERENCES
[1] 3GPP, "Service requirements for the 5G system; Stage 1," 3rd Generation Partnership Project (3GPP), Technical Specification TS 22.261, version 20.5.0, Release 20, Dec. 2025. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/22_series/22.261/22261-k50.zip
[2] 3GPP, "Extended Reality (XR) in 5G," 3rd Generation Partnership Project (3GPP), Technical Report TR 26.928, version 19.0.0, Release 19, Oct. 2025. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/26_series/26.928/26928-j00.zip
[3] A. A. Laghari, H. He, K. A. Memon, R. A. Laghari, I. A. Halepoto, and A. Khan, "Quality of experience (QoE) in cloud gaming models: A review," Multiagent and Grid Systems, vol. 15, no. 3, pp. 289–304, 2019.
[4] F. Bronzino, P. Schmitt, S. Ayoubi, G. Martins, R. Teixeira, and N. Feamster, "Inferring streaming video quality from encrypted traffic: Practical models and deployment experience," Proceedings of the ACM on Measurement and Analysis of Computing Systems, vol. 3, no. 3, pp. 1–25, 2019.
[5] 3GPP, "System architecture for the 5G System (5GS); Stage 2," 3rd Generation Partnership Project (3GPP), Technical Specification TS 23.501, version 20.1.0, Release 20, Mar. 2026. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/23_series/23.501/23501-k10.zip
[6] 3GPP, "Policy and charging control framework for the 5G System (5GS); Stage 2," 3rd Generation Partnership Project (3GPP), Technical Specification TS 23.503, version 20.1.0, Release 20, Mar. 2026. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/23_series/23.503/23503-k10.zip
[7] I. Sousa, M. P. Queluz, and A. Rodrigues, "A survey on QoE-oriented wireless resources scheduling," Journal of Network and Computer Applications, vol. 158, p. 102594, 2020.
[8] B. Ojaghi, F. Adelantado, A. Antonopoulos, and C. Verikoukis, "SlicedRAN: Service-aware network slicing framework for 5G radio access networks," IEEE Systems Journal, vol. 16, no. 2, pp. 2556–2567, 2022.
[9] J. Mei, X. Wang, K. Zheng, G. Boudreau, A. Bin Sediq, and H. Abou-Zeid, "Intelligent radio access network slicing for service provisioning in 6G: A hierarchical deep reinforcement learning approach," IEEE Transactions on Communications, vol. 69, no. 9, pp. 6063–6078, 2021.
[10] Y. Liu, G. Liu, J. Wang, R. Zhang, D. Niyato, G. Sun, Z. Xiong, and Z. Han, "LAMeTA: Intent-aware agentic network optimization via a large AI model-empowered two-stage approach," IEEE Journal on Selected Areas in Communications, vol. 44, pp. 2462–2478, 2026.
[11] E. Rescorla, "The Transport Layer Security (TLS) Protocol Version 1.3," RFC 8446, Aug. 2018. [Online]. Available: https://www.rfc-editor.org/info/rfc8446
[12] S. Rezaei and X. Liu, "Deep learning for encrypted traffic classification: An overview," IEEE Communications Magazine, vol. 57, no. 5, pp. 76–81, 2019.
[13] X. Lin, G. Xiong, G. Gou, Z. Li, J. Shi, and J. Yu, "ET-BERT: A contextualized datagram representation with pre-training transformers for encrypted traffic classification," in Proceedings of the ACM Web Conference 2022, ser. WWW '22. New York, NY, USA: Association for Computing Machinery, 2022, pp. 633—642. [Online]. Available: https://doi.org/10.1145/3485447.3512217
[14] R. Zhao, M. Zhan, X. Deng, Y. Wang, Y. Wang, G. Gui, and Z. Xue, "Yet another traffic classifier: A masked autoencoder based traffic transformer with multi-level flow representation," Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 4, pp. 5420–5427, 2023. [Online]. Available: https://ojs.aaaai.org/index.php/AAAI/article/view/25674
[15] T. Wang, X. Xie, W. Wang, C. Wang, Y. Zhao, and Y. Cui, "Net-Mamba: Efficient network traffic classification via pre-training unidirectional Mamba," in 2024 IEEE 32nd International Conference on Network Protocols (ICNP), 2024, pp. 1–11.
[16] N. Malekghaini, E. Akbari, M. A. Salahuddin, N. Limam, R. Boutaba, B. Mathieu, S. Moteau, and S. Tuffin, "Deep learning for encrypted traffic classification in the face of data drift: An empirical study," Computer Networks, vol. 225, p. 109648, 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1389128623000932
[17] Y. Zhao, G. Dettori, M. Boffa, L. Vassio, and M. Mellia, "The sweet danger of sugar: Debunking representation learning for encrypted traffic classification," in Proceedings of the ACM SIGCOMM 2025 Conference, ser. SIGCOMM '25. New York, NY, USA: Association for Computing Machinery, 2025, pp. 296—310. [Online]. Available: https://doi.org/10.1145/3718958.3750498
[18] N. Wickramasinghe, A. Shagaghi, G. Tsudik, and S. Jha, "SoK: Decoding the enigma of encrypted network traffic classifiers," in 2025 IEEE Symposium on Security and Privacy (SP), 2025, pp. 1825–1843.
[19] V. F. Taylor, R. Spolaor, M. Conti, and I. Martinovic, "Robust smartphone app identification via encrypted network traffic analysis," IEEE Transactions on Information Forensics and Security, vol. 13, no. 1, pp. 63–78, 2018.
[20] N. Malekghaini, E. Akbari, M. A. Salahuddin, N. Limam, R. Boutaba, B. Mathieu, S. Moteau, and S. Tuffin, "AutoML4ETC: Automated neural architecture search for real-world encrypted traffic classification," IEEE Transactions on Network and Service Management, vol. 21, no. 3, pp. 2715–2730, 2024.
[21] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, "BERT: Pre-training of deep bidirectional transformers for language understanding," in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Association for Computational Linguistics, 2019, pp. 4171–4186. [Online]. Available: https://aclanthology.org/N19-1423/
[22] K. He, X. Chen, S. Xie, Y. Li, P. Dollár, and R. Girshick, "Masked autoencoders are scalable vision learners," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 16000–16009.
[23] A. W. Moore and K. Papagiannaki, "Toward the accurate identification of network applications," in Passive and Active Network Measurement, C. Dovrilis, Ed. Berlin, Heidelberg: Springer Berlin Heidelberg, 2005, pp. 41–54.
[24] M. Crotti, M. Dusi, F. Gringoli, and L. Salgarelli, "Traffic classification through simple statistical fingerprinting," SIGCOMM Comput. Commun. Rev., vol. 37, no. 1, pp. 5—16, Jan. 2007. [Online]. Available: https://doi.org/10.1145/1198255.1198257
[25] L. Bernaille, R. Teixeira, and K. Salamatian, "Early application identification," in Proceedings of the 2006 ACM CoNEXT Conference, ser. CoNEXT '06. New York, NY, USA: Association for Computing Machinery, 2006. [Online]. Available: https://doi.org/10.1145/1368436.1368445
[26] V. F. Taylor, R. Spolaor, M. Conti, and I. Martinovic, "AppScanner: Automatic fingerprinting of smartphone apps from encrypted network traffic," in 2016 IEEE European Symposium on Security and Privacy (EuroS&P), 2016, pp. 439–454.
[27] M. Lotfollahi, M. Jafari Siavoshani, R. Shirali Hossein Zade, and M. Saberian, "Deep Packet: a novel approach for encrypted traffic classification using deep learning," Soft Computing, vol. 24, pp. 1999–2012, 2020.
[28] S. Rezaei, B. Kroencke, and X. Liu, "Large-scale mobile app identification using deep learning," IEEE Access, vol. 8, pp. 348–362, 2020.
[29] T. Shapira and Y. Shavitt, "FlowPic: A generic representation for encrypted traffic classification and applications identification," IEEE Transactions on Network and Service Management, vol. 18, no. 2, pp. 1218–1232, 2021.
[30] E. Horowicz, T. Shapira, and Y. Shavitt, "A few shots traffic classification with mini-FlowPic augmentations," in Proceedings of the 22nd ACM Internet Measurement Conference, ser. IMC '22. New York, NY, USA: Association for Computing Machinery, 2022, pp. 647–654. [Online]. Available: https://doi.org/10.1145/3517745.3561436
[31] X.-Y. Chen, L. Han, D.-C. Zhan, and H.-J. Ye, "MIETT: Multi-instance encrypted traffic transformer for encrypted traffic classification," Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 15, pp. 15922–15929, Apr. 2025. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/33748
[32] L. Liu, R. Li, Q. Li, M. Hou, Y. Jiang, and M. Xu, "FlowletFormer: Network behavioral semantic aware pre-training model for traffic classification," 2025. [Online]. Available: https://arxiv.org/abs/2508.19924
[33] S. Cui, X. Han, D. Han, Z. Wang, W. Wang, B. Jiang, B. Liu, and Z. Lu, "FG-SAT: Efficient flow graph for encrypted traffic classification under environment shifts," IEEE Transactions on Information Forensics and Security, vol. 20, pp. 5326–5339, 2025.
[34] Z. Chen, G. Cheng, J. Li, T. Qin, Y. Zhou, and X. Luan, "Drift-oriented self-evolving encrypted traffic application classification for actual network environment," 2025. [Online]. Available: https://arxiv.org/abs/2501.04246
[35] X. Lin, G. Xiong, G. Gou, W. Dong, J. Yu, Z. Li, and W. Xia, "Respond to change with constancy: Instruction-tuning with LLM for Non-I.I.D. network traffic classification," IEEE Transactions on Information Forensics and Security, vol. 20, pp. 5758–5773, 2025.
[36] 3GPP, "NR; NR and NG-RAN Overall Description; Stage 2," 3rd Generation Partnership Project (3GPP), Technical Specification TS 38.300, version 19.2.0, Release 19, Mar. 2026. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/38_series/38.300/38300-j0.zip
[37] X. Fei, P. Martins, and J. Lu, "Real-time traffic classification for 5G NSA encrypted data flows with physical channel records," in 2023 IEEE 98th Vehicular Technology Conference (VTC2023-Fall), 2023, pp. 1–6.
[38] A. Elgabli, A. Elghariani, V. Aggarwal, and M. Bell, "QoE-aware resource allocation for small cells," in 2018 IEEE Global Communications Conference (GLOBECOM), 2018, pp. 1–6.
[39] M. Polese, L. Bonati, S. D'Oro, S. Basagni, and T. Melodia, "ColoRAN: Developing machine learning-based xApps for open RAN closed-loop control on programmable experimental platforms," IEEE Transactions on Mobile Computing, vol. 22, no. 10, pp. 5787–5800, 2023.
[40] G. Dimopoulos, I. Leontiadis, P. Barlet-Ros, and K. Papagiannaki, "Measuring video QoE from encrypted traffic," in Proceedings of the 2016 ACM Internet Measurement Conference, ser. IMC. ACM, 2016, pp. 513–526.
[41] A. Goldsmith, Wireless Communications. Cambridge University Press, 2005.
[42] P. Reichl, S. Egger, R. Schatz, and A. D'Alconzo, "The logarithmic nature of QoE and the role of the Weber-Fechner law in QoE assessment," in 2010 IEEE International Conference on Communications, 2010, pp. 1–5.
[43] 3GPP, "Evolved Universal Terrestrial Radio Access (E-UTRA) and NR; Multi-connectivity; Overall Description; Stage 2," 3rd Generation Partnership Project (3GPP), Technical Specification TS 37.340, version 19.0.0, Release 19, Sep. 2025. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/37_series/37.340/37340-j00.zip
[44] ITU-T, "End-user Multimedia QoS Categories," International Telecommunication Union, Recommendation G.1010, Nov. 2001. [Online]. Available: https://www.itu.int/rec/T-REC-G.1010-200111-1/en
[45] Apple Inc., "HTTP Live Streaming (HLS) Authoring Specification for Apple Devices," https://developer.apple.com/documentation/http-live-streaming/
hls-authoring-specification-for-apple-devices, accessed: Jun. 1, 2026.
[46] S. Shalunov, G. Hazel, J. Iyengar, and M. Kuehlewind, "Low Extra Delay Background Transport (LEDBAT)," Internet Engineering Task Force, RFC 6817, Dec. 2012. [Online]. Available: https://www.rfc-editor.org/rfc/rfc6817
[47] J. Lin, "Divergence measures based on the shannon entropy," IEEE Transactions on Information Theory, vol. 37, no. 1, pp. 145–151, 1991.
[48] K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick, "Momentum contrast for unsupervised visual representation learning," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 9729–9738.
[49] X. Chen, H. Fan, R. Girshick, and K. He, "Improved baselines with momentum contrastive learning," 2020. [Online]. Available: https://arxiv.org/abs/2003.04297
[50] A. v. d. Oord, Y. Li, and O. Vinyals, "Representation learning with contrastive predictive coding," 2018. [Online]. Available: https://arxiv.org/abs/1807.03748
[51] Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky, "Domain-adversarial training of neural networks," Journal of Machine Learning Research, vol. 17, no. 59, pp. 1–35, 2016. [Online]. Available: https://mlr.org/papers/v17/15-239.html
[52] 3GPP, "Evolved Universal Terrestrial Radio Access (E-UTRA) and NR; Study on enhancement for Data Collection for NR and EN-DC," 3rd Generation Partnership Project (3GPP), Technical Report TR 37.817, version 17.0.0, Release 17, Apr. 2022. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/37_series/37.817/37817-h00.zip
[53] 3GPP, "Quality of Experience (QoE) measurement collection; Control and configuration," 3rd Generation Partnership Project (3GPP), Technical Specification TS 28.405, version 19.0.0, Release 19, Jun. 2024. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/28_series/28.405/28405-j00.zip
[54] ETSI, "Multi-access Edge Computing (MEC); Radio Network Information API," European Telecommunications Standards Institute (ETSI), Group Specification ETSI GS MEC 012, 2019, version 2.1.1. [Online]. Available: https://www.etsi.org/deliver/etsi_gs/MEC/001_099/012/02.01.01_60/gs_MEC012v020101p.pdf
[55] 3GPP, "Management and orchestration; Artificial Intelligence / Machine Learning (AI/ML) management," 3rd Generation Partnership Project (3GPP), Technical Specification TS 28.105, version 19.5.0, Release 19, Mar. 2026. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/28_series/28.105/28105-j50.zip
[56] L. Li, W. Chu, J. Langford, and R. E. Schapire, "A contextual-bandit approach to personalized news article recommendation," in Proceedings of the 19th International Conference on World Wide Web. ACM, 2010, pp. 661–670. [Online]. Available: https://doi.org/10.1145/1772690.1772758
[57] R. J. Williams, "Simple statistical gradient-following algorithms for connectionist reinforcement learning," Machine Learning, vol. 8, no. 3-4, pp. 229–256, May 1992. [Online]. Available: https://doi.org/10.1007/BF00992696
[58] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, "Proximal policy optimization algorithms," 2017. [Online]. Available: https://arxiv.org/abs/1707.06347
[59] 3GPP, "Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Frequency (RF) system scenarios," 3rd Generation Partnership Project (3GPP), Technical Report TR 36.942, version 17.0.0, Release 17, Mar. 2022. [Online]. Available: https://www.3gpp.org/ftp/Specs/archive/36_series/36.942/36942-h00.zip
[60] M. Mohammady, M. Qaqily, B. Wadhwa, Y. Hong, D. Lin, H. V. Poor, and R. Dowsley, "A multi-view approach to preserve privacy and utility in network trace anonymization," ACM Transactions on Privacy and Security, vol. 24, no. 3, pp. 1–36, 2021.