NetCoFi:面向加密流量分类的预算感知粗-细双分支模型
NetCoFi: A Budget-Aware Coarse-Fine Dual-Branch Model for Encrypted Traffic Classification
AI总结:
NetCoFi是一种预算感知的粗-细双分支加密流量分类模型,通过多预算训练实现资源灵活分配,在公开数据集上的分类性能和吞吐量均优于基线模型。
摘要:
加密流量分类对网络管理和安全至关重要,但实际部署必须平衡分类准确率与推理成本。现有模型通常处理固定流窗口,训练后对计算的控制有限,在资源受限场景下可能限制准确率-效率的权衡。为解决该问题,本文提出NetCoFi,一种预算感知分类器,可在粗、细粒度分配计算资源。NetCoFi采用字节表示与可观测数据包元数据,选择token邻域进行细粒度编码,同时将完整窗口压缩为互补的粗粒度上下文。多预算训练使同一模型无需重新训练即可在不同路由预算下运行。在六个公开数据集上的评估显示,NetCoFi从零训练时达到最优分类性能;在低预算设置下,与相同深度的静态基线相比,NetCoFi在三个数据集上的平均Macro-F1提升7.86个百分点;在DPDK-GPU流量处理流水线中,其平均批次吞吐量从26.42 Mb/s提升至43.42 Mb/s,较NetMamba提升1.64倍。
英文摘要:
Encrypted traffic classification is critical for network management and security, but practical deployment must balance classification accuracy and inference cost. Existing models typically process fixed flow windows with limited control over computation after training, which can limit the accuracy-efficiency trade-off under constrained resources. To address this problem, we present NetCoFi, a budget-aware classifier that allocates computation at coarse and fine granularities. Using byte representations and observable packet metadata, NetCoFi selects token neighborhoods for fine-grained encoding while compressing the full window into complementary coarse context. Multi-budget training enables the same model to operate at different routing budgets without retraining. Evaluation on six public datasets shows that NetCoFi achieves state-of-the-art classification performance when trained from scratch. Under low-budget settings, NetCoFi improves average Macro-F1 by 7.86 percentage points across three datasets, compared with a same-depth static baseline. In a DPDK-GPU traffic processing pipeline, it increases mean batch throughput from 26.42 to 43.42 Mb/s, a 1.64x improvement over NetMamba.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。