基於商用平台之可擴展準確分散式封包產生器
A Scalable and Accurate Distributed Traffic Generator on Commodity Platforms
摘要
高速網路的快速發展對於網路設備的測試與驗證帶來相當大的挑戰,在測試中經常被使用的硬體式封包產生器其雖然準確但是成本昂貴;而軟體式的封包產生器雖然相對便宜但其效能與準確度卻相當有限。因此,我們提出了一個 具備高擴展性、高準確度的分散式封包產生系統,有別於傳統軟體式封包產生器,我們的系統能夠針對特定機率分佈之流量模型,透過傅立葉轉換來擷取流量成份,並將其透過一台至多台節點分散式的產生流量,使其流量疊加後 能夠還原出高準確度之流量分佈。同時,我們的系統利用 DPDK 框架來達成高效能的封包產生,透過增加節點的運算能力以及增加節點的數量,能使封包產生器之準確度與效能隨之提昇。實驗結果顯示我們的系統能夠以單一 CPU 核心達成最小封包 99.97% 線速封包產生,透過多個 CPU 核心與多台節點,我們的系統能產生 20 Gbps 至 40 Gpbs 流量。而在產生泊松分佈之流量時,能透過多個節點達到99.75% 精準度的平均封包率。
The rapid development of high speed networking poses a challenge in the test and verification of the networking equipments. The hardware-based packet generators that are often used in the verification proces s are accurate but costly. Software-based packet generators, on the other hand, are relatively economy but have limited performance and accuracy. Thus, we propose a distributed packet generating system that features high scalability and high accuracy. Distinct from traditional software-based packet generator, our system extracts the traffic components from specific traffic distribution with Fourier transform and generate the traffic components distributedly with one or more worker nodes. The aggregated traffic will recover to high accuracy traffic distribution. Also, our system utilizes DPDK framework to boost gen eration performance. The accuracy and performance of our system can grow accordingly with the computing power and the number of nodes. The experiment results show that our system is capable of generating 99. 97% line-rate packet with single CPU core. With multiple CPU cores and multiple workers, our system is able to generate traffic of 20Gbps to 40Gbps. When generating poisson traffic distribution, our system is capable of generating mean packet rate of 99.75% accuracy with multiple worker node.