sze2fastwrite is a testing tool which sends a large number of fake frames at once. In conjunction with the default 1024 bytes of frame length, it is truly able to transmit at 100Gbps using 2 DMA queues.
sze2write is a tool that enables you to send real packets from a pcap stored on your HDD. For that reason its performance is significantly lower. You can however speed it up using following approach:
Transform your pcap into a pre-processed binary file using:
sze2write -P -f your_pcap.pcap -B your_pcap.bin
Use the buffered write where the input file is preloaded into the memory:
sze2write -B your_pcap.bin -b 100000 -s -F
Run sze2write multiple times with different DMA queues (-i parameter)
Optionally use taskset -c to bound sze2write to a specific core within the correct NUMA node
The /usr/share/netcope/sw-examples/sze/write.c file is an example code, not the source code of sze2write. It shows how to work with lower SZE2 interface instead of the HANIC/NPC interface which is based on top of SZE2. We have sent some examples of using HANIC4 API to Joe, you could start with those.
You should not run multiple instances of sze2fastwrite or other tools or programs with a single DMA queue (-i parameter). But I will look at the segmentation fault problem.
本文介绍了SZE2工具套件中的sze2fastwrite和sze2write两种工具。sze2fastwrite用于发送大量假帧进行测试,能够在默认帧长度下利用2个DMA队列实现100Gbps的数据传输。sze2write则用于从硬盘上的pcap文件发送真实数据包,其性能较低,但可以通过预处理pcap文件为二进制格式、使用缓冲写入和并行运行多个实例等方法提高效率。
4737

被折叠的 条评论
为什么被折叠?



