arXiv:2512.15753cs.LGcs.AI2025-12

提出两阶段网络,精准识别未知加密流量,助力新应用快速分类。

TAO-Net: Two-stage Adaptive OOD Classification Network for Fine-grained Encrypted Traffic Classification

  • 两阶段设计:先区分已知/未知流量,再用大模型生成细粒度分类
  • 在三个数据集上宏平均精确率超96%,远超旧方法最高86%
  • 无需预设类别,适合快速应对新兴网络应用的识别需求

加密流量分类旨在通过分析网络流量数据识别应用或服务。核心挑战在于新应用不断涌现,产生偏离已知类别的分布外(OOD)流量模式,现有模型难以有效处理。当前方法依赖预定义类别,限制了对未知流量的识别能力。部分方法虽将未知流量归为单一“其他”类别,但无法实现细粒度分类。本文提出两阶段自适应分布外分类网络(TAO-Net),实现对分布内(ID)与分布外(OOD)加密流量的精准分类。第一阶段采用融合Transformer层间变换平滑性与特征分析的混合检测机制,有效区分ID与OOD流量;第二阶段借助大语言模型,结合新型语义增强提示策略,将OOD分类转化为生成任务,实现无需预设标签的灵活细粒度分类。在三个数据集上的实验表明,TAO-Net达到96.81-97.70%宏平均精确率和96.77-97.68%宏平均F1值,显著优于此前仅达44.73-86.30%宏平均精确率的方法,尤其在识别新兴网络应用方面表现突出。

原文摘要 · Abstract (English)

Encrypted traffic classification aims to identify applications or services by analyzing network traffic data. One of the critical challenges is the continuous emergence of new applications, which generates Out-of-Distribution (OOD) traffic patterns that deviate from known categories and are not well represented by predefined models. Current approaches rely on predefined categories, which limits their effectiveness in handling unknown traffic types. Although some methods mitigate this limitation by simply classifying unknown traffic into a single "Other" category, they fail to make a fine-grained classification. In this paper, we propose a Two-stage Adaptive OOD classification Network (TAO-Net) that achieves accurate classification for both In-Distribution (ID) and OOD encrypted traffic. The method incorporates an innovative two-stage design: the first stage employs a hybrid OOD detection mechanism that integrates transformer-based inter-layer transformation smoothness and feature analysis to effectively distinguish between ID and OOD traffic, while the second stage leverages large language models with a novel semantic-enhanced prompt strategy to transform OOD traffic classification into a generation task, enabling flexible fine-grained classification without relying on predefined labels. Experiments on three datasets demonstrate that TAO-Net achieves 96.81-97.70% macro-precision and 96.77-97.68% macro-F1, outperforming previous methods that only reach 44.73-86.30% macro-precision, particularly in identifying emerging network applications.

加密流量OOD检测大模型细粒度分类

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。