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