Abstract
Network traffic protocols and service classification are the foundations of network quality of service (QoS) and security technologies. As encryption technologies like SSL/TLS become ubiquitous, traditional traffic classification methods such as Deep Packet Inspection (DPI) are increasingly ineffective. This paper proposes a two-level application layer protocol classification model that combines packet and session information. The first level extracts packet features, such as entropy and randomness of ciphertext, to classify the protocol. The second level uses a voting mechanism across the session to determine the final result. For the more granular task of HTTPS service classification, we introduce a CRNN-CGSF model that combines session and packet features. Experimental results on a custom dataset show that the proposed method achieves 99.679% accuracy in protocol classification and 96.27% in HTTPS service classification, outperforming existing methods.
Introduction
In the modern web, encryption is the standard. While SSL/TLS protocols protect user privacy, they create a "black box" for network administrators who need to manage QoS or detect security threats. Traditional methods like DPI cannot read encrypted payloads, and port-based classification is easily bypassed. Existing machine learning approaches often fail to capture the complex temporal patterns of modern web services. This research bridges the gap by analyzing both "micro" (individual packet randomness) and "macro" (global session behavior) features to classify encrypted traffic without decryption.
Proposed Methodology
The researchers developed a hierarchical architecture to handle both broad protocol identification and specific service classification within HTTPS.
Level 1: Application Layer Protocol Classification
This stage treats encrypted data as a bitstream, applying NIST randomness tests (frequency, runs, spectral tests) and entropy measurements to the ciphertext. A classifier (e.g., XGBoost) labels individual packets. To ensure consistency, a voting mechanism is employed: since a single session should use only one protocol, the most frequent packet label determines the final protocol for the entire session. This approach significantly boosts accuracy from approximately 80% at the packet level to over 99% at the session level.
Level 2: HTTPS Service Classification (CRNN-CGSF)
Because HTTPS can host diverse services (chat, streaming, mail), the authors designed the CRNN-CGSF (Convolutional and Recurrent Neural Network combining Global and Sequential Features) model.
As shown in the architecture above, the model utilizes:
- CNN Layers: To extract spatial features from the raw byte streams of the initial packets.
- RNN/LSTM Layers: To capture the temporal sequence of packet flow over time.
- Global Features: Integration of 23 dimensions of session-wide metadata, such as flow duration and inter-arrival times, which improved service classification accuracy by 1.23%.
Experimental Setup and Dataset
The study utilized a custom dataset collected in a controlled laboratory environment to ensure ground truth accuracy. The dataset comprises 4.7 GB of traffic (51 PCAP files) generated by real-world applications like Chrome, Firefox, FileZilla (FTPS), and Foxmail (SMTPS, POPS, IMAPS). It covers five major service categories: Browser, Streaming, Chat, Mail, and File Transfer.
Key Results and Insights
- Ciphertext Statistical Fingerprints: The research proves that ciphertext is not perfectly random; different protocols leave distinct statistical distributions in their encrypted payloads.
- Optimal Inspection Window: Experiments determined that inspecting the first 6 packets and the first 800 bytes of each packet provides the best balance between accuracy and computational efficiency.
- High Precision: The XGBoost-based voting model achieved 99.679% accuracy for protocol classification (HTTPS, FTPS, SMTPS, IMAPS, POPS). The CRNN-CGSF model achieved 96.27% accuracy for identifying specific activities within HTTPS traffic.
Conclusion
This two-tier framework provides a robust solution for managing encrypted network traffic. By combining statistical randomness tests with deep learning architectures that account for both temporal and global session features, the model achieves industry-leading accuracy. Future work will focus on testing the model's resilience against newer protocols like HTTP/2 and QUIC, as well as its performance in more diverse, real-world network environments.
Summary updated