[Cake] dscp marking ingress traffic (was (no subject))

John Sager john at sager.me.uk
Fri Dec 8 06:17:23 EST 2017

That would work for a single LAN interface but I run several internal vlans
off my router and I need to manage the ingress traffic at a single point. I
haven't yet found a way of doing that other than with the ifb stuff. I could
run two virtual routers in tandem but I don't think the distro I'm using
(Leaf-Bering) supports that easily.


On 07/12/17 23:05, Georgios Amanakis wrote:
> You can do it, but it has to be on a different interface than the
> incoming traffic.
> Say incoming traffic is on eth0 (WAN) and outgoing LAN traffic is on
> eth1. Then you can DSCP mark with iptables on incoming eth0, and since
> the traffic is forwarded to eth1 the DSCP marking is going to be
> preserved. 
> On Thu, 2017-12-07 at 22:48 +0000, John Sager wrote:
>> I've wondered that, and at the moment I don't think there is. The
>> ingress
>> qdisc stuff happens before the packets hit any iptables hooks so you
>> can't
>> use iptables rules to do it. None of the actions that can be attached
>> to a
>> filter on the ingress qdisc seem to offer what you want.
>> I use packet marks and connmarks to classify outgoing traffic using
>> iptables
>> rules. The connmarks are then transferred back to incoming packets
>> using the
>> connmark action, followed by the mirred action to send them to ifb0
>> where
>> the real downstream qdiscs - htb and fq_codel - are applied. This
>> works well
>> to partition my upstream & downstream bandwidth between different
>> traffic
>> classes, but I can't yet see how to adapt this to work with cake.
>> John
>> On 07/12/17 13:34, Mark Captur wrote:
>>> I am using cake on latest lede nightly. I'm using diffserv 4 which
>>> creates 4
>>> tins bulk, best effort, video and voice.
>>> Is there a way to change dscp markings on in comming traffic to
>>> place it in
>>> te video tin. More specifically i would like all incoming traffic
>>> with
>>> source port 23000 to be set to dscp class CS4.
>>> Thanks,
>>> Mark
>> _______________________________________________
>> Cake mailing list
>> Cake at lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cake

More information about the Cake mailing list