[dpdk-users] pktgen-dpdk range for udp proto seems not working

Vincent Li vincent.mc.li at gmail.com
Fri Apr 22 19:47:42 CEST 2016


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?


More information about the users mailing list