Hi,I encount a bug when I use iperf3 to generate udp flows, which would makes ovs-dpdk port can't receive packets,while tcp flows seem wouldn't. There is details below.
The test topology is 2 VMs installed iperf3 connecting to 1 VM installed ovs-dpdk,which NIC is e1000.
My iperf3 comand is:
iperf3 -s -i 1
iperf3 10.1.3.4 -u -b 1G -w6m -t 36000
Ovs's flow-table is
cookie=0x0, duration=2319.958s, table=0, n_packets=74802603, n_bytes=104773394087, in_port=dpdk2 actions=output:dpdk1
cookie=0x0, duration=2319.958s, table=0, n_packets=89, n_bytes=5572, in_port=dpdk1 actions=output:dpdk2
But after for about 10s minutes or 1h longer, the iperf3 server can't receive any packets unless restart ovs.Then I stop iperf3, let hosts ping each other, gdb ovs-dpdk and found that rte_eth_rx_burst() always return 0 at one of the ports, meanning it can't receive any packets.
iperf3 message is like below:
[ 5] 2727.00-2728.00 sec 24.2 MBytes 203 Mbits/sec 0.042 ms 0/3098 (0%)
[ 5] 2728.00-2729.00 sec 26.5 MBytes 222 Mbits/sec 0.100 ms 0/3389 (0%)
[ 5] 2729.00-2730.00 sec 27.5 MBytes 231 Mbits/sec 0.079 ms 0/3522 (0%)
[ 5] 2730.00-2731.00 sec 25.1 MBytes 210 Mbits/sec 0.213 ms 9/3219 (0.28%)
[ 5] 2731.00-2732.00 sec 11.2 MBytes 94.1 Mbits/sec 0.042 ms 0/1436 (0%)
[ 5] 2732.00-2733.00 sec 0.00 Bytes 0.00 bits/sec 0.042 ms 0/0 (0%)
[ 5] 2733.00-2734.00 sec 0.00 Bytes 0.00 bits/sec 0.042 ms 0/0 (0%)
[ 5] 2734.00-2735.00 sec 0.00 Bytes 0.00 bits/sec 0.042 ms 0/0 (0%)
[ 5] 2735.00-2736.00 sec 0.00 Bytes 0.00 bits/sec 0.042 ms 0/0 (0%)
[ 5] 2736.00-2737.00 sec 0.00 Bytes 0.00 bits/sec 0.042 ms 0/0 (0%)
ovs_log message is:
2022-04-20T14:40:10.483Z|00109|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.13.0
2022-04-20T14:40:10.685Z|00110|connmgr|INFO|br0<->unix#6: 3 flow_mods in the last 0 s (2 adds, 1 deletes)
2022-04-20T14:40:10.728Z|00111|netdev_dpdk|WARN|Failed to enable flow control on device 0
2022-04-20T14:40:10.728Z|00112|netdev_dpdk|WARN|Failed to enable flow control on device 1
2022-04-20T14:40:15.150Z|00001|netdev_dpdk(dpdk_watchdog1)|DBG|Port 0 Link Up - speed 1000 Mbps - full-duplex
2022-04-20T14:40:15.151Z|00002|netdev_dpdk(dpdk_watchdog1)|DBG|Port 1 Link Up - speed 1000 Mbps - full-duplex
2022-04-20T14:40:18.662Z|00113|memory|INFO|228596 kB peak resident set size after 10.5 seconds
2022-04-20T14:40:18.662Z|00114|memory|INFO|handlers:2 ports:3 revalidators:2 rules:6 udpif keys:6
Could you please tell me how to solve this issue? I would appreciate it!!!
刘峰麟
北京邮电大学/研究生/计算机学院(国家示范性软件学院)
北京