计算机工程与应用 ›› 2024, Vol. 60 ›› Issue (12): 261-269.DOI: 10.3778/j.issn.1002-8331.2302-0025

• 网络、通信与安全 • 上一篇    下一篇

面向网络仿真的分布式流量回放系统

叶海波,李志刚,黄骁,王晓锋,刘渊   

  1. 1.江南大学 人工智能与计算机学院,江苏 无锡 214122
    2.无锡车联天下信息技术有限公司,江苏 无锡 214072
  • 出版日期:2024-06-15 发布日期:2024-06-14

Distributed Traffic Replay System for Network Emulation

YE Haibo, LI Zhigang, HUANG Xiao, WANG Xiaofeng, LIU Yuan   

  1. 1.School of Artificial Intelligence and Computer Science, Jiangnan University, Wuxi,Jiangsu  214122, China
    2.Autolink Information Technology Co., Ltd., Wuxi, Jiangsu 214072, China
  • Online:2024-06-15 Published:2024-06-14

摘要: 流量回放可有效提升网络仿真的逼真度并支持新兴网络与安全技术的评测。面向大规模、高并发、高速率网络流量仿真的需求,设计并实现了一种基于云平台的分布式流量回放系统DTRS(distributed traffic replay system based on cloud platform)。基于该系统,针对网络流量多样化的特点,提出了可扩展的多流回放方法,以实现多种协议流量按需组合、灵活复现;针对数据包流转的高开销问题,提出了基于DPDK(data plane development kit)的流量回放策略,以实现流量回放过程的精确控制,提升回放的时序逼真性;针对流量回放速率不足的问题,提出了基于VPP(vector packet processing)的矢量包处理策略,提升了回放的吞吐量。实验结果表明,DTRS能实现互联网流量的多样化、可扩展加载,支持灵活、逼真、可控地复现海量异构网络场景;在高速率的流量仿真中,DTRS能保证时序逼真性;相较于传统方法,DTRS的流量回放吞吐量提升了3.71倍。

关键词: 流量回放, 网络仿真, 逼真性, 高速率

Abstract: Traffic replay can effectively improve the fidelity of network emulation and support emerging network verification and network security evaluation. A distributed traffic replay system based on cloud platform is designed for large-scale, high-speed and highly concurrent network traffic emulation, named DTRS. Aiming at the diverse network traffic, a scalable multi-stream replay method is proposed to realize the flexible reproduction of multiple protocol traffic. A traffic replay strategy based on DPDK is proposed to achieve accurate control of the replay process and improve the timing fidelity of replay. To solve the problem of insufficient traffic replay speed, a vector packet processing strategy based on VPP is proposed to improve the throughput. The experimental results show that DTRS can realize the scalable loading of diverse network traffic, and support the flexible, realistic and controllable reproduction of massive heterogeneous network scenarios. In high-speed traffic emulation, DTRS can ensure the timing fidelity of replay. Compared with traditional methods, the traffic replay throughput of DTRS has increased by 3.71 times.

Key words: traffic replay, network emulation, fidelity, high-speed