Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: Jonathan Morton <chromatix99@gmail.com>
Cc: cake@lists.bufferbloat.net
Subject: Re: [Cake] Putting cake under dsmark on ingress ifb
Date: Tue, 28 Feb 2017 14:11:43 +0000	[thread overview]
Message-ID: <5c6be902-a9a4-87d1-3b09-35da09be5c59@gmail.com> (raw)
In-Reply-To: <bbfb293e-3e76-e483-47a7-88a6777019b2@gmail.com>

Andy Furniss wrote:
> Jonathan Morton wrote:
>>
>>> On 26 Feb, 2017, at 15:41, Andy Furniss <adf.lists@gmail.com> wrote:
>>>
>>> This works in the sense that I can now get tcpdump on a PC on the
>>> lan to show incoming icmp with tos 0xb8.
>>>
>>> So I try to add cake under dsmark ini the hope that it sees icmp as ef
>>> but it doesn't, icmp goes to best effort.
>>
>> I suspect packets are queuing in cake first and only then going
>> through dsmark.  What happens if you reverse the nesting?
>
> tc qdisc add dev ifb0 handle 1:0 root cake bandwidth 60mbit raw overhead
> 34 diffserv4
>
> tc qdisc add dev ifb0 handle 2:0 parent 1:0 dsmark indices 64
> RTNETLINK answers: Operation not supported
>
> Going to be AFK till this evening - will try more random stuff later.

I couldn't get anything to work with dsmark so went for plan B =

Use tc pedit which has a selector for dscp.  Turned out to be useless
though, it looked like it overwrote the whole tos byte, but worse I
ended up with packets that failed csum so got dropped.

Plan C worked :-) = use action ipt, which is now action xt (ugh).

tc filter add dev ppp0 parent ffff: prio 1 protocol ip u32 match ip 
protocol 1 0xff action xt -j DSCP --set-dscp-class ef action mirred 
egress redirect dev ifb0

...other filters ...

TODO see if it's possible with actions to set dscp when using connmark to
choose the flow.



  reply	other threads:[~2017-02-28 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-26 13:41 Andy Furniss
2017-02-26 13:47 ` Jonathan Morton
2017-02-26 14:30   ` Andy Furniss
2017-02-28 14:11     ` Andy Furniss [this message]
2017-02-28 14:23       ` Jonathan Morton
2017-03-01 23:14       ` Andy Furniss
2017-03-04 17:43         ` Andy Furniss

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=5c6be902-a9a4-87d1-3b09-35da09be5c59@gmail.com \
    --to=adf.lists@gmail.com \
    --cc=cake@lists.bufferbloat.net \
    --cc=chromatix99@gmail.com \
    /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