Yogesh
Yogesh

Reputation: 49

pktgen traffic activity on dpdk interfaces

I have two physical machines (Host 1 and Host 2) with two DPDK configured 10G Intel NICs (port 0 and port 1) on each. Port 0 and port 1 of both machines are connected with each other directly. On Host 2, l3fwd is running to enable traffic forwarding between dpdk NICs. On Host 1, pktgen is running as packet generator.

As I start pktgen, both ports start receiving traffic (see the attachment), which I am unable to figure out from where. It keeps happening even after passing "stop " or changing Mac addressed and ip addresses.

Please advice. enter image description here

Upvotes: 0

Views: 634

Answers (1)

Vipin Varghese
Vipin Varghese

Reputation: 4798

If LLDP protocol is enabled by default (Intel X710) you will be getting discovery packets once DPDK application is started. I believe this is what you are seeing on pkt-gen as spurious packet.

I modified the primary DPDK application to invoke rte_pdump_init and ran dpdk-pdump utility in another console.

# tcpdump -r /tmp/rx.pcap
reading from file /tmp/rx.pcap, link-type EN10MB (Ethernet)
18:40:29.405996 LLDP, length 69
18:40:30.402803 LLDP, length 69
18:40:31.399615 LLDP, length 69
18:40:32.396427 LLDP, length 69

DPDK Pktgen also allows to capture packets in run time from a desired port or multiple ports. To achieve the same follows the steps as

  1. Launch the Pktgen tool in interactive mode
  2. to enable the capture option execute enable [portlist] capture
  3. all packets received on the interface will be capture with unique file name (port number appened)
  4. To disable/stop the capture execute disable [portlist] capture

Using any of the above methods we can capture the default packets coming in, In my system with X710 it is LLDP packets send from other. We can disable LLDP packets by ethtool -set-priv-flags <interface name> disable-fw-lldp on

Upvotes: 0

Related Questions