Article View: news.software.nntp
Article #57479Re: yenc - has anybody else noticed this?
From: Coises
Date: Thu, 21 Mar 2002 01:00
Date: Thu, 21 Mar 2002 01:00
113 lines
7242 bytes
7242 bytes
[follow-ups set to auorfa, since I'm not reading news.software.nntp]
[Mon, 18 Mar 2002 15:14:29 -0500] J.B. Moreno:
>In article <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com>,
> Nunya Biznis <not@liberty.to.tell> wrote:
>
>> yenc will probably work OK the way it is, but I think it
>> could be a little more robust if the whole-file CRC was
>> carried in every part.
>
>The common objection to that (and to Content-MD5) is that the whole
>file has to be read before you even begin posting.
Why is this a problem? Can there be any significant number of machines in
use that are so slow, yet have upload connections so fast, that disk access
and CPU time for reasonable processing (including hashing and encoding) is
a significant fraction of the upload time?
Also... when using an encoding scheme where the number of encoded bytes is
not a function only of the number of file bytes (which I gather is the case
with yEnc), isn't it necessary to encode the whole file first to know how
many parts the result will contain, so as to post a proper subject?
Finally: Usenet is a one-to-many medium. It's not e-mail or P2P. You post
something once, many people download it (or decide not to download it).
Given that, it seems to me etiquette and economics both demand that the
poster should assume the primary burden of assuring that things are as easy
and efficient as possible on the other end. If it takes a little extra
time to send something that is less trouble to access, so be it.
Elsewhere in this thread there appears some discussion of various schemes
of encoding information to help identify and assemble multi-part binaries.
I would like to suggest what I think would in practice be a much simpler
mechanism (though it does take longer to describe). The one drawback I see
is that (like at least one other mechanisms suggested) it won't work on
servers that don't let the poster supply the Message-ID.
1. When encoding a file to be posted as a attachment, a client must
determine how many parts will be required before beginning to post.
(This is necessary, anyway, to form a proper subject header.)
2. When encoding a file to be posted as a multi-part binary, a client
should keep track of the byte ranges in each part. (This is a good idea
anyway, because it would make it more efficient for the client to support
reposting a particular part --- which all clients *should* be able to do.)
3. All multi-part binaries should be posted along with a "[0/N]" preface
part. (This is a good idea anyway, because it allows users to access a
textual description of what is being posted without downloading the first
binary part.) The client should assure that the body length is not zero
(since some servers drop zero-line posts).
4. The preface [0/N] part should include an "X-Multiparts:" header which
lists each Message-ID in the set and the offset (from zero) of the last
byte it contains; e.g.:
X-Multiparts: <id1@dom> 99587 <id2@dom> 198242 <id3@dom> 234101
would describe a 234,102 byte file posted in three parts.
5. All parts except the preface [0/N] part should be posted as follow-ups
to the preface.
Since the prefaces are text-only, they should propagate quickly and
reliably to all servers; they then provide an index by which to locate the
various parts which will be much more reliable than file names (or anything
else in the "Subject:" header). Retrieval by Message-ID is already
available in decent newsreaders, so there would be no need to modify
clients for receivers to make use of this information.
Since the parts are follow-ups to the preface, it would be possible to get
the preface message for a part from elsewhere --- if, by chance, it did not
propagate --- by using the last Message-ID in the "References:" header.
(This is, unfortunately, not accessible in Agent until the body of the
message is downloaded; but that is a deficiency of Agent, not NNTP.)
Note that the preface need not be posted before the parts; however, the
client must do one of two things: either it must assign Message-IDs to all
the parts, and determine the byte ranges of each part, before posting any
of them (in which case it can post them in any order); or it must assign a
Message-ID to the preface first, then post the other parts and record their
Message-IDs and byte ranges, then post the preface last. It is not
possible to meet both requirements 4 and 5 if no message is assigned a
Message-ID until the moment it is actually posted.
6. Reposts of one or more parts (whether by the original poster or someone
else) should include a preface message which should be posted as a
follow-up to the original preface message. The reposted part(s) should be
posted as follow-ups to the repost preface message.
7. The preface message for a repost should contain an "X-Multiparts:"
header in which the Message-IDs used in the repost replace the Message-IDs
of the parts they replace, and the parts not replaced are indicated by
asterisks; e.g.:
X-Multiparts: * 99587 <id4@dom> 198242 * 234101
would describe a repost of the second part of the example in point 4 above.
Again, since the preface message is a small text message, propagation
should be good. The "X-Multiparts" header can then be used to determine
which Message-IDs would useful in completing an incomplete multipart.
This could also be used for reposts in which the division into parts is not
identical to the original; however, unless contiguous ranges of replaced
bytes are exactly matched by ranges of (perhaps unequal numbers of) parts
from the original, receiving clients would have to be modified to be able
to make use of such reposts.
--
Peace, Randy@Coises.com
Pages at http://www.coises.com/ were updated 5 March 2002.
Technical Details
Message-ID:
<pe5i9ug5u777rvshl04lq3n12ge828rojn@4ax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed0.news.atl.earthlink.net!news.atl.earthlink.net!news.mindspring.net!not-for-mailReferences:
<us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <180320021514299846%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <pe5i9ug5u777rvshl04lq3n12ge828rojn@4ax.com> Subject: Re: yenc - has anybody else noticed this? Date: Wed, 20 Mar 2002 18:00:59 -0700 From: Coises <auorfa-spamtrap@Coises.com> References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <180320021514299846%planb@newsreaders.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed0.news.atl.earthlink.net!news.atl.earthlink.net!news.mindspring.net!not-for-mail Newsgroups: alt.usenet.offline-reader.forte-agent,news.software.nntp Followup-To: alt.usenet.offline-reader.forte-agent Organization: http://www.coises.com/ Lines: 112 Distribution: inet Reply-To: Agent-user@Coises.com NNTP-Posting-Host: d1.56.ce.a5 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 21 Mar 2002 01:01:01 GMT X-Newsreader: Forte Agent 1.91/32.563