MTC: A Multi-Task Model for Encrypted Network Traffic Classification Based on Transformer and 1D-CNN

被引:3
|
作者
Wang, Kaiyue [1 ]
Gao, Jian [1 ,2 ]
Lei, Xinyan [1 ]
机构
[1] Peoples Publ Secur Univ China, Dept Informat Network Secur, Beijing 102600, Peoples R China
[2] Safety Precaut Lab Minist Publ Secur, Beijing 102600, Peoples R China
来源
关键词
Encrypted traffic classification; multi-task learning; feature fusion; transformer; 1D-CNN; DEEP NEURAL-NETWORK;
D O I
10.32604/iasc.2023.036701
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Traffic characterization (e.g., chat, video) and application identifi-cation (e.g., FTP, Facebook) are two of the more crucial jobs in encrypted network traffic classification. These two activities are typically carried out separately by existing systems using separate models, significantly adding to the difficulty of network administration. Convolutional Neural Network (CNN) and Transformer are deep learning-based approaches for network traf-fic classification. CNN is good at extracting local features while ignoring long-distance information from the network traffic sequence, and Transformer can capture long-distance feature dependencies while ignoring local details. Based on these characteristics, a multi-task learning model that combines Transformer and 1D-CNN for encrypted traffic classification is proposed (MTC). In order to make up for the Transformer's lack of local detail feature extraction capability and the 1D-CNN's shortcoming of ignoring long-distance correlation information when processing traffic sequences, the model uses a parallel structure to fuse the features generated by the Transformer block and the 1D-CNN block with each other using a feature fusion block. This structure improved the representation of traffic features by both blocks and allows the model to perform well with both long and short length sequences. The model simultaneously handles multiple tasks, which lowers the cost of training. Experiments reveal that on the ISCX VPN-nonVPN dataset, the model achieves an average F1 score of 98.25% and an average recall of 98.30% for the task of identifying applications, and an average F1 score of 97.94%, and an average recall of 97.54% for the task of traffic characterization. When advanced models on the same dataset are chosen for comparison, the model produces the best results. To prove the generalization, we applied MTC to CICIDS2017 dataset, and our model also achieved good results.
引用
收藏
页码:619 / 638
页数:20
相关论文
共 50 条
  • [1] MTT: an efficient model for encrypted network traffic classification using multi-task transformer
    Zheng, Weiping
    Zhong, Jianhao
    Zhang, Qizhi
    Zhao, Gansen
    [J]. APPLIED INTELLIGENCE, 2022, 52 (09) : 10741 - 10756
  • [2] MTT: an efficient model for encrypted network traffic classification using multi-task transformer
    Weiping Zheng
    Jianhao Zhong
    Qizhi Zhang
    Gansen Zhao
    [J]. Applied Intelligence, 2022, 52 : 10741 - 10756
  • [3] Fast and Accurate Multi-Task Learning for Encrypted Network Traffic Classification
    Park, Jee-Tae
    Shin, Chang-Yui
    Baek, Ui-Jun
    Kim, Myung-Sup
    [J]. APPLIED SCIENCES-BASEL, 2024, 14 (07):
  • [4] 1D-CNN based Model for Classification and Analysis of Network Attacks
    Singh, Kuljeet
    Mahajan, Amit
    Mansotra, Vibhakar
    [J]. INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2021, 12 (11) : 604 - 613
  • [5] Multi-Task Scenario Encrypted Traffic Classification and Parameter Analysis
    Wang, Guanyu
    Gu, Yijun
    [J]. SENSORS, 2024, 24 (10)
  • [6] Research on Abnormal Network Traffic Detection Based on 1D-CNN
    Li, Danyang
    Sun, Ding
    Zeng, Chuan
    [J]. 2021 INTERNATIONAL CONFERENCE ON NEURAL NETWORKS, INFORMATION AND COMMUNICATION ENGINEERING, 2021, 11933
  • [7] A Personalized Federated Multi-task Learning Scheme for Encrypted Traffic Classification
    Guan, Xueyu
    Du, Run
    Wang, Xiaohan
    Qu, Haipeng
    [J]. ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING, ICANN 2023, PT III, 2023, 14256 : 258 - 270
  • [8] Encrypted Network Traffic Identification Based on 2D-CNN Model
    Zhou, Yan
    Shi, Huiling
    Zhao, Yuhan
    Gao, Wei
    Zhang, Wei
    [J]. 2021 22ND ASIA-PACIFIC NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM (APNOMS), 2021, : 238 - 241
  • [9] Multi-task sentiment classification model based on DistilBert and multi-scale CNN
    Xiong, Guanghao
    Yan, Ke
    [J]. 2021 IEEE INTL CONF ON DEPENDABLE, AUTONOMIC AND SECURE COMPUTING, INTL CONF ON PERVASIVE INTELLIGENCE AND COMPUTING, INTL CONF ON CLOUD AND BIG DATA COMPUTING, INTL CONF ON CYBER SCIENCE AND TECHNOLOGY CONGRESS DASC/PICOM/CBDCOM/CYBERSCITECH 2021, 2021, : 700 - 707
  • [10] Snoring Sound Classification Using 1D-CNN Model Based on Multi-Feature Extraction
    Adesuyi, TosinAkinwale
    Kim, Byeong-Man
    Kim, Jongwan
    [J]. INTERNATIONAL JOURNAL OF FUZZY LOGIC AND INTELLIGENT SYSTEMS, 2022, 22 (01) : 1 - 10