DPDK usage discussions
 help / color / mirror / Atom feed
From: Merve Orakcı <merveorakci58@gmail.com>
To: users <users@dpdk.org>
Subject: [dpdk-users] DPDK-pktgen Flows
Date: Sun, 3 Jan 2021 19:03:18 +0300
Message-ID: <CALtT+qZ6cbJdKERL7wsZ-ZAc9+TsKXNZBKRLP3fzT06op36GMA@mail.gmail.com> (raw)

Hi everyone, I will get flows using the "range" command. So I am reviewing
documents and sample codes about this topic. I would like to ask a few
things that I cannot understand. What is the flow generation procedure of
range command? Take port 0 as an example. 128 different ip addresses and
2000 different port numbers are used for source and destination. As far as
I understand, these lines are repeated for each package.But how is the flow
creation procedure?
My opinions:
First: Is it a random port number and ip address for each pass over the
file? So total 128 * 2000= 256000 flows were created here.
Second: when we think of increment operator, generated packets:
1. packet:  dst_ip:  ,  src_ip: , dst_port: 2000 ,
src_port: 5000
2. packet   dst_ip:  ,  src_ip: , dst_port: 2001 ,
src_port: 5001
128. packet:   dst_ip:  ,  src_ip: , dst_port:
2128 , src_port: 5128
129.packet      dst_ip:  ,  src_ip: , dst_port:
2129, src_port: 5129  or (???)  dst_ip:  ,  src_ip: , dst_port: 2129, src_port: 5129

then it will end when source and destination port numbers reach their
highest value..

Can you help with this issue? I want to measure the performance of the
system that I have created in different flow numbers with the pktgen tool.
For this reason, the number of flows is important for me. Thanks for your

pktgen.range.dst_mac("0", "start", "3c:fd:fe:9c:5c:b8");

pktgen.range.src_mac("0", "start", "3c:fd:fe:9c:5c:d8");

pktgen.range.dst_ip("0", "start", "");

pktgen.range.dst_ip("0", "inc", "");

pktgen.range.dst_ip("0", "min", "");

pktgen.range.dst_ip("0", "max", "");

pktgen.range.src_ip("0", "start", "");

pktgen.range.src_ip("0", "inc", "");

pktgen.range.src_ip("0", "min", "");

pktgen.range.src_ip("0", "max", "");

pktgen.set_proto("0", "udp");

pktgen.range.dst_port("0", "start", 2000);

pktgen.range.dst_port("0", "inc", 1);

pktgen.range.dst_port("0", "min", 2000);

pktgen.range.dst_port("0", "max", 4000);

pktgen.range.src_port("0", "start", 5000);

pktgen.range.src_port("0", "inc", 1);

pktgen.range.src_port("0", "min", 5000);

pktgen.range.src_port("0", "max", 7000);

pktgen.range.pkt_size("0", "start", 64);

pktgen.range.pkt_size("0", "inc", 0);

pktgen.range.pkt_size("0", "min", 64);

pktgen.range.pkt_size("0", "max", 256);

-- Set up second port

pktgen.range.dst_mac("1", "start", "3c:fd:fe:9c:5c:d8");

pktgen.range.src_mac("1", "start", "3c:fd:fe:9c:5c:b8");

pktgen.range.dst_ip("1", "start", "");

pktgen.range.dst_ip("1", "inc", "");

pktgen.range.dst_ip("1", "min", "");

pktgen.range.dst_ip("1", "max", "");

pktgen.range.src_ip("1", "start", "");

pktgen.range.src_ip("1", "inc", "");

pktgen.range.src_ip("1", "min", "");

pktgen.range.src_ip("1", "max", "");

pktgen.set_proto("all", "udp");

pktgen.range.dst_port("1", "start", 5000);

pktgen.range.dst_port("1", "inc", 1);

pktgen.range.dst_port("1", "min", 5000);

pktgen.range.dst_port("1", "max", 7000);

pktgen.range.src_port("1", "start", 2000);

pktgen.range.src_port("1", "inc", 1);

pktgen.range.src_port("1", "min", 2000);

pktgen.range.src_port("1", "max", 4000);

pktgen.range.pkt_size("1", "start", 64);

pktgen.range.pkt_size("1", "inc", 0);

pktgen.range.pkt_size("1", "min", 64);

pktgen.range.pkt_size("1", "max", 256);

pktgen.set_range("all", "on");

*Merve Orakcı*
Research Asistant
Gazi University - Institute of Informatics
Computer Forensics
Phone :+90 0312 202 3814

             reply	other threads:[~2021-01-03 16:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 16:03 Merve Orakcı [this message]
2021-01-04 14:21 ` Wiles, Keith
  -- strict thread matches above, loose matches on Subject: below --
2020-12-21 20:11 Merve Orakcı
2020-12-22 16:04 ` 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALtT+qZ6cbJdKERL7wsZ-ZAc9+TsKXNZBKRLP3fzT06op36GMA@mail.gmail.com \
    --to=merveorakci58@gmail.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git