From owner-freebsd-ipfw@FreeBSD.ORG Sat Mar 3 12:16:40 2007 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48BCE16A401 for ; Sat, 3 Mar 2007 12:16:40 +0000 (UTC) (envelope-from jmok@attglobal.net) Received: from hanghau.pacific.net.hk (hanghau.pacific.net.hk [202.64.33.147]) by mx1.freebsd.org (Postfix) with ESMTP id BBE2613C49D for ; Sat, 3 Mar 2007 12:16:39 +0000 (UTC) (envelope-from jmok@attglobal.net) Received: from [192.168.16.50] ([210.17.159.154]) by hanghau.pacific.net.hk with ESMTP id l23CGcAo029067 for ; Sat, 3 Mar 2007 20:16:38 +0800 Message-ID: <45E96725.3050007@attglobal.net> Date: Sat, 03 Mar 2007 20:16:37 +0800 From: John Mok User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 CC: freebsd-ipfw@freebsd.org References: <45E8D473.5090808@attglobal.net> <20070303025618.B76051@xorpc.icir.org> In-Reply-To: <20070303025618.B76051@xorpc.icir.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Dummynet cascade of pipes X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2007 12:16:40 -0000 Luigi Rizzo wrote: > On Sat, Mar 03, 2007 at 09:50:43AM +0800, John Mok wrote: >> Hi, >> >> I am new to Dummynet. I would like to setup a FreeBSD QoS box to replace >> the one using Linux IMQ. However, I have the following questions :- >> >> 1. Is it possible to cascade pipes, such that the bandwidth management >> could be easier by hierarchical control rather than flat-out? For instance, >> pipe 100 is the total bandwidth 2Mbps of the serial link to Internet >> pipe 110 cascade pipe 100 with a weight 8Kbps and ceiling 16 Kbps >> pipe 120 cascade pipe 100 with a weight 32Kbps and ceiling 256 Kbps >> pipe 130 cascade pipe 100 with a weight 384Kbps and ceiling 2Mbps >> pipe 140 cascade pipe 100 with a weight 224Kbps and ceiling 2Mbps > > no. hierarchical bandwidth management means inheritance > and this leads to inefficient algorithms. > > WFQ does a decent job in most cases where you would want > inheritance, it's just a slightly different way of modeling things. > Without hierarchical control, would it be possible to make a dummynet model for the example situation to work? If separate pipes are used to set the bandwidth limit :- ipfw pipe 110 config bw 16 Kbps ipfw pipe 120 config bw 256 Kbps ipfw pipe 130 config bw 2048 Kbps ipfw queue 130 config weight 384 pipe 130 .... ipfw queue 140 config weight 224 pipe 130 .... and when the traffic is fully loaded, then the traffic 2320 Kbps (16 + 256+ 2048) will exceed the available bandwidth 2 Mbps and would result in uncontrollable packet drop due to queue overflow. Thank you, John Mok