From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61D21A09E4 for ; Sun, 3 Jan 2021 17:03:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22EDE1606DF; Sun, 3 Jan 2021 17:03:33 +0100 (CET) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id 5E3651606DD for ; Sun, 3 Jan 2021 17:03:31 +0100 (CET) Received: by mail-wm1-f46.google.com with SMTP id 190so14971026wmz.0 for ; Sun, 03 Jan 2021 08:03:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/QQoPrkt2RUyN4lFm62BYksCe0Rm2FEwBF0w7sfQgDM=; b=PqV/XZFwrH8SgAYt7PeF3CruswfjWl/brBiUH6LceE1xdnFY50KF51BXBxgzPKA7kV 7su7PkkDO4hxZRXj1ozbvQqo5VX1sIdB4pL6eDqIoCsfwfI9qJKg+VmHON2Qm0dUVxJm 28YkApPEXHmVJE5YH2aNGPda3/p1cUSJ3MHzSrwnrYWTd1js3SGY6yZljyQTSGwQrdEV K3BOqPwt48bh0dhPv5xjRvEAZe6dPQ6Vn7zDpy//TIDap54Q0d8tU0C/FJhrVR+SCqAv +V0k2zD8bFha/VMqjwTuc4bowKc3hbR+tX3svuPASSELiuvr+IDOeiSGgy6nPz5bltnj 3a5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/QQoPrkt2RUyN4lFm62BYksCe0Rm2FEwBF0w7sfQgDM=; b=shW6J/k+S7dIGgsD0eR5wtKhb62z22sd7x5Prd/vBN7GtLHF+45t8FgdXfBvqfym24 zxMiPD30fb2SUp6DyU3F18o73iWnzp0M9uB0RA9W5479+Sbnz/AuhTO7f/2r6Kp/jEkI O3baH/z8LnKw97FWoxvQyhiFqHtZ0V94+5nvsR60An1kUvVwYMXt+AGh3TX8ITnKRz4o nY7bHULAPvFd4radyLggIUw59W65Sbz9T437QBK1kNe5lis23LQhbRmSihe/bhv5pmgS QyitZrEcpQtUX1xzRS2zhkMJkzKxM6n+o6ZKwwpPDYhX2hp21wemtzIE4eS2tvGf/26e E5jg== X-Gm-Message-State: AOAM531YJp83ok3YE4ae4gGuH2tf/1sBrNpqZ2zbgR4jfrcnp1MHe7fm hs2PV/kUnlfILRfjrjURO4ObX3ugQ1l27x2BGaAnwZFimH3/Yg== X-Google-Smtp-Source: ABdhPJzFFm3XcCcdKIcMKwHLxZIgV78Tw3fyQkOF7qQ9a2X36N1P02jDQ1l1yHnOKhKD0WRJmIr7PCLzCbUWz2MMRgk= X-Received: by 2002:a1c:7217:: with SMTP id n23mr22687100wmc.167.1609689810837; Sun, 03 Jan 2021 08:03:30 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Merve_Orakc=C4=B1?= Date: Sun, 3 Jan 2021 19:03:18 +0300 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] DPDK-pktgen Flows X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" 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=3D 256000 flows were created here. Second: when we think of increment operator, generated packets: 1. packet: dst_ip: 192.168.1.1 , src_ip: 192.168.0.1 , dst_port: 2000 , src_port: 5000 2. packet dst_ip: 192.168.1.2 , src_ip: 192.168.0.2 , dst_port: 2001 , src_port: 5001 ................................ 128. packet: dst_ip: 192.168.1.128 , src_ip: 192.168.0.128 , dst_port: 2128 , src_port: 5128 129.packet dst_ip: 192.168.1.1 , src_ip: 192.168.0.1 , dst_port: 2129, src_port: 5129 or (???) dst_ip: 192.168.1.128 , src_ip: 192.168.0.128 , 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 help. 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", "192.168.1.1"); pktgen.range.dst_ip("0", "inc", "0.0.0.1"); pktgen.range.dst_ip("0", "min", "192.168.1.1"); pktgen.range.dst_ip("0", "max", "192.168.1.128"); pktgen.range.src_ip("0", "start", "192.168.0.1"); pktgen.range.src_ip("0", "inc", "0.0.0.1"); pktgen.range.src_ip("0", "min", "192.168.0.1"); pktgen.range.src_ip("0", "max", "192.168.0.128"); 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", "192.168.0.1"); pktgen.range.dst_ip("1", "inc", "0.0.0.1"); pktgen.range.dst_ip("1", "min", "192.168.0.1"); pktgen.range.dst_ip("1", "max", "192.168.0.128"); pktgen.range.src_ip("1", "start", "192.168.1.1"); pktgen.range.src_ip("1", "inc", "0.0.0.1"); pktgen.range.src_ip("1", "min", "192.168.1.1"); pktgen.range.src_ip("1", "max", "192.168.1.128"); 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"); --=20 *Merve Orakc=C4=B1* Research Asistant Gazi University - Institute of Informatics Computer Forensics Phone :+90 0312 202 3814