From owner-freebsd-pf@FreeBSD.ORG Sat Jan 8 00:27:29 2005 Return-Path: <owner-freebsd-pf@FreeBSD.ORG> Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36DE116A4CE for <freebsd-pf@freebsd.org>; Sat, 8 Jan 2005 00:27:29 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4D2E43D46 for <freebsd-pf@freebsd.org>; Sat, 8 Jan 2005 00:27:28 +0000 (GMT) (envelope-from gofdp-freebsd-pf@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Cn4S0-00089I-00 for <freebsd-pf@freebsd.org>; Sat, 08 Jan 2005 01:27:28 +0100 Received: from ppp-62-245-160-224.mnet-online.de ([62.245.160.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <freebsd-pf@freebsd.org>; Sat, 08 Jan 2005 01:27:28 +0100 Received: from berni by ppp-62-245-160-224.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <freebsd-pf@freebsd.org>; Sat, 08 Jan 2005 01:27:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-pf@freebsd.org From: Bernhard Schmidt <berni@birkenwald.de> Date: Sat, 8 Jan 2005 00:27:23 +0000 (UTC) Lines: 36 Message-ID: <slrnctua7b.bfm.berni@bschmidt.msgid.cybernet-ag.net> References: <slrnctu80f.aet.berni@bschmidt.msgid.cybernet-ag.net> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp-62-245-160-224.mnet-online.de User-Agent: slrn/0.9.8.1 (Linux) Sender: news <news@sea.gmane.org> Subject: Re: Scalability of ALTQ X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) <freebsd-pf.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-pf>, <mailto:freebsd-pf-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-pf> List-Post: <mailto:freebsd-pf@freebsd.org> List-Help: <mailto:freebsd-pf-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-pf>, <mailto:freebsd-pf-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 08 Jan 2005 00:27:29 -0000 Heya, oh well, why do I always think of more questions the second I send my message .... At this point ... > queue cust1 on fxp0 bandwidth 5Mb cbq { cust1_commit } > queue cust1_commit on fxp0 bandwidth priority 2 10Mb cbq(borrow) { cust1_sub1, cust1_sub2 } > queue cust1_sub1 on fxp0 bandwidth 10Mb cbq { cust1_sub1_commit } > queue cust1_sub1_commit on fxp0 priority 2 bandwidth 2Mb cbq(borrow) > queue cust1_sub2 on fxp0 bandwidth 0Mb cbq { cust1_sub2_commit } > queue cust1_sub2_commit on fxp0 priority 2 bandwidth 10Mb cbq(borrow) I made the error specifying the burstable margin for the "burst" queue instead of the whole bandwidth. So pfctl would have kicked me for this. So it should of course be queue cust1 on fxp0 bandwidth 15Mb cbq { cust1_commit } queue cust1_commit on fxp0 bandwidth priority 2 10Mb cbq(borrow) \ { cust1_sub1, cust1_sub2 } queue cust1_sub1 on fxp0 bandwidth 12Mb cbq { cust1_sub1_commit } queue cust1_sub1 on fxp0 bandwidth 2Mb cbq(borrow) which would kill me, too, since the sum of the child bandwidths (the burstables) might very well be larger than the parent's bandwidth. So I guess cbq is a dead end here. Another thing quite interesting for me would be the queueing inside a queue. Is it just FIFO or is there a way to allow fair bandwidth distribution even with misbehaving sessions in it (think of a 50Mbps UDP DOS which would probably kill all other communications in a queue). Thanks again Bernhard