Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2014 23:12:16 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Evandro Nunes <evandronunes12@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: netmap-ipfw on em0 em1
Message-ID:  <20141104221216.GA17502@onelab2.iet.unipi.it>
In-Reply-To: <CAG4HiT5fVCpmJ8uDh4SvVown7-vLCMKJP8-QcaW9LQfpWZEiBA@mail.gmail.com>
References:  <CAG4HiT4KHG%2Bb2um6-p4szWio8qmxN%2BadO5hO9J5UGPmsa%2BZC5g@mail.gmail.com> <CA%2BhQ2%2BhAJZk-Y1Yw2xmHmxSMHpFN_byX94Bq33-th2vrp7q2JA@mail.gmail.com> <CAG4HiT7Mtedoxvc69nEyKp1ZYBidZTBcEKG1L9Mkj_Rqeh4bpA@mail.gmail.com> <CA%2BhQ2%2BjOnHX-x=k5=iZtR3=OWfcFBD8WTD_d_VicicJzPevcSw@mail.gmail.com> <CAG4HiT5fVCpmJ8uDh4SvVown7-vLCMKJP8-QcaW9LQfpWZEiBA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 04, 2014 at 05:44:43PM -0200, Evandro Nunes wrote:
> On Tue, Nov 4, 2014 at 5:26 PM, Luigi Rizzo <rizzo@iet.unipi.it> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141104221216.GA17502>