Flow-Packet Hybrid Traffic Classification for Class-Aware Network Routing

Sayantan Chowdhury, Ben Liang, Ali Tizghadam, Ilijc Albanese · DOI

Introduction

Modern network management requires fine-grained traffic classification to ensure Quality of Service (QoS). For instance, a router must distinguish between delay-sensitive VoIP calls and delay-tolerant background file downloads to prioritize packets effectively. However, high-speed routing environments impose strict latency constraints, typically in the microsecond range.

Traditional approaches present a trade-off: flow-based machine learning models are highly accurate but rely on statistical features (e.g., packet length variance) available only after a flow concludes, making them unsuitable for real-time per-packet routing. Conversely, packet-based classification is fast enough for hardware implementation—using only header information like IP addresses and ports—but often lacks the contextual depth required for high accuracy. Furthermore, complex neural networks are too computationally expensive for direct deployment on standard router hardware.

The FPHTC Framework

To address these challenges, the authors propose Flow-Packet Hybrid Traffic Classification (FPHTC). This framework leverages the concept of Knowledge Distillation to bridge the gap between slow, high-accuracy flow-based methods and fast, low-accuracy packet-based methods.

The FPHTC system architecture showing the interaction between the offline teacher model and the online router policy.

The FPHTC architecture consists of four primary components:

  1. The Teacher (Flow-based Classifier): An offline model (e.g., XGBoost or LightGBM) trained on a small set of flows labeled via Deep Packet Inspection (DPI). It utilizes 268 high-dimensional statistical features to achieve superior accuracy.
  2. The Student (Routing Policy Designer): The Teacher labels a large volume of unlabeled traffic. This "pseudo-labeled" dataset is then used to train a simple Decision Tree (the Student).
  3. The Router: The router executes the simple Decision Tree using only four basic header features (Source/Destination IP and Ports), enabling near-instant routing decisions.
  4. Online Adaptation: The system continuously monitors performance. If accuracy degrades due to concept drift (changing traffic patterns), it triggers an automated re-training cycle to update the router's policy.

Experimental Setup and Datasets

The study utilized two public datasets of encrypted traffic: ISCX VPN-nonVPN (2016) and ISCX Tor-nonTor (2016). Combined, these datasets provided 43,590 encrypted TCP bidirectional flows across eight application types. These were mapped into three Class of Service (CoS) categories:

  • Delay Sensitive: VoIP, Chat
  • Delay Moderate: Audio, Video
  • Delay Tolerant: FTP, P2P, Mail, Web

Key Results and Analysis

The core innovation of FPHTC is its ability to leverage "privileged information." The student model does not need to process complex flow-level features during inference; it only needs to learn the mapping discovered by the teacher. This allows the student to generalize better than if it were trained on a limited set of expensive DPI-labeled data.

Balanced test accuracy comparison between FPHTC, flow-based classifiers, and regular packet-based classification across varying training dataset sizes.

As shown in the performance analysis, FPHTC consistently outperforms standard packet-based methods. In low-data regimes (1,000 flows), FPHTC achieved 74.99% accuracy, a 9% improvement over standard packet-based methods (65.93%). As the training set size increased to 10,000 flows, FPHTC reached 87.13% accuracy, significantly narrowing the gap with the computationally heavy flow-based classifier (92.27%) while maintaining the speed required for hardware deployment.

Furthermore, the system demonstrated robustness in dynamic environments. In simulations where traffic patterns shifted every 10 time slots, the adaptive update procedure successfully detected performance drops and recovered accuracy.

Conclusion

FPHTC provides a practical path toward class-aware routing in high-speed networks. By distilling knowledge from a complex offline teacher into a simple online student, the system achieves high accuracy with minimal hardware overhead. Future work will explore deploying these models on Programmable Data Planes (e.g., P4-enabled switches) and reducing the initial dependency on expensive DPI-labeled data.

Summary updated

BibTeX
@inproceedings{chowdhury2021flow,
  author = {Sayantan Chowdhury and Ben Liang and Ali Tizghadam and Ilijc Albanese},
  title = {{Flow-Packet Hybrid Traffic Classification for Class-Aware Network Routing}},
  booktitle = {GLOBECOM},
  year = {2021},
  doi = {10.1109/globecom46510.2021.9685838},
}
Figure