From: Andy Furniss <adf.lists@gmail.com>
To: Dendari Marini <dendari92@gmail.com>,
Sebastian Moeller <moeller0@gmx.de>
Cc: cake@lists.bufferbloat.net
Subject: Re: [Cake] Getting Cake to work better with Steam and similar applications
Date: Sat, 22 Apr 2017 23:35:17 +0100 [thread overview]
Message-ID: <da7c3a4f-1c97-ba0d-b0e9-1e914fc76e60@gmail.com> (raw)
In-Reply-To: <CANCX+3MiveDipV=6ccaeDF8kgxQ3KiWoFR7cWhY8OZJxcz-GaQ@mail.gmail.com>
Dendari Marini wrote:
> Hello, thank you all for your replies!
>
> For the overhead I'm gonna use "pppoe-llcsnap" (or "overhead 40 atm),
> as I believe it's the one which should work best for my connection.
I seem to have confused my self as to whether you are using raw or not.
If you are not then I think that shaping on pppoe just overhead 40 atm
will be 22 bytes too little ....
Maybe what version of tc and or cake matters here, I don't know.
Maybe others could comment on that.
One simple test is set your up bandwidth just a little below your syn
rate and upload while pinging somewhere - if you are over then the pings
will rise.
In theory you should be able to run up almost at line rate - back off a
tiny bit to allow for LCP.
As you have a highly asymmetric connection you don't really want to
sacrifice more upload than is needed. A lot of your up bandwidth will be
needed just for acks.
> About the per-host fairness download issue: while it's kinda resolved
> I still feel like it's mainly related to Steam, as normally
> downloading files from PC1 and PC2 halved the speed as expected even
> at full bandwidth (so no overhead, no -15%).
Shaping too close to the real bandwidth is somewhat exposed more when
there are many connections involved.
> Anyway back to Steam: assuming the IP addresses aren't a big issue,
> what steps should I follow to start filtering its traffic so it's
> considered background? Would the DPI from the ER-X be any helpful?
It's a shame steam doesn't allow you to tell it to set tos/dscp like
some torrent clients do.
You could then use connmark to classify the incoming. Whatever method
you find to identify steam downloads it may be a bit hit and miss with
the dscp marking as on ingress you need to get tc to call iptables,
which seems to need a bit of luck with versions matching up properly.
Maybe on a pure router (ie. no significant traffic from wan to router)
you could consider shaping inbound traffic on the lan side.
FWIW here's a quick example on ingress ppp that I tested using connmark
the connmarks (1 or 2 or unmarked) being set by iptables rules on outbound
connections/traffic classes.
tc qdisc add dev ppp0 ingress
tc filter add dev ppp0 parent ffff: prio 1 protocol ip u32 match u32 0 0
action connmark continue
tc filter add dev ppp0 parent ffff: prio 2 protocol ip handle 1 fw
action xt -j DSCP --set-dscp-class cs1 action mirred egress redirect dev
ifb0
tc filter add dev ppp0 parent ffff: prio 3 protocol ip handle 2 fw
action xt -j DSCP --set-dscp-class cs4 action mirred egress redirect dev
ifb0
tc filter add dev ppp0 parent ffff: prio 4 protocol ip u32 match u32 0 0
action mirred egress redirect dev ifb0
If you use ipv6 you would need to handle that as this is ipv4 only.
next prev parent reply other threads:[~2017-04-22 22:35 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 13:39 Dendari Marini
2017-04-20 13:43 ` Sebastian Moeller
2017-04-20 15:23 ` Dendari Marini
2017-04-20 15:32 ` Jonathan Morton
2017-04-20 16:05 ` Dendari Marini
2017-04-20 17:12 ` Andy Furniss
2017-04-20 17:36 ` Jonathan Morton
2017-04-20 18:35 ` Sebastian Moeller
2017-04-20 18:36 ` Sebastian Moeller
2017-04-21 8:34 ` Dendari Marini
2017-04-21 13:25 ` Sebastian Moeller
2017-04-21 13:27 ` Dendari Marini
2017-04-22 8:25 ` Dendari Marini
2017-04-22 9:36 ` Jonathan Morton
2017-04-22 12:50 ` xnoreq
2017-04-22 13:41 ` Tristan Seligmann
2017-04-22 13:51 ` Andy Furniss
2017-04-22 14:03 ` Andy Furniss
2017-04-22 16:38 ` Andy Furniss
2017-04-22 16:45 ` Dave Taht
2017-04-22 17:00 ` Tristan Seligmann
2017-04-22 20:24 ` Andy Furniss
2017-04-22 16:47 ` Sebastian Moeller
2017-04-22 21:56 ` Dendari Marini
2017-04-22 22:15 ` Sebastian Moeller
2017-04-23 12:32 ` David Lang
2017-04-24 7:55 ` Sebastian Moeller
2017-04-24 8:41 ` Dendari Marini
2017-04-24 11:34 ` Sebastian Moeller
2017-04-24 12:08 ` Dendari Marini
2017-04-24 12:35 ` Sebastian Moeller
2017-04-24 13:49 ` Dendari Marini
2017-04-24 15:42 ` Sebastian Moeller
2017-04-24 17:32 ` Sebastian Moeller
2017-04-25 10:26 ` Andy Furniss
2017-04-25 11:24 ` Dendari Marini
2017-04-25 12:58 ` Andy Furniss
2017-04-25 18:22 ` Dendari Marini
2017-04-25 19:10 ` Jonathan Morton
2017-04-25 20:44 ` Dendari Marini
2017-04-25 21:32 ` Andy Furniss
2017-04-25 22:33 ` Benjamin Cronce
2017-04-28 15:37 ` Dendari Marini
2017-04-29 15:11 ` Andy Furniss
2017-04-29 17:30 ` Jonathan Morton
2017-04-29 18:29 ` Andy Furniss
2017-04-30 0:05 ` Andy Furniss
2017-05-01 5:50 ` Jonathan Morton
2017-05-01 11:32 ` Andy Furniss
2017-05-01 12:08 ` Jonathan Morton
2017-05-01 13:03 ` Andy Furniss
2017-05-01 13:11 ` Jonathan Morton
2017-05-01 14:46 ` Andy Furniss
2017-04-25 21:06 ` Andy Furniss
2017-04-25 21:16 ` Neil Shepperd
2017-04-25 21:37 ` Andy Furniss
2017-04-25 21:43 ` Sebastian Moeller
2017-04-25 22:06 ` Andy Furniss
2017-04-25 22:29 ` Andy Furniss
2017-04-25 22:32 ` Andy Furniss
2017-04-22 22:35 ` Andy Furniss [this message]
2017-04-22 14:12 ` Sebastian Moeller
2017-04-20 18:16 ` Sebastian Moeller
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/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da7c3a4f-1c97-ba0d-b0e9-1e914fc76e60@gmail.com \
--to=adf.lists@gmail.com \
--cc=cake@lists.bufferbloat.net \
--cc=dendari92@gmail.com \
--cc=moeller0@gmx.de \
/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