Language of Network: A Generative Pre-trained Model for Encrypted Traffic Comprehension

Язык сети: генеративная предобученная модель для анализа зашифрованного трафика
Meng Shen, Dongqi Han, Susu Cui, Bo Jiang, Di Zhao, Song Liu, Guan, Xingmao, Zhigang Lu
2025-05-26

encrypted traffic comprehensiongenerative pre-trained modelpretraining on unlabeled trafficprompt learning for downstream tasksprotocol-aware tokenization
The increasing demand for privacy protection and security considerations leads to a significant rise in the proportion of encrypted network traffic. Since traffic content becomes unrecognizable after encryption, accurate analysis is challenging, making it difficult to classify applications and detect attacks. Deep learning is currently the predominant approach for encrypted traffic classification through feature analysis. However, these methods face limitations due to their high dependence on labeled data and difficulties in detecting attack variants. First, their performance is highly sensitive to data quality, where the highcost manual labeling process and dataset imbalance significantly degrade results. Second, the rapid evolution of attack patterns makes it challenging for models to identify new types of attacks. To tackle these challenges, we present GBC, a generative model based on pre-training for encrypted traffic comprehension. Since traditional tokenization methods are primarily designed for natural language, we propose a protocol-aware tokenization approach for encrypted traffic that improves model comprehension of fields specific to network traffic. In addition, GBC employs pretraining to learn general representations from extensive unlabeled traffic data. Through prompt learning, it effectively adapts to various downstream tasks, enabling both high-quality traffic generation and effective detection. Evaluations across multiple datasets demonstrate that GBC achieves superior results in both traffic classification and generation tasks, resulting in a 5% improvement in F1 score compared to state-of-the-art methods for classification tasks.
1
A protocol-aware tokenization method is proposed to tokenize encrypted traffic fields, improving model understanding of network-specific features.
2
GBC is a generative pre-trained model designed for encrypted network traffic comprehension, addressing limitations of supervised deep learning methods.
3
GBC uses pretraining on large-scale unlabeled traffic data to learn general representations, reducing dependence on labeled data.
4
On multiple datasets, GBC outperforms state-of-the-art methods for classification, achieving a 5% absolute improvement in F1 score.
5
Prompt learning enables GBC to adapt to multiple downstream tasks, supporting both high-quality traffic generation and effective detection.

Encrypted network traffic (protocol-aware tokenized traffic data)

Pre-trained generative model (GBC) for encrypted traffic comprehension, including protocol-aware tokenization, learning representations from unlabeled traffic, prompt-based adaptation, and performance in traffic classification and generation

Publication Details
Publication Date
2025-05-26
Journal
Publisher
ISSN
Cited by
0
Access Type
Author Information
Authors
Meng Shen
Dongqi Han
Susu Cui
Bo Jiang
Di Zhao
Song Liu
Guan, Xingmao
Zhigang Lu
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%