From owner-freebsd-ipfw@FreeBSD.ORG Sat Mar 3 13:40:37 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 2405816A401 for ; Sat, 3 Mar 2007 13:40:37 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 123F713C461 for ; Sat, 3 Mar 2007 13:40:37 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l23DeZGt078134; Sat, 3 Mar 2007 05:40:35 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l23DeZLa078133; Sat, 3 Mar 2007 05:40:35 -0800 (PST) (envelope-from rizzo) Date: Sat, 3 Mar 2007 05:40:35 -0800 From: Luigi Rizzo To: John Mok Message-ID: <20070303054035.A78010@xorpc.icir.org> References: <45E8D473.5090808@attglobal.net> <20070303025618.B76051@xorpc.icir.org> <45E96725.3050007@attglobal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <45E96725.3050007@attglobal.net>; from jmok@attglobal.net on Sat, Mar 03, 2007 at 08:16:37PM +0800 Cc: freebsd-ipfw@freebsd.org 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 13:40:37 -0000 On Sat, Mar 03, 2007 at 08:16:37PM +0800, John Mok wrote: ... > 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. i am not sure about what you want to achieve (because pipes 110 and 120 are unused in your example). Anyways with WFQ when the total exceeds the available bandwidth, queueing will only occur for those flows exceeding their share, others will keep going with their reserved share. If e.g. you have three flows and want to give them at least 16, 256, 1024 kbps (respectively), you can set a pipe with (16+256+1024)=1296kbps and set three queues with weight 1, 16 and 64 (the weight can be in the range 1..100 i think). cheers luigi