Skip to content
Open access

LFNC: A Lightweight and Fine-Grained Two-Stage Network Flow Classification Framework With Programmable Data Planes

2026 · IEEE Transactions on Network and Service Management · Vol 23, pp. 8200-8215 · 0 citations · 52 references

Abstract

Flow classification is a crucial component of network intrusion detection systems. Existing approaches mainly fall into two categories: in-network classification and control-data plane collaborative classification. The former is constrained by the computing and memory resources of programmable switches, often sacrificing classification accuracy and efficiency. The latter requires transmitting large volumes of packets to the control plane, leading to high processing latency, excessive control-channel overhead, and limited flow coverage. To address these challenges, we propose LFNC, a Lightweight and Fine-grained two-stage Network flow Classification framework with programmable data planes. In the first stage, LFNC introduces a Decision Tree Segmentation (DTS) algorithm to train resource-aware models in the control plane. The trained DTS models are converted into switch-compatible matching rules and deployed in the data plane to perform line-rate binary classification for preliminary anomaly detection. In the second stage, LFNC employs a cuckoo filter together with dual circular queues to selectively buffer essential packet features of preliminarily anomalous flows in the data plane and efficiently transfer them to the control plane. A multi-class energy-based flow classifier is then applied in the control plane to achieve accurate and fine-grained classification of anomalous flows. Experimental results on the Tofino hardware switch demonstrate that LFNC outperforms eight state-of-the-art baselines, improving flow collection rate by 1.07% and classification accuracy by 3.34%, while significantly reducing hardware resource consumption and maintaining low packet processing latency.

Read PDF

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