From owner-freebsd-questions@FreeBSD.ORG Wed Apr 2 08:54:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27196106564A for ; Wed, 2 Apr 2008 08:54:59 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id C3B548FC31 for ; Wed, 2 Apr 2008 08:54:58 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDSK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id m328suD3023950; Wed, 2 Apr 2008 01:54:58 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , Date: Wed, 2 Apr 2008 00:55:58 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 In-Reply-To: <20080402032721.62016mpa11vodpc0@mail.top-consulting.net> Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Wed, 02 Apr 2008 01:54:58 -0700 (PDT) Cc: Subject: RE: FreeBSD Traffic Shaping 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, 02 Apr 2008 08:54:59 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of > freebsd@top-consulting.net > Sent: Tuesday, April 01, 2008 11:27 PM > To: freebsd-questions@freebsd.org > Subject: RE: FreeBSD Traffic Shaping > > > I gave port 80 as an example but I need this configuration for > limiting other services as well. > > If you have a 100mbps connection and only one client, you want him to > only use 50kbps, not the full pipe. If you have 200 clients, they > still get 50kbps each. > > Is this feature that I need so complicated that it can't be > implemented easily into FreeBSD or is it that not many people need it > ? It sounds quite useful to me :) > It isn't that it's complicated or cannot be implemented easily. It is that it's impossible to limit INCOMING bandwidth from the Internet. The vast majority of people out there have asymmetrical bandwidth limiting needs - that is, they have a pipe to the Internet and have a lot more data coming from the Internet to them, than data going from them to the Internet. Their desire is to somehow make it so that certain kinds of incoming data meeting certain criteria are limited. Their problem is that since they don't have control of the end sending the data to them, they can't do this. The fewer number of people not in this boat are quite often looking to run bandwidth restrictions on private T1s - and the routers needed for these kinds of circuits usually have limiting code built in. Since they have control of both ends of the pipe they can use the limit code. And the people not falling into these groups are mostly website hosters looking to restrict outbound bandwidth - and for that, they use an apache mod file (bandwidth_mod, http://www.ivn.cl/apache/ for example) that works much better. In short, the bandwidth limiting code really has little practical value when implemented in FreeBSD that is why few do it. Ted