From owner-freebsd-net@FreeBSD.ORG Wed Sep 25 09:12:56 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3153772 for ; Wed, 25 Sep 2013 09:12:56 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x22e.google.com (mail-ee0-x22e.google.com [IPv6:2a00:1450:4013:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 37CAF24D6 for ; Wed, 25 Sep 2013 09:12:56 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id c13so3015478eek.19 for ; Wed, 25 Sep 2013 02:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vxQQ0xd4dBk0AlItWPr/M6aL+9kfzY0Xhykqg6nxaxQ=; b=rrggJAhWUIlBQERQXLoChpnyMBLuUtaq26/h+NcHdDbG/3zR3SNhRxguNHOqGmRa9K 3wmn6Q4mb/wpd8B34c831wUWuB2nUjaNVvjR4cBcflxkNbyvnilhfLj9Tco36sB4+Vnw HyX9A7khUX6qSNNpqafe52xtY3WgHMiFdJYjQrl0NPdbf32RjbbXCqh52AtwF+XrGatP bTFQxjH9sd4JldjBYW0lXzbHSWAG5xV3bMat18WVcyon1Xi7iXKKJRL89xFCOEu4K6Zo MPx9J/Y8Ou6SMkETbCqFe8rObXZD6qWo2cgjWdE/SSd8konSegxN4kd7z0wp+GLUW5jO LoOA== MIME-Version: 1.0 X-Received: by 10.14.183.130 with SMTP id q2mr54171440eem.5.1380100374515; Wed, 25 Sep 2013 02:12:54 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Wed, 25 Sep 2013 02:12:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Sep 2013 02:12:54 -0700 Message-ID: Subject: Re: netmap: traffic distribution From: hiren panchasara To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 09:12:56 -0000 On Wed, Sep 25, 2013 at 2:05 AM, Luigi Rizzo wrote: > On Wed, Sep 25, 2013 at 10:53 AM, hiren panchasara > wrote: > > > > > > > > On Wed, Sep 25, 2013 at 1:22 AM, Luigi Rizzo wrote: > >> > >> On Wed, Sep 25, 2013 at 10:07 AM, hiren panchasara > >> wrote: > >> > > >> > I am providing line rate traffic (via pkg-gen.c) to my 10gig ix > >> > interface. > >> > > >> > Now on receiving side, is there a way to sub-divide the traffic into > >> > multiple workloads using netmap? > >> > > >> > For example, can I get two 5G flows from 10Gbps traffic? > >> > >> not directly. You'd need to send packets with different addresses that > >> match > >> the way the filters on the NIC (RSS or similar) are programmed. > > > > > > Thanks for quick responses, Liugi. > > > > So, FreeBSD needs PF_RING like thing? Any other way we can do it? > > no, > PF_RING does nothing more than netmap. > Okay. > > the partitioning of traffic into queues is done by the NIC's hardware, > through some filters that i mentioned and are NIC specific. > They are often named RSS (receive side scaling), RFS (receive flow > steering), > Flow Director, and so on. Some NICs compute a hash of various header > fields > and use the result to direct packets to specific queues. Others have > "exact match" filters where you can map certain mac headers to > specific queues, and so on. > Alright. I will investigate more about RSS/RFS for ixgbe. Thanks a bunch, Hiren > > A software demultiplexer that sits on top of a netmap ring > may certainly be useful, but i have not yet designed it. > > > cheers > luigi >