Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] (no subject)
@ 2017-12-07 13:34 Mark Captur
  2017-12-07 22:48 ` [Cake] dscp marking ingress traffic (was (no subject)) John Sager
  2017-12-08 11:55 ` [Cake] (no subject) Andy Furniss
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Captur @ 2017-12-07 13:34 UTC (permalink / raw)
  To: cake

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 411 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Cake] dscp marking ingress traffic (was (no subject))
  2017-12-07 13:34 [Cake] (no subject) Mark Captur
@ 2017-12-07 22:48 ` John Sager
  2017-12-07 23:05   ` Georgios Amanakis
  2017-12-08 11:55 ` [Cake] (no subject) Andy Furniss
  1 sibling, 1 reply; 9+ messages in thread
From: John Sager @ 2017-12-07 22:48 UTC (permalink / raw)
  To: cake

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
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Cake] dscp marking ingress traffic (was (no subject))
  2017-12-07 22:48 ` [Cake] dscp marking ingress traffic (was (no subject)) John Sager
@ 2017-12-07 23:05   ` Georgios Amanakis
  2017-12-08 11:17     ` John Sager
  0 siblings, 1 reply; 9+ messages in thread
From: Georgios Amanakis @ 2017-12-07 23:05 UTC (permalink / raw)
  To: John Sager, cake

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@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Cake] dscp marking ingress traffic (was (no subject))
  2017-12-07 23:05   ` Georgios Amanakis
@ 2017-12-08 11:17     ` John Sager
  0 siblings, 0 replies; 9+ messages in thread
From: John Sager @ 2017-12-08 11:17 UTC (permalink / raw)
  To: cake

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.

John

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@lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cake

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Cake] (no subject)
  2017-12-07 13:34 [Cake] (no subject) Mark Captur
  2017-12-07 22:48 ` [Cake] dscp marking ingress traffic (was (no subject)) John Sager
@ 2017-12-08 11:55 ` Andy Furniss
  1 sibling, 0 replies; 9+ messages in thread
From: Andy Furniss @ 2017-12-08 11:55 UTC (permalink / raw)
  To: cake

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.

Maybe, I got it working using conntrack, but it was fragile in the sense
that kernel/iptables/iproute versions needed some sort of lucky match.

IIRC I took down my desktop PC messing around.

 From my router box it seems to work.

You need cake on ifb with traffic redirected from ingress interface.

https://lists.bufferbloat.net/pipermail/cake/2017-February/002491.html

Is just a test to mark ipv4 icmp which worked.
I did get conntrack to work, though you can just match the port anyway.

The exact commands needed would depend on your precise setup.
If your router is just routing then you could probably just have cake
on egress and save the hassle.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Cake] (no subject)
  2017-03-29 18:18 ` Jonathan Morton
@ 2017-03-29 18:25   ` vignesh kannan
  0 siblings, 0 replies; 9+ messages in thread
From: vignesh kannan @ 2017-03-29 18:25 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: cake

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

Thanks Jonathan :). I will look into this lead given by you!


  <https://mailtrack.io/> Sent with Mailtrack
<https://mailtrack.io/install?source=signature&lang=en&referral=vignesh2496@gmail.com&idSignature=22>

On Wed, Mar 29, 2017 at 11:48 PM, Jonathan Morton <chromatix99@gmail.com>
wrote:

>
> > On 29 Mar, 2017, at 21:15, vignesh kannan <vignesh2496@gmail.com> wrote:
> >
> > Can you please explain what a hard time cutoff is? I haven't come across
> the term before.
>
> I mean that there’s a sharp transition from one calculation to another at
> some multiple of the interval in the older implementations.  It always felt
> unnatural to me.
>
> By contrast, Cobalt’s behaviour on re-entering dropping state depends
> smoothly on the time spent in the non-dropping state.
>
>  - Jonathan Morton
>
>

[-- Attachment #2: Type: text/html, Size: 2206 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Cake] (no subject)
  2017-03-29 18:15 vignesh kannan
@ 2017-03-29 18:18 ` Jonathan Morton
  2017-03-29 18:25   ` vignesh kannan
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Morton @ 2017-03-29 18:18 UTC (permalink / raw)
  To: vignesh kannan; +Cc: cake


> On 29 Mar, 2017, at 21:15, vignesh kannan <vignesh2496@gmail.com> wrote:
> 
> Can you please explain what a hard time cutoff is? I haven't come across the term before.

I mean that there’s a sharp transition from one calculation to another at some multiple of the interval in the older implementations.  It always felt unnatural to me.

By contrast, Cobalt’s behaviour on re-entering dropping state depends smoothly on the time spent in the non-dropping state.

 - Jonathan Morton


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Cake] (no subject)
@ 2017-03-29 18:15 vignesh kannan
  2017-03-29 18:18 ` Jonathan Morton
  0 siblings, 1 reply; 9+ messages in thread
From: vignesh kannan @ 2017-03-29 18:15 UTC (permalink / raw)
  To: cake

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

Can you please explain what a hard time cutoff is? I haven't come across
the term before.

[-- Attachment #2: Type: text/html, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Cake] (no subject)
@ 2016-12-26 12:44 Y
  0 siblings, 0 replies; 9+ messages in thread
From: Y @ 2016-12-26 12:44 UTC (permalink / raw)
  To: cake



-- 
Y <intruder_tkyf@yahoo.fr>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-12-08 11:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 13:34 [Cake] (no subject) Mark Captur
2017-12-07 22:48 ` [Cake] dscp marking ingress traffic (was (no subject)) John Sager
2017-12-07 23:05   ` Georgios Amanakis
2017-12-08 11:17     ` John Sager
2017-12-08 11:55 ` [Cake] (no subject) Andy Furniss
  -- strict thread matches above, loose matches on Subject: below --
2017-03-29 18:15 vignesh kannan
2017-03-29 18:18 ` Jonathan Morton
2017-03-29 18:25   ` vignesh kannan
2016-12-26 12:44 Y

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox