From owner-freebsd-questions@FreeBSD.ORG Wed Jun 14 13:13:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22BE416A41A for ; Wed, 14 Jun 2006 13:13:11 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBC2243D45 for ; Wed, 14 Jun 2006 13:13:10 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 2D5C4D6B8A3 for ; Wed, 14 Jun 2006 09:13:07 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by frontend3.internal (MEProxy); Wed, 14 Jun 2006 09:13:10 -0400 X-Sasl-enc: KBhyEjlFlBt8kwSTyDGtRMmX+as2v2WjFvEtE3ys4tgq 1150290789 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id DE7681039 for ; Wed, 14 Jun 2006 09:13:09 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Wed, 14 Jun 2006 14:13:01 +0100 User-Agent: KMail/1.9.3 References: <448FC70A.3050801@locolomo.org> In-Reply-To: <448FC70A.3050801@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606141413.04079.list-freebsd-2004@morbius.sent.com> Subject: Re: Queueing with pf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 13:13:11 -0000 On Wednesday 14 June 2006 09:21, Erik Norgaard wrote: > Now, reading the PF manual, queueing only makes sense on traffic going > out. Once packets are received there's no point in holding them back. > This means that packets from the Internet to some wlan host have > consumed their part of the 2Mbps available so there is no point in > holding them back. > > In other words, it seems I need to queue the packets from the wlan to > the Internet such as to get the desired result on both upstream and > downstream. Any ideas on how to do that? > > I think I need a better picture of how much goes in each direction for > the different protocols, ie. p2p down ~= up, while http down ~= 4*up? Do > any one have some thumb rules for this? If you are aiming to control downloads via upload limiting then forget it. A 2Mbps tcp download can be sustained by just a handfull of tiny packets per second upsteam. Some p2p networks give a download advantage to uploaders, but it's typically a kind of long-term karma rather than a definate relationship. > Secondly: Is it possible to differentiate scp/sftp and ssh such that the > later goes in the critical queue while the former goes in the noncritical? This is covered, to some extent, on the OpenBSD site.