When Simple Model Just Works: Is Network Traffic Classification in Crisis?
Kamil Jerabek, Jan Luxemburk, Richard Plny, Josef Koumar, Jaroslav Pesek, Karel Hynek

TL;DR
This paper reveals that a simple k-NN baseline can match or outperform complex neural networks in network traffic classification due to dataset redundancies, and it discusses how current evaluation practices may be misleading.
Contribution
The study systematically evaluates a simple k-NN baseline across multiple datasets, uncovers dataset redundancies affecting performance estimates, and proposes new evaluation directions for the field.
Findings
Redundant samples are prevalent in traffic datasets, affecting performance estimates.
Simple k-NN can outperform complex models due to dataset redundancies.
Current evaluation practices may overestimate model accuracy.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsInternet Traffic Analysis and Secure E-voting · Network Security and Intrusion Detection · Legal and Policy Issues
Methodsk-Nearest Neighbors
