Netinfo Security ›› 2026, Vol. 26 ›› Issue (7): 1044-1057.doi: 10.3969/j.issn.1671-1122.2026.07.004

Previous Articles     Next Articles

A semi-byte second-order Markov chain and convolution-enhanced Transformer-based method for encrypted traffic classification

Feng Jingyu, Luo Chen(), Yang Shuaiyi, Fan Yu   

  1. National Engineering Research Center for Wireless Security, Xi’an University of Posts and Telecommunications, Xi’an 710121, China
  • Received:2025-12-03 Online:2026-07-10 Published:2026-09-03
  • Contact: Luo Chen E-mail:948372629@qq.com

Abstract:

To address the limitations in feature representation and insufficient modeling of deep temporal dependencies in encrypted traffic classification, as well as the inadequate integration of convolutional neural networks and Transformer architectures, this paper proposed NSOM-CF, an encrypted traffic classification method that combines a semi-byte second-order Markov chain with a convolution-enhanced Transformer (ConvFormer). By modeling the original traffic byte sequences at the semi-byte level, NSOM-CF constructed a second-order Markov transition probability matrix that reflected byte transition patterns, effectively alleviating matrix sparsity while preserving the dynamic variations and temporal dependencies of traffic. By further mapping the transition matrix into multi-channel feature maps, NSOM-CF leveraged ConvFormer to capture both local spatial features and global contextual dependencies, generating vector representations of the feature maps to achieve accurate encrypted traffic classification. Experimental results show that the proposed method achieves accuracies of 0.9967 and 0.9968 on the ISCX-VPN and USTC-TFC datasets, respectively, demonstrating the effectiveness of NSOM-CF in encrypted traffic classification tasks.

Key words: encrypted traffic classification, Markov chain, sparse reduction, ConvFormer

CLC Number: