From owner-freebsd-net@FreeBSD.ORG Mon Feb 10 08:44:09 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 F1525953 for ; Mon, 10 Feb 2014 08:44:09 +0000 (UTC) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0FD7134F for ; Mon, 10 Feb 2014 08:44:09 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id kp14so5941731pab.9 for ; Mon, 10 Feb 2014 00:44:09 -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=lKe33y9QuGppCWTpB7qcMuBC0f89uANT8rTnrspSnwA=; b=A1b2NiDnzUDcOj1DqYA52SbOZ+0kZt1sIqJ8u6I//XD3HqYzTI/E3d2rZY/THoxlve ENQSyKq2shKiEROKs1u1HNeHqDSHXH0nk+HiWUYAWP5qiccPlB4yqg9SoEmYFDdafqLC nhF1LWreMZVkFbwt1GuHmkIhVgbI6j/njPsxGxPs+2ojsQtMQbqM8pfmYO3VdM3R97II rZS0LcJfnxm4GGaCf8w7QydsR7b6Jf8gHK/7EgIyJGOAi5YO8CCdX6OLMueu+qSyAry4 wqwDeq36emzR7KxTIuqBQwOs6twFNjtL5z73U0YhdjXBOmOj7nsGy9EysUjVXw17iTWg 67ng== MIME-Version: 1.0 X-Received: by 10.68.14.130 with SMTP id p2mr36648168pbc.17.1392021849356; Mon, 10 Feb 2014 00:44:09 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.70.6.36 with HTTP; Mon, 10 Feb 2014 00:44:09 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Feb 2014 09:44:09 +0100 X-Google-Sender-Auth: p1xxGmULJhv9kcPNU4Mno5yNvmc Message-ID: Subject: Re: netmap pipes (Re: vnet + netmap: how is it possible?) From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 10 Feb 2014 08:44:10 -0000 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 vnet > > 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? > Netmap pipes have names, so you can dynamically > replace nodes in the graph. > > You can also freely chose how netmap pipes, NICs and > VALE switch ports share memory so depending on how > much you want to decouple the nodes you can do > full zero-copy paths. > > Performance: > you can move up to about 100 Mpps across a pipe, > irrespective of the size (because you move metadata through > the pipe). Latency is that of an IPC (and really depends on > the OS, hw configuration, batch size). > Think something in the range 1..10us. > > NOTE, things become much slower once you start touching > data, but the point is that you can forget about > performance in moving data around and concentrate on > how you want to process things. > > cheers > luigi > > > > > > And I wonder if netmap could help to interconnect these vnets, because I > > can not see a way to do this. May be using netgraph or epair? But any of > > these options are not netmap aware, are they? > > > > Well, the question is in the air! > > > > Thank you all, > > Raimundo > > _______________________________________________ > > 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" > > > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2211611 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > _______________________________________________ > 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" > -- Ermal