From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 63C0B3B2A4 for ; Fri, 21 Apr 2017 09:27:02 -0400 (EDT) Received: by mail-wm0-x22e.google.com with SMTP id w64so15883407wma.0 for ; Fri, 21 Apr 2017 06:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Y/kd1z2DaYINDVLpAAfWnL62fmBws35YQxJfsc6dh2s=; b=D1z4SLFi6G/1G+nu5/03VS8s28IiatDysCKi4k3flWu6csvK0gFJB/Dscb3B0HGNHp zCKK5Hc/i6FoSjPFyiAafJhD0MikcINTWSyzFDEg7csEUuiQu1Tl9FUyUOFFpLpflZMK oQ683FQj66U6LGLzwItSXi+znIRnRnTrfLR0sMQUOQcJefKLiJq585eeK1DqBe79wmtv FJAF3em57IlUfscXRY/8zu+DGaMje0MbtK+8P6oboEjJtOW39x5bez7dB0odGKvlTg6I BwB9J9dta7d/E+9HAhEIomOvZN6jwDDCb5wKf7BBoAA/NUOT0ltAXekPO+gMx7MY1sEs 16jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y/kd1z2DaYINDVLpAAfWnL62fmBws35YQxJfsc6dh2s=; b=ssGVyljoVqWwbPHaYTnDApUPmhlhhaTGBik1yIZumucToRkPS2mUdlj7152gE5K9H/ GCF6tPqi46OH/LGPW6UVaAK6Qa/fJfriuNEj6wF9o5A3+0NpB7Qp9aJHQI75CVCvXTMq 91FlVjtPNPwzKH3hrEGKSO7BahkBajlmhJqqqQAdvKCoJu4X5MPwvwaH2TLAlZXAqKDx 5pbcyEZROmrqPV8PxziMV9tkO1L/Hrph3hNOGn3ERLPdn59MfZDvbbhxM0vbftCGsBFn 8ErHxFD/bHfTA6vdpbtk+H5jAqwNCv/Ogym2W/voLvtTQKdHNdIm7tzLh+zUa9RvT1T/ 6gjw== X-Gm-Message-State: AN3rC/4QD8BgAVcTni5b39jEEKqIf/PSiySOgecX7JZqq8NwMFeugxI6 k9srQP+C8cHYCc56I1kn8yTVKaV4Wg== X-Received: by 10.28.225.212 with SMTP id y203mr8281201wmg.62.1492781221280; Fri, 21 Apr 2017 06:27:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.169.59 with HTTP; Fri, 21 Apr 2017 06:27:00 -0700 (PDT) In-Reply-To: References: <05C0B0C7-4337-4115-AC6B-DA81392FCB34@gmail.com> <22E633CF-5EE0-4B0F-89A8-B790E730FB6C@gmx.de> From: Dendari Marini Date: Fri, 21 Apr 2017 15:27:00 +0200 Message-ID: To: Sebastian Moeller Cc: Jonathan Morton , cake@lists.bufferbloat.net Content-Type: multipart/alternative; boundary=001a114b10be6c101c054dad366e Subject: Re: [Cake] Getting Cake to work better with Steam and similar applications 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: Fri, 21 Apr 2017 13:27:02 -0000 --001a114b10be6c101c054dad366e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I have an update. The download test (PC1 downloading Steam game, PC2 downloading a file) seems to work fine now, even while using higher bandwidth value. So that seems resolved, probably the interface change was the fix. Now about the gaming test (PC1 downloading Steam game, PC2 online gaming), this is the one I'm mostly looking forward to fix and the main reason I bought the ER-X. Unfortunately Cake doesn't seem to do much in this case, specifically I'm still getting high latency spikes and packet loss on PC2. One weird thing: starting a download on PC2 will decrease the lantecy/p.loss issues, not sure if it's because of the Steam speed being halved on PC1 or something else. On 21 April 2017 at 10:34, Dendari Marini wrote: > Hello, thanks for all of your replies. > > First of all, my connection encapsulation should be ATM LLC and it can > actually reach up to 17.5/1 Mbps, but that's kinda best case scenario whi= ch > is why I wanted to play it safe with just 16/.9 (which I should reach mor= e > consistently). > > Back to the Steam issue. Unfortunately I can't seem to get really > consistent results, mainly because sometimes it's downloading the game fr= om > just a few connections and other times it's downloading from dozens and > dozens connections. The latter is the one giving me more issues both in > terms of latency/packet loss and in terms of evenly splitting the bandwid= th > across the hosts. > > One thing that seems to give better results is changing the interface > where Cake is used from eth0 to pppoe0. When I used fq_codel it seemed to > give better results when using eth0 and so I went ahead and did the same > with Cake. > > Anyway more testing needed, will report if I notice any consistent result= . > > By the way this is the thread I opened on the Ubiquiti forums talking > about this issue (not sure if it can give you some more info): > https://community.ubnt.com/t5/EdgeMAX/Smart-Queue-seemingly- > not-working-for-Steam-downloads/td-p/1890405 > Also the thread where I got Cake for the ER-X from: > https://community.ubnt.com/t5/EdgeMAX/Cake-and-FQ-PIE-compiled-for-the- > EdgeRouter-devices/td-p/1679844 > > On 20 April 2017 at 20:36, Sebastian Moeller wrote: > >> >> > On Apr 20, 2017, at 18:05, Dendari Marini wrote: >> > >> > Hello, thanks for your reply. >> > >> > Looks like most of your options are okay, including the correct =E2=80= =9Cdual=E2=80=9D >> modes and =E2=80=9Cingress=E2=80=9D mode in the right place. However, I= think you need to >> adjust your bandwidth and overhead settings, otherwise Cake isn=E2=80=99= t reliably >> in control of the bottleneck queues. Try these to begin with: >> > >> > =E2=80=A6 bandwidth 850Kbit conservative dual-srchost nat >> > >> > =E2=80=A6 bandwidth 15Mbit conservative dual-dsthost nat ingress >> > >> > That should give you correct operation, and you can fine-tune from >> there. >> > >> > Just did quick test with your settings. First thing I noticed is my >> final download bandwidth is about 12Mbps, Steam on PC1 downloads at >> 1.4-1.5MB/s while downloading a file on PC2 seems to max out at ~250KB/s= . >> From my understanding I should see each PC download at ~700KB/s, or am I >> mistaken? >> >> Assuming you measured good put in [M|K]iBytes this adds up to 1.5+0.25 = =3D >> 1.75 * 1024^2 * 8 =3D 14680064 Bits or (1.4+0.25) * 8 *1024^2 / 1000^2 = =3D >> 13.84 Mbps which seems a bit high for a 16Mbps ADSL link. I would ecpext >> something like 16 * (48/53) * ((1500 - 8 - 20 -20) / (1500 + 32)) =3D 1= 3.73 >> Mbps TCP/IPv4 goodput=E2=80=A6 so you seem to be running close to theore= tical >> maximum of your link (assuming I am not totally off with the overhead >> (estimated ADSL overhead on top of MTU: 6 destination MAC + 6 source MAC= + >> 2 ethertype + 3 ATM LLC + 5 ATM SNAP + 2 ATM pad + 8 ATM AAL5 SAR 32 >> bytes). But with your shaper set at 15Mbps without the atm option you wi= ll >> actually accept up to 15 * (53/48) =3D 16.5625 Mbps on the wire, which >> probably is above your link bandwidth. This fits well with the really lo= w >> number of drops in your cake stats, you simply never have cake feel that >> shaping is needed? >> >> Best Regards >> >> >> >> >> > >> > On 20 April 2017 at 17:32, Jonathan Morton >> wrote: >> > >> >> On 20 Apr, 2017, at 18:23, Dendari Marini wrote= : >> >> >> >>> Could you post the output of calling =E2=80=9Ctc -s qdisc=E2=80=9D h= ere on the list >> please? That should allow to figure out what you actually told cake to d= o ;0 >> > >> >> qdisc cake 8001: dev eth0 root refcnt 2 bandwidth 900Kbit diffserv3 >> dual-srchost nat rtt 100.0ms raw >> > >> >> qdisc cake 8002: dev ifb4eth0 root refcnt 2 bandwidth 16Mbit diffserv= 3 >> dual-dsthost nat ingress rtt 100.0ms raw >> > >> > Looks like most of your options are okay, including the correct =E2=80= =9Cdual=E2=80=9D >> modes and =E2=80=9Cingress=E2=80=9D mode in the right place. However, I= think you need to >> adjust your bandwidth and overhead settings, otherwise Cake isn=E2=80=99= t reliably >> in control of the bottleneck queues. Try these to begin with: >> > >> > =E2=80=A6 bandwidth 850Kbit conservative dual-srchost nat >> > >> > =E2=80=A6 bandwidth 15Mbit conservative dual-dsthost nat ingress >> > >> > That should give you correct operation, and you can fine-tune from >> there. >> > >> > - Jonathan Morton >> > >> > >> > >> >> > --001a114b10be6c101c054dad366e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, I have an update.

