From owner-freebsd-net Tue Dec 17 8:58:24 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F08A437B401 for ; Tue, 17 Dec 2002 08:58:21 -0800 (PST) Received: from smtp.potato.hokkai.net (smtp.potato.hokkai.net [202.232.47.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id D28BF43EDC for ; Tue, 17 Dec 2002 08:58:20 -0800 (PST) (envelope-from taka@wide.ad.jp) Received: from vc.potato (vc.potato.hokkai.net [202.232.47.3]) by smtp.potato.hokkai.net (8.11.6/3.7W) with ESMTP id gBHGw4V09792 for ; Wed, 18 Dec 2002 01:58:04 +0900 Received: from potato2.hokkai.net (IDENT:root@potato2.hokkai.net [202.232.47.12]) by vc.potato.hokkai.net (8.11.6/3.7W) with ESMTP id gBHGw4G06388 for ; Wed, 18 Dec 2002 01:58:04 +0900 Received: from wide.ad.jp (catv247-197.lan-do.ne.jp [202.32.247.197]) by potato2.hokkai.net (8.9.3+3.2W/3.7W) with ESMTP id BAA22966 for ; Wed, 18 Dec 2002 01:58:09 +0900 Message-ID: <3DFF57F1.AA2E7CD9@wide.ad.jp> Date: Wed, 18 Dec 2002 01:59:29 +0900 From: Takashi Okumura Organization: Asahikawa Medical College X-Mailer: Mozilla 4.06 [ja] (Win95; I) MIME-Version: 1.0 To: freebsd-net Subject: [Netnice version 2 (For FreeBSD 4.7)] Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear Hackers, i would like to introduce my traffic control package for FreeBSD 4.7, netnice version 2, and recruit some alpha testers. ============================================================ Netnice Version 2: Alpha Release (Dec 10, 2002) ============================================================ Netnice is a traffic management package for FreeBSD. It comes with useful traffic control applications; o Bandwidth control of running network applications: netnice % ps -aux | grep netscape taka 1234 ... snip ... 9:14AM 0:00.10 netscape % netnice 1234 1024Kbps o Easy specification of network I/O at startup: sh $ ftp ftp.freebsd.org @512Kbps o Bandwidth specification in /etc/inetd.conf: inetd % cat /etc/inetd.conf ftp stream nowait ...snip... @ 512Kbps telnetd stream nowait ...snip... @ 64Kbps o Network QoS daemon with flexible scripting feature: netniced % netniced -d * Overview * In FreeBSD community, we already have some implementations for traffic control. Most of them have parallel queues in network subsystem of the operating system, and basically, follow traditional traffic control model where we configure queue parameters and packet classification rules. Netnice differs from them in that it utilizes a new traffic control primitive, Virtual network interface (VIF). Traffic control with a VIF works as follows. First, we create a VIF connected to an existing physical network interface. Then, we set parameters of the VIF, such as bandwidth and priority. Lastly, we attach it to network I/O of target process, or sockets. * Features * The primitive has following notable features. The attached virtual network interface will be inherited to its child processes, and thus, the network resource would be protected from excess use. Virtual network interfaces can be hierarchically structured, and attachable to sockets and process groups, as well as to process network I/O. This model provides flexible control granularity. The virtual network interface has various parameters, such as bandwidth, queuing discipline, weight and priority. Hence, users can enjoy various traffic control service, such as software packet shaping and premium service, in a single framework. Lastly, we note that the virtual network interfaces are accessible as files, under /proc/network, and thus, any programming environment with file access API can make use of the primitive. * Needs alpha testers!! * If you got interested in the implementation, please join the alpha testing, working towards beta-version release in near future. If there were requests for for an Apache module to control Web traffic, i think i can provide an experimental version shortly. Detailed information, documents, and the package is available at the project homepage. Project Homepage http://www.netnice.org thanks! -- taka To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message