From owner-freebsd-pf@FreeBSD.ORG Wed Jan 9 11:37:09 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 3038816A417 for ; Wed, 9 Jan 2008 11:37:09 +0000 (UTC) (envelope-from guntis@rixtel.com) Received: from bute.rixtel.com (bute.rixtel.com [159.148.78.40]) by mx1.freebsd.org (Postfix) with ESMTP id D648213C4CC for ; Wed, 9 Jan 2008 11:37:08 +0000 (UTC) (envelope-from guntis@rixtel.com) Received: from localhost (localhost.rixtel.com [127.0.0.1]) by bute.rixtel.com (Postfix) with ESMTP id 6745D1CC2F for ; Wed, 9 Jan 2008 13:18:19 +0200 (EET) X-Virus-Scanned: amavisd-new at rixtel.com Received: from bute.rixtel.com ([127.0.0.1]) by localhost (bute.rixtel.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k7CKUSZ70Whb for ; Wed, 9 Jan 2008 13:18:16 +0200 (EET) Received: from [192.168.10.105] (localhost.rixtel.com [127.0.0.1]) (Authenticated sender: guntis@rixtel.com) by bute.rixtel.com (Postfix) with ESMTP id D39651CC28 for ; Wed, 9 Jan 2008 13:18:16 +0200 (EET) From: Guntis Bumburs Organization: Rixtel To: freebsd-pf@freebsd.org Date: Wed, 9 Jan 2008 13:18:15 +0200 User-Agent: KMail/1.9.7 References: <2e420cc20711211559r46d374e6n23f75710415cede2@mail.gmail.com> <2e420cc20801081616w7c8c75e5x3091f38a1f59b665@mail.gmail.com> In-Reply-To: <2e420cc20801081616w7c8c75e5x3091f38a1f59b665@mail.gmail.com> X-Face: $dO4505L-bM3\Iz"(=?utf-8?q?V=3Dy=2EbL/75=7B5ys3=3AB=5B-aPBQvs*Z=25fdBqFhvc85hmZN4j1kwRzwvY*?= =?utf-8?q?R=0A=094nvQ/=23/+kWXH?=((aXWh\%mvG1V()Z0k:NwZAIu\S0d1%,nv`^ MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801091318.16041.guntis@rixtel.com> Subject: Re: How to set up a queue for each host in the network? 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, 09 Jan 2008 11:37:09 -0000 On Wednesday 09 January 2008 02:16:43 P Bielecki wrote: > Hi, > Documentation is not clear how many queues you can set up and if it > make sense to create queue for every host in /22 network at all. > pf FAQ doesn't say anything about creating large number of queues and > the way of setting it up. > > I was hoping that configuration with HFSC would solve my issues but it >didn't. > > In altq_cbq.h and altq_hfsc.h it I found > CBQ_MAX_CLASSES 256 > HFSC_MAX_CLASSES 64 > > So, what is the best way to share link in large LAN where users use p2p a >lot? > > -- > Paul > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > Hi, I have seen a lot of similar posts about queues and pf. In PF there is no automagicly creating queues like in IPFW, so there is no other way to do it differently than creating queue for each host. I think that best solution is to use L2 switches where you can set speed limits for each port. Drawback is that you cant set limit less than 1Mbit and borrow from main queue. Good thing is that you can do ARP filtering on same port. In my experience static arp on freebsd is easy to fool. you can change CBQ_MAX_CLASSES to someting bigger but it will limit pf performance -- Best Regards, Guntis