Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
To: Sebastian Moeller <moeller0@gmx.de>
Cc: "cake@lists.bufferbloat.net" <cake@lists.bufferbloat.net>
Subject: Re: [Cake] act_conndscp
Date: Wed, 20 Mar 2019 09:24:54 +0000	[thread overview]
Message-ID: <0EFF6CB4-8124-478D-A97C-C0EF6826C257@darbyshire-bryant.me.uk> (raw)
In-Reply-To: <9E038F1F-9D12-4387-A284-62C6544E3979@darbyshire-bryant.me.uk>

And another - sorry! - some stats/info

overlimits counts the number of packets that have had their DSCP overwritten/restored/set
requeues counts the number of times the ’statemask’ bit has been SET.

root@Router:~# tc -s filter show dev eth0
filter parent cacf: protocol all pref 10 u32 chain 0 
filter parent cacf: protocol all pref 10 u32 chain 0 fh 800: ht divisor 1 
filter parent cacf: protocol all pref 10 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 not_in_hw 
  match 00000000/00000000 at 0
	action order 1: conndscp zone 0 pipe
	 index 1 ref 1 bind 1 mask 0xfc000000 statemask 0x01000000 mode both installed 218013 sec used 0 sec
	Action statistics:
	Sent 1048008900 bytes 7586620 pkt (dropped 0, overlimits 5263898 requeues 87634) 
	backlog 0b 0p requeues 87634

So the above shows that 5263898 packets had their DSCP values set based on a stored DSCP value and thus avoided going through the iptables rules.  87634 packets set that stored value.


root@Router:~# tc -s filter show dev eth0 ingress
filter parent ffff: protocol all pref 10 u32 chain 0 
filter parent ffff: protocol all pref 10 u32 chain 0 fh 800: ht divisor 1 
filter parent ffff: protocol all pref 10 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 not_in_hw 
  match 00000000/00000000 at 0
	action order 1: conndscp zone 0 pipe
	 index 2 ref 1 bind 1 mask 0xfc000000 statemask 0x01000000 mode set installed 218027 sec used 0 sec
	Action statistics:
	Sent 7942289574 bytes 9601486 pkt (dropped 0, overlimits 6153697 requeues 0) 
	backlog 0b 0p requeues 0

	action order 2: mirred (Egress Redirect to device ifb4eth0) stolen
 	index 1 ref 1 bind 1 installed 218027 sec used 0 sec
 	Action statistics:
	Sent 7942289574 bytes 9601486 pkt (dropped 0, overlimits 0 requeues 0) 
	backlog 0b 0p requeues 0

The above shows that 6153697 packets had their DSCP values restored from the stored mark value.  Note DSCPs are only restored if they’re actually different from the current stored value, so a default DSCP of 0 on an egress path is unlikely to generate a whole load of unnecessary DSCP overwriting on the ingress path.

Does any of this help?

Kevin

> On 20 Mar 2019, at 09:06, Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> wrote:
> 
> Addendum: If not obvious.  There are two separate instances of ‘conndscp’, one on the egress path (in ‘both’ mode) and one on the ingress path (in ’set’ mode)
> 
> Cheers,
> 
> Kevin D-B
> 
> gpg: 012C ACB2 28C6 C53E 9775  9123 B3A2 389B 9DE2 334A
> 
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake


Cheers,

Kevin D-B

gpg: 012C ACB2 28C6 C53E 9775  9123 B3A2 389B 9DE2 334A


      reply	other threads:[~2019-03-20  9:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 20:08 Kevin Darbyshire-Bryant
2019-03-19 21:24 ` Ryan Mounce
2019-03-19 21:27   ` Kevin Darbyshire-Bryant
2019-03-19 21:41     ` Toke Høiland-Jørgensen
2019-03-19 21:51       ` Kevin Darbyshire-Bryant
2019-03-19 21:59         ` Toke Høiland-Jørgensen
2019-03-20  3:31     ` Ryan Mounce
2019-03-20  8:25       ` Kevin Darbyshire-Bryant
2019-03-20  8:38         ` Sebastian Moeller
2019-03-20  9:01           ` Kevin Darbyshire-Bryant
2019-03-20  9:54             ` Sebastian Moeller
2019-03-20 10:15               ` Kevin Darbyshire-Bryant
2019-03-22 21:24                 ` Kevin Darbyshire-Bryant
2019-03-23 18:35                   ` Kevin Darbyshire-Bryant
2019-04-01 14:07                     ` Kevin Darbyshire-Bryant
2019-04-01 23:52                       ` Ryan Mounce
2019-03-20  9:06           ` Kevin Darbyshire-Bryant
2019-03-20  9:24             ` Kevin Darbyshire-Bryant [this message]

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=0EFF6CB4-8124-478D-A97C-C0EF6826C257@darbyshire-bryant.me.uk \
    --to=kevin@darbyshire-bryant.me.uk \
    --cc=cake@lists.bufferbloat.net \
    --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