From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id C144321F28D for ; Tue, 17 Mar 2015 14:33:38 -0700 (PDT) Received: by lbcds1 with SMTP id ds1so16813138lbc.3 for ; Tue, 17 Mar 2015 14:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+lfnZrxx3mWbtoupDNcDf1lVdNdtd63qmvn2vuSrzz4=; b=fTXUrzq4M09tArozSVc1Axk5rBQCCeS4PCor11bDWd+D+QK8PeXFKjt87MCx53dE7O 0FemGU5yZWITruLiBUgxMyW9mIzMPpfowy5i8EX9xgn7WVA+sux9XQsUOdzJnaFbfCXO 0KtCJpH6w6mLzoRu0ODEMv/a5HZDi8Bb9oKiGpxv0z+V7Bp4nC4VLSePJgc0N0QIDJi9 pjRit34LPPG/fc7WPbamf0Qfe7fJBmdRoQ0MKLbDF7nqZMhuov+rYAVndfSCuejPKzj/ IrO1Ub0YNh4QIa1KV7L/emgNBTNfLBWCWztRczGhovYI5Xo2LXxIccxSgrOrRKPqvB3Z HZsQ== X-Received: by 10.152.206.70 with SMTP id lm6mr62797945lac.35.1426628016147; Tue, 17 Mar 2015 14:33:36 -0700 (PDT) Received: from [192.168.43.25] (87-93-89-136.bb.dnainternet.fi. [87.93.89.136]) by mx.google.com with ESMTPSA id qw1sm3015298lbb.21.2015.03.17.14.33.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Mar 2015 14:33:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) From: Jonathan Morton In-Reply-To: <1426624485.8558.63.camel@capibara.fcal.uner.edu.ar> Date: Tue, 17 Mar 2015 23:33:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7081A75C-899A-4DB7-8D77-935A37B362D8@gmail.com> <1426624485.8558.63.camel@capibara.fcal.uner.edu.ar> To: "Carlos R. Pasqualini" X-Mailer: Apple Mail (2.2070.6) Cc: cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] The next slice of cake X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2015 21:34:07 -0000 > On 17 Mar, 2015, at 22:34, Carlos R. Pasqualini = wrote: >=20 > would you mind to point me to a repository or download area and some > docs about how to get it working and test it's performance? >=20 > in a (too)fast (and lazy) search at google can't find anything >=20 > Here, i have only 3 DSL links with 3Mbps bandwidth each, for aprox. = 300 > student's computers. That certainly sounds like a situation where cake could help. Dave T=C3=A4ht made patches a few months ago, based on linux-net-next, = which are available here: = http://snapon.lab.bufferbloat.net/~d/codel_patches/new_codels.tgz Those include *two* versions of cake, one of which is configured to use = a different version of the Codel algorithm than the other. The intent = at the time was to compare those two versions against each other, but = they also happen to have the most up-to-date version of cake. It really = has been a while since I=E2=80=99ve been able to work on it. You=E2=80=99ll need to build the kernel with =E2=80=9Csch_cake=E2=80=9D = or =E2=80=9Csch_cake2=E2=80=9D turned on. If you copy over your = existing kernel config and run =E2=80=9Cmake oldconfig=E2=80=9D, you = should get asked about them (as well as other things). You=E2=80=99ll also need a patched version of the iproute2 utilities to = configure cake. Patches here: = http://snapon.lab.bufferbloat.net/~d/codel_patches/iproute_patches.tgz Then it=E2=80=99s as simple as running: # tc qdisc replace dev ethX root cake besteffort bandwidth yyyyKbps atm That will take care of your outbound traffic, if you replace =E2=80=9CethX= =E2=80=9D and =E2=80=9Cyyyy=E2=80=9D with whatever is appropriate (and = =E2=80=9Ccake2=E2=80=9D if you built that version). If you have control = of both ends of the link, then you can do the same thing to handle = inbound traffic. If you only have control of one end of the link, you=E2=80=99ll need to = use ingress shaping to handle inbound traffic. This is a little bit = more complicated to set up (via an Intermediate Functional Block device) = than the usual egress shaping, and has a couple of disadvantages, but it = does work and does help: # ifconfig ifb0 up # tc qdisc replace dev ethX handle ffff: ingress # tc filter add dev ethX parent ffff: protocol all u32 match u32 0 0 = action mirred egress redirect dev ifb0 # tc qdisc replace dev ifb0 root cake besteffort bandwidth zzzzKbps atm Both yyyy and zzzz should be slightly below your actual link rates, to = ensure that cake controls the bottleneck queue. The =E2=80=9Catm=E2=80=9D= flag is there to take account of ATM framing, which ADSL uses. You can = experiment with the precise rates without disrupting existing traffic = flows: # tc -s qdisc (the above is to look up the correct handle figures to use below) # tc qdisc change dev xxxx handle N:M cake bandwidth ... Have fun! - Jonathan Morton