From owner-freebsd-current@FreeBSD.ORG Fri Oct 1 13:28:49 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DCA616A4CE for ; Fri, 1 Oct 2004 13:28:49 +0000 (GMT) Received: from green.homeunix.org (pcp04368961pcs.nrockv01.md.comcast.net [69.140.212.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0759343D1F for ; Fri, 1 Oct 2004 13:28:47 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i91DSi9M005218; Fri, 1 Oct 2004 09:28:44 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i91DSiXW005217; Fri, 1 Oct 2004 09:28:44 -0400 (EDT) (envelope-from green) Date: Fri, 1 Oct 2004 09:28:43 -0400 From: Brian Fundakowski Feldman To: "Alexander S. Usov" Message-ID: <20041001132843.GG997@green.homeunix.org> References: <200409272240.00356.A.S.Usov@kvi.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409272240.00356.A.S.Usov@kvi.nl> User-Agent: Mutt/1.5.6i cc: current@freebsd.org Subject: Re: ALTQ/pf troubles X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 13:28:49 -0000 On Mon, Sep 27, 2004 at 10:40:00PM +0200, Alexander S. Usov wrote: > Hello !! > > As a happy owner of the 1120/352Kbit ADSL line and 5.3-BETA6 > I have tried to configure altq as it's described in > /usr/share/examples/pf/ackpri and have hit quite a number of > strange issues with ALTQ. > > So, the system is: > FreeBSD kvip55.lan 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Mon Sep 27 18:40:51 CEST > pf.conf & kernel configs are attached to the mail. > > Just enabling the queueing on the interface with bandwidth == DSL bandwidth > results in the appox. factor of 2 drop in the speed of the outgoing transfers. > >From my experiments I got an impression that to make this slow-down > away I have to specify the bandwith around 700Kb, which is twice bigger than > real. Are you telling ALTQ to process _incoming_ packets? I'm having no problems with ALTQ, using these IPFW rules, for comparison: # We're not classifying this packet if it's not going out dc0. add 30000 allow all from any to any not xmit dc0 # NAT'd egress traffic: add 40000 allow altq natted ip from any to any diverted-output # locally-generated egress traffic: # Interactive SSH. add 51000 allow altq ssh_interactive tcp from any 22 to any iptos lowdelay add 51500 allow altq ssh_interactive tcp from any to any 22 iptos lowdelay # TCP ack w/o data, TCP setup, IPTOS_LOWDELAY, DNS add 52000 allow altq local_fast ip from any to any iptos lowdelay add 52100 allow altq local_fast tcp from any to any setup add 52200 allow altq local_fast ip from any to any tcpflags ack tcpdatalen 0 add 52300 allow altq local_fast udp from any to any 53 # Non-interactive SSH. add 53000 allow altq other_ssh tcp from any 22 to any add 53500 allow altq other_ssh tcp from any to any 22 # default: add 59000 allow altq local_default ip from any to any -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\