* [dpdk-users] pktgen-dpdk range for udp proto seems not working
@ 2016-04-22 17:47 Vincent Li
2016-04-22 18:31 ` Vincent Li
0 siblings, 1 reply; 5+ messages in thread
From: Vincent Li @ 2016-04-22 17:47 UTC (permalink / raw)
To: users
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] pktgen-dpdk range for udp proto seems not working
2016-04-22 17:47 [dpdk-users] pktgen-dpdk range for udp proto seems not working Vincent Li
@ 2016-04-22 18:31 ` Vincent Li
2016-04-22 18:42 ` Vincent Li
2016-04-22 18:44 ` Wiles, Keith
0 siblings, 2 replies; 5+ messages in thread
From: Vincent Li @ 2016-04-22 18:31 UTC (permalink / raw)
To: users
>
> Am I miss anything?
sorry I missed the 'range.proto 0 udp' setting in the script file, the
range setting is not in help menu, probably should update the help
menu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] pktgen-dpdk range for udp proto seems not working
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
1 sibling, 1 reply; 5+ messages in thread
From: Vincent Li @ 2016-04-22 18:42 UTC (permalink / raw)
To: users
here is a diff to add the range.proto in help menu:
# git diff
diff --git a/app/cmd-functions.c b/app/cmd-functions.c
index b2fda7c..c348e73 100644
--- a/app/cmd-functions.c
+++ b/app/cmd-functions.c
@@ -303,6 +303,8 @@ const char *help_info[] = {
"pkt.size max <portlist> value - Set pkt size maximum address",
"pkt.size inc <portlist> value - Set pkt size increment address",
"range <portlist> <state> - Enable or Disable the
given portlist for sending a range of packets",
+ "range.proto <portlist> [tcp|udp|icmp]",
+ " - Set ip proto for sending
a range of packets",
"",
"<<PageBreak>>",
" Flags: P---------------- - Promiscuous mode enabled",
I also noticed that the range.proto setting can not be saved when
running "save <path to file>" command, not sure how to patch that up.
On Fri, Apr 22, 2016 at 11:31 AM, Vincent Li <vincent.mc.li@gmail.com> wrote:
>>
>> Am I miss anything?
>
> sorry I missed the 'range.proto 0 udp' setting in the script file, the
> range setting is not in help menu, probably should update the help
> menu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] pktgen-dpdk range for udp proto seems not working
2016-04-22 18:31 ` Vincent Li
2016-04-22 18:42 ` Vincent Li
@ 2016-04-22 18:44 ` Wiles, Keith
1 sibling, 0 replies; 5+ messages in thread
From: Wiles, Keith @ 2016-04-22 18:44 UTC (permalink / raw)
To: Vincent Li, users
>>
>> Am I miss anything?
>
>sorry I missed the 'range.proto 0 udp' setting in the script file, the
>range setting is not in help menu, probably should update the help
The range commands are listed in the help menu next to the last page. The problem is I used ip.proto and it is range.proto in the code, but I have patch my version to accept both names.
>menu
>
Regards,
Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-users] pktgen-dpdk range for udp proto seems not working
2016-04-22 18:42 ` Vincent Li
@ 2016-04-22 18:45 ` Wiles, Keith
0 siblings, 0 replies; 5+ messages in thread
From: Wiles, Keith @ 2016-04-22 18:45 UTC (permalink / raw)
To: Vincent Li, users
>here is a diff to add the range.proto in help menu:
>
># git diff
>diff --git a/app/cmd-functions.c b/app/cmd-functions.c
>index b2fda7c..c348e73 100644
>--- a/app/cmd-functions.c
>+++ b/app/cmd-functions.c
>@@ -303,6 +303,8 @@ const char *help_info[] = {
> "pkt.size max <portlist> value - Set pkt size maximum address",
> "pkt.size inc <portlist> value - Set pkt size increment address",
> "range <portlist> <state> - Enable or Disable the
Thanks I will fix this as well, I will leave the ip.proto as the command allow range.proto to work plus fix the save too.
>given portlist for sending a range of packets",
>+ "range.proto <portlist> [tcp|udp|icmp]",
>+ " - Set ip proto for sending
>a range of packets",
> "",
> "<<PageBreak>>",
> " Flags: P---------------- - Promiscuous mode enabled",
>
>I also noticed that the range.proto setting can not be saved when
>running "save <path to file>" command, not sure how to patch that up.
>
>
>
>On Fri, Apr 22, 2016 at 11:31 AM, Vincent Li <vincent.mc.li@gmail.com> wrote:
>>>
>>> Am I miss anything?
>>
>> sorry I missed the 'range.proto 0 udp' setting in the script file, the
>> range setting is not in help menu, probably should update the help
>> menu
>
Regards,
Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-22 18:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-22 17:47 [dpdk-users] pktgen-dpdk range for udp proto seems not working Vincent Li
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
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).