From owner-freebsd-net@FreeBSD.ORG Tue Feb 11 13:51:38 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 385C9E55 for ; Tue, 11 Feb 2014 13:51:38 +0000 (UTC) Received: from mail-pd0-x22d.google.com (mail-pd0-x22d.google.com [IPv6:2607:f8b0:400e:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 068E514F6 for ; Tue, 11 Feb 2014 13:51:38 +0000 (UTC) Received: by mail-pd0-f173.google.com with SMTP id y10so7531633pdj.32 for ; Tue, 11 Feb 2014 05:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=4Rm7GLmgUKDo8TZm/Er8fNT/B2y1rd8tKSQgkiGvIK8=; b=Tamu6EfqOxocq8M/xxKmasavYVHWZNhwFc9GssQkA4+JZekq4BXSFjyhKrm/I828+F Id0rGOCQXvP3ULSrVklNMemwygl89AI1NmQdDHcs4AA8+oUXvZhqy7ohD0mN+8LNTY46 vR/uGHhvFUJ7Dbuv2j1syq6xz2Bsn3tQXEcHsw6Ol6Dkj2LvOdC1pmkH3R/oGtnnRpHD HjKfEHfZYob+/C/F2oiLDwxOZRyCArj3PAtaSeO/EzXmFmggO6DMFR9cZvumS24U3+Se A1evFbv8J72mYxbDMSflEGtgdZ+DXF++6TFWiF1QU6rzqAKcpXmUVOi+FcF9IE9JkGpq O2xw== MIME-Version: 1.0 X-Received: by 10.68.202.8 with SMTP id ke8mr44882372pbc.86.1392126697094; Tue, 11 Feb 2014 05:51:37 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.70.6.36 with HTTP; Tue, 11 Feb 2014 05:51:37 -0800 (PST) In-Reply-To: <52FA0444.3060806@smartspb.net> References: <52FA0444.3060806@smartspb.net> Date: Tue, 11 Feb 2014 14:51:37 +0100 X-Google-Sender-Auth: nQdnCz3MMsHJROiM4qxdjXXc-t0 Message-ID: Subject: Re: netmap pipes (Re: vnet + netmap: how is it possible?) From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: Dennis Yusupoff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-net@freebsd.org" , Raimundo Santos X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 13:51:38 -0000 On Tue, Feb 11, 2014 at 12:06 PM, Dennis Yusupoff wrote: > Luigi, it will be really brilliant if you would be kind to show more > examples of use netmap with pipes, netgraph modules (for example, > ng_netflow) and so on, because many of network engineers use FreeBSD > without as strong programming skills as you have. At least I'm the one > of they. ;) > > BTW, Ermal, are the any chances to see you patches for work dummynet in > the PF? > > I will try to push them soon as they are validated for newer pf in HEAD/10.= * > 10.02.2014 21:28, Luigi Rizzo =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Mon, Feb 10, 2014 at 12:44 AM, Ermal Lu=C3=A7i wro= te: > > > >> Hello Luigi, > >> > >> On Mon, Feb 10, 2014 at 2:14 AM, Luigi Rizzo > wrote: > >> > >>> On Sun, Feb 9, 2014 at 4:21 PM, Raimundo Santos > >>> wrote: > >>> > >>>> Hello list! > >>>> > >>>> I am willing to test an idea: modularize network functions using vne= t > >>>> jails. One vnet jail do the NAT, other do balancing, another one the > >>>> traffic shapping, and so on. > >>>> > >>> For these low level packet processing functions, jails are overkill. > >>> > >>> The upcoming version of netmap has "netmap pipes", > >>> pairs of netmap ports connected back to back and sharing memory, > >>> with blocking I/O through select/poll/epoll (and we are looking > >>> at supporting kqueue). > >>> > >>> You can use netmap pipes to build a graph of processes (nodes) > >>> which apply the desired transformations to your traffic. > >>> Nodes can be anything that speaks netmap (or libpcap), > >>> including your custom C code, Click instances, or whatever > >>> you like. > >>> > >>> > >> Is this netgraph overlayed over netmap or is something rewritten from > >> scratch? > >> > > nothing to do with netgraph, this is "simply" an > > extension of the netmap module. Also note this > > only provides the interconnection, you still have > > to build the processing modules. > > > > cheers > > luigi > > > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > > > -- > Best regards, > Dennis Yusupoff, > network engineer of > Smart-Telecom ISP > Russia, Saint-Petersburg > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > --=20 Ermal