From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 87066FE5 for ; Mon, 20 Feb 2017 22:38:58 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id v186so92156328wmd.0 for ; Mon, 20 Feb 2017 13:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8mrdITNcD0r0wyzKMGEXo1GvQCkT42O3YWSrYNXV9x8=; b=ZC2ewZHdip9+yZizHYmpdYB9dZn/jzBg+U6QMWalNerA6gGi1+1HeK+cM/aGxg2bEd wkZ5AKDBFh1KAdOpmiOloiZ3lJ0xxa9q2UcJCl9LiAWRu8FX1nDeZZ5yK/y3Z8KkoVLj OkoNsBSMdAtsuWV5l+pu87y+qZZn/wRnwykgfhCs++qKd4gmx+M0pTBBIX1ubpU7B/y7 PCF6/MR3pk9kLKTUAQDYn7Ws+/ubWId9wpGDfaZ6jlbvR72CO69GwpNv+bFe/c9W2NsQ qW270tvFCpSy1unL40KeJshUYxZLDKpHGL6Iq7QvfZI23C3Lhnaf4E0tsZf0er2ZAvhu OXYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8mrdITNcD0r0wyzKMGEXo1GvQCkT42O3YWSrYNXV9x8=; b=hZsJP8dbCY+XIU2viF+imKYz9ziyUD0RuA4RxJix1Mp0EX+9DQea+EpS9liLbGv3zo zZyAsdKcwwfxw1rqLLLSZdu6Fm2uvKFaZVNeTDc0czv8D2wHC6/vYALnQ7XDMaFk1l1D A5ndIEYlQxJ+S50TjAfZnls+MEZT3to12XIHc0F2bE8dPjaYGNAzKWQsF2fMw9A0SNoN x3n52sYnVWzAFVYxma4MXAHo4E/IqxwCsZie2/dvr6dqnW2eh8xt9s5MMZ2cE4XmXgsJ rC/aUyEItoIfVcFkL1uPoT4Cn28oHGjj3Gg6Y31sBve9v+y/nXAvPotbMPzC0rl9i5QL exzQ== X-Gm-Message-State: AMke39lhMHkOlaZ6+I/Th2SuPRS1wqfBGsD+As1Cm1TakpGm7TTnrFKAcdVmlwVzhH3gP/xuLuhcWBsLWVWf7A== X-Received: by 10.28.194.198 with SMTP id s189mr20353010wmf.114.1487626738301; Mon, 20 Feb 2017 13:38:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.232.135 with HTTP; Mon, 20 Feb 2017 13:38:57 -0800 (PST) In-Reply-To: <136C2330-D66C-4F17-8F29-E6F3D6907B5A@intel.com> References: <136C2330-D66C-4F17-8F29-E6F3D6907B5A@intel.com> From: Alex Kiselev Date: Tue, 21 Feb 2017 00:38:57 +0300 Message-ID: To: "Wiles, Keith" Cc: users Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-users] a packet generator with traffic flow support X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 21:38:58 -0000 2017-02-21 0:23 GMT+03:00 Wiles, Keith : > >> On Feb 20, 2017, at 12:53 PM, Alex Kiselev wrote: >> >> Hi! >> >> I am working on some stress tests for my packet forwarding engine >> and trying to figure out which packet generator tool can help me >> to accomplish my tasks with minimum efforts from me. What I need is something >> like PktGen but with a kind of traffic flow/session support. >> The flow/session in my case is a traffic flow with the following properties: >> - QinQ vids, src ip, dst ip etc >> - time to live >> >> In addition, it would ideal if a tool could support defining pps rate of each >> flow or just a total pps of all flows. >> >> So, a packet generator should be able to start in parallel some number >> of flows, then it should replace completed sessions whose ttl is >> expired with new >> ones until the goal (the given number of sessions or the given number >> of packets) >> is complete. >> >> Maybe Warp17 is more close to the kind of tool that I need in terms of >> flow support, but I don't need tcp/udp flows and I need a way to >> define L2 packet headers. >> >> Is it possible to code the flow logic that I need using PktGen >> scripting language? > > The tool pktgen-dpdk does some of the items you want, but not all. Have you looked a the different modes pktgen-dpdk can handle like pcap or range support? Yes, I've tried all pktgen modes. > > Also T-Rex traffic generator may have some of the features you are looking as it is a bit more programable using Python. Thank you. I will take a look at it. Pktgen Lua scripting is really used to control Pktgen and not generate packets on the fly. Pktgen has a number of modes single, range, random, PCAP, sequence, which could be used with an external switch to merge the different TX options to a single target. I assume using an external switch maybe not work very well here. > >> >> I would appreciate any ideas. Thanks. >> >> -- >> -- >> Kiselev Alexander > > Regards, > Keith > -- -- Kiselev Alexander