Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] feature request ;)
@ 2015-08-20 19:41 Sebastian Moeller
  2015-08-20 19:50 ` Jonathan Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Moeller @ 2015-08-20 19:41 UTC (permalink / raw)
  To: cake

Hi Jonathan,

I believe we already established that cake will start out with whatever per packet overhead value the kernel already added for us (skb->pkt_len or so). Would it be possible to export the maximum of (skb->len - skb->data_len) seen over the life time of a cake instance somewhere in the statistics output? Since the kernel rules for pre-adding headers are a bit opaque this would be really helpful to select the correct per packet overhead. Say if the kernel added the ethernet header size already we do not need to use the ethernet keyword, but if it did not we should, currently the only way to figure this out is to set up an elaborate shaper and feed it with custom tailored packets and then look at the reported packet size in the qdsc statistics (if I recall correctly). It would be so much niched if cake just told us… (Case in point if I establish a shaper on eth0 the kernel helpfully adds the ethernet header, but if I use pppoe-eth0 which uses eth0 as underlayig transport the kernel does not add the ethernet header, but it MIGHT add the pppoe header size (not sure)).
	And if the max() of that field is too computationally expensive the first non-zero value would also do...


Best Regards
	Sebastian

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

* Re: [Cake] feature request ;)
  2015-08-20 19:41 [Cake] feature request ;) Sebastian Moeller
@ 2015-08-20 19:50 ` Jonathan Morton
  2015-08-20 19:53   ` Sebastian Moeller
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Morton @ 2015-08-20 19:50 UTC (permalink / raw)
  To: Sebastian Moeller; +Cc: cake

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

That is an interesting idea.  But what does data_len correspond to - how
far does it unwrap the packet?  Is the difference constant between IPv4/6,
ARP, and any other protocols we might see on the wire?

- Jonathan Morton

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

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

* Re: [Cake] feature request ;)
  2015-08-20 19:50 ` Jonathan Morton
@ 2015-08-20 19:53   ` Sebastian Moeller
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Moeller @ 2015-08-20 19:53 UTC (permalink / raw)
  To: Jonathan Morton; +Cc: cake

Hi Jonathan,

On Aug 20, 2015, at 21:50 , Jonathan Morton <chromatix99@gmail.com> wrote:

> That is an interesting idea.  But what does data_len correspond to - how far does it unwrap the packet?  Is the difference constant between IPv4/6, ARP, and any other protocols we might see on the wire?

	Inquiring minds want to know exactly this, so maybe the maximum and the last seen value would be good for experimentation ;). But worst case the last seen sib->len should do as one can always try to send known size packets and the correlate the MTU with skb-len for further inferences, no?

Best Regards
	Sebastian


> 
> - Jonathan Morton


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

end of thread, other threads:[~2015-08-20 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 19:41 [Cake] feature request ;) Sebastian Moeller
2015-08-20 19:50 ` Jonathan Morton
2015-08-20 19:53   ` Sebastian Moeller

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