DPDK usage discussions
 help / color / mirror / Atom feed
From: Vincent Li <vincent.mc.li@gmail.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] pktgen-dpdk range for udp proto seems not working
Date: Fri, 22 Apr 2016 10:47:42 -0700	[thread overview]
Message-ID: <CAK3+h2zw8u5XTOubooTDTYw=YPY2r58CnrS98EKxPY+tLkDFZQ@mail.gmail.com> (raw)

Hi,

I noticed when I run range setting for UDP protocol, it does not work
and it defaults to TCP, for exmaple, I run pktgen as below:

#./app/app/x86_64-native-linuxapp-gcc/pktgen -c 1ff -n 3 --proc-type
auto  -- -P -m "[1:3].0, [2:4].0, [5:7].0, [6:8].0"

Pktgen> load udp.txt

Pktgen>  page range

Port #                         Port-0
dst.ip          :          10.1.72.17
    inc         :             0.0.0.1
    min         :          10.1.72.17
    max         :          10.1.72.17
                :
src.ip          :         10.1.72.154
    inc         :             0.0.0.1
    min         :         10.1.72.154
    max         :         10.1.72.254
                :
ip_proto        :                 TCP <========Note here is TCP
                :
dst.port / inc  :             0/    1
     min / max  :             0/  254
                :
src.port / inc  :          1025/    1
     min / max  :          1025/65512
                :


the udp.txt below, it has 'proto udp 0'

#
# Pktgen - Ver: 2.9.17 (DPDK 16.04.0-rc2)
# Copyright (c) <2010-2016>, Intel Corporation. All rights reserved.,
Powered by Intel® DPDK

# Command line arguments: (DPDK args are defaults)
# ./app/app/x86_64-native-linuxapp-gcc/pktgen -c 1ff -n 3 -m 512
--proc-type primary -- -P -m [1:3].0, [2:4].0, [5:7].0, [6:8].0

#######################################################################
# Pktgen Configuration script information:
#   GUI socket is Not Enabled
#   Flags 00000004
#   Number of ports: 1
#   Number ports per page: 4
#   Number descriptors: RX 512 TX: 512
#   Promiscuous mode is Enabled


#######################################################################
# Global configuration:
geometry 132x44
mac_from_arp disable

######################### Port  0 ##################################
#
# Port:  0, Burst: 32, Rate:100%, Flags:00000000, TX Count:Forever
#           SeqCnt:0, Prime:1 VLAN ID:0001, Link: <UP-10000-FD>
#
# Set up the primary port information:
set 0 count 0
set 0 size 64
set 0 rate 100
set 0 burst 32
set 0 sport 1234
set 0 dport 5678
set 0 prime 1
type ipv4 0
proto udp 0 <================ here is UDP, not TCP
set ip dst 0 10.1.72.17
set ip src 0 10.1.72.154/24
set mac 0 00:23:e9:64:c0:03
vlanid 0 1

pattern 0 abc
user.pattern 0 0123456789abcdef^B


latency 0 disable
mpls 0 disable
mpls_entry 0 0
qinq 0 disable
qinqids 0 0 0
gre 0 disable
gre_eth 0 disable
gre_key 0 0
#
# Port flag values:
icmp.echo 0 disable
pcap 0 disable
range 0 enable
process 0 disable
capture 0 disable
rxtap 0 disable
txtap 0 disable
vlan 0 disable

#
# Range packet information:
src.mac start 0 00:50:56:86:10:76
src.mac min 0 00:00:00:00:00:00
src.mac max 0 00:00:00:00:00:00
src.mac inc 0 00:00:00:00:00:00
dst.mac start 0 00:23:e9:64:c0:03
dst.mac min 0 00:00:00:00:00:00
dst.mac max 0 00:00:00:00:00:00
dst.mac inc 0 00:00:00:00:00:00

src.ip start 0 10.1.72.154
src.ip min 0 10.1.72.154
src.ip max 0 10.1.72.254
src.ip inc 0 0.0.0.1

dst.ip start 0 10.1.72.17
dst.ip min 0 10.1.72.17
dst.ip max 0 10.1.72.17
dst.ip inc 0 0

src.port start 0 1025
src.port min 0 1025
src.port max 0 65512
src.port inc 0 1

dst.port start 0 0
dst.port min 0 0
dst.port max 0 254
dst.port inc 0 1

vlan.id start 0 1
vlan.id min 0 1
vlan.id max 0 4095
vlan.id inc 0 0

pkt.size start 0 64
pkt.size min 0 64
pkt.size max 0 1518
pkt.size inc 0 0

#
# Set up the sequence data for the port.
set 0 seqCnt 0

################################ Done

Am I miss anything?

             reply	other threads:[~2016-04-22 17:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 17:47 Vincent Li [this message]
2016-04-22 18:31 ` Vincent Li
2016-04-22 18:42   ` Vincent Li
2016-04-22 18:45     ` Wiles, Keith
2016-04-22 18:44   ` Wiles, Keith

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='CAK3+h2zw8u5XTOubooTDTYw=YPY2r58CnrS98EKxPY+tLkDFZQ@mail.gmail.com' \
    --to=vincent.mc.li@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).