From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 81CCD3B2A0 for ; Sun, 27 Mar 2016 03:35:25 -0400 (EDT) Received: by mail-lf0-x22b.google.com with SMTP id c62so73130096lfc.1 for ; Sun, 27 Mar 2016 00:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iLxMtoN+nft4cRuOeACA+JcwFHehRMtRpW0203Oh6Vs=; b=tFWVMCbSE9EmnMoNUNoaKlnMHn1WASOaDxdcKfHTrCA9uKL7UYgdGkql5hR3UD2wqO ikKMSvgkaBqroIQfvtJFS+mDHGBpYm/2Dwy2nGRNPi227U4OXGt2NzEP7TH0zmRROz26 2xLKODlxfdMpBfv39XEluV7VjKgHyjRreLH462waYm9aF2vpaPH/mO7FLdGeFrczw/2H 7zYCdupCqYTKwhyoQPl9ILLAad8xztCb/AGfjytfv4NZXmJ1SR9Vgszf93nB+oTc49L/ qBZpToy181eAhCxaRNWDJ1bPnV5XeDq2T1oJB+Fty54DNM5gpz0pyWTuZDi94btB+HgY QVUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iLxMtoN+nft4cRuOeACA+JcwFHehRMtRpW0203Oh6Vs=; b=RQ8EUJVP4akSRmFgmXS2vps+kw+FFjGTrLRE9B9ozgO0GFyejPz7ffNnorRMmKr4bz NQevlYORtY6wYX7mo5IKP3+3EbbKwlkuKQTKG0eqzDxqv21oOlGcfge2SXIE9qYgPYXi sLgvRzSVzeYvmDFLXxS9AqCgIdM2zZUJ6jWzRwZdRvrkHwwfUcTHv5i0r/8BT9ONaDGP ocj25F6AGOGOm5y+3rNsbGZObW4FNXZPcPMnuw7kq6Z7gZtAFsRwLZ32Nj4JeG3InXVH ghec/9BtHeQR7B0MVjIGZ7w8Rft14+CR4AkTMEmNkSYnyw4MgzfRBU16dnaYBqiTZ2xe Jt2g== X-Gm-Message-State: AD7BkJKlrSeZbxyf4F2UDn5mDQfxcuxZJOK8SfN80iO2EOIIA0opLXNiSlgrZzSSDA7fBA== X-Received: by 10.25.153.15 with SMTP id b15mr8278450lfe.136.1459064123763; Sun, 27 Mar 2016 00:35:23 -0700 (PDT) Received: from bass.home.chromatix.fi (37-33-67-252.bb.dnainternet.fi. [37.33.67.252]) by smtp.gmail.com with ESMTPSA id s5sm3345022lbr.12.2016.03.27.00.35.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2016 00:35:23 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) From: Jonathan Morton In-Reply-To: Date: Sun, 27 Mar 2016 10:35:18 +0300 Cc: cake@lists.bufferbloat.net Content-Transfer-Encoding: quoted-printable Message-Id: <855E3354-30E6-4658-AF38-A0C1E92085CE@gmail.com> References: <34953EAA-4C76-456E-9B9E-3A73D0DACCDE@gmail.com> To: Allan Pinto X-Mailer: Apple Mail (2.3112) Subject: Re: [Cake] cake separate qos for lan X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2016 07:35:25 -0000 > On 27 Mar, 2016, at 08:31, Allan Pinto wrote: >=20 > Cache-Server > | > internet Gateway ---> L2 switch --> LInux router with cake - - [ = pppoe connection ] --> customer Aha - that is a different topology than we usually assume. So the = egress side of the port is the right one to consider. It=E2=80=99s nice = to see Cake being considered for the provider's side of the link. Interesting. Cake doesn=E2=80=99t have its own facilities to do the sort of specific = discrimination you want. All the mechanisms it has are geared to = sharing a fixed capacity as equitably as is feasible. So you will need = to divide the traffic using some other mechanism, and pass it through = two separate instances of Cake. Ideally you want one instance set for the capacity of the physical link, = with all traffic passing through it, and the second instance set for the = allocation for non-cache traffic, with the cache traffic bypassing it. = The customer will then get full link capacity when accessing the cache = and nothing else, and latency will still be controlled well with a = complex mix of traffic. I recommend you use the IMQ mechanism = (http://lartc.org/howto/lartc.imq.html) to achieve the ideal = configuration above: ip link set imq0 up tc qdisc replace dev ppp0 root handle 1: cake pppoe-vcmux bandwidth = $FULL_RATE triple-isolate tc qdisc replace dev imq0 root handle 2: cake raw bandwidth = $NONCACHE_RATE flows iptables -t mangle -A PREROUTING -o ppp0 -s $CACHE_IP -j IMQ =E2=80=94tode= v 0 That reminds me - we need to update the documentation to properly = describe the overhead and triple-isolation keywords. You might need a = different overhead setting than =E2=80=9Cpppoe-vcmux=E2=80=9D depending = on the details of your link. - Jonathan Morton