From owner-freebsd-pf@FreeBSD.ORG Sat Mar 22 14:50:39 2008 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 C596A106564A for ; Sat, 22 Mar 2008 14:50:39 +0000 (UTC) (envelope-from multier@mail.ru) Received: from mx4.mail.ru (fallback.mail.ru [194.67.57.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8827A8FC13 for ; Sat, 22 Mar 2008 14:50:39 +0000 (UTC) (envelope-from multier@mail.ru) Received: from mx48.mail.ru (mx48.mail.ru [194.67.23.226]) by mx4.mail.ru (mPOP.Fallback_MX) with ESMTP id 7DC6A10B7603 for ; Sat, 22 Mar 2008 15:56:52 +0300 (MSK) Received: from [91.144.169.137] (port=60500 helo=localhost127.0.0.1) by mx48.mail.ru with asmtp id 1Jd3HH-0006JD-00 for freebsd-pf@freebsd.org; Sat, 22 Mar 2008 15:56:51 +0300 Date: Sat, 22 Mar 2008 18:56:09 +0600 From: PJ X-Mailer: The Bat! (v3.5.30) Professional Organization: Home X-Priority: 3 (Normal) Message-ID: <293896928.20080322185609@mail.ru> To: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: Not detected Subject: altq doesn't work properly X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: PJ 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: Sat, 22 Mar 2008 14:50:39 -0000 First sorry for my English. All required options in kernel are installed. The simple altq testing don't give proper results. The idea: Freebsd server is a gateway, from one net to other i trying to send mpeg video traffic(UDP) from one host of 192.168.10.0/24 net to other host of 192.168.11.0/24 net. In addition, from this net 192.168.10.0, i sending unimportant udp traffic in order to create a "bottle-neck" 10Mbit/s on one of the server NIC's. All traffic going thru "bottle-neck" to host with IP 192.168.11.2 First i tuning prioritization with priq: ext_if="fxp0" altq on $ext_if priq bandwidth 10Mb queue { video, udp, other } queue other priq (default) queue udp priority 2 queue video priority 5 pass out on $ext_if proto udp from 192.168.10.2 to 192.168.11.2 queue video pass out on $ext_if from 192.168.10.3 to 192.168.11.2 queue udp Prioritization does not working properly even when overloading happend. Then i tuning prioritization with cbq: altq on fxp0 cbq bandwidth 10Mb queue { usefull, other } queue other bandwidth 100Kb cbq(default) queue usefull bandwidth 9900Kb priority 2 { video, udp } queue video bandwidth 3000Kb priority 5 queue udp bandwidth 6900Kb priority 1 pass out on $ext_if proto udp from 192.168.10.2 to 192.168.11.2 queue video pass out on $ext_if proto udp from 192.168.10.3 to 192.168.11.2 queue udp same problem... doesn't working. What i'm doing wrong? The System is FreeBSD 6.3