From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (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 89CA13B2A0 for ; Sun, 27 Mar 2016 01:31:42 -0400 (EDT) Received: by mail-oi0-x234.google.com with SMTP id d205so137049479oia.0 for ; Sat, 26 Mar 2016 22:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=qUc64MYePa/eunPLlmhujz8vWUKccscQ83O7lcsb75g=; b=crFVNCfUyZ1x9FDN2tXI1aobM4lDS+mJqQN8yD3wKgI3kxnEOxryWUk1rYFoBUuEJ4 wnckbk4Fr3CNm5g2tnP/b5XKdX21KgXJKMx2ZGJ6UD+vzGo/HuJSAIcBTx/nCevN/ru5 I644Mf9cWT+dTC7+Kx5wbtkPdi0ATnPipPk8H7z018leDYTCfOGVlf5blGCK2ALxUCyO teNiRJmlBtZ4SqyAro4flD16QPx0EH5SLmlhx/XIiCASVmK+DQGZb2LaG0vEUh/Lrmu2 LYkSheUpUi7xOgxaU5ALZKodX4tIviXsMJDdAYURachTXHT0HCg7W+yoSo4wBMePKgZl e2Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=qUc64MYePa/eunPLlmhujz8vWUKccscQ83O7lcsb75g=; b=Ux+RWXSMhNRVx22UtR0qHcXmezowrahHFKlUeBsdbPrThtYL38G/hR7WkVV0QYJqbM fA604HVZGtW17TnjQocR/m5pdHXT5C3OwAepXt0sp621rFUGO8jxIIbtIDG0wnRAcnA+ h4dCMBNtmrF/y1POI7qKrqBEvzglw9c876r7b0/+ga3yGhqg1Y/TyMS5fb2i6Inwu4IR CAhwUwIlrR6yVhmkIznH8oB0/xTcvxAfUEKBAUQbMbrTJrMIM3l2QX3cZ0uTluAQBRWX PUjcV0D5ghYnuBBqQaGF11vmjLew8jEGHu/BZFUEB75BXIp67c9iAWWKbo6mikRuXOCq 30wg== X-Gm-Message-State: AD7BkJIB659vQA0QHeYedVaLZkGf8Vmg8TDxFMU/dYVokm2iqTAIu5pTBCYKWsxTbQBld6PrZCMiK3a3pJv5CQ== MIME-Version: 1.0 X-Received: by 10.202.173.146 with SMTP id w140mr9309971oie.118.1459056702121; Sat, 26 Mar 2016 22:31:42 -0700 (PDT) Received: by 10.202.89.130 with HTTP; Sat, 26 Mar 2016 22:31:42 -0700 (PDT) In-Reply-To: <34953EAA-4C76-456E-9B9E-3A73D0DACCDE@gmail.com> References: <34953EAA-4C76-456E-9B9E-3A73D0DACCDE@gmail.com> Date: Sun, 27 Mar 2016 11:01:42 +0530 Message-ID: From: Allan Pinto To: Jonathan Morton Cc: cake@lists.bufferbloat.net Content-Type: multipart/alternative; boundary=001a113ce6cc6fec8e052f011cab 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 05:31:42 -0000 --001a113ce6cc6fec8e052f011cab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Is the cache inside or outside the point where the router is fitted outside.. Cache-Server | internet Gateway ---> L2 switch --> LInux router with cake - - [ pppoe connection ] --> customer >Also, the command shown will apply a limit to *egress* traffic on the given port. If you need to do *ingress* shaping, there=E2=80=99s a differe= nt sequence of commands i have put the ingress commands, i did not mention them as i did not have any need of changes there. On Sun, Mar 27, 2016 at 3:44 AM, Jonathan Morton wrote: > > > On 26 Mar, 2016, at 17:14, Allan Pinto wrote: > > > > I'm experimenting in replacing a mikrotik router with plain linux. by > following the instructions on the cake page, i have setup the following > line in the /etc/ppp/ip-ip script so that the user will be limited to > bandwidth using cake. > > > > /usr/sbin/tc qdisc add dev $pppdev root cake bandwidth ${BURST_DOWN}bit > > > > but i have certain lan traffic available to the customer which should b= e > available at higher speed, for eg. cache traffic and i want to set that > speed to 20mbit default . > > > > if i understand correctly i will have to mark traffic coming in from > that lan source using iptables, can someone guide me how to set bandwidth > only for that source to be higher. > > I=E2=80=99m not certain what your topology is here. Is the cache inside = or > outside the point where the router is fitted, or is it within the router, > or off to the side on a separate port? > > Also, the command shown will apply a limit to *egress* traffic on the > given port. If you need to do *ingress* shaping, there=E2=80=99s a diffe= rent > sequence of commands. > > - Jonathan Morton > > --=20 Thanx and regd's. Allan. --001a113ce6cc6fec8e052f011cab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>=C2=A0Is the cache in= side or outside the point where the router is fitted
=C2=A0outside..

Cache-S= erver
=C2=A0 =C2=A0 =C2= =A0 =C2=A0|
internet Gate= way ---> L2 switch =C2=A0 --> LInux router with cake - - [ pppoe conn= ection ] =C2=A0--> customer



>Also, the= command shown will apply a limit to *egress* traffic on the given port.=C2= =A0 If you need to do *ingress* shaping, there=E2=80=99s a different sequen= ce of commands
i have put= the ingress commands, i did not mention them as i did not have any need of= changes there.
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0


On Sun, = Mar 27, 2016 at 3:44 AM, Jonathan Morton <chromatix99@gmail.com>= ; wrote:

> On 26 Mar, 2016, at 17:14, Allan Pinto <allan316@gmail.com> wrote:
>
> I'm experimenting in replacing a mikrotik router with plain linux.= by following the instructions on the cake page, i have setup the following= line in the /etc/ppp/ip-ip script so that the user will be limited to band= width using cake.
>
> /usr/sbin/tc qdisc add dev $pppdev root cake bandwidth ${BURST_DOWN}bi= t
>
> but i have certain lan traffic available to the customer which should = be available at higher speed, for eg. cache traffic and i want to set that = speed to 20mbit default .
>
> if i understand correctly i will have to mark traffic coming in from t= hat lan source using iptables, can someone guide me how to set bandwidth on= ly for that source to be higher.

I=E2=80=99m not certain what your topology is here.=C2=A0 Is the cac= he inside or outside the point where the router is fitted, or is it within = the router, or off to the side on a separate port?

Also, the command shown will apply a limit to *egress* traffic on the given= port.=C2=A0 If you need to do *ingress* shaping, there=E2=80=99s a differe= nt sequence of commands.

=C2=A0- Jonathan Morton




--
Thanx and regd's.
=
Allan.

--001a113ce6cc6fec8e052f011cab--