Bug 113 - pktgen -s option send pcap traffic once
Summary: pktgen -s option send pcap traffic once
Status: CONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: unspecified
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2018-11-29 15:09 CET by Amin Latifi
Modified: 2018-12-01 07:16 CET (History)
2 users (show)



Attachments

Description Amin Latifi 2018-11-29 15:09:40 CET
Hi,

I try to use pktgen to send a pcap file using command bellow:
./pktgen -c 0xff -n 3 --socket-mem=512,512 --file-prefix=pg  -w 4:00.1 -- -m 1.0 -T -P -s 0:/var/home/pcap/smallFlows.pcap

I need loop sending pcap traffic until I stop it. However after command "start 0", pcap traffic is sent just once.
Comment 1 Keith Wiles 2018-11-29 15:44:52 CET
> On Nov 29, 2018, at 8:09 AM, bugzilla@dpdk.org wrote:
> 
> https://bugs.dpdk.org/show_bug.cgi?id=113
> 
>            Bug ID: 113
>           Summary: pktgen -s option send pcap traffic once
>           Product: DPDK
>           Version: unspecified
>          Hardware: x86
>                OS: Linux
>            Status: CONFIRMED
>          Severity: normal
>          Priority: Normal
>         Component: other
>          Assignee: dev@dpdk.org
>          Reporter: a.latifi.al@gmail.com
>  Target Milestone: ---
> 
> Hi,
> 
> I try to use pktgen to send a pcap file using command bellow:
> ./pktgen -c 0xff -n 3 --socket-mem=512,512 --file-prefix=pg  -w 4:00.1 -- -m
> 1.0 -T -P -s 0:/var/home/pcap/smallFlows.pcap
> 
> I need loop sending pcap traffic until I stop it. However after command
> "start
> 0", pcap traffic is sent just once.
> 

What version of DPDK and Pktgen are you using?
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.

Regards,
Keith
Comment 2 Dmitriy 2018-11-29 19:58:59 CET
I have similar problem with pcaps, but in my case pktgen doesn't send anything after "start 0".
Nothing happens after "start 0". Counters doesn't increments.
Without pcap all works fine. Before that I used very old version pktgen-3.0.02 (with DPDK 16.04) and pcaps works on it.

From startup logs:
./pktgen -l 0-3 -n 3 -- -P -m '[1:2].0' -s 0:./pcap/test.pcap

PCAP file for port 0: ./pcap/test.pcap
  magic: a1b2c3d4, Version: 2.4, Zone: 0, snaplen: 65535, sigfigs: 0, network: 1 Endian: Little

Create: PCAP TX     0:0  - Number of MBUFs      4 for     3 packets                 =      7 KB

Tested on:
DPDK 18.11 and DPDK 18.08
pktgen-3.5.9
Comment 3 Dmitriy 2018-11-29 20:43:37 CET
(In reply to Dmitriy from comment #2)
> I have similar problem with pcaps, but in my case pktgen doesn't send
> anything after "start 0".
> Nothing happens after "start 0". Counters doesn't increments.
> Without pcap all works fine. Before that I used very old version
> pktgen-3.0.02 (with DPDK 16.04) and pcaps works on it.
> 
> From startup logs:
> ./pktgen -l 0-3 -n 3 -- -P -m '[1:2].0' -s 0:./pcap/test.pcap
> 
> PCAP file for port 0: ./pcap/test.pcap
>   magic: a1b2c3d4, Version: 2.4, Zone: 0, snaplen: 65535, sigfigs: 0,
> network: 1 Endian: Little
> 
> Create: PCAP TX     0:0  - Number of MBUFs      4 for     3 packets         
> =      7 KB
> 
> Tested on:
> DPDK 18.11 and DPDK 18.08
> pktgen-3.5.9

It's problem with small pcaps. Small pcaps are not sent.
Comment 4 Amin Latifi 2018-12-01 07:16:19 CET
(In reply to Keith Wiles from comment #1)
> > On Nov 29, 2018, at 8:09 AM, bugzilla@dpdk.org wrote:
> > 
> > https://bugs.dpdk.org/show_bug.cgi?id=113
> > 
> >            Bug ID: 113
> >           Summary: pktgen -s option send pcap traffic once
> >           Product: DPDK
> >           Version: unspecified
> >          Hardware: x86
> >                OS: Linux
> >            Status: CONFIRMED
> >          Severity: normal
> >          Priority: Normal
> >         Component: other
> >          Assignee: dev@dpdk.org
> >          Reporter: a.latifi.al@gmail.com
> >  Target Milestone: ---
> > 
> > Hi,
> > 
> > I try to use pktgen to send a pcap file using command bellow:
> > ./pktgen -c 0xff -n 3 --socket-mem=512,512 --file-prefix=pg  -w 4:00.1 --
> -m
> > 1.0 -T -P -s 0:/var/home/pcap/smallFlows.pcap
> > 
> > I need loop sending pcap traffic until I stop it. However after command
> > "start
> > 0", pcap traffic is sent just once.
> > 
> 
> What version of DPDK and Pktgen are you using?
> > -- 
> > You are receiving this mail because:
> > You are the assignee for the bug.
> 
> Regards,
> Keith

I'm using dpdk-18.11 and pktgen-dpdk-pktgen-3.5.9

Actually, I have another problem and that is pktgen fails to start when I want to use big sized pcap file. I tried with pcap of 21GB size.

Note You need to log in before you can comment on or make changes to this bug.