[dpdk-users] pktgen-dpdk and transmitting a pcap file (using -s)

Wiles, Keith keith.wiles at intel.com
Mon Feb 12 14:41:22 CET 2018

> On Feb 12, 2018, at 4:10 AM, Andy Johnson <andyjoohnsoon at 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


More information about the users mailing list