From owner-freebsd-net@FreeBSD.ORG Tue Feb 11 11:07:01 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 7B223EC7 for ; Tue, 11 Feb 2014 11:07:01 +0000 (UTC) Received: from quix.smartspb.net (quix.smartspb.net [217.119.16.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2DB4C14F7 for ; Tue, 11 Feb 2014 11:07:01 +0000 (UTC) Received: from dyr.smartspb.net ([217.119.16.26] helo=[127.0.0.1]) by quix.smartspb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.61 (FreeBSD)) (envelope-from ) id 1WDBAz-0009KG-37; Tue, 11 Feb 2014 15:06:53 +0400 Message-ID: <52FA0444.3060806@smartspb.net> Date: Tue, 11 Feb 2014 15:06:44 +0400 From: Dennis Yusupoff User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 Subject: Re: netmap pipes (Re: vnet + netmap: how is it possible?) References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 140210-1, 10.02.2014), Outbound message X-Antivirus-Status: Clean 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 11:07:01 -0000 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? 10.02.2014 21:28, Luigi Rizzo пишет: > On Mon, Feb 10, 2014 at 12:44 AM, Ermal Luçi 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 > > _______________________________________________ > 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