Skip to content
Open access

A Comparative Study on Transformer-Based Deep Learning Model for Network Traffic Classification

Sep 2026 · JOIV: International Journal on Informatics Visualization · 0 citations

Abstract

Network Traffic Classification (NTC) represents a fundamental pillar of modern cybersecurity, especially as encrypted traffic now exceeds 70% of global internet volume. Conventional methods like deep packet inspection (DPI) experience severe performance degradation in these environments, necessitating adaptive sequence models. This study presents an empirical comparison of four deep learning architectures: Artificial Neural Network (ANN), Convolutional Neural Network (CNN), Recurrent Neural Network (RNN), and Transformers. We validated the models using a real-world telemetry dataset from Jabatan Data Negara (JDN), Malaysia. This repository spans 12,000 encrypted traffic flows across 648 unique application classes. To ensure strict experimental reproducibility, we partitioned the dataset using a balanced, stratified sampling configuration. The compiled corpus included 5,600 jitter profiles and 5,400 bandwidth measurements to support a comprehensive, future-driven behavioral evaluation. Experimental results demonstrate that the Transformer model achieves an optimal balance between computational throughput and classification precision. The proposed architecture achieved 99.60% accuracy while maintaining a wire-speed core throughput of 12.4 Gbps. Consequently, the 1D Convolutional Neural Network exhibits poor optimization stability for temporal sequences, yielding an accuracy of only 65.13%. This empirical work demonstrates that while Transformers are ideal for centralized backbone monitoring, an ultra-lightweight RNN with only 2,803 parameters offers a highly resource-aware alternative for edge deployment.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.