Hanic quick send packets

本文介绍了SZE2工具套件中的sze2fastwrite和sze2write两种工具。sze2fastwrite用于发送大量假帧进行测试,能够在默认帧长度下利用2个DMA队列实现100Gbps的数据传输。sze2write则用于从硬盘上的pcap文件发送真实数据包,其性能较低,但可以通过预处理pcap文件为二进制格式、使用缓冲写入和并行运行多个实例等方法提高效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

高晓伟_Steven

相逢即是有缘,动力源于金钱。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值