From: Sebastian Moeller <moeller0@gmx.de>
To: Oliver Niesner <oliver.niesner@gmail.com>
Cc: cerowrt-devel@lists.bufferbloat.net
Subject: Re: [Cerowrt-devel] uplink_buffer_adjustment
Date: Tue, 25 Feb 2014 13:08:22 +0100 [thread overview]
Message-ID: <247B6C2F-1A7E-41F8-9E59-04419060E702@gmx.de> (raw)
In-Reply-To: <530C7AFA.2070101@gmail.com>
Hi Oliver,
On Feb 25, 2014, at 12:14 , Oliver Niesner <oliver.niesner@gmail.com> wrote:
> Hi list,
>
> I use cerowrt (3.10.24-8) direct behind my main dsl Router.
> SQM is set and performance is good.
This is the most important part; you seem happy with the actual latency under load.
> When i used Netalyzr from my smartphone i've got good results.
>
>> Network buffer measurements (?): Uplink 96 ms, Downlink is good
Presumably the smart phone connects to the cerowrt router via wlan?
>
> But when i use my notebook i get this:
>
>> Network buffer measurements (?): Uplink 1200 ms, Downlink is good
If you want to change that number neatly reports you will need to change the limit variable of the fq_codel instance(s) on your uplink device (ge00), smaller limit values will cause smaller reported buffering.
BUT you should not be concerned about this report at all. Netalyzr tries to fill the buffers with (relative) high bandwidth inelastic unrelenting UDP traffic, one could say it represents a DOS attack better than real traffic. Real traffic be it TCP (by virtue of the protocol) and even UDP (by virtue of application writers implementing their own congestion control) will react to packet loss by reducing the transmit speed. SQM does a good job strategically dropping packets so that all flows can adapt their bandwidth to the available total bandwidth. The beauty of codel is that it starts out quite gentle in a way that is well matched to TCPs congestion avoidance. It will turn less gentle if the traffic does not respond and congestion stays high. Netalyzr now is this weird combination of short duration yet unrelenting traffic. The reason why SQM does not affect the netalyzr probe by much is that the netalyzr traffic stops before fq_codel has ramped up the dropping. So what happens is that the probe fills the largest buffer which is specified by the limit parameter of fq_codel, that defaults to 1000 packets on cerowrt (once the queue has limit packets all new packets get dropped, as it resorts to tail dropping, but that really is just an emergency behavior; under normal loads with a slow link the queue will never come close to 1000).
TL:DR version, netalyzr probes a buffer depth that while existing has not much relevance on the latency behavior under load for cerowrt.
>>
>
> I tried even wired connection and set ring buffer rx/tx with ethtool to 64, but
> only minimal change in uplink buffer (1100ms).
Good idea but wrong tunable ;)
>
> Has anyone an idea, what i can try to get better uplink performance?
Unless you intend to run yur router under continuous DOS attacks, I would recommend to ignore netalyzr's buffer measurements (as they do not reflect cerowrt's behavior under a more realistic load well).
Best Regards
Sebastian
>
> Regards,
>
> Oliver
>
> _______________________________________________
> Cerowrt-devel mailing list
> Cerowrt-devel@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cerowrt-devel
next prev parent reply other threads:[~2014-02-25 12:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 11:14 Oliver Niesner
2014-02-25 12:08 ` Sebastian Moeller [this message]
2014-02-25 14:05 ` Maciej Soltysiak
2014-02-25 14:19 ` Sebastian Moeller
2014-02-25 15:59 ` Jim Gettys
[not found] ` <D82FF87B-F220-45B4-AA87-27037DB472C9@icsi.berkeley.edu>
2014-02-25 16:46 ` Jim Gettys
2014-02-25 21:27 ` dpreed
2014-02-25 17:10 ` Dave Taht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=247B6C2F-1A7E-41F8-9E59-04419060E702@gmx.de \
--to=moeller0@gmx.de \
--cc=cerowrt-devel@lists.bufferbloat.net \
--cc=oliver.niesner@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox