Chapter 6. Running DPDK Test Applications
6.2.
Pktgen application
Pktgen is a traffic generator application capable of displaying real time metrics for ports and can
handle packets with UDP, TCP, ARP, ICMP, GRE, MPLS and Queue-in-Queue. The application
can run command scripts to set up repeatable test cases.
The pktgen application has been modified to disable packet classification, to reflect
Note
correct Rx rate as packet classification is an expensive operation. It will not be
installed on POWERPC64 architecture.
6.2.1. Syntax
Execute the following command to run Pktgen application. Observe unidirectional pkts/sec and
throughput performance under tool output:
[root@host~]# pktgen -c <coremask> -J -n <channels> -- -T -P -m
"<[cores]>.<port_id>" -N
Where,
-c <coremask>
-n <channels>
-T
-P
-m <[cores]>.<port_id>
-N
-J
6.2.2. Examples
Running single Tx and Rx queue traffic
i.
Configure Pktgen tool to use single Tx and Rx queue, mapping core 1 to Rx and core 2 to
Tx queue on port 0:
[root@host~]# pktgen -c f -n 4 -- -T -P -m "[1:2].0" –N
.
.
.
Pktgen created by Keith Wiles -- >>> Powered by Intel® DPDK <<<
- Ports 0-3 of 4
Systems, Inc. All rights reserved. Powered by Intel® DPDK
Flags:Port
:
Chelsio DPDK Driver for Linux
: A hexadecimal bit mask of the cores to run on. Note that core
numbering can change between platforms and should be determined
beforehand.
: Number of memory channels per processor socket.
: Enable pktgen themes.
: Enable PROMISCUOUS mode on all ports.
: Map CPU logical cores to Chelsio ports.
: Enable NUMA support.
: Enable Jumbo mode.
** Main Page **
Copyright (c) <2010-2015>, Wind River
P-------------:0
20
Need help?
Do you have a question about the DPDK and is the answer not in the manual?