All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Lehan <linux@krellan.com>
To: Yuchung Cheng <ycheng@google.com>
Cc: Josh Lehan <linux@krellan.com>, netdev <netdev@vger.kernel.org>,
	jiyengar@fandm.edu
Subject: Re: Skipping past TCP lost packet in userspace
Date: Wed, 01 Jun 2011 01:10:11 -0700	[thread overview]
Message-ID: <4DE5F3E3.2080609@krellan.com> (raw)
In-Reply-To: <BANLkTinKORbHHZ7dAqfiFOg5rqB77DcJY8D7AxmP-xwhwmOgGg@mail.gmail.com>

On 05/31/2011 10:23 AM, Yuchung Cheng wrote:
> This paper may have a solution to your problem
> "Minion—an All-Terrain Packet Packhorse to Jump-Start Stalled Internet
> Transports"
> http://csweb1.fandm.edu/jiyengar/lair/papers/minion-pfldnet2010.pdf

Nice, thanks for pointing me to this.  I appreciate the helpful answer,
instead of just saying "use UDP" or "use SCTP".  That's not the point.

For better or for worse, TCP is realistically the only viable protocol
for streaming to the largest possible audience these days, hence my
question about adding this feature to the Linux TCP implementation.

As for the Linux receiver, I was thinking of 2 features:

1) Assuming the application has already read all data that would be
possible without blocking, perform something like an ioctl() to peek at
the data, and peek to see if there is any out-of-order data behind a gap.

2) If the out-of-order data is enough to be useful to the application,
another ioctl() could be done, to ask the kernel to jump over the gap
and deliver the data to the application.  At this point the missing data
would be considered lost.  The data behind the gap would then be
delivered to the application as part of its normal reading stream.  The
TCP sequence numbers would advance, as usual, just as if the missing
data had been there all along.

This will need some more thought in order to work in real life, such as
needing to be blocked on (select(), poll(), etc.) without having to
busywait the "peek" ioctl.  Also, it would be nice to have an ioctl() to
reclaim the missing data that was skipped over, should that data happen
to successfully arrive late, so that the application could still save it
(or whatever) instead of it having to be discarded.

Josh Lehan

  reply	other threads:[~2011-06-01  8:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31  1:19 Skipping past TCP lost packet in userspace Josh Lehan
2011-05-31  3:30 ` Marcus D. Leech
2011-05-31  4:12   ` Josh Lehan
2011-05-31  4:05 ` Mikael Abrahamsson
2011-05-31 11:12 ` Neil Horman
2011-05-31 17:23 ` Yuchung Cheng
2011-06-01  8:10   ` Josh Lehan [this message]
2011-06-01 16:57     ` Bill Sommerfeld
2011-06-01 17:35     ` Rick Jones
2011-06-24 14:58       ` Janardhan Iyengar
2011-06-30  8:38         ` Josh Lehan
2011-06-30 14:36           ` Neil Horman
2011-07-01  8:39             ` Josh Lehan
2011-07-01 13:37               ` Neil Horman
2011-06-01 19:36     ` juice
2011-06-03 11:51     ` Ilpo Järvinen
2011-06-06  6:30       ` Josh Lehan

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DE5F3E3.2080609@krellan.com \
    --to=linux@krellan.com \
    --cc=jiyengar@fandm.edu \
    --cc=netdev@vger.kernel.org \
    --cc=ycheng@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.