首页|LightShaper:一个高精度通用流量整形工具

LightShaper:一个高精度通用流量整形工具

扫码查看
模拟流量通常是系统能力与服务质量评估和优化的常见手段,而常用工具往往存在硬件模拟成本高、不灵活、软件模拟流量特征精度差的问题。如何低成本精确再现负载流量特征是一个挑战。为此,本文提出了一种高精度、低成本的方法实现对测试负载的流量特征控制。使用独立的流量特征控制中间件LightShaper对流量负载进行缓冲、汇聚、同步,并使用一种基于占位包填充的软件方法,在标准网卡上实现了高精度的包间隔控制。LightShaper能按需塑造流量负载的速率波形与包间隔分布波形,提供了流量整形、多源同步、延迟变换、流内乱序变换等不同功能,达到接近硬件的包间隔控制精度。在随机包间隔分布测试中,LightShaper在均方误差和KL散度这2个分布拟合度指标上,相比传统基于计时器的软件方法,分别实现了 6。67~28。10倍和2。01~18。88倍的提升,便于低成本灵活复现评测负载。
LightShaper:a high-precision and generic traffic shaping tool
Simulated traffic is frequently adopted as a standard methodology for evaluating and enhancing the performance and quality of services within systems.However,commonly used tools are often characterized by high costs associ-ated with hardware emulation,a lack of adaptability,and suboptimal precision in replicating traffic characteristics through software simulation.The challenge lies in the accurate replication of load traffic features at an affordable cost.Therefore,this paper introduces a novel approach that combines high precision with economic efficiency for the control of traffic features in test loads.Leveraging the independent traffic feature control middleware,Light-Shaper,to buffer,aggregate,and synchronize traffic loads,the method also incorporates a software technique based on placeholder packet filling,enabling the precise control of packet intervals on standard network cards.Light-Shaper is capable of dynamically shaping the network traffic waveform and packet interval distribution waveform of traffic loads,offering a suite of functionalities including traffic shaping,synchronization across multiple sources,delay transformation,and intra-flow disorder transformation,thereby attaining a level of packet interval control ac-curacy comparable to that of hardware.In the context of random packet interval distribution testing,LightShaper has demonstrated significant improvements over traditional timer-based software methods,with enhancements ran-ging from 6.67 to 28.10 times in mean square error and from 2.01 to 18.88 times in KL divergence,thus enabling the cost-effective and agile reproduction of evaluation loads.

traffic shapingrate controltest loadinter-departure distribution

王浩昆、张文力、张钊、陈明宇

展开 >

中国科学院计算技术研究所 北京 100090

流量整形 速率控制 测试负载 包间隔分布

2024

高技术通讯
中国科学技术信息研究所

高技术通讯

CSTPCD北大核心
影响因子:0.19
ISSN:1002-0470
年,卷(期):2024.34(11)