From owner-freebsd-net@FreeBSD.ORG Sun Oct 1 18:17:31 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 293D916A412 for ; Sun, 1 Oct 2006 18:17:31 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE4F43D49 for ; Sun, 1 Oct 2006 18:17:29 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1415632nfc for ; Sun, 01 Oct 2006 11:17:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:mail-followup-to:mime-version:content-type:content-disposition; b=ktbeudcoovbBQ5JPC+RrjhuOum5EGqutt26eLE7hCy3Ygy/XSXoOyfE0lyn9rMRcWmRfHHW/oGHrPauYupZ9ETjWQBtPWSFblEL+ne2PbK6ZkT4gGYBQQjIBdWHcN/L0izWpBE464/DTO/JAH4F0OLgmbpteXFuvRMjOPIEb+k4= Received: by 10.49.80.12 with SMTP id h12mr8321245nfl; Sun, 01 Oct 2006 11:17:28 -0700 (PDT) Received: from roadrunner.q.local ( [85.180.169.18]) by mx.gmail.com with ESMTP id a23sm13099738nfc.2006.10.01.11.17.27; Sun, 01 Oct 2006 11:17:28 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.8/8.13.6) with ESMTP id k91IHM2u009202; Sun, 1 Oct 2006 20:17:22 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.8/8.13.6/Submit) id k91IHLjU009201; Sun, 1 Oct 2006 20:17:21 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sun, 1 Oct 2006 20:17:21 +0200 From: Ulrich Spoerlein To: stable@freebsd.org Message-ID: <20061001181720.GD1365@roadrunner.q.local> Mail-Followup-To: stable@freebsd.org, net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: net@freebsd.org Subject: altq on tun0: queueing works, prioritization not? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stable@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2006 18:17:31 -0000 Hello all, I tried to set up TCP ACK prioritization with pf/altq as has been described on various places of the internet. It doesn't work as expected. I have a 16Mb/1Mb DSL link, the modem is connected to a dc(4) device, I'm working with the tun0 device for my firewall rules. Here they are: ext_if="tun0" scrub in all altq on tun0 priq bandwidth 400Kb queue { std, http, ssh, dns, tcp_ack } queue std priority 1 priq(default) queue tcp_ack priority 6 pass out on $ext_if proto tcp from any to any queue(std, tcp_ack) Please note that I tried various bandwidth settings, for testing purposes I set it to a very very low 400kb. When downloading from ftp.de.freebsd.org, I'm able to achieve roughly 950kB/s. If I then start an FTP upload (which will reach some 42kB/s, so the 400kb bandwidth is in effect), the interface throughput drops down to a mere 120kB/s. The 400kb limit should also be low enough, as I'm able to upload to that same ftp with up to 100kB/s if I turn off queueing. This is definitely not what I would expect. Where is my error? Ulrich Spoerlein -- A: Yes. >Q: Are you sure? > >A: Because it reverses the logical flow of conversation. > >>Q: Why is top posting frowned upon?