DPDK usage discussions
 help / color / mirror / Atom feed
From: James Bensley <jwbensley@gmail.com>
To: Dan Brown <dan.brown.vzw@gmail.com>, users@dpdk.org
Subject: Re: [dpdk-users] Setup pktgen as a receiver
Date: Thu, 12 Apr 2018 14:59:46 +0100	[thread overview]
Message-ID: <CAAWx_pWfZDt==b+k2ior_HjPUMmFgaHnWXYpFrFuc4hA4-6RMg@mail.gmail.com> (raw)
In-Reply-To: <CAPBN5MJFHgZudLrjbx-zegS5REG_0A2Eb+2g47RUpcA5DQ63qg@mail.gmail.com>

On 12 April 2018 at 13:32, Dan Brown <dan.brown.vzw@gmail.com> wrote:
> I'm trying to run 2 pktgen instances, on two separate VMs, one act as a
> generator and the other act as the a receiver.
>
> TX is OK,  but for some reason the intended RX pktgen seem to receive no
> packets (RX counters are zero).
>
> With no pktgen/dpdk, both RX and TX interfaces can communicate properly (so
> no network infrastructure level issue I suppose).
>
> The cmd I use to init both ends is:
> './app/x86_64-native-linuxapp-gcc/pktgen -c 0x7 -n 1 -- -T -P -m "[1:2].0"'
>
> Then 'start 0' on the TX instance.
>
> Is there anything else I should execute on the RX instance for it to start
> receiving packets?
>
> Some more infrastructure details:
> - Both interface are Intel SR-IOV VFs
> - Hypervisor is VMware ESXi 6.5
> - SR-IOV vSwitches are configured to allow promiscuous mode.
> - Ubuntu 16.04 Guest OSs
> - DPDK 18.02, pktgen 3.4.9

Hi Dan,

Are these two devices in the same layer 2 broadcast domain / layer 3
subnet as each other? When I use two devices in different subnets I
have to first send some gratuitous ARP frames so that the gateway can
find the two Pktgen hosts:

set 0 src ip 10.0.1.1/30  # Gateway device is 10.0.1.2
set 0 dst ip 10.0.2.1
set 0 dst mac a8:0c:0d:7b:f6:e5  # MAC of gateway device

set 1 src ip 10.0.2.1/30  # Gateway device is 10.0.2.2
set 1 dst ip 10.0.1.1
set 1 dst mac a8:0c:0d:7b:f6:e4  # MAC of gateway device

start 0,1 arp gratuitous
start 0,1 arp gratuitous

start 0


Cheers,
James.

  reply	other threads:[~2018-04-12 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-12 12:32 Dan Brown
2018-04-12 13:59 ` James Bensley [this message]
2018-04-12 17:40   ` Dan Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAWx_pWfZDt==b+k2ior_HjPUMmFgaHnWXYpFrFuc4hA4-6RMg@mail.gmail.com' \
    --to=jwbensley@gmail.com \
    --cc=dan.brown.vzw@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).