简体   繁体   English

我可以只运行一个端口在 Pktgen 中连续发送数据包吗?

[英]Can I just run one port to send packet continuously in Pktgen?

I want to accomplish to send packet continuously in port "0",and I have done some configuraition:我想完成在端口“0”连续发送数据包,我做了一些配置:

./app/x86_64-native-linuxapp-gcc/pktgen -l 0-2 -n 4 --proc-type auto --socket-mem 1024 -b 00:08.0 -- -P -m "[1].0" 

and in the interactive CLI I set something:在交互式 CLI 中我设置了一些东西:

Pktgen>set 0 src ip "192.168.12.2/24"
Pktgen>set 0 dst ip "192.168.12.3"
Pktgen>set 0 proto udp
Pktgen>set 0 count 0
Pktgen>set 0 rate 50
Pktgen>set 0 size 64
Pktgen>start 0

But according to the page main display, the port 0 just transmit few packets and stop to send packet anymore,even I stop 0 and start 0 again, there is no any response.但是根据page main显示, port 0只是传输了很少的数据包并停止发送数据包,即使我stop 0start 0 ,也没有任何响应。

Pktgen must config two dpdk ports? Pktgen 必须配置两个 dpdk 端口? when I config two dpdk ports and run scripts/rfc2544_tput_test.lua , it works well,I want to know why...当我配置两个 dpdk 端口并运行scripts/rfc2544_tput_test.lua时,它运行良好,我想知道为什么...

Yes, you can.是的你可以。 It work seamlessly.它无缝地工作。 Only requirement, the other side should be able to detect link state change.唯一的要求,对方应该能够检测到链路 state 的变化。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果我用一个监听套接字监听 2 个端口,我怎么知道哪个端口收到了数据包? - if I am listening on 2 ports with one Listening Socket how can I tell which port received the packet? 如何判断是否将UDP数据包发送到开放端口? - How can I tell if I sent a UDP packet to an open port? 如何使用C中的原始套接字发送接收到的数据包? - How can I send received packet using raw sockets in C? 我可以从套接字中读取一个UDP数据包吗? - can I read exactly one UDP packet off a socket? 使用getaddrinfo发送具有固定源端口号的UDP数据包并绑定 - Send UDP packet with fixed source port number using getaddrinfo and bind 无法发送写在 c 中的简单 UDP 数据包 - can not send simple UDP packet written in c 为什么我在串口上连续接收数据? - Why do I receive data continuously on my serial port? 核心音频:当一个数据包= 4个字节时,一个数据包如何=一个字节 - core audio: how can one packet = one byte when clearly one packet = 4 bytes 我想在下面的代码中包含一个for循环,该循环可以以每n秒的间隔连续发送数据id,时间戳和消息 - I want to include a for loop in the code below which can continuously send data id, timestamp and message at interval of every n seconds 在一个端口上接收UDP请求,并通过另一个端口发送响应 - Receive UDP request on one port and send response through another port
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM