From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1A0043F54 for ; Tue, 30 Apr 2024 14:51:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43FAC4025C; Tue, 30 Apr 2024 14:51:12 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 727DA40262 for ; Tue, 30 Apr 2024 09:19:00 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2aa0f3625aeso1307139a91.1 for ; Tue, 30 Apr 2024 00:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714461539; x=1715066339; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=b8PTotOwYGv6K2D115xeo0Hyte26Gse63nkwdomm//g=; b=c0hEDO8ZwH3KOwIPhZYVcD0V5Uw7VeKi2pBxLHeuNbiFkLo19h5KKr83AraCfgUdVr uFWyty7EuEyzQgV4uVxpJ5z1wOffyR5JVnLg3vCISalw6cVZ6TCB10OSOmYI+/aJYAWO U3sDIlTc5XvmyHRy6DEHU5fdpCh7W8tOSdfyPR4odxT2yUdN6TOJ6jd+oJJ3GskwJqDf ICZdfYv/2OTQ//arK/OblG/zLND8SR3+G0wRFl8r73r+6RmlEmCK7ZFWeRA2NvxMU+DQ xb6w4r0Vjvl9SS3dBOoD6njf2CxZKFqImT+O/GPHdMpmrjh1f+uI24eTtDDrsS2BV6oh qgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714461539; x=1715066339; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=b8PTotOwYGv6K2D115xeo0Hyte26Gse63nkwdomm//g=; b=ZvaHjzrzr1RFu1F7vyA6FWGgLltrakc157AVOujcfbkLMVIm8CILWROAQsI+bL/uYO UoCDWw3+C4BxIanWFjilvoM1xk4EKsmOvK9B3EFzIiJz+OOZErRnx/ExxuH/7wpV/BYZ tS449kV2ZftumOr4fZgCc8LBoqNG+YfGtyPbe/lJ/a+Y1W6jXQuLEbTm63zMTyP5bw7O OkZC+EXyM778LtUIvxSrqfvTtK/zfJ6tGQB3NiidDl+vHWBIsdhJZHj/vUGxwuRsuu8Y EYh4m+u443kb31Uh8Oe+deY8ccuMdUsY2mUsx4rJWy7/LsJtdLAgpUMchVOmw4ZckyJe YAoQ== X-Gm-Message-State: AOJu0Yxwufd2Y1KtfKzXBTcnAL6UpIAyDQIOTA63jW9yOLVJKvKtjVp4 tfIMaNQQPkDH9ycBdHa7OxWz1PlciIncVE1DEdqe8+Z3Cgf2lo3BwZwKPwZHsAaeTTwo4G0fu0/ zrWi7yGdp2bHe6Rj9xusy/QM6C0ZGJsV2fhPL+HYX X-Google-Smtp-Source: AGHT+IESoE1l8br94nhXTwvwLYo/n2wNBfv/LmxPyMXTAq4mbynGECJEXEb6JVMcFW/fH7QIqRqd03Hlw4rULpK1PQU= X-Received: by 2002:a17:90a:5ae4:b0:2b2:a1f1:22c0 with SMTP id n91-20020a17090a5ae400b002b2a1f122c0mr474687pji.3.1714461537671; Tue, 30 Apr 2024 00:18:57 -0700 (PDT) MIME-Version: 1.0 From: Aniurm Date: Tue, 30 Apr 2024 15:18:46 +0800 Message-ID: Subject: DPDK Packet Reception: No Packets Received Across Interfaces on Same Host To: users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000ef208706174b2e6f" X-Mailman-Approved-At: Tue, 30 Apr 2024 14:51:10 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000ef208706174b2e6f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I=E2=80=99d like to test the latency between different network interfac= es on the same host machine using DPDK applications. However, my DPDK application is currently unable to receive any packets, although it was successful with the same configuration previously. Here are the details: My configuration Sender sudo ./pktgen -l 0,2 -n 4 --proc-type auto --file-prefix pg -a 03:00.0 -- -m "[2].0" -T -P Pktgen:/> start 0 / Ports 0-0 of 1
Copyright(c) <2010-2023>, Intel Corporation Port:Flags : 0:P------ Single Link State : ---Total Rate--- Pkts/s Rx : 0 0 Tx : 22,764,800 22,764,800 MBits/s Rx/Tx : 0/14,569 0/14,569 Pkts/s Rx Max : 0 0 Tx Max : 23,168,768 23,168,768 Broadcast : 0 Multicast : 0 Sizes 64 : 0 65-127 : 0 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 0 Tx Pkts : 1,922,118,272 Rx/Tx MBs : 0/1,230,155 TCP Flags : .A.... TCP Seq/Ack : 74616/74640 Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 64 TTL/Port Src/Dest : 64/ 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 00:00:00:00:00:00 Source : b8:59:9f:42:6d:24 NUMA/Vend:ID/PCI : 0/15b3:a2d2/03:00.0 -- Pktgen 24.03.1 (DPDK 24.03.0-rc4) Powered by DPDK (pid:123993) -------= ---- Pktgen as receiver sudo ./pktgen -l 1,3,5 -n 4 --proc-type auto --file-prefix pg-receive -a 82:00.0 -- -P -m "[3/5].0" -T \ Ports 0-0 of 1
Copyright(c) <2010-2023>, Intel Corporation Port:Flags : 0:P------ Single Link State : ---Total Rate--- Pkts/s Rx : 0 0 Tx : 0 0 MBits/s Rx/Tx : 0/0 0/0 Pkts/s Rx Max : 1 1 Tx Max : 0 0 Broadcast : 0 Multicast : 0 Sizes 64 : 0 65-127 : 128 128-255 : 0 256-511 : 0 512-1023 : 0 1024-1518 : 0 Runts/Jumbos : 0/0 ARP/ICMP Pkts : 0/0 Errors Rx/Tx : 0/0 Total Rx Pkts : 2 Tx Pkts : 0 Rx/Tx MBs : 0/0 TCP Flags : .A.... TCP Seq/Ack : 74616/74640 Pattern Type : abcd... Tx Count/% Rate : Forever /100% Pkt Size/Rx:Tx Burst: 64 / 64: 64 TTL/Port Src/Dest : 64/ 1234/ 5678 Pkt Type:VLAN ID : IPv4 / TCP:0001 802.1p CoS/DSCP/IPP : 0/ 0/ 0 VxLAN Flg/Grp/vid : 0000/ 0/ 0 IP Destination : 192.168.1.1 Source : 192.168.0.1/24 MAC Destination : 00:00:00:00:00:00 Source : 7c:fe:90:55:db:5a NUMA/Vend:ID/PCI : 1/15b3:1013/82:00.0 -- Pktgen 24.03.1 (DPDK 24.03.0-rc4) Powered by DPDK (pid:124523) -------= ---- Testpmd as receiver sudo ./dpdk-testpmd -l 1,3,5 -n 4 --file-prefix pg-receive --proc-type auto -a 82:00.0 -- -i --portlist=3D0 --nb-cores=3D2 --port-topology=3Dloop testpmd> start ... testpmd> stop ---------------------- Forward statistics for port 0 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++ l2fwd as receiver sudo ./build/l2fwd -l 1,3,5 -n 4 --file-prefix pg-receive --proc-type auto -a 82:00.0 -- -p 0001 -P Port statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Statistics for port 0 ------------------------------ Packets sent: 0 Packets received: 0 Packets dropped: 0 Aggregate statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Total packets sent: 0 Total packets received: 0 Total packets dropped: 0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D tcpdump sudo tcpdump -i enp130s0np0 -n tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on enp130s0np0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 06:43:06.954175 LLDP, length 59 06:43:37.007247 LLDP, length 59 06:44:07.059921 LLDP, length 59 06:44:37.112526 LLDP, length 59 06:45:07.164358 LLDP, length 59 tcpdump cannot catch any packtes generated by pktgen sender. System Information $ ifconfig -a enp130s0np0: flags=3D4419 mtu 1500 inet 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255 inet6 fe80::7efe:90ff:fe55:db5a prefixlen 64 scopeid 0x20 ether 7c:fe:90:55:db:5a txqueuelen 1000 (Ethernet) RX packets 65 bytes 4745 (4.7 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14 bytes 1076 (1.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 (82:00.0) enp3s0f0np0: flags=3D4419 mtu 1500 inet 192.168.3.2 netmask 255.255.255.0 broadcast 192.168.3.255 inet6 fe80::ba59:9fff:fe42:6d24 prefixlen 64 scopeid 0x20 ether b8:59:9f:42:6d:24 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 15 bytes 1146 (1.1 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 (03:00.0) sudo ./dpdk-devbind.py -s Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D0000:03:00.0 'MT416842 BlueField integrated ConnectX-5 network controller a2d2' if=3Denp3s0f0np0 drv=3Dmlx5_core unused=3Dvfio-pci *Active*0000:82:00.0 'MT27700 Family [ConnectX-4] 1013' if=3Denp130s0np0 drv=3Dmlx5_core unused=3Dvfio-pci *Active* The two network cards, 03:00.0 and 82:00.0, are directly connected using a single Ethernet cable. Ubuntu20.04 DPDK version: 23.11.0 Pktgen version: 24.03.1 What I=E2=80=99m looking for - Any suggestions on troubleshooting methods or similar experiences - Recommendations for configuration adjustments or hardware compatibilit= y --000000000000ef208706174b2e6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi, I=E2=80=99d like to test the latenc= y between different network interfaces on the same host machine using DPDK = applications.

However, my DPDK application is= currently unable to receive any packets, although it was successful with t= he same configuration previously. Here are the details:

My co= nfiguration

Sender

sudo ./pktgen -l 0,2 -n 4 --proc-type auto --file-p=
refix pg -a 03:00.0 -- -m "[2].0" -T -P

Pktgen:/> start 0
/ Ports 0-0 of 1   <Ma=
in Page>  Copyright(c) <2010-2023>, Intel Corporation
  Port:Flags        : 0:P------      Single
Link State          :        <UP-100000-FD>     ---Total Rate---
Pkts/s Rx           :                     0                    0
       Tx           :            22,764,800           22,764,800
MBits/s Rx/Tx       :              0/14,569             0/14,569
Pkts/s Rx Max       :                     0                    0
       Tx Max       :            23,168,768           23,168,768
Broadcast           :                     0
Multicast           :                     0
Sizes 64            :                     0
      65-127        :                     0
      128-255       :                     0
      256-511       :                     0
      512-1023      :                     0
      1024-1518     :                     0
Runts/Jumbos        :                   0/0
ARP/ICMP Pkts       :                   0/0
Errors Rx/Tx        :                   0/0
Total Rx Pkts       :                     0
      Tx Pkts       :         1,922,118,272
      Rx/Tx MBs     :           0/1,230,155
TCP Flags           :                .A....
TCP Seq/Ack         :           74616/74640
Pattern Type        :               abcd...
Tx Count/% Rate     :         Forever /100%
Pkt Size/Rx:Tx Burst:           64 / 64: 64
TTL/Port Src/Dest   :        64/ 1234/ 5678
Pkt Type:VLAN ID    :       IPv4 / TCP:0001
802.1p CoS/DSCP/IPP :             0/  0/  0
VxLAN Flg/Grp/vid   :      0000/    0/    0
IP  Destination     :           192.168.1.1
    Source          :        192.168.0.1/=
24
MAC Destination     :     00:00:00:00:00:00
    Source          :     b8:59:9f:42:6d:24
NUMA/Vend:ID/PCI    :   0/15b3:a2d2/03:00.0
-- Pktgen 24.03.1 (DPDK 24.03.0-rc4)  Powered by DPDK  (pid:123993) -------=
----

Pktgen as receiver

sudo ./pktgen -l 1,3,5 -n 4 --proc-type auto --file-prefix p=
g-receive -a 82:00.0 -- -P -m "[3/5].0" -T
\ Ports 0-0 of 1   <Ma=
in Page>  Copyright(c) <2010-2023>, Intel Corporation
  Port:Flags        : 0:P------      Single
Link State          :        <UP-100000-FD>     ---Total Rate---
Pkts/s Rx           :                     0                    0
       Tx           :                     0                    0
MBits/s Rx/Tx       :                   0/0                  0/0
Pkts/s Rx Max       :                     1                    1
       Tx Max       :                     0                    0
Broadcast           :                     0
Multicast           :                     0
Sizes 64            :                     0
      65-127        :                   128
      128-255       :                     0
      256-511       :                     0
      512-1023      :                     0
      1024-1518     :                     0
Runts/Jumbos        :                   0/0
ARP/ICMP Pkts       :                   0/0
Errors Rx/Tx        :                   0/0
Total Rx Pkts       :                     2
      Tx Pkts       :                     0
      Rx/Tx MBs     :                   0/0
TCP Flags           :                .A....
TCP Seq/Ack         :           74616/74640
Pattern Type        :               abcd...
Tx Count/% Rate     :         Forever /100%
Pkt Size/Rx:Tx Burst:           64 / 64: 64
TTL/Port Src/Dest   :        64/ 1234/ 5678
Pkt Type:VLAN ID    :       IPv4 / TCP:0001
802.1p CoS/DSCP/IPP :             0/  0/  0
VxLAN Flg/Grp/vid   :      0000/    0/    0
IP  Destination     :           192.168.1.1
    Source          :        192.168.0.1/=
24
MAC Destination     :     00:00:00:00:00:00
    Source          :     7c:fe:90:55:db:5a
NUMA/Vend:ID/PCI    :   1/15b3:1013/82:00.0
-- Pktgen 24.03.1 (DPDK 24.03.0-rc4)  Powered by DPDK  (pid:124523) -------=
----

Testpmd as receiver

sudo ./dpdk-testpmd -l <=
span class=3D"hljs-number" style=3D"color:rgb(0,128,128)">1,3,5 -n 4 --file-prefix pg-receive -=
-proc-type auto -a 82:00.0 -- -i --portlist=3D0 --nb-cores=3D2 --port-topo=
logy=3Dloop
testpmd> start

...

testpmd> stop=20

  ---------------------- Forward statistics for port 0  -------------------=
---
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  -------------------------------------------------------------------------=
---

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++=
++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
+++

l2fwd as receiver

 sudo ./build/l2fwd -l <=
span class=3D"hljs-number" style=3D"color:rgb(0,128,128)">1,3,5 -n 4 --file-prefix pg-receive -=
-proc-type auto -a 82:00.0 -- -p 0001 -P
Port statistics =3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
Statistics for port 0 ------------------------------
Packets sent:                        0
Packets received:                    0
Packets dropped:                     0
Aggregate statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Total packets sent:                  0
Total packets received:              0
Total packets dropped:               0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D

tcpdump

sudo tcpdump -i enp130s0np0 -n
tcpdump: verbose output s=
uppressed, use -v[v]... for full protocol decode
listening on enp130s0np0, link-type EN10MB (Ethernet), snapshot length 2621=
44 bytes
06:43:06.954175 LLDP, length 59
06:43:37.007247 LLDP, length 59
06:44:07.059921 LLDP, length 59
06:44:37.112526 LLDP, length 59
06:45:07.164358 LLDP, length 59

tcpdump cannot cat= ch any packtes generated by pktgen sender.

System Information

$ ifconfig -a

enp130s0np0: flags=3D4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        inet 192=
.168.3.1<=
/span>  netmask =
255.255.2=
55.0  broadcast 192.168.3.255
        inet6 fe80::7efe:=
90ff:fe55:db5a  prefixlen 64  scopeid 0x20<link>
        ether 7<=
/span>c:fe:90:55:d=
b:5a  txq=
ueuelen 1000  (Ethernet)
        RX packets 65  bytes 4745 (4.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 1076 (1.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        (82:00.0)

enp3s0f0np0: flags=3D4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        inet 192=
.168.3.2<=
/span>  netmask =
255.255.2=
55.0  broadcast 192.168.3.255
        inet6 fe80::ba59:9fff:fe42:6d24  prefixlen 64  scopeid 0x20<link>
        ether b8:59:9f:42:<=
span class=3D"hljs-number" style=3D"color:rgb(0,128,128)">6d:24  txqueuelen <=
span class=3D"hljs-number" style=3D"color:rgb(0,128,128)">1000  (Eth=
ernet)
        RX packets 0  bytes 0 (0.0=
 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15  bytes 1146 (1.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        (03:00.0)
sudo ./dpdk-devbind.py -s

Network devices using kernel driver
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:03:00.0 'MT416842 BlueField integr=
ated ConnectX-5 network controller a2d2' if=3Denp3s0f0np=
0 drv=3Dmlx5_core unused=3Dvfio-pci *Active*
0000:82:00.0 'MT27700 Family [ConnectX-=
4] 1013' if=3Denp130s0np0 drv=3Dmlx5_core unused=3Dvfio-=
pci *Active*

The two network cards, 03:00.0 and 82:00.0, are directly c= onnected using a single Ethernet cable.

Ubuntu20.04

DPDK version: 23.11.0

Pktgen version: 24.03.1

W= hat I=E2=80=99m looking for

  • Any suggestions on troubleshooting methods o= r similar experiences
  • Recommendations for configuration adjustment= s or hardware compatibility

--000000000000ef208706174b2e6f--