[Cake] Cake latency update
Pete Heist
peteheist at gmail.com
Fri Feb 10 05:05:42 EST 2017
> On Feb 10, 2017, at 10:29 AM, Jonathan Morton <chromatix99 at gmail.com> wrote:
>
>> On 10 Feb, 2017, at 11:21, Pete Heist <peteheist at gmail.com> wrote:
>>
>> Here are the results at various bitrates (all half-duplex rate limiting on this CPU).
>
> Hold on a minute. What does “half-duplex rate limiting” mean exactly?
>
> - Jonathan Morton
>
Yes, that’s a good point, I probably invented the phrase “half-duplex rate limiting". :) It means that both the ingress and egress have been redirected over the same IFB device and QoS'd together. This seems to work better for the half-duplex nature of Wi-Fi, because then you can use soft rate limiting to control the queue and keep latency low while still allowing almost the full one-directional throughput. You made the suggestion earlier on the Cake list to try it, and it does work for me.
By the way, in case you want to see the qdisc setup, it’s there for each host under the qos_* sections on each page. The AP router is “mbp”, which I use for half-duplex limiting, then for full-duplex limiting it’s done both ends of the link- “mini” and “mbp”. And if you want to see the QoS setup script, it’s here:
http://www.drhleny.cz/bufferbloat/qos.sh <http://www.drhleny.cz/bufferbloat/qos.sh>
But what I hadn’t noticed before is that I so far haven’t seen the same throughput shifts in the so-called "full-duplex” rate limiting results, meaning I’m just limiting on the egress of both ends of the point-to-point link.
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_10mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_10mbit/index.html>
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_20mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_20mbit/index.html>
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_30mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_30mbit/index.html>
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_40mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_40mbit/index.html>
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_45mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_45mbit/index.html>
http://www.drhleny.cz/bufferbloat/cake_fd-eth-ap_70ms_40mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-ap_70ms_40mbit/index.html>
And “full-duplex limiting” for fq_codel:
http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_10mbit/index.html <http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_10mbit/index.html>
http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_20mbit/index.html <http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_20mbit/index.html>
http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_30mbit/index.html <http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_30mbit/index.html>
http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_40mbit/index.html <http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_40mbit/index.html>
http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_45mbit/index.html <http://www.drhleny.cz/bufferbloat/fq_codel_fd-eth-both_45mbit/index.html>
But what I _do_ see now in the full-duplex limiting results is not throughput shifts, but occasional latency shifts for individual flows, like in the 30 Mbit full-duplex Cake result:
http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_30mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-both_30mbit/index.html>
and when I was testing lowering Cake’s rtt parameter I saw it (perhaps unrelated to changing the rtt parameter), so here’s rtt 70ms, bandwidth 40 Mbit:
http://www.drhleny.cz/bufferbloat/cake_fd-eth-ap_70ms_40mbit/index.html <http://www.drhleny.cz/bufferbloat/cake_fd-eth-ap_70ms_40mbit/index.html>
I’m still parsing all of these results and haven’t figured everything out yet, so thanks for making me look at that again. It does appear that the throughput shifts may be related to rate limiting both egress and ingress over the same IFB device. However, I have not seen such throughput shifts for HTB+fq_codel when rate limited in the same way...
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20170210/dd364a6e/attachment-0001.html>
More information about the Cake
mailing list