Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate RANDOM traffic via Pktgen-DPDK?

Tags:

dpdk

I use range <portlist> src|dst ip <SMMI> <ipaddr> as the pktgen doc, and start all to send out packets. But it doesn't work. Do I miss some steps?

like image 255
HypoGump Avatar asked Nov 19 '25 23:11

HypoGump


1 Answers

DPDK PKTGEN does not dynamically create randaom packets, instead it can be programmed with range option for desired start, minimum, maximum and increment factor. To generate packets with DST-MAC address for a given range using the following commands in pktgen cli

enable all range
page range
range all dst mac start 00:00:00:00:00:01
range all dst mac min   00:00:00:00:00:01
range all dst mac max   ff:ff:ff:ff:ff:ff
range all dst mac inc   00:00:00:00:00:01

As per pkgetn range options one can change MAC, IP, VLAN, MPLS and GRE with range option.

enter image description here

note: tested on pktgen-20.03.0

like image 188
Vipin Varghese Avatar answered Nov 24 '25 09:11

Vipin Varghese



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!