From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lanfw001a.cxnet.dk (lanfw001a.cxnet.dk [87.72.215.196]) by huchra.bufferbloat.net (Postfix) with ESMTP id D45CA20033B for ; Thu, 9 Jun 2011 08:43:57 -0700 (PDT) Received: from [87.72.44.50] (lanvpn001a.cxnet.dk [87.72.215.222]) by lanfw001a.cxnet.dk (Postfix) with ESMTP id 05B63163597; Thu, 9 Jun 2011 18:04:55 +0200 (CEST) From: Jesper Dangaard Brouer To: Eric Dumazet In-Reply-To: <1307537773.3057.17.camel@edumazet-laptop> References: <1307537773.3057.17.camel@edumazet-laptop> Content-Type: text/plain; charset="UTF-8" Organization: ComX Networks A/S Date: Thu, 09 Jun 2011 12:04:09 -0400 Message-ID: <1307635449.20906.320.camel@probook> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: bloat Subject: Re: [Bloat] Notes about hacking on AQMs X-BeenThere: bloat@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list Reply-To: jdb@comx.dk List-Id: General list for discussing Bufferbloat List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2011 15:43:59 -0000 On Wed, 2011-06-08 at 18:41 +0200, Eric Dumazet wrote: > BTW, latest stuff uses DRR & HFSC ;) > > Patrick sample script is here : > http://people.netfilter.org/kaber/shaping I'll add a sample script to the collection: http://people.netfilter.org/hawk/shaper-example/qos-DRR-example I did that script as a consultant task. Its based on HTB + DRR + SFQ. The customer was a large apartment building complex, which wanted to provide fair queue scheduling. The residents could choose between two Internet subscriptions a "small" upto 100Mbit/s shared, and a "big" upto 390 Mbit/s shared. Within each group they achieve fair sharing via DRR. And each DRR subqueue is a SFQ queue to give the person fair sharing between his "own" traffic (or if the hash clash and several users get in the same queue). On Wed, 2011-06-08 at 14:56 +0200, Eric Dumazet wrote: > Hmm, since 2007 SFQ has all ESFQ provided, if you use a flow classifier, > you can exactly match your needs. > > [ SFQ uses an internal flow classifer on > src,dst,proto,proto-src,proto-dst ] > > Say you want to make something only about dst addresses : > > tc filter add ... flow hash \ > keys dst divisor 1024 > > With recent SFQ, you can play with a divisor in [256 .. 65536] > > > Refs : > > http://lwn.net/Articles/236200/ > > http://www.nuclearcat.com/mediawiki/index.php/Linux_iproute2