From owner-freebsd-net@FreeBSD.ORG Wed Nov 5 16:14:22 2014 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44D0E444 for ; Wed, 5 Nov 2014 16:14:22 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC9F4147 for ; Wed, 5 Nov 2014 16:14:21 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id a1so1288179wgh.6 for ; Wed, 05 Nov 2014 08:14:20 -0800 (PST) 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=xkz3AA8+U4GsM3K4UqtBuOM4mQroKJXJeatVa6zLBRk=; b=ThCZ6yRZBggUXtaARekqHaJbyvcAwjkRCqGZgWBqQ9znDNGWMFBIthXo7gHKT14mtR Jntena8rBM4E8u7brl5rRUIZ7L6aeAA+p5i5MGUidT657NbVYQcA9dS3x2//h4sFbVSd j/Y5L8Yv05jPfk9dGpq2fABRPbGs+6lt3ttFNhpm4EiGoA18vQ9hN/StfhwB0k1RB2kE ts5smH3N/43Pk5ZKRXmC/C6PLesSpItcDN0VHGN6BliGlckOeFx6v5JR5HTPpkclThs9 SgJQojGiWPmoMZ/o6QDS5jNapY5koGGKnNdTlFeqNQogY7je5+B2645V5mweEIDKMA10 PmZA== MIME-Version: 1.0 X-Received: by 10.194.206.36 with SMTP id ll4mr66590122wjc.21.1415204060057; Wed, 05 Nov 2014 08:14:20 -0800 (PST) Received: by 10.217.92.7 with HTTP; Wed, 5 Nov 2014 08:14:19 -0800 (PST) In-Reply-To: <20141104221216.GA17502@onelab2.iet.unipi.it> References: <20141104221216.GA17502@onelab2.iet.unipi.it> Date: Wed, 5 Nov 2014 14:14:19 -0200 Message-ID: Subject: Re: netmap-ipfw on em0 em1 From: Evandro Nunes To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Nov 2014 16:14:22 -0000 On Tue, Nov 4, 2014 at 8:12 PM, Luigi Rizzo wrote: > On Tue, Nov 04, 2014 at 05:44:43PM -0200, Evandro Nunes wrote: > > On Tue, Nov 4, 2014 at 5:26 PM, Luigi Rizzo wrote: > ... > > >> i gues I am missing a piece of the architecture... > > >> > > > > > > ???probably yes :) > > > > > > kipfw em1 em2 connects the two interfaces to each other, keeping the > > > rest ??? > > > > > > ???of the host stack completely out of the game. > > > > > > > got it > > uhmmm... probably not, see below: > > > however it's still not counting any packets coming in or out of the > > interfaces > > > > > > > ???I am not sure where you are running pkt-gen (is it on a separate > > > machine ?) and what the 'em1' used in ??? > > > ??? > > > ???pkt-gen is connected to. > > > > > > > > > I am running one pkt-gen in TX mode on the same machine, and another one > in > > RX mode in a separate machine, but this is just for reference, to make > sure > > packets are actually getting transmitted, and it is... > > you cannot run two netmap clients on the same NIC at the same time > (unless you know how to do that, and avoid they stomp on each other). > > In this particular case it means that you should test things as follows > > machine A: pkt-gen -i em1 -f tx ... > > machine B kipfw em1 em2 > > machine C pkt-gen -i em3 -f rx > > And the connection between the ports is the following > > [A em1] <--> [em1 B em2] <--> [em3 C] > > cheers > luigi > ok this scenario will take a bit more time to create, Ill do it today so there is no way to filter a traffic generated by the same box, at least not right now, correct? one more thing, in this scenario you draw, should netmap-ipfw also filter host traffic? I mean, machine A pinging machine C instead of generating netmap-away traffic should be just like the same, right? thank you very much again