From owner-freebsd-pf@FreeBSD.ORG Wed Mar 18 19:46:10 2009 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C689410656BC for ; Wed, 18 Mar 2009 19:46:10 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with SMTP id 4A5F88FC0A for ; Wed, 18 Mar 2009 19:46:10 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: (qmail 36927 invoked from network); 18 Mar 2009 19:19:28 -0000 Received: from poshta.pknet.net (HELO pop.pknet.net) (216.241.167.213) by poshta.pknet.net with SMTP; 18 Mar 2009 19:19:28 -0000 Received: from 216.241.167.212 (SquirrelMail authenticated user fbsdq@peterk.org) by webmail.pknet.net with HTTP; Wed, 18 Mar 2009 13:19:28 -0600 (MDT) Message-ID: <60287.216.241.167.212.1237403968.squirrel@webmail.pknet.net> Date: Wed, 18 Mar 2009 13:19:28 -0600 (MDT) From: "Peter" To: freebsd-pf@freebsd.org User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: pf + altq + cbq(borrow) not borrowing from parent... X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2009 19:46:11 -0000 iH, Can't figure this out - seems as if others are having the same issue searching online: The queues will not borrow from parent. pf.conf [cut and snipped] altq on fxp0 cbq bandwidth 100Mb qlimit 500 queue {intranet, extranet} queue extranet bandwidth 876Kb { poshta,abakan,usrx11,imvas } queue poshta bandwidth 34% priority 7 cbq(borrow) queue abakan bandwidth 22% priority 2 cbq(borrow) queue usrx11 bandwidth 22% priority 1 cbq(borrow) queue imvas bandwidth 22% priority 1 cbq(borrow) queue intranet bandwidth 90Mb cbq(default) pass in quick proto tcp from any to $poshta_ip port {http} keep state queue poshta pass in quick proto tcp from 172.20.1.13/24 to $poshta_intranet_ip keep state queue intranet On fxp0 I have both internal address and several external addresses. Doing an http get on a large file internally = fast Although all other IPs are not in use, doing the same http get via external address, max transfer rate I get is ~37KB If I change that line from 'queue poshta' to 'queue intranet' the same http get goes at ~100KB - So I'm sure it's that one line causing the slowness. So, it seems that the queue is not borrowing from the parent. I've changed all other queues from 22% to 12% [leaving poshta at 34%], my http is still not going faster than ~37KB. Does cbq(borrow) work as advertised? borrow - the queue can borrow bandwidth from its parent. This can only be specified when using the cbq scheduler. With only one NIC, I'm trying to always guarantee the intranet high speed, and the external IPs prioritized - With no ability to nest with priq, can't use that. Whats a good way to dynamically prioritize/queue traffic based on IP? Anyone done this successfully with pf, altq, cbq(borrow)? ]Peter[