Hanic quick send packets

快来打我* 2022-06-18 12:28 209阅读 0赞

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.

发表评论

表情:
评论列表 (有 0 条评论,209人围观)

还没有评论,来说两句吧...

相关阅读