NetLexicon: Learning Discrete Behavioral Representations for Encrypted Web Traffic Analysis
Xiangyu Gao, Tong Li, Ziqiang Wang, Yinchao Zhang, Rongbang Wu, Zhenxing Zhang, Jing Hu, Hanlin Huang, Xinle Du, Su Yao, Qi Li, Ke Xu
Abstract
Encrypted Web traffic analysis requires effective representations of observable communication behavior. Existing pretraining methods often adapt NLP/CV objectives and sequence architectures, motivating learning objectives that capture traffic-specific interaction patterns. We present NetLexicon, a discrete pretraining framework that learns reusable behavioral states from unlabeled traffic. It converts contextual traffic windows into discrete states through vector quantization, constructing a compact traffic lexicon. We design two complementary pretraining objectives. State Transition Prediction (STP) forecasts subsequent sequence structure and packet features from observed history, while Statistical Feature Alignment (SFA) grounds learned states in window-level traffic statistics. Together, they guide the lexicon to capture recurring communication behaviors and their evolution. We evaluate NetLexicon on four benchmarks covering Web application identification, service type identification, and malware detection. NetLexicon improves Macro-F1 by up to 25.5 percentage points over the strongest baseline on each benchmark and reduces fine-tuning time per epoch by up to 23.6 times relative to the evaluated baselines. Further analysis shows that the learned discrete states capture recognizable patterns in packet size, timing, and data transfer. These results demonstrate that incorporating observable behavioral structure into pretraining supports effective, efficient, and interpretable representations for encrypted traffic analysis.
Create a lesson
Related papers
HiGAI-Net: Hierarchical Encrypted Traffic Classification for Generative AI Services
Shared title terminologycs.NIMadhan Raj Kanagarathinam, Jaheon Gu, Krishna M. Sivalingam et al.
NetCoFi: A Budget-Aware Coarse-Fine Dual-Branch Model for Encrypted Traffic Classification
Shared title terminologycs.NIZhengyi Ma, Qiming Yu, Chungang Lin et al.
Shortcut in Generalization: Rethinking Evaluation Protocol for Encrypted Traffic Classification
Shared title terminologycs.NIQiming Yu, Chungang Lin, Zhengyi Ma et al.
RepTC: Representation-Aware Optimization for Efficient Traffic Classification on Edge IoT Devices
Shared title terminologycs.NIAdel Chehade, Edoardo Ragusa, Paolo Gastaldo et al.
Unknown-Traffic Detection, Calibration and Shortcut Reliance in Distilled Encrypted-Traffic Classifiers over One Year
Shared title terminologycs.NIMahmoud Abbasi
Relieving Hotspot Congestion in Large-Scale Low Earth Orbit Satellite Networks via Distributed Dual-Timescale Traffic Splitting
Shared title terminologycs.NIShuyang Li, Guanchen Wu, Qiang Wu et al.