Hanic quick send packets

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

高晓伟_Steven

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

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

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

打赏作者

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

抵扣说明:

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

余额充值