But If i set egress limit to 10Mbit on both shapers, keep WAN ingress shaping at 0 and LAN ingress shaping to 30Mbit, I still get less than 10Mbit on speedtest at this point (Including overhead so effectively 9Mbit+)
So download seems to be affected by the ingress limit i'm setting :-/
My understanding is that bridges don't queue, you need the egress shaper on the physical Ethernet interface of LAN, say eth0.1 or if using a veth pair, egress of the end not in the bridge, maybe veth0 if you put veth1 in the bridge.
Ingress is a hack where packets are mirrored to an IFB device, but this happens before iptables, so tagging on the router doesn't help with wan ingress.
if you want a shaper on br-lan you should enable shaping on both ingress and egress.
i'm using shaper on eth0 not br-lan, but i did that to show you that's it's not working on br-lan!
Shaping doesn't work on bridges in general only the individual ports in the bridge. This is why we used veth devices before, we shaped in the veth first then sent the packets to the bridge
This would indicate an ISP with enough clue to configure its shapers, certainly not impossible, but a rare beast ;)... I am still dubious, I would recommend to keep measuring this over a few days at different times of the day (or rather around peak usage) and see whether this behavior is stable now.
SQM WAN egress limit + LAN egress limit (One limits my downstream and the other upstream bandwidth)
Iptables for inbound packet tagging
Is the way forward?
Another question, "Squash DSCP on inbound packets (ingress)" should I touch this at all? Is this DSCP squashing before the QoS alters my packets with iptables? What about "Ignore DSCP on ingress:"
No, use PREROUTING.
set "Squash DSCP on inbound packets (ingress)" to don't squash.
Ignore DSCP on ingress set it to allow.
i will help you configure veth and sqm+dsscp tags.are you ready ?
Actually you don't have tags on ingress now.you have it work on egress.
second it's better to divide traffic into 4 class like : (bulk/downloads--besteffort/web surfing--video/video steams/youtube--voice/games/voip).
and having a four dscp classes.
BTW: which ip's your game is using while in game?
Mhh. I see what you mean here, perhaps tag ingress packets based on an IP range AND udp? To close the gap so to speak. I'm not sure, Id have to check how much the IP's change if at all.
I'll see if i can get this Veth stuff working myself first. Seems there are some people that set it up so ill work from there.
Well, I just stumbled over d3974b1e9f05a08825064c863f752e3fdbe51fbe6d6388006fbbc6c72ced6033 it looks like EPON is not simply ethernet, but can be actually worse. But again I would be really amazed if any ISP would bother to keep an eye to detail down to this level...
The way tagging works in this set-up is that we don't use "ingress" at all, we use egress on WAN (which is Upload) and egress on LAN (which is "download" to your LAN).
You don't need to squash DSCP on ingress, because there is no ingress queueing and you're going to use custom dscp tagging in firewall/iptables. It can be useful to have a default tag of CS0 (or maybe CS2) for everything you don't either up-prioritize or down-prioritize explicitly.