From owner-freebsd-net@FreeBSD.ORG Mon Feb 10 17:28: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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 608FEE28; Mon, 10 Feb 2014 17:28:22 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8FFE1383; Mon, 10 Feb 2014 17:28:21 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id pv20so4982465lab.16 for ; Mon, 10 Feb 2014 09:28:19 -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=7kJS6FmVSPzcfvigS287fEQbIdEAY3z0QPRtkm8I6Rw=; b=x4QyKim/nEkgrTot3Kj3AmgKQruM/uA8pOeEvV3AeG1HsjwLjGGK61HPGHEMqLelQg vOY0PS3PQtCmwTFGviKKQokBsAxtR0UaI/gg16mwpnZrIyv8t+a/JDXKc/q3KImbcMrA uHSBllQDF34krhqxwttRavTygW7T6qV9pJqs4NPaflIfQlR+GtkZt2olZw2XxpQOIC0V fDwe9CaH25cc13paV0Y600+Zfj5UDiupkxf4YkZ3nI2qvJYK/aJAtSzolGiBVBviKKFj Motto3kY+AlWuEzrTCY+W4yjqlHFRBem33vo5Vui1+THRXudDPC3LlKYiE/3gWWVSDWx IKaA== MIME-Version: 1.0 X-Received: by 10.112.56.237 with SMTP id d13mr21967797lbq.2.1392053299631; Mon, 10 Feb 2014 09:28:19 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.115.4.162 with HTTP; Mon, 10 Feb 2014 09:28:19 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Feb 2014 09:28:19 -0800 X-Google-Sender-Auth: KfF7PgtYsPLw2b4XHlrH2RAs2O0 Message-ID: Subject: Re: netmap pipes (Re: vnet + netmap: how is it possible?) From: Luigi Rizzo To: =?ISO-8859-1?Q?Ermal_Lu=E7i?= Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 10 Feb 2014 17:28:22 -0000 On Mon, Feb 10, 2014 at 12:44 AM, Ermal Lu=E7i wrote: > > 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? > 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