DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Andy Johnson <andyjoohnsoon@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] pktgen-dpdk and transmitting a pcap file (using -s)
Date: Mon, 12 Feb 2018 13:41:22 +0000	[thread overview]
Message-ID: <78A13E4E-535A-4CF3-8653-F07B566D4A62@intel.com> (raw)
In-Reply-To: <CA+5s28+Kcv4XYTOhiieHrnyZv1qBaZa1WA5vaRuaEkoOm1vuLA@mail.gmail.com>



> On Feb 12, 2018, at 4:10 AM, Andy Johnson <andyjoohnsoon@gmail.com> wrote:
> 
> Hello,
> 
> My question is about transmission of packets with pktgen-dpdk and the "-s"
> option.
> Let's say I am invoking dpdk-pktgen with -s option, specifyng a pcap file
> which
> contains only a sinlge packet, for example:
> ./pktgen -l 0-3 -n 2  -- ... -s 0:my.pcap
> 
> 
> What is the expected result ? transmitting a single packet or transmitting
> in an endless loop this packet over and over again ?

PCAP files for Pktgen are sent over and over again, if you want that single packet to be sent once then set the TX count to 1.

The number of packets used for PCAP packets is limited, so a large or huge number of packets in a pcap file may not be sent as only the first N number of packets from the PCAP file will be used. I do not remember the number but you can use the ‘page pcap’ command and/or look at the startup output. 

> 
> Regards,
> AJ

Regards,
Keith


      reply	other threads:[~2018-02-12 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12 10:10 Andy Johnson
2018-02-12 13:41 ` Wiles, Keith [this message]

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=78A13E4E-535A-4CF3-8653-F07B566D4A62@intel.com \
    --to=keith.wiles@intel.com \
    --cc=andyjoohnsoon@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).