[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1454528083.7627.284.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 03 Feb 2016 11:34:43 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Bendik Rønning Opstad <bro.devel@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Netdev <netdev@...r.kernel.org>,
Yuchung Cheng <ycheng@...gle.com>,
Neal Cardwell <ncardwell@...gle.com>,
Andreas Petlund <apetlund@...ula.no>,
Carsten Griwodz <griff@...ula.no>,
Pål Halvorsen <paalh@...ula.no>,
Jonas Markussen <jonassm@....uio.no>,
Kristian Evensen <kristian.evensen@...il.com>,
Kenneth Klette Jonassen <kennetkl@....uio.no>,
Bendik Rønning Opstad
<bro.devel+kernel@...il.com>
Subject: Re: [PATCH v3 net-next 2/2] tcp: Add Redundant Data Bundling (RDB)
On Wed, 2016-02-03 at 19:17 +0100, Bendik Rønning Opstad wrote:
> On Tue, Feb 2, 2016 at 9:35 PM, Eric Dumazet <eric.dumazet@...il.com> wrote:
> > On Tue, 2016-02-02 at 20:23 +0100, Bendik Rønning Opstad wrote:
> >>
> >> o When packets are scheduled for transmission, RDB replaces the SKB to
> >> be sent with a modified SKB containing the redundant data of
> >> previously sent data segments from the TCP output queue.
> >
> > Really this looks very complicated.
>
> Can you be more specific?
A lot of code added, needing maintenance cost for years to come.
>
> > Why not simply append the new skb content to prior one ?
>
> It's not clear to me what you mean. At what stage in the output engine
> do you refer to?
>
> We want to avoid modifying the data of the SKBs in the output queue,
Why ? We already do that, as I pointed out.
> therefore we allocate a new SKB (This SKB is named rdb_skb in the code).
> The header and payload of the first SKB containing data we want to
> redundantly transmit is then copied. Then the payload of the SKBs following
> next in the output queue is appended onto the rdb_skb. The last payload
> that is appended is from the first SKB with unsent data, i.e. the
> sk_send_head.
>
> Would you suggest a different approach?
>
> > skb_still_in_host_queue(sk, prior_skb) would also tell you if the skb is
> > really available (ie its clone not sitting/waiting in a qdisc on the
> > host)
>
> Where do you suggest this should be used?
To detect if appending data to prior skb is possible.
If the prior packet is still in qdisc, no change is allowed,
and it is fine : DRB should not trigger anyway.
>
> > Note : select_size() always allocate skb with SKB_WITH_OVERHEAD(2048 -
> > MAX_TCP_HEADER) available bytes in skb->data.
>
> Sure, rdb_build_skb() could use this instead of the calculated
> bytes_in_rdb_skb.
Point is : small packets already have tail room in skb->head
When RDB decides a packet should be merged into the prior one, you can
simply copy payload into the tailroom, then free the skb.
No skb allocations are needed, only freeing.
RDB could be implemented in a more concise way.
Powered by blists - more mailing lists