[Cake] GSO super-packets, classification (tin) & DSCP washing
chromatix99 at gmail.com
Sun Nov 22 09:37:59 EST 2015
> On 22 Nov, 2015, at 15:31, Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> wrote:
> First off, DSCP washing as implemented, only washes the GSO packet..I'm
> assuming effectively the first contained packet only. This is unfortunate.
You seem to misunderstand how GSO works.
A GSO aggregate is, by definition, a single packet formed from the contents of several consecutive inbound packets with identical IP headers and “compatible" transport headers, stored and handled with a *single* copy of the IP and transport header, in such a way that a sequence of outbound packets with identical semantics (but not necessarily identical sizes) can be reassembled from them.
Because there is only one IP header, altering that header implicitly alters the headers of the reassembled packets in the same way. This applies both to DSCP washing and ECN marking.
The more vexing potential problem is where Cake drops a GSO aggregate, resulting in several MTUs at once being dropped. It was suggested that this might lead to a more aggressive than necessary congestion response from TCP. However, I’m not convinced that this is really a problem in practice, since a sequence of consecutive drops doesn’t produce any more DupACKs than a single drop, and SACK will immediately and correctly identify which packets to retransmit. Certainly this won’t be any worse than the typical burst-loss from overflowing a dumb FIFO, so I’d like to see a demonstration before trying to do anything about it.
- Jonathan Morton
More information about the Cake