The download t= est (PC1 downloading Steam game, PC2 downloading a file) seems to work fine= now, even while using higher bandwidth value. So that seems resolved, prob= ably the interface change was the fix.

Now about t= he gaming test (PC1 downloading Steam game, PC2 online gaming), this is the= one I'm mostly looking forward to fix and the main reason I bought the= ER-X. Unfortunately Cake doesn't seem to do much in this case, specifi= cally I'm still getting high latency spikes and packet loss on PC2. One= weird thing: starting a download on PC2 will decrease the lantecy/p.loss i= ssues, not sure if it's because of the Steam speed being halved on PC1 = or something else.

On 21 April 2017 at 10:34, Dendari Marini &l= t;dendari92@gmail.= com> wrote:
Hello, thanks for all of your replies.

First of all, m= y connection=C2=A0encapsulation should be = ATM LLC and it=C2=A0can actually reach up to 17.5/1 Mbps, but that&#= 39;s kinda best case scenario which is why I wanted to play it safe with ju= st 16/.9 (which I should reach more consistently).

Back to the Steam issue. Unfortuna= tely I can't seem to get really consistent results, mainly because some= times it's downloading the game from just a few connections and other t= imes it's downloading from dozens and dozens connections. The latter is= the one giving me more issues both in terms of latency/packet loss and in = terms of evenly splitting the bandwidth across the hosts.
One thing that seems to give better results is changing the int= erface where Cake is used from eth0 to pppoe0. When I used fq_codel it seem= ed to give better results when using eth0 and so I went ahead and did the s= ame with Cake.

Anyway more testing needed, will re= port if I notice any consistent result.

By the way= this is the thread I opened on the Ubiquiti forums talking about this issu= e (not sure if it can give you some more info): https://community.ubnt.com/t5/EdgeMAX= /Smart-Queue-seemingly-not-working-for-Steam-downloads/td-p/18904= 05
Also the thread where I got Cake for the ER-X from:=C2=A0<= a href=3D"https://community.ubnt.com/t5/EdgeMAX/Cake-and-FQ-PIE-compiled-fo= r-the-EdgeRouter-devices/td-p/1679844" target=3D"_blank">https://community.= ubnt.com/t5/EdgeMAX/Cake-and-FQ-PIE-compiled-for-the-EdgeRou= ter-devices/td-p/1679844

On 20 A= pril 2017 at 20:36, Sebastian Moeller <moeller0@gmx.de> wrote:=

> On Apr 20, 2017, at 18:05, Dendari Marini <dendari92@gmail.com> wrote:
>
> On 20 April 2017 at 17:32, Jonathan Morton <chromatix99@gmail.com> wrote:
>
>> On 20 Apr, 2017, at 18:23, Dendari Marini <
dendari92@gmail.com> wrote:
>>
>>> Could you post the output of calling =E2=80=9Ctc -s qdisc=E2= =80=9D here on the list please? That should allow to figure out what you ac= tually told cake to do ;0
>
>> qdisc cake 8001: dev eth0 root refcnt 2 bandwidth 900Kbit diffserv= 3 dual-srchost nat rtt 100.0ms raw
>
>> qdisc cake 8002: dev ifb4eth0 root refcnt 2 bandwidth 16Mbit diffs= erv3 dual-dsthost nat ingress rtt 100.0ms raw
>
> Looks like most of your options are okay, including the correct =E2=80= =9Cdual=E2=80=9D modes and =E2=80=9Cingress=E2=80=9D mode in the right plac= e.=C2=A0 However, I think you need to adjust your bandwidth and overhead se= ttings, otherwise Cake isn=E2=80=99t reliably in control of the bottleneck = queues.=C2=A0 Try these to begin with:
>
> =E2=80=A6 bandwidth 850Kbit conservative dual-srchost nat
>
> =E2=80=A6 bandwidth 15Mbit conservative dual-dsthost nat ingress
>
> That should give you correct operation, and you can fine-tune from the= re.
>
> - Jonathan Morton
>
>
>



--001a114b10be6c101c054dad366e--