Trade-off between rule compression and detection error in SDN anomaly detection
The coordination of software-defined networking (SDN) and programmable data planes enables anomaly-detection results to be translated into switch-side enforcement rules. However, installing one fine-grained rule per flow makes table occupancy, update traffic, and controller bookkeeping grow with the flow population. We propose an error-constrained coarse-grained flow-table compression method that aggregates five-tuple rules carrying anomaly confidence scores. New candidates are generated from joint address-prefix, port-bucket, and protocol templates and filtered by coverage and their actual mean/maximum confidence errors. Incremental merges update representative scores and historical error summaries, while heuristic promotion controls controller-history release. A temporary/stable lifecycle separates logical exact-entry removal from controller-history deletion; fine-first matching gives priority only to exact rules still present in the table. Periodic revalidation checks active coarse decisions against updated flow-level decisions to detect confidence drift. On 12,000-flow traces, the accuracy-oriented configuration retains 4686 entries with a 60.95% compression ratio on CIC-IDS2017 and 9816 entries with an 18.20% compression ratio on CIC-IDS2019. An aggressive configuration reaches 99.08% compression on CIC-IDS2019 without revalidation, but its detection rate collapses under a stale-rule stress case; revalidation every 100 coarse hits restores the detection rate to 86.71%, with 57.64% compression and 49.66% net inference avoidance. Controlled one-million-flow scaling and BMv2/P4 functional tests further assess algorithmic scalability and software-target behavior.
Authors
- Qinglei Qi (ORCID: https://orcid.org/0000-0002-0823-5846)
- Jinjiang Liu (ORCID: https://orcid.org/0009-0004-7292-009X)
- Chengqi Ruan
- Xiao Tian
- Donglai Xu
- Junchao Gao
Institutions
- Nanyang Normal University (CN)
Publication Details
- Journal
- Journal of King Saud University - Computer and Information Sciences
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1007/s44443-026-01474-z
- Primary Topic
- Network Packet Processing and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00