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 条
  • [31] Classification of Human Activities Based on Radar Signals Using 1D-CNN and LSTM
    Zhu, Jianping
    Chen, Haiquan
    Ye, Wenbin
    [J]. 2020 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS), 2020,
  • [32] Research on multi-task perception network of traffic scene based on feature fusion
    Sui, Duo
    Gao, Peng
    Fang, Minhang
    Lian, Jing
    Li, Linhui
    [J]. JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2024, 46 (03) : 5753 - 5765
  • [33] Multi-task Classification Model Based On Multi-modal Glioma Data
    Li, Jialun
    Jin, Yuanyuan
    Yu, Hao
    Wang, Xiaoling
    Zhuang, Qiyuan
    Chen, Liang
    [J]. 11TH IEEE INTERNATIONAL CONFERENCE ON KNOWLEDGE GRAPH (ICKG 2020), 2020, : 165 - 172
  • [34] Research on A Classification Algorithm of Near-Infrared Spectroscopy Based on 1D-CNN
    Pu Shan-shan
    Zheng En-rang
    Chen Bei
    [J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43 (08) : 2446 - 2451
  • [35] Method for multi-task learning fusion network traffic classification to address small sample labels
    Liu, Lan
    Yu, Yongjie
    Wu, Yafeng
    Hui, Zhanfa
    Lin, Jun
    Hu, Junhan
    [J]. SCIENTIFIC REPORTS, 2024, 14 (01)
  • [36] Evaluation of UAV spraying quality based on 1D-CNN model and wireless multi-sensors system
    Hao, Ziyuan
    Li, Minzan
    Yang, Wei
    Li, Xinze
    [J]. INFORMATION PROCESSING IN AGRICULTURE, 2024, 11 (01): : 65 - 79
  • [37] Method for multi-task learning fusion network traffic classification to address small sample labels
    Lan Liu
    Yongjie Yu
    Yafeng Wu
    Zhanfa Hui
    Jun Lin
    Junhan Hu
    [J]. Scientific Reports, 14
  • [38] A Multi-task Text Classification Model Based on Label Embedding Learning
    Xu, Yuemei
    Fan, Zuwei
    Cao, Han
    [J]. CYBER SECURITY, CNCERT 2021, 2022, 1506 : 211 - 225
  • [39] Short-term passenger flow prediction for multi-traffic modes: A Transformer and residual network based multi-task learning method
    Yang, Yongjie
    Zhang, Jinlei
    Yang, Lixing
    Yang, Yang
    Li, Xiaohong
    Gao, Ziyou
    [J]. INFORMATION SCIENCES, 2023, 642
  • [40] DMMLN: A deep multi-task and metric learning based network for video classification
    Zhi, Hongxin
    Yu, Hongtao
    Li, Shaomei
    Gao, Chao
    [J]. 2017 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (SSCI), 2017, : 1046 - 1052