[Paper Review] Deep Learning for Network Traffic Classification
This paper proposes an ensemble deep learning model that classifies HTTPS service names (SNI) using only encrypted TLS packet sequences—without relying on SNI or decrypted payloads—achieving state-of-the-art accuracy by combining CNN-RNN architectures on packet, payload, and inter-arrival time features.
Monitoring network traffic to identify content, services, and applications is an active research topic in network traffic control systems. While modern firewalls provide the capability to decrypt packets, this is not appealing for privacy advocates. Hence, identifying any information from encrypted traffic is a challenging task. Nonetheless, previous work has identified machine learning methods that may enable application and service identification. The process involves high level feature extraction from network packet data then training a robust machine learning classifier for traffic identification. We propose a classification technique using an ensemble of deep learning architectures on packet, payload, and inter-arrival time sequences. To our knowledge, this is the first time such deep learning architectures have been applied to the Server Name Indication (SNI) classification problem. Our ensemble model beats the state of the art machine learning methods and our up-to-date model can be found on github: \url{https://github.com/niloofarbayat/NetworkClassification}
Motivation & Objective
- To investigate whether deep learning can accurately classify HTTPS services (SNI) using only encrypted TLS packet data, without access to SNI or decrypted payloads.
- To evaluate the effectiveness of deep neural networks in identifying fine-grained services (e.g., maps.google.com vs. drive.google.com) from side-channel traffic characteristics.
- To compare the performance of deep learning models against traditional machine learning methods (e.g., Random Forest, SVM) in SNI classification under real-world constraints.
- To explore architectural improvements such as directional features and weighted ensembling to enhance model robustness and accuracy.
Proposed method
- Trains separate CNN-RNN architectures on three types of encrypted TLS traffic sequences: packet sizes, payload sizes, and inter-arrival times.
- Employs a late-fusion ensemble strategy combining the Softmax outputs of individual CNN-RNN models using equal weighting.
- Uses statistical features derived from packet sequences as input to the deep learning models, avoiding header or decrypted payload information.
- Applies data augmentation and normalization techniques to improve generalization across diverse connection patterns and minimum connection thresholds.
- Incorporates directional features (client-to-server vs. server-to-client) in a controlled ablation study to assess their impact on classification accuracy.
- Validates performance using a real-world HTTPS trace dataset with SNI as ground truth, ensuring alignment with practical deployment scenarios.
Experimental results
Research questions
- RQ1Can deep learning models accurately predict SNI (HTTPS service names) using only encrypted TLS packet sequences, without SNI or payload decryption?
- RQ2How does the performance of deep learning-based SNI classification compare to state-of-the-art machine learning methods like Random Forest and SVM?
- RQ3What is the contribution of individual traffic features—packet size, payload size, and inter-arrival time—to the overall classification accuracy?
- RQ4Does the inclusion of directional features (e.g., flow direction) improve the performance of the deep learning model across varying connection thresholds?
- RQ5Can architectural ensembling and feature weighting strategies further enhance model accuracy and robustness?
Key findings
- The proposed ensemble deep learning model achieves state-of-the-art accuracy in SNI classification, outperforming traditional machine learning methods such as Random Forest and SVM.
- The CNN-RNN architecture trained on inter-arrival time sequences contributes uniquely to the ensemble, despite lower individual accuracy, due to its sensitivity to timing patterns.
- Adding directional features to the input sequences results in inconsistent performance improvements across different minimum connection thresholds, suggesting limited general benefit.
- Weighted ensembling of CNN-RNN outputs does not yield consistent improvements, indicating that equal weighting is a reasonable baseline for this architecture.
- The model maintains high accuracy even under low connection thresholds, demonstrating robustness to sparse or short-lived connections.
- The study confirms that significant side-channel information is leaked through encrypted TLS traffic, enabling high-accuracy service identification without SNI or payload access.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.