[Paper Review] Classification of Traffic Using Neural Networks by Rejecting: a Novel Approach in Classifying VPN Traffic
This paper proposes a novel end-to-end cascade neural network approach using multi-layer perceptron (MLP) and Long Short-Term Memory (LSTM) networks with a rejection strategy to classify encrypted VPN traffic. By jointly learning feature extraction, selection, and classification through class scores and distance from class centers, the method achieves 95% accuracy—surpassing state-of-the-art models—while effectively distinguishing encrypted traffic and identifying application types.
In this paper, we introduce a novel end-to-end traffic classification method to distinguish between traffic classes including VPN traffic in three layers of the Open Systems Interconnection (OSI) model. Classification of VPN traffic is not trivial using traditional classification approaches due to its encrypted nature. We utilize two well-known neural networks, namely multi-layer perceptron and recurrent neural network to create our cascade neural network focused on two metrics: class scores and distance from the center of the classes. Such approach combines extraction, selection, and classification functionality into a single end-to-end system to systematically learn the non-linear relationship between input and predicted performance. Therefore, we could distinguish VPN traffics from non-VPN traffics by rejecting the unrelated features of the VPN class. Moreover, we obtain the application type of non-VPN traffics at the same time. The approach is evaluated using the general traffic dataset ISCX VPN-nonVPN, and an acquired dataset. The results demonstrate the efficacy of the framework approach for encrypting traffic classification while also achieving extreme accuracy, $95$ percent, which is higher than the accuracy of the state-of-the-art models, and strong generalization capabilities.
Motivation & Objective
- To address the challenge of classifying encrypted VPN traffic, which is difficult using traditional methods due to packet-level encryption.
- To overcome the limitations of divide-and-conquer approaches in traffic classification by integrating feature extraction, selection, and classification into a single end-to-end learning framework.
- To improve classification accuracy and generalization for encrypted traffic, particularly in distinguishing between VPN and non-VPN traffic and identifying application types.
- To evaluate the proposed method on both public (ISCX VPN-nonVPN) and real ISP-collected datasets to validate robustness and performance.
Proposed method
- The framework employs a cascade neural network architecture combining a multi-layer perceptron (MLP) and a Long Short-Term Memory (LSTM) recurrent neural network to process traffic flows layer by layer.
- The rejection strategy evaluates input samples based on two metrics: class score (confidence of prediction) and distance from the center of the predicted class, enabling rejection of unrelated or ambiguous features.
- The model is trained end-to-end using two loss functions—score-based and distance-based—optimizing with the Adam optimizer and hyperparameters tuned via validation sets.
- Feature engineering is implicitly learned through the deep network structure, eliminating the need for manual feature selection or preprocessing.
- The system jointly performs feature extraction, selection, and classification in a single unified model, reducing error propagation and improving non-linear relationship modeling.
- Hyperparameters such as μ=0.85, λ=0.70, η=0.40, and δ=0.30 are used to define rejection thresholds, ensuring robustness and generalization.
Experimental results
Research questions
- RQ1Can a cascaded neural network with a rejection mechanism outperform traditional divide-and-conquer approaches in classifying encrypted VPN traffic?
- RQ2To what extent does end-to-end learning with joint feature extraction and classification improve accuracy and generalization in encrypted traffic classification?
- RQ3How effective is the rejection strategy based on class scores and distance from class centers in filtering out irrelevant or ambiguous traffic features?
- RQ4Does the proposed method maintain high performance across diverse traffic types, including chat, email, FTP, streaming, VoIP, and encrypted VPN traffic?
- RQ5How does the model’s performance compare to state-of-the-art end-to-end learning models in terms of accuracy, precision, recall, and F1-score?
Key findings
- The proposed cascade neural network with rejection achieves a test accuracy of 95%, significantly outperforming the state-of-the-art E2E model (86%) by 8 percentage points.
- The distance-based method achieved the highest performance with an F1-score of 0.93 for VPN traffic, precision of 0.94, and recall of 0.93, indicating strong detection capability.
- The model demonstrated superior generalization, maintaining high precision and recall across all traffic types, including challenging classes like FTP and VoIP.
- The distance-based method outperformed the score-based method, which achieved only 90% accuracy, validating the effectiveness of distance-based rejection.
- The model achieved a 1.4% improvement in recall and 0.4% in F1-score over the state-of-the-art EE-CNN model, indicating better detection of positive cases.
- The framework successfully classified non-VPN traffic into application types (e.g., email, streaming) while simultaneously identifying encrypted VPN traffic, demonstrating dual functionality.
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.