TraceCodec:一种基于编译器的有状态多流网络流量轨迹神经编解码器
TraceCodec: A Compiler-Backed Neural Codec for Network Traffic Traces
AI总结:
针对有状态多流网络流量轨迹的高保真生成问题,提出TraceCodec,通过将数据包解码为带时间戳的动作并学习连续潜在表示,再经确定性编译器还原为PCAP,实现精确的流量统计和TCP状态保持。
摘要:
关键网络工作流需要高保真的数据包捕获(PCAP)用于测试、安全分析和协议验证,而不仅仅是统计性的流级摘要。最近的包生成器展示了协议约束的PCAP合成,但它们普遍直接解码为原始包字段。这种接口将学习到的行为选择与确定性协议后果纠缠在一起,迫使包实现依赖于事后启发式修复。我们将这种解码接口识别为根本瓶颈,并提出了TraceCodec,一种用于有状态多流轨迹的状态感知神经编解码器。TraceCodec将每个数据包提升为带有显式流槽和传输线索的定时包动作,然后学习连续的每包潜在表示。确定性编译器将解码后的动作降级回PCAP,负责端点分配、TCP状态、合法性约束和包渲染。潜在层暴露了一个面向生成器的序列空间,因此下游流量模型可以在包动作潜在表示上操作,而不是原始头部字段。在CICIDS2017 Monday上,TraceCodec将包计数、协议组成和流数量匹配到0.03%以内。在相同的非修复策略下,原始字段基线将流数量和TCP状态扭曲了几个数量级。结构诊断表明,TraceCodec保留了原始字段解码器所分割的TCP状态转换和多流交织。这项工作为高保真包轨迹生成建立了新的基础。
英文摘要:
Critical networking workflows require high-fidelity packet captures (PCAPs) for testing, security analysis, and protocol validation, not just statistical flow-level summaries. Recent packet generators have demonstrated protocol-constrained PCAP synthesis, but many operate on raw or near-raw packet representations. These representations can entangle learned behavioral choices with deterministic protocol rules and make packet correctness depend on post-hoc repair. We identify the decode interface as a key bottleneck and present TraceCodec, a compiler-backed neural codec for stateful multi-flow traces. TraceCodec lifts each parsed packet into a timed packet action with explicit flow slots and transport cues, learns a continuous per-packet latent, and uses a state-aware deterministic compiler to decode actions to PCAPs while managing endpoint assignment, TCP sequence and acknowledgment state, declared compatibility constraints, and packet rendering. On CICIDS2017 Monday, TraceCodec matches packet count, protocol composition, and flow population to within 0.03%; raw-field baselines produce substantially larger flow-count and TCP-event errors under the same non-repair policy. In a matched flow-matching continuation setup, TraceCodec yields complete decoded suffixes in 100% of CICIDS2017 cases and 98.44% of MAWI cases, versus at most 10.94% for raw-field latent controls. Structural diagnostics further show that TraceCodec preserves TCP transitions and multi-flow interleaving. Together, these results support TraceCodec as a generator-facing latent interface with a deterministic path back to usable packet traces.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。