More Classes, More Problems?: Scalability and Efficiency Trade-offs in Network Traffic Classification
Abstract
Machine Learning and Deep Learning are commonly used for Network Traffic Classification, providing near-perfect accuracy in several studies. Nevertheless, it remains unclear whether these classifiers scale to increasingly complex classification tasks—i.e., distinguishing among a larger set of classes. Additionally, critical non-functional aspects, such as latency and memory footprint, are usually not fully explored. In this paper, we investigate how different network traffic classifiers behave across increasingly complex datasets, i.e., with progressively larger number of traffic classes, focusing on memory-time trade-offs and real-world applicability. Findings indicate that the widely used Random Forest achieves the highest classification performance but is extremely memory-hungry. The most recent Transformer is more memory-efficient, although it requires longer training and inference times than Recurrent and Convolutional Neural Networks. In contrast, the latter offer more lightweight options, enabling faster training and inference, albeit with a moderate reduction in classification effectiveness.