When Simple Model Just Works: Is Network Traffic Classification in Crisis?

📅 2025-06-10
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This paper identifies a pervasive data redundancy problem in network traffic classification (TC): over 50% of flow samples in mainstream datasets are duplicated, and improper train/test splits induce label leakage, severely inflating reported model performance and lowering the theoretical accuracy ceiling. To quantify this effect, the authors systematically evaluate a k-NN baseline using packet-sequence metadata (packet sizes, inter-arrival times, directions) across 12 datasets and 15 classification tasks—matching or surpassing state-of-the-art deep learning models. This constitutes the first empirical demonstration that redundancy systematically biases TC evaluation and reveals a fundamental misalignment in directly adopting NLP/CV evaluation paradigms. Key contributions include: (i) quantitative characterization of redundancy and label conflict impacts; (ii) a traffic-aware redefinition of classification tasks and evaluation protocols; and (iii) a rigorous, empirically grounded benchmarking framework to advance methodological soundness in TC research.

Technology Category

Application Category

📝 Abstract
Machine learning has been applied to network traffic classification (TC) for over two decades. While early efforts used shallow models, the latter 2010s saw a shift toward complex neural networks, often reporting near-perfect accuracy. However, it was recently revealed that a simple k-NN baseline using packet sequences metadata (sizes, times, and directions) can be on par or even outperform more complex methods. In this paper, we investigate this phenomenon further and evaluate this baseline across 12 datasets and 15 TC tasks, and investigate why it performs so well. Our analysis shows that most datasets contain over 50% redundant samples (identical packet sequences), which frequently appear in both training and test sets due to common splitting practices. This redundancy can lead to overestimated model performance and reduce the theoretical maximum accuracy when identical flows have conflicting labels. Given its distinct characteristics, we further argue that standard machine learning practices adapted from domains like NLP or computer vision may be ill-suited for TC. Finally, we propose new directions for task formulation and evaluation to address these challenges and help realign the field.
Problem

Research questions and friction points this paper is trying to address.

Evaluating simple k-NN vs complex models in traffic classification
Identifying dataset redundancy causing overestimated model performance
Proposing new evaluation practices for traffic classification tasks
Innovation

Methods, ideas, or system contributions that make the work stand out.

Simple k-NN model using packet metadata
Identifies redundant samples in datasets
Proposes new task formulation directions
🔎 Similar Papers
No similar papers found.
K
Kamil Jerábek
Brno University of Technology, Faculty of Information Technology, Czech Republic
Jan Luxemburk
Jan Luxemburk
FIT CTU & CESNET
Computer NetworksTraffic AnalysisDeep Learning
R
Richard Plný
Czech Technical University in Prague, Faculty of Information Technology, Czech Republic; CESNET, a.l.e., Prague, Czech Republic
Josef Koumar
Josef Koumar
FIT CTU
J
Jaroslav Pesek
Czech Technical University in Prague, Faculty of Information Technology, Czech Republic; CESNET, a.l.e., Prague, Czech Republic
Karel Hynek
Karel Hynek
FIT CTU & CESNET a.l.e.
Network securityPrivacyMachine Learning