From: =?utf-8?Q?Stefan_Bauer?= Date: Sun, 07 Feb 2016 18:19:09 +0000 Subject: AW: AW: Improved performance on up/download even though only sip was prioritized - please explain Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi Martin, thank you again. That was very well and clear explained! Stefan =20 -----Urspr=C3=BCngliche Nachricht----- > Von:Martin A. Brown > Gesendet: Son 7 Februar 2016 19:14 > An: Stefan Bauer > CC: lartc@vger.kernel.org > Betreff: Re: AW: Improved performance on up/download even though only sip= was prioritized - please explain >=20 >=20 > Hello again Stefan, >=20 > >thank you for your time and help. You are right, i queued all=20 > >traffic excect traffic from 192.168.0.101 to class 1:30 but with no=20 > >special threatment for specific packages. >=20 > But, the important factor here is that your OpenWrt device is=20 > managing the shaping and scheduling. That goes for both default=20 > traffic and your VoIP traffic. >=20 > >So because i limited the link throughput, the upstream device was=20 > >able to better deal with the packages it has to process and that=20 > >improved the upload/download throughput. >=20 > Correct. But, more importantly the packets are no longer piling up=20 > in congestion on the modem. So, the modem can pass packets through=20 > right away and be ready to deal with the next. >=20 > >It seems to be better in terms of performance to limit the link on=20 > >my "site" and avoid congestion at the upstream device. >=20 > Absolutely. >=20 > >Even though both devices have a queue i still do not see, why it's=20 > >better to not let the modem do the "job". >=20 > The modem software/hardware was created to queue packets a certain=20 > way and you didn't like how it did the job. >=20 > Without knowing your specific modem (it is unimportant, anyway), I=20 > will assert that the problem with your modem is the problem that has=20 > been described by Jim Gettys as 'buffer bloat' [0]. >=20 > The gear and provider configurations that lead to 'buffer bloat'=20 > result in two problems: >=20 > * deep queues trade throughput for latency (leading you to want to=20 > prioritize your VoIP in the first place) >=20 > * deep queues cause strange and unpleasant interactions with=20 > packet drops [which packet drops, in turn, cause unpredictable=20 > throughput numbers] >=20 > You like better how your OpenWrt box is handling the queueing,=20 > because it is making better tradeoffs between throughput and latency=20 > (and packet dropping during saturation situations). All of this=20 > results in a better experience for your users. >=20 > Since you added the HTB qdisc, you have taught your OpenWrt device=20 > to "slow down" its dequeue rate so that the packet congestion occurs=20 > on the OpenWrt device, not on the modem. >=20 > In short, you have just implemented the bottleneck rule [0]. Your=20 > box has become the bottleneck (which is a good thing)! >=20 > Best regards, >=20 > -Martin >=20 > [0] https://gettys.wordpress.com/ > http://www.bufferbloat.net/ >=20 > [0] http://tldp.org/HOWTO/Traffic-Control-HOWTO/rules.html >=20 > --=20 > Martin A. Brown > http://linux-ip.net/ >=20 >=20