🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
107 messages
107 total messages Page 1 of 3 Started by Nunya Biznis Mon, 18 Mar 2002 19:29
Page 1 of 3 • 107 total messages
Re: yenc - has anybody else noticed this?
#57338
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 19:29
51 lines
3547 bytes
On Mon, 18 Mar 2002 19:07:40 GMT, lordsnow@home.nl (=-lordsnow-=) wrote:

>
>> With only a single part in hand, I can create the output
>> file, pre-extend it to the correct size, and insert the
>> decoded data from the part into it's proper place in the
>> file.
>
>Better would be to use an index file, which keeps track of
>the byte ranges that have been downloaded. When the whole
>file has been covered it can then reconstruct it.
>
>This prevents diskspace being tied up with what's really
>'empty' data when you extend a file to it's full size before
>it's completely downloaded.
>

I don't think the index file would offer any real economy.
Such a file would grow to be at least the size of the file
being downloaded, plus the index overhead.  When you have all
the parts and are creating the "real" output file, you need
(briefly) twice the target file size plus the index overhead.

Putting the parts directly into the "real" output file will use
more space up front, but you never need more space than the size
of the output file plus the size of one part.

>> I think Juergen made one mistake, though.  The complete
>> file CRC is only in the last part.  I would have put it
>> into the =ybegin line of _every_ part to reduce the chances
>> of mixing parts that don't really belong to the same file.
>
>All parts that belong together would have a common
>name=<filename> parameter in the =ybegin line.
>

I was thinking of the possibility that more than one
version of the same file might be in circulation.  It
might be unlikely that both versions would have the 
same size, but if they did there would be the risk
of combining parts that didn't belong together. 

Having the whole-file CRC in every part might also 
simplify handling of the case where multiple unrelated
files having the same name are being decoded at the same
time.

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.
Re: yenc - has anybody else noticed this?
#57340
Author: J.B. Moreno
Date: Mon, 18 Mar 2002 20:14
13 lines
1627 bytes
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.

-- 
J.B. Moreno
Re: yenc - has anybody else noticed this?
#57342
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 20:23
17 lines
2181 bytes
On Mon, 18 Mar 2002 15:14:29 -0500, "J.B. Moreno" <planb@newsreaders.com> wrote:

>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.

True.  I still think it would be better in the long run,
but I can't produce a compelling argument to support my
hunch.  I guess time will tell.

Re: yenc - has anybody else noticed this?
#57344
Author: Jeremy
Date: Mon, 18 Mar 2002 20:30
15 lines
1484 bytes
J.B. Moreno <planb@newsreaders.com> 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.

Yes, but I think the tradeoff would be worth it.  It's important to
be able to identify the file which the segment belongs to, and the
name isn't sufficient for that.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57345
Author: Curt Welch
Date: Mon, 18 Mar 2002 20:45
89 lines
5068 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> On Mon, 18 Mar 2002 19:07:40 GMT, lordsnow@home.nl (=-lordsnow-=) wrote:
>
> >
> >> With only a single part in hand, I can create the output
> >> file, pre-extend it to the correct size, and insert the
> >> decoded data from the part into it's proper place in the
> >> file.
> >
> >Better would be to use an index file, which keeps track of
> >the byte ranges that have been downloaded. When the whole
> >file has been covered it can then reconstruct it.
> >
> >This prevents diskspace being tied up with what's really
> >'empty' data when you extend a file to it's full size before
> >it's completely downloaded.
> >
>
> I don't think the index file would offer any real economy.
> Such a file would grow to be at least the size of the file
> being downloaded, plus the index overhead.  When you have all
> the parts and are creating the "real" output file, you need
> (briefly) twice the target file size plus the index overhead.
>
> Putting the parts directly into the "real" output file will use
> more space up front, but you never need more space than the size
> of the output file plus the size of one part.

Plus an index file which records the byte ranges of what you have
and don't have.

Most unix systems do not allocate blockes when you seek and write
to the middle of a large file, so with a typical Unix file system,
it wouldn't be as bad to just store the parts in one large file.
Also, if you are collectiong parts as separate files, if the parts
overlap (and you save the overlap), then that's more redudant disk
space to deal with.

Either way, it's really about the same however.

> >> I think Juergen made one mistake, though.  The complete
> >> file CRC is only in the last part.  I would have put it
> >> into the =ybegin line of _every_ part to reduce the chances
> >> of mixing parts that don't really belong to the same file.
> >
> >All parts that belong together would have a common
> >name=<filename> parameter in the =ybegin line.
> >
>
> I was thinking of the possibility that more than one
> version of the same file might be in circulation.  It
> might be unlikely that both versions would have the
> same size, but if they did there would be the risk
> of combining parts that didn't belong together.

Right, the file name doesn't help a lot.  It also means that
if someone reposted the file you wanted but used a different
name, you couldn't use it.  You need a good hash.  CRC + filesize
would probably work nicely.  I had talked about MD5 for this
as well.  MD5 by itself is probably good enough without
having to check the filesize.

Also, for usenet, you need this file hash in the article headers,
not just the ybegin.  Newsreaders need to be able to check
posts to see if they might be part of a file they are looking
for without having to download the body.

> Having the whole-file CRC in every part might also
> simplify handling of the case where multiple unrelated
> files having the same name are being decoded at the same
> time.
>
> 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.

Yeah, but from the side doing the posting that forces the newsreader
to scan the entire file before it can start to post.  For the
huge files that can be a real PITA.

To allow newsreaders to find re-posts correctly, you need a general
Usenet standard for putting this information in the headers and not
just at the top of the body.  This is the FNTP discussion we have tried
to have in news.software.nntp.  It's not going very far.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57346
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 21:04
12 lines
2129 bytes
On 18 Mar 2002 20:45:07 GMT, curt@kcwc.com (Curt Welch) wrote:

>Also, for usenet, you need this file hash in the article headers,
>not just the ybegin.  Newsreaders need to be able to check
>posts to see if they might be part of a file they are looking
>for without having to download the body.

While we're at it, how about including each part's file offest
and size when the post is multipart.  That would make it easier 
find the parts needed to fill an incomplete post.

Re: yenc - has anybody else noticed this?
#57347
Author: Curt Welch
Date: Mon, 18 Mar 2002 21:08
25 lines
2512 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> On 18 Mar 2002 20:45:07 GMT, curt@kcwc.com (Curt Welch) wrote:
>
> >Also, for usenet, you need this file hash in the article headers,
> >not just the ybegin.  Newsreaders need to be able to check
> >posts to see if they might be part of a file they are looking
> >for without having to download the body.
>
> While we're at it, how about including each part's file offest
> and size when the post is multipart.  That would make it easier
> find the parts needed to fill an incomplete post.

Of course.  You need that as well or else the hash info alone would
be mostly a waste of time.  You want everything about the file
in the headers - but it's also been pointed out it should be duplicated
in the body as well for newsreaders that can save the body of the
message but not correctly save the header with it.  This gives
decoder programs everything they need if all they have access to
is the body and allows the files to be stored elsewhere such as
on web or ftp or http servers without the article headers.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57350
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 21:20
32 lines
3118 bytes
On 18 Mar 2002 21:08:27 GMT, curt@kcwc.com (Curt Welch) wrote:

>Nunya Biznis <not@liberty.to.tell> wrote:
>> On 18 Mar 2002 20:45:07 GMT, curt@kcwc.com (Curt Welch) wrote:
>>
>> >Also, for usenet, you need this file hash in the article headers,
>> >not just the ybegin.  Newsreaders need to be able to check
>> >posts to see if they might be part of a file they are looking
>> >for without having to download the body.
>>
>> While we're at it, how about including each part's file offest
>> and size when the post is multipart.  That would make it easier
>> find the parts needed to fill an incomplete post.
>
>Of course.  You need that as well or else the hash info alone would
>be mostly a waste of time.  You want everything about the file
>in the headers - but it's also been pointed out it should be duplicated
>in the body as well for newsreaders that can save the body of the
>message but not correctly save the header with it.  This gives
>decoder programs everything they need if all they have access to
>is the body and allows the files to be stored elsewhere such as
>on web or ftp or http servers without the article headers.

Please elaborate on what you mean by "in the headers".
I don't see much advantage in adding new headers that
wouldn't be in the standard overview, since readers
wouldn't be able to see them without downloading the 
message bodies.



Re: yenc - has anybody else noticed this?
#57352
Author: Jeremy
Date: Mon, 18 Mar 2002 21:43
15 lines
1451 bytes
Nunya Biznis  <not@liberty.to.tell> wrote:

> Please elaborate on what you mean by "in the headers".
> I don't see much advantage in adding new headers that
> wouldn't be in the standard overview, since readers
> wouldn't be able to see them without downloading the 
> message bodies.

Of course they would, you can get headers without getting the message
body.  If the headers are available to XHDR and XPAT, so much the
better.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57356
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 22:08
23 lines
2468 bytes
On Mon, 18 Mar 2002 21:43:58 -0000, Jeremy <jeremy@exit109.com> wrote:

>Nunya Biznis  <not@liberty.to.tell> wrote:
>
>> Please elaborate on what you mean by "in the headers".
>> I don't see much advantage in adding new headers that
>> wouldn't be in the standard overview, since readers
>> wouldn't be able to see them without downloading the 
>> message bodies.
>
>Of course they would, you can get headers without getting the message
>body.  If the headers are available to XHDR and XPAT, so much the
>better.

That "you can get" is a little slippery.  I know about
the XHDR command in NNTP, but I haven't seen any news
clients that make use of it.

XPAT could be a hangup, too, because I've encountered
servers that only support it for headers that are in 
the overview.

Re: yenc - has anybody else noticed this?
#57357
Author: Jeffrey M. Vinocur
Date: Mon, 18 Mar 2002 22:17
23 lines
1909 bytes
In article <m3pc9uc8fo7e5np4vj7dnjbodfddokdi2k@4ax.com>,
Nunya Biznis  <not@liberty.to.tell> wrote:
>On Mon, 18 Mar 2002 21:43:58 -0000, Jeremy <jeremy@exit109.com> wrote:
>
>>> I don't see much advantage in adding new headers that
>>> wouldn't be in the standard overview, since readers
>>> wouldn't be able to see them without downloading the 
>>> message bodies.
>>
>>Of course they would, you can get headers without getting the message
>>body.  
>
>That "you can get" is a little slippery.  I know about
>the XHDR command in NNTP, but I haven't seen any news
>clients that make use of it.

I believe Jeremy refers to the HEAD command.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: yenc - has anybody else noticed this?
#57359
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 22:24
23 lines
2469 bytes
On Mon, 18 Mar 2002 22:17:14 +0000 (UTC), jeff@litech.org (Jeffrey M. Vinocur) wrote:

>In article <m3pc9uc8fo7e5np4vj7dnjbodfddokdi2k@4ax.com>,
>Nunya Biznis  <not@liberty.to.tell> wrote:
>>On Mon, 18 Mar 2002 21:43:58 -0000, Jeremy <jeremy@exit109.com> wrote:
>>
>>>> I don't see much advantage in adding new headers that
>>>> wouldn't be in the standard overview, since readers
>>>> wouldn't be able to see them without downloading the 
>>>> message bodies.
>>>
>>>Of course they would, you can get headers without getting the message
>>>body.  
>>
>>That "you can get" is a little slippery.  I know about
>>the XHDR command in NNTP, but I haven't seen any news
>>clients that make use of it.
>
>I believe Jeremy refers to the HEAD command.

OK, so how many news clients use HEAD?

Re: yenc - has anybody else noticed this?
#57360
Author: J.B. Moreno
Date: Mon, 18 Mar 2002 22:28
20 lines
2020 bytes
In article <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com>, 
 Nunya Biznis <not@liberty.to.tell> wrote:

> Please elaborate on what you mean by "in the headers".
> I don't see much advantage in adding new headers that
> wouldn't be in the standard overview, since readers
> wouldn't be able to see them without downloading the 
> message bodies.


They are *able* to do so without downloading the body -- check out the
NNTP command "HEAD" and see what it tells you.

It's not as good as putting it in the overview, but it is (if used and
supported) better than aborting a connection after issuing the ARTICLE
or BODY command.

-- 
J.B. Moreno
Re: yenc - has anybody else noticed this?
#57361
Author: Nunya Biznis
Date: Mon, 18 Mar 2002 23:15
28 lines
2873 bytes
On Mon, 18 Mar 2002 17:28:33 -0500, "J.B. Moreno" <planb@newsreaders.com> wrote:

>In article <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com>, 
> Nunya Biznis <not@liberty.to.tell> wrote:
>
>> Please elaborate on what you mean by "in the headers".
>> I don't see much advantage in adding new headers that
>> wouldn't be in the standard overview, since readers
>> wouldn't be able to see them without downloading the 
>> message bodies.
>
>
>They are *able* to do so without downloading the body -- check out the
>NNTP command "HEAD" and see what it tells you.
>
>It's not as good as putting it in the overview, but it is (if used and
>supported) better than aborting a connection after issuing the ARTICLE
>or BODY command.

The NNTP command "HEAD" is only half of "able".  The other
half is a news client that can make use of this command to
fetch only the headers of a message.

I'm not aware of any news clients that can do this and,
considering how rarely somebody might want to fetch only
headers, I don't think there are many clients that can.

Re: yenc - has anybody else noticed this?
#57362
Author: Curt Welch
Date: Mon, 18 Mar 2002 23:19
73 lines
5495 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> Please elaborate on what you mean by "in the headers".
> I don't see much advantage in adding new headers that
> wouldn't be in the standard overview, since readers
> wouldn't be able to see them without downloading the
> message bodies.

This is all stuff that has been covered multiple times in places like
news.software.nntp and lately I've been talking about it on the yEnc
mailing list as well.  But again....

There's an NNTP command called HEAD which allows you to see all the headers
without having to download the body.  You do NOT want to force newsreaders
to download a 800KB body just to find out it doesn't want the article nore
do you you want to encourge newsreaders to download the body and then drop
the connection after it sees a ybegin line and figures out it has no need
for the rest of the body.

Having this in XOVER headers I assumed to "correct" way to do it, but
that's questionable.

If you duplicate the information about the file in the headers of every
part(which you must if newsreaders are going to try to deal correctly with
lost posts and partial reposts), then the newsreader only has to do a HEAD
command on one article out of each multipart series which it thinks it
might be interested in.  So for a 50 part post, you only need to do a HEAD
command on a single post for that series.

If you put the data into XOVER headers, then the same data will get
downloaded 50 times for that 50 part post.  If the data includes an MD5
(128 bits or 32 hex digits), and a filesize, 10 or so digits, and a Header:
label and who knows how much other bytes of redundant information (many if
you use MIME stype formats), it really better to have to download that 50
times in the XOVER data or once in a HEAD command?  The answer to that will
depend on the averge number of posts per set.  And even though that can get
high today, if reposts started to work better, you would see a lot of
individual posts or posts with only 2 or 3 articles in the set, so forcing
the newsreader to do HEAD commands on all these small repost sets might be
unreasonable.

But, I've suggested another option (I think it was on the yEnc list).  Put
part of the file hash into the XOVER data.  For example, if you are using
CRCs, just take the last 8 hex digits and put it in the subject.  For
example, you could do it by adding a token like this in the Subject -
"yEnc:4AE8".  This would mean that a newsreader looking for lost parts in a
set of articles would only have to do the HEAD command on articles where
those 4 digits matched the CRC of files it was trying to find missing
segments in.  I suspect that would cut down the number of HEAD commands a
newsreader would have to do to something very managable.

But, if you do want to put everything into XOVER, there's options for doing
that. One is throw it all into the Subject (a lot of it is there already).
But this would require defining a strict Subject: format and make Subjects
even longer and harder to read than they already are.  But if the format
was a well defined standard, newsreaders could extract the stuff people
didn't care about (like CRCs and file sizes accurate to the byte), and
display the data in a different format so they didn't have to look at the
very long and boring header).

Another option is to kludge it into the Refereces: header by making the
data look like fake message-IDs.  Workable, but a real hack.

Another option which the MIME guys like is to convince admins to add the
MIME haders to XOVER.  Most news servers had the ability to simply define
extra headers that can be put into the XOVER data and the idea of making
MIME headers a "standard" part of XOVER has been floating around.  So the
plan would be to define how to do usenet binaries in a MIME way, and get
the headers into XOVER as a part of getting all MIME headers into XOVER.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57363
Author: Curt Welch
Date: Mon, 18 Mar 2002 23:23
16 lines
2140 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> OK, so how many news clients use HEAD?

More than I actaully expected to.  But that's not important.  None of them
use it in a way that would help.  But what's important is that they _could_
use it if they want to start finding missing parts.  They wouldn't use it
for all headers - that would be way too slow.  The head command only
returns one header at a time and full headers are about (rough estimate)
about twice as much data as XOVER is.  Doing 1000 HEAD commands would
really suck compared to one XOVER command and a small handfull of HEAD
commands.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57364
Author: Jeremy
Date: Mon, 18 Mar 2002 23:25
22 lines
1647 bytes
Nunya Biznis  <not@liberty.to.tell> wrote:

>> Of course they would, you can get headers without getting the message
>> body.  If the headers are available to XHDR and XPAT, so much the
>> better.
> 
> That "you can get" is a little slippery.  I know about
> the XHDR command in NNTP, but I haven't seen any news
> clients that make use of it.

Clients would have to be modified to take advantage of the information, so
modifying them to retrieve it isn't a problem.

> XPAT could be a hangup, too, because I've encountered
> servers that only support it for headers that are in 
> the overview.

That could be changed too.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57366
Author: Curt Welch
Date: Mon, 18 Mar 2002 23:46
20 lines
2410 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> The NNTP command "HEAD" is only half of "able".  The other
> half is a news client that can make use of this command to
> fetch only the headers of a message.
>
> I'm not aware of any news clients that can do this and,
> considering how rarely somebody might want to fetch only
> headers, I don't think there are many clients that can.

I think you are missing a big point.  Making any news client smart enough
to find missing parts using CRCs or other types of file hash is a lot of
work.  You have to make a lot of changes to the newsreader to support that
type of functionality.  Using HEAD as part of the code changes is trivial.
The only reason for putting this information into the article headers is to
allow these new newsreaders to be written.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57367
Author: Jeremy
Date: Tue, 19 Mar 2002 00:02
43 lines
3284 bytes
Curt Welch <curt@kcwc.com> wrote:

> If you duplicate the information about the file in the headers of every
> part(which you must if newsreaders are going to try to deal correctly with
> lost posts and partial reposts), then the newsreader only has to do a HEAD
> command on one article out of each multipart series which it thinks it
> might be interested in.  So for a 50 part post, you only need to do a HEAD
> command on a single post for that series.

You don't even have to do a HEAD, if the server allows XHDR on the headers
in question.  Then you could grab the appropriate headers from all the
articles you're interested in, without the one-command-per-article
problem of HEAD.

> Another option which the MIME guys like is to convince admins to add the
> MIME haders to XOVER.  Most news servers had the ability to simply define
> extra headers that can be put into the XOVER data and the idea of making
> MIME headers a "standard" part of XOVER has been floating around.  So the
> plan would be to define how to do usenet binaries in a MIME way, and get
> the headers into XOVER as a part of getting all MIME headers into XOVER.

I can certainly see the advantage of putting the MIME headers into XOVER,
but I have to wonder if it wouldn't bloat the overviews for too little
benefit.  After all, if you're *not* using the information, having it in
the overview is wasteful.  I mean, personally, I don't want Xref in my
overviews, because I'd rather not chase crossposts anyway, so that's just
wasted time and bandwidth to me -- but lots of people do want it, and it
still should be available to XHDR, so I'll live with it.  So, I guess the
question would be, how many people would benefit from MIME headers in
overviews?  If it's just the binary downloaders, I don't think it's worth
doing it.

What *is* worth doing is making it so the MIME headers are exposed to
XHDR and XPAT.  On a server where those commands only work on overview
headers, there is still no reason this can't be done without putting
the headers in the actual overviews.  For example, we have made our
servers able to send MIME headers for XHDR and XPAT, without adding
them to XOVER, while previously our servers only did XHDR and XPAT on
overview headers.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57369
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 00:10
42 lines
3812 bytes
On 18 Mar 2002 23:46:59 GMT, curt@kcwc.com (Curt Welch) wrote:

>Nunya Biznis <not@liberty.to.tell> wrote:
>> The NNTP command "HEAD" is only half of "able".  The other
>> half is a news client that can make use of this command to
>> fetch only the headers of a message.
>>
>> I'm not aware of any news clients that can do this and,
>> considering how rarely somebody might want to fetch only
>> headers, I don't think there are many clients that can.
>
>I think you are missing a big point.  Making any news client smart enough
>to find missing parts using CRCs or other types of file hash is a lot of
>work.  You have to make a lot of changes to the newsreader to support that
>type of functionality.  Using HEAD as part of the code changes is trivial.
>The only reason for putting this information into the article headers is to
>allow these new newsreaders to be written.

I didn't really miss that point, and I mostly agree with it.
I was thinking about how we might get some benefit from these
ideas in the near term.  

If I could see the missing-part-identification information 
using an existing news client, I might very well decide that 
a few minutes of looking "by hand" was preferable to downloading
a whole bunch of big parts until I got what I needed to 
complete a file.  I think other people might feel the same way,
particularly people with dialup connections.

This would encourage the authors of posting programs to
add the code needed to put the information out there in
the first place, and that in turn would promote the
development of clients that could automate the work.

On the other hand, if the design is such that posting
programs, reading clients, and maybe even news server
software have to be changed before any of it works,
then we might never see it happen.



Re: yenc - has anybody else noticed this?
#57370
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 00:30
43 lines
4016 bytes
On Tue, 19 Mar 2002 00:02:11 -0000, Jeremy <jeremy@exit109.com> wrote:

>I can certainly see the advantage of putting the MIME headers into XOVER,
>but I have to wonder if it wouldn't bloat the overviews for too little
>benefit.  After all, if you're *not* using the information, having it in
>the overview is wasteful.  I mean, personally, I don't want Xref in my
>overviews, because I'd rather not chase crossposts anyway, so that's just
>wasted time and bandwidth to me -- but lots of people do want it, and it
>still should be available to XHDR, so I'll live with it.  So, I guess the
>question would be, how many people would benefit from MIME headers in
>overviews?  If it's just the binary downloaders, I don't think it's worth
>doing it.
>
>What *is* worth doing is making it so the MIME headers are exposed to
>XHDR and XPAT.  On a server where those commands only work on overview
>headers, there is still no reason this can't be done without putting
>the headers in the actual overviews.  For example, we have made our
>servers able to send MIME headers for XHDR and XPAT, without adding
>them to XOVER, while previously our servers only did XHDR and XPAT on
>overview headers.

I've seen this discussion before:  Is it worth adding something to
the overview that only benefits a small fraction of a server's users
because it's only meaningful for a small fraction of all articles?

I had an idea that is a blatant kludge, but it doesn't cost much
and has little risk of breaking anything:  Have a server post special
internally-generated articles that contain a digest of the extra
headers from only the articles that contain them. For example, a
server might run a program once an hour that read all the new 
articles from the last hour and created a single message containing
the extracted "interesting" headers, plus the other usual overview
headers.  Users who wanted to look at the information could download
the special articles, other could ignore them.  This would add 24 
relatively-small text messages per day to each group so processed.

In the case of big binary missing part recovery information, the
special processing would only be done in the (fairly small number
of) groups where such posts are common.

[ now, where did I put my Nomex longjohns? ]

Re: yenc - has anybody else noticed this?
#57371
Author: Curt Welch
Date: Tue, 19 Mar 2002 00:37
33 lines
2956 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> If I could see the missing-part-identification information
> using an existing news client, I might very well decide that
> a few minutes of looking "by hand" was preferable to downloading
> a whole bunch of big parts until I got what I needed to
> complete a file.  I think other people might feel the same way,
> particularly people with dialup connections.

The idea of putting part of the hash in the subject might
make looking by hand a little more workable?

> This would encourage the authors of posting programs to
> add the code needed to put the information out there in
> the first place, and that in turn would promote the
> development of clients that could automate the work.

Yeah, a big part of making changes work is to find find
ways people can use it now and then leverage that
to help encourage more people to use it or to add
support for it.

> On the other hand, if the design is such that posting
> programs, reading clients, and maybe even news server
> software have to be changed before any of it works,
> then we might never see it happen.

Right, the more that has to be changed to make something
work the less likely it is every going to happen.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57374
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 01:08
17 lines
2606 bytes
On 19 Mar 2002 00:37:59 GMT, curt@kcwc.com (Curt Welch) wrote:

>> If I could see the missing-part-identification information
>> using an existing news client, I might very well decide that
>> a few minutes of looking "by hand" was preferable to downloading
>> a whole bunch of big parts until I got what I needed to
>> complete a file.  I think other people might feel the same way,
>> particularly people with dialup connections.
>
>The idea of putting part of the hash in the subject might
>make looking by hand a little more workable?

I think so.  If you also throw in the part offset and size,
then I could identify the exact message(s) I need to complete
a file.

Re: yenc - has anybody else noticed this?
#57375
Author: Jeremy
Date: Tue, 19 Mar 2002 01:42
19 lines
1748 bytes
Nunya Biznis  <not@liberty.to.tell> wrote:

> I've seen this discussion before:  Is it worth adding something to
> the overview that only benefits a small fraction of a server's users
> because it's only meaningful for a small fraction of all articles?
> 
> I had an idea that is a blatant kludge, but it doesn't cost much
> and has little risk of breaking anything:  Have a server post special
> internally-generated articles that contain a digest of the extra
> headers from only the articles that contain them.

When all you really need to do is make the headers available to XHDR
and XPAT, I think a kludge like that is overkill.  There are only a
couple of headers that need this treatment in order to make the whole
thing work.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57379
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 01:53
33 lines
3084 bytes
On Tue, 19 Mar 2002 01:42:35 -0000, Jeremy <jeremy@exit109.com> wrote:

>Nunya Biznis  <not@liberty.to.tell> wrote:
>
>> I've seen this discussion before:  Is it worth adding something to
>> the overview that only benefits a small fraction of a server's users
>> because it's only meaningful for a small fraction of all articles?
>> 
>> I had an idea that is a blatant kludge, but it doesn't cost much
>> and has little risk of breaking anything:  Have a server post special
>> internally-generated articles that contain a digest of the extra
>> headers from only the articles that contain them.
>
>When all you really need to do is make the headers available to XHDR
>and XPAT, I think a kludge like that is overkill.  There are only a
>couple of headers that need this treatment in order to make the whole
>thing work.

What kind of impact does that have on the server?  I
don't know how servers handle XHDR and XPAT internally,
but I have encountered servers that only support these
commands for headers that are in the overview.

Is it just a coincidence that the XHDR/XPAT headers
are the same as the overview headers, or is it because
these commands use the overview?

On servers that do XHDR/XPAT for non-overview headers,
are they doing it "the hard way" (ie, plowing through
all of the articles), or is there something more clever
going on?

Re: yenc - has anybody else noticed this?
#57380
Author: Jeremy
Date: Tue, 19 Mar 2002 02:01
29 lines
2021 bytes
Nunya Biznis  <not@liberty.to.tell> wrote:

> What kind of impact does that have on the server?  I
> don't know how servers handle XHDR and XPAT internally,
> but I have encountered servers that only support these
> commands for headers that are in the overview.

Right, I'm saying those servers need to be changed.

> Is it just a coincidence that the XHDR/XPAT headers
> are the same as the overview headers, or is it because
> these commands use the overview?

Usually it's because they are using the overview index to retrieve
the information.

> On servers that do XHDR/XPAT for non-overview headers,
> are they doing it "the hard way" (ie, plowing through
> all of the articles), or is there something more clever
> going on?

They're probably doing it the hard way.  In our case, where we were
only allowing them on overview headers, we added the appropriate MIME
headers to the index, but not to the output of XOVER, making them
available to XHDR/XPAT without doing it the hard way.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57389
Author: Jeremy
Date: Tue, 19 Mar 2002 02:03
12 lines
1191 bytes
Curt Welch <curt@kcwc.com> wrote:

> But still, having to wait 10 minutes before posting a 5GB file is a
> GOOD THING. :) But it will be meet with resistance even if it only adds
> a 10 second delay.

Given the amount of time it would take to actually post a file that large,
I don't think the time taken to do an MD5 on it is really the killer.

-- 
Jeremy  |  jeremy@exit109.com
Re: yenc - has anybody else noticed this?
#57381
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 02:19
18 lines
2522 bytes
On Tue, 19 Mar 2002 02:01:41 -0000, Jeremy <jeremy@exit109.com> wrote:

>> On servers that do XHDR/XPAT for non-overview headers,
>> are they doing it "the hard way" (ie, plowing through
>> all of the articles), or is there something more clever
>> going on?
>
>They're probably doing it the hard way.  In our case, where we were
>only allowing them on overview headers, we added the appropriate MIME
>headers to the index, but not to the output of XOVER, making them
>available to XHDR/XPAT without doing it the hard way.

That makes sense.  Was it diffcult to do, and is there
a lot of ongoing overhead to mainting the indexes on
the additional headers?  I'm trying to figure out how
willing other server admins might be to adopt such changes.

Re: yenc - has anybody else noticed this?
#57383
Author: Russ Allbery
Date: Tue, 19 Mar 2002 03:02
32 lines
2177 bytes
=-lordsnow-= <lordsnow@home.nl> writes:

> Likely candidates on my list are:

> 	CRC-32		118%
> 	Adler-32	293%
> 	MD5		100%	(1GB in 10.2sec)
> 	HAVAL (3-pass)	 64%
> 	Tiger/192	 24%	*
> 	Panama Hash	138%
> 	SEAL		118%

> Relative speed, timed on a P850 on Win2000.

I don't think there's any reason not to use either MD5 of SHA-1, and I'd
vote for MD5.  It works well enough in situations where there's nothing
really gained by an active attack (which is the case in this situation),
and MD5 implementations are very widely available.  And MD5 is
standardized in an RFC.

Heck, feel free to use the implementation from INN CURRENT if you want;
it's pretty self-contained and very well-documented.

Basically, MD5 is fast enough that you won't really notice the speed
difference in a normal application.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: yenc - has anybody else noticed this?
#57386
Author: Jeffrey M. Vinocur
Date: Tue, 19 Mar 2002 04:34
26 lines
2160 bytes
In article <ju7d9ukrssaer70tdhhsj04qg3v5d8oj1d@4ax.com>,
Nunya Biznis  <not@liberty.to.tell> wrote:
>On Tue, 19 Mar 2002 02:01:41 -0000, Jeremy <jeremy@exit109.com> wrote:
>
>>In our case, where we were only allowing them on overview
>>headers, we added the appropriate MIME headers to the index,
>>but not to the output of XOVER, making them available to
>>XHDR/XPAT without doing it the hard way.
>
>That makes sense.  Was it diffcult to do, and is there
>a lot of ongoing overhead to mainting the indexes on the
>additional headers?  I'm trying to figure out how willing other
>server admins might be to adopt such changes.

Except in a few special cases where the site is using
internally-developed software, the relevant questions are:

- How hard is it for the developers to add?
- What additional resources (disk/cpu) are required as a result?
- How often do sites upgrade their software?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: yenc - has anybody else noticed this?
#57390
Author: J.B. Moreno
Date: Tue, 19 Mar 2002 04:51
59 lines
4167 bytes
In article <20020318181949.333$Fq@newsreader.com>, 
Curt Welch <curt@kcwc.com> wrote:

> Nunya Biznis <not@liberty.to.tell> wrote:
> > Please elaborate on what you mean by "in the headers".
> > I don't see much advantage in adding new headers that
> > wouldn't be in the standard overview, since readers
> > wouldn't be able to see them without downloading the
> > message bodies.
> 
> This is all stuff that has been covered multiple times in places like
> news.software.nntp and lately I've been talking about it on the yEnc
> mailing list as well.  But again....

Yep, it's come several times recently -- a bonus from the introduction
of yEnc (I say bonus because the final result ought to be independent
of the encoding method; assuming that there ever is a final result).

-snip-
> But, I've suggested another option (I think it was on the yEnc list).  Put
> part of the file hash into the XOVER data.  [...] But, if you do want
> to put everything into XOVER, there's options for doing that. One is
> throw it all into the Subject (a lot of it is there already). But
> this would require defining a strict Subject: format and make
> Subjects even longer and harder to read than they already are.
-snip-
> Another option is to kludge it into the Refereces: header by making the
> data look like fake message-IDs.  Workable, but a real hack.

I like the References "hack" as you call it because it's compatible
with all servers and makes threading easier (i.e. you can always use
References based threading), but on thinking about it I think it's even
better to use Message-ID (even if some servers won't allow the client
to provide it).

Defining a Message-ID standard format for binary messages would not
only mean it was included in the overview, but would mean it could be
acted upon by servers at transport level.

(I.e. if you include an overall size component, servers could reject
messages of a size they don't want to carry).

A M-ID standard would be just as definitive as a MIME standard (at
least for servers that don't override the client supplied M-ID), but
would be more useful.

> Another option which the MIME guys like is to convince admins to add the
> MIME haders to XOVER.  Most news servers had the ability to simply define
> extra headers that can be put into the XOVER data and the idea of making
> MIME headers a "standard" part of XOVER has been floating around.  So the
> plan would be to define how to do usenet binaries in a MIME way, and get
> the headers into XOVER as a part of getting all MIME headers into XOVER.

Since it appears that currently only Gnus can act upon extra headers
returned by XOVER, I remain unconvinced that this would be feasible.

-- 
J.B. Moreno
Re: yenc - has anybody else noticed this?
#57394
Author: Klaas
Date: Tue, 19 Mar 2002 05:32
31 lines
2342 bytes
J.B. Moreno <planb@newsreaders.com> wrote in message
news:180320022351466617%planb@newsreaders.com...
> In article <20020318181949.333$Fq@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:

<snip>

> > Another option which the MIME guys like is to convince admins to
add the
> > MIME haders to XOVER.  Most news servers had the ability to simply
define
> > extra headers that can be put into the XOVER data and the idea of
making
> > MIME headers a "standard" part of XOVER has been floating around.
So the
> > plan would be to define how to do usenet binaries in a MIME way,
and get
> > the headers into XOVER as a part of getting all MIME headers into
XOVER.
>
> Since it appears that currently only Gnus can act upon extra headers
> returned by XOVER, I remain unconvinced that this would be feasible.

Since any newsreader would need changes to take advantaged of it
anyway, I don't see how current implementation is relevant.

-Mike


Re: yenc - has anybody else noticed this?
#57395
Author: J.B. Moreno
Date: Tue, 19 Mar 2002 06:12
20 lines
2201 bytes
Using the newsreader with the world's worst quoting algorithm,
 Klaas <spamhole@klaas.ca> wrote:

> J.B. Moreno <planb@newsreaders.com> wrote in message
-snip-
> > Since it appears that currently only Gnus can act upon extra
> > headers returned by XOVER, I remain unconvinced that this would be
> > feasible.
> 
> Since any newsreader would need changes to take advantaged of it
> anyway, I don't see how current implementation is relevant.

Degree of difficulty in implementing a change and number of programs
that react badly to the change at the server level.

Probably better to introduce new NNTP command.

-- 
J.B. Moreno
Re: yenc - has anybody else noticed this?
#57408
Author: Claus Färber
Date: Tue, 19 Mar 2002 10:43
25 lines
1966 bytes
=-lordsnow-= <lordsnow@home.nl> schrieb/wrote:
> Yup... for example, it would take 51 sec to compute a MD5 for a 5GB file
> on a Celeron 850.

Yeah, and about 250 seconds (at 20MB/s, which is about the speed
of the fastest current harddisks, not couting the OS's overhead)
to read it from disk.

Posting on a 100 MBit/s(!, again not counting any overhead)
network takes at least 400 seconds, provided the receiving server
can tuck the data away fast enough.

N.B. that modern bus-mastering PCI NI, IDE and SCSI cards don't
use much CPU cycles.

If you want to upload files that large, you probably have to use
an "upload manager", which is told which files to upload to which
groups and then does that in the background without any further  
user intervention.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: yenc - has anybody else noticed this?
#57413
Author: Curt Welch
Date: Tue, 19 Mar 2002 15:00
25 lines
2386 bytes
Nunya Biznis <not@liberty.to.tell> wrote:
> Is it just a coincidence that the XHDR/XPAT headers
> are the same as the overview headers, or is it because
> these commands use the overview?
>
> On servers that do XHDR/XPAT for non-overview headers,
> are they doing it "the hard way" (ie, plowing through
> all of the articles), or is there something more clever
> going on?

Most (maybe all?) do it "the hard way".  My server uses
the overview data if you ask for headers which are part
of overview, but if you ask for anything else, it does
it the hard way.  But the the hard way is only about 3x
the work of the easy way so it's not really all that hard.

But, servers are modified and re-written over time, so
if it became a "norm" on Usenet for newsreader to search
for some new header, the servers would simple be re-optimized
to make that header "easy".

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57416
Author: Nunya Biznis
Date: Tue, 19 Mar 2002 15:37
31 lines
3110 bytes
On 19 Mar 2002 15:00:49 GMT, curt@kcwc.com (Curt Welch) wrote:

>Nunya Biznis <not@liberty.to.tell> wrote:
>> Is it just a coincidence that the XHDR/XPAT headers
>> are the same as the overview headers, or is it because
>> these commands use the overview?
>>
>> On servers that do XHDR/XPAT for non-overview headers,
>> are they doing it "the hard way" (ie, plowing through
>> all of the articles), or is there something more clever
>> going on?
>
>Most (maybe all?) do it "the hard way".  My server uses
>the overview data if you ask for headers which are part
>of overview, but if you ask for anything else, it does
>it the hard way.  But the the hard way is only about 3x
>the work of the easy way so it's not really all that hard.
>
>But, servers are modified and re-written over time, so
>if it became a "norm" on Usenet for newsreader to search
>for some new header, the servers would simple be re-optimized
>to make that header "easy".

One thing comes to mind here.  If the information needed to
find the correct "fill" parts for a big multipart binary is put into
headers, there would probably be a fairly small number of 
groups in which requests for those headers was commonplace.
It shouldn't be too difficult to come up with a cacheing scheme
that permits the requests to be satisfied efficiently.

Re: yenc - has anybody else noticed this?
#57460
Author: Dennis SCP
Date: Wed, 20 Mar 2002 17:20
18 lines
2341 bytes
Russ Allbery <rra@stanford.edu> wrote:

> I don't think there's any reason not to use either MD5 of SHA-1, and I'd
> vote for MD5.  It works well enough in situations where there's nothing
> really gained by an active attack (which is the case in this situation),
> and MD5 implementations are very widely available.  And MD5 is
> standardized in an RFC

Nothing gained by an active attack?
"I run a pornmovie site. You post pornmovies. I corrupt some of your
missing parts. People go to my porn site for working movies. We both
post preview pics. My movies work, yours don't. I may make more money."
-- 
Dennis SCP [nl,en,(de)]                                         Kuyichi
Je sponsort nu TV reclames van je merkkleding, waarom geen merkkleding
kopen waarbij jouw geld arbo verbetering in arme landen eist? 
Kuyichi - Trendy jeansware & fair trade - Rotterdam: Yep Lifestyle
Re: yenc - has anybody else noticed this?
#57461
Author: Russ Allbery
Date: Wed, 20 Mar 2002 18:32
25 lines
2315 bytes
Dennis SCP <dennis.scp@multiweb.nl> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> I don't think there's any reason not to use either MD5 of SHA-1, and
>> I'd vote for MD5.  It works well enough in situations where there's
>> nothing really gained by an active attack (which is the case in this
>> situation), and MD5 implementations are very widely available.  And MD5
>> is standardized in an RFC

> Nothing gained by an active attack?
> "I run a pornmovie site. You post pornmovies. I corrupt some of your
> missing parts.

That's not an attack on the checksum; that's an attack on the posts.  You
fix that by preventing third-party cancels, not by choosing stronger
checksums.  The attack against MD5 isn't probable given other available
attack vectors, and wouldn't be probable even if there weren't other
attack vectors; it takes too many resources.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: yenc - has anybody else noticed this?
#57463
Author: Dennis SCP
Date: Wed, 20 Mar 2002 19:00
21 lines
2537 bytes
Russ Allbery <rra@stanford.edu> wrote:

> > Nothing gained by an active attack?
> > "I run a pornmovie site. You post pornmovies. I corrupt some of your
> > missing parts.
> 
> That's not an attack on the checksum; that's an attack on the posts.  You
> fix that by preventing third-party cancels, not by choosing stronger
> checksums.  The attack against MD5 isn't probable given other available
> attack vectors, and wouldn't be probable even if there weren't other
> attack vectors; it takes too many resources.

I dunno, all you need to do is post one missing part with an identical
checksum to corrupt the entire multi-post at the enduser. Seems a lot
more effecient than flooding a group. But than again I am no expert.
-- 
Dennis SCP [nl,en,(de)]                                         Kuyichi
Je sponsort nu TV reclames van je merkkleding, waarom geen merkkleding
kopen waarbij jouw geld arbo verbetering in arme landen eist? 
Kuyichi - Trendy jeansware & fair trade - Rotterdam: Yep Lifestyle
Using Message-ID to store binary file information
#57464
Author: Curt Welch
Date: Wed, 20 Mar 2002 19:04
118 lines
7260 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> I like the References "hack" as you call it because it's compatible
> with all servers and makes threading easier (i.e. you can always use
> References based threading), but on thinking about it I think it's even
> better to use Message-ID (even if some servers won't allow the client
> to provide it).
>
> Defining a Message-ID standard format for binary messages would not
> only mean it was included in the overview, but would mean it could be
> acted upon by servers at transport level.

I'm normally against trying to put anything besides the date into a
Message-ID.  Everybody wants to put something into the Message-ID and even
though a lot of ideas about putting stuff in there is interesting, none of
it seemed truly worthy.

But the idea of having a standard Message-ID format for binary file
segments seems like it might have some value.  As you point out, if the
complete file size was there, news servers could reject articles based on
the Message-ID.

The problem however is that once you put one thing in there, then everyone
starts to argue about what else should be stuffed in there.  Group names,
revision numbers, author IDs, etc etc.

Ignoring the slippery slope problem of putting anything into Message-IDs,
what would you suggest putting in there for binaries?

At the low end, you could put a marker which simply indicated that the
article was a binary - perhapps also meaning it conformed to some new
standard for encoding binaries on Usenet: $ubf$

You could put in the full file size which this segment was a part of,
Something like: $fs=3a74f$ (using hex to help compact it - or you could use
a base-64 type encoding to compact it further).  Hex takes 8 characters to
hold a 32 bit number but base64 encoding only takes 6.

You could throw in the segment offset and size:

         so=3Hw6,ss=y7J

You could thrown in the md5, which would be a big waste of characters:

         md5=6ba6b1808d70fea97d7f64001144a0d6

Or you could create something much smaller like a 16 bit version of
the full md5 to help match files but not to to uniqly idendtify them:

         m6=a0d6

If the full file size was there, then the short hash + the file size
would be a good indication of a match.  But if it wasn't good enough,
then you would still be stuck with the need of putting a larger hash
somewhere else in the headers.  Maybe a 32 bit hash would be strong
enough?  It's been implied that crc32 isn't very good, but maybe 32
bits from an md5 of the file would be strong enough that it could all
be placed in the Message-ID???

So, to see what this looks like, I'll make up an example.  Let's assume
we are posting the last segment of a 500 MB file and the segments are
500KB each. (I'm using numbers on the larger end to show what an ID will
look like with farily large numbers in it).  And I'll put in a 32 bit
hash encoded in base64 as well: (or why not a 36 bit hash):

  <.date-stuff.$h=uJb8Ex$s=eP000$o=eNb00$l=A900$@somehostname.com>

In the above, h is the 36 bit hash, s is the filesize, o is the file offset
for this segment, l is the length of this segment. A 500K single part file
would leave out the offset and length so it would look something like this:

  <date-stuff$h=uJb8Ex$s=A900$@somehostname.com>

Compared to an airnews id which usenet is already living with:

  <99372C2973C6A746.C6C49A8CCD3EA397.1810703A62E23B4F@lp.airnews.net>

If the hash and the size were always required, these IDs could be spotted
by looking for the pattern: "$h=......$s=.*$"  I'm guessing that would be
good enough to reduce false positive hits to an acceptably low level.

As much as I dislike the idea of putting "header" information into the
message-id, I think this has some potential. It forces the file segment
informaion into a very compact form so header downloads won't be too
adversely impacted.  It gives newsreaders everything they need with no
changes to the current servers (other than the fact that the few servers in
the world that don't allow you to specify the Message-ID would not be
useable for posting binaries - but the users could still read binaries fine
from those servers).

It's also 100% compatible with all current formats used for posting
binaries to Usenet (uuencode, MIME, or yEnc) -- as long as you include
only one file or file segment in each article.

> (I.e. if you include an overall size component, servers could reject
> messages of a size they don't want to carry).

Current servers have no real abilty to filter on Message-ID, so this
isn't something they could make use of now, but it would be very
straight forward to add to any server.  And the very cool thing
is that a server could filter their incomming feeds by full file size
and make changes to their filters without having to contact their peers!
Or you could simply filter all binaries from the feed if one day this
convention became the norm instead of the exception.

Servers at some point could start to reject posted binary articles that
didn't have a valid "binary" message-ID to help force the transistion
of Usenet to this standard.  And they could check articles at time of post
to make sure the Message-ID was consistent with the data in the
article (all you could really check was the length of the encoded data
in the article - but that might be useful).  Doing that for example would
prevent abuse where a hacker would post small fake messages in an attempt
to block parts of a post from getting out to the net by guessing at the
Message-IDs of the other parts that had not yet shown up.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57465
Author: Curt Welch
Date: Wed, 20 Mar 2002 19:33
26 lines
2609 bytes
dennis.scp@multiweb.nl (Dennis SCP) wrote:
> Russ Allbery <rra@stanford.edu> wrote:
>
> > > Nothing gained by an active attack?
> > > "I run a pornmovie site. You post pornmovies. I corrupt some of your
> > > missing parts.
> >
> > That's not an attack on the checksum; that's an attack on the posts.
> > You fix that by preventing third-party cancels, not by choosing
> > stronger checksums.  The attack against MD5 isn't probable given other
> > available attack vectors, and wouldn't be probable even if there
> > weren't other attack vectors; it takes too many resources.
>
> I dunno, all you need to do is post one missing part with an identical
> checksum to corrupt the entire multi-post at the enduser. Seems a lot
> more effecient than flooding a group. But than again I am no expert.

The point is that you can do that now.  Your ability to make that attack
against the post has nothing to do with the addition of a weak or strong
checksum.  The point of adding the checksum has nothing to do with
protecting the security of the post or the data.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57468
Author: Marco d'Itri
Date: Wed, 20 Mar 2002 20:26
10 lines
1397 bytes
rra@stanford.edu wrote:

>I don't think there's any reason not to use either MD5 of SHA-1, and I'd
>vote for MD5.
If the file size is known then the MD5 attack cannot be done.

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *
Re: Using Message-ID to store binary file information
#57470
Author: J.B. Moreno
Date: Wed, 20 Mar 2002 20:58
186 lines
10380 bytes
In article <20020320140409.897$WW_-_@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> > Defining a Message-ID standard format for binary messages would not
> > only mean it was included in the overview, but would mean it could
> > be acted upon by servers at transport level.
> 
> I'm normally against trying to put anything besides the date into a
> Message-ID.  Everybody wants to put something into the Message-ID and
> even though a lot of ideas about putting stuff in there is
> interesting, none of it seemed truly worthy.

Well, I think some of it has proven useful -- user id tokens for
example (the form of the token isn't as important as it's presence).

> But the idea of having a standard Message-ID format for binary file
> segments seems like it might have some value.  As you point out, if
> the complete file size was there, news servers could reject articles
> based on the Message-ID.

I was talking about at the transport level, I didn't expect the server
you are posting to to reject articles because of file size, except
possibly when they have monthly bandwidth limits which you are about to
exceed.  But on thinking about it, it might be that it'd be done even
for individual articles -- servers with "no binary" policies might make
an exception for smaller articles.

> The problem however is that once you put one thing in there, then
> everyone starts to argue about what else should be stuffed in there. 
> Group names, revision numbers, author IDs, etc etc.

None of that makes sense (with the possible exception of author id's)
for binaries.  So, I don't think a slippery slope argument is valid,
you want to know that it's a binary and that it is connected to some
other binaries, but not much more.

> Ignoring the slippery slope problem of putting anything into
> Message-IDs, what would you suggest putting in there for binaries?

Well, first and foremost -- that it's a binary.  Then the size.  Then
something that is reasonably compact and unique to the file so XPAT
searches can be done looking for individual parts.  Number of parts. 
Perhaps the encoding method (remember that this is *NOT* something that
is intended for yEnc or UU or Base-64 or any other particular encoding
method, instead it should be used for /all/ encoding methods).

> At the low end, you could put a marker which simply indicated that the
> article was a binary - perhapps also meaning it conformed to some new
> standard for encoding binaries on Usenet: $ubf$
> 
> You could put in the full file size which this segment was a part of,
> Something like: $fs=3a74f$ (using hex to help compact it - or you could use
> a base-64 type encoding to compact it further).  Hex takes 8 characters to
> hold a 32 bit number but base64 encoding only takes 6.
> 
> You could throw in the segment offset and size:
> 
>          so=3Hw6,ss=y7J

What benefit do you expect to have from having the segment size and
offset included in the Message-ID instead of elsewhere?

I'm not suggesting that all of the binary information be presented in
the Message-ID, just those parts that you want to have as quickly and
easily as possible.  Above I mentioned encoding method, but only
because it might help with filtering (and deciding what encoding
methods to support).

> You could thrown in the md5, which would be a big waste of characters:
> 
>          md5=6ba6b1808d70fea97d7f64001144a0d6
> 
> Or you could create something much smaller like a 16 bit version of
> the full md5 to help match files but not to to uniqly idendtify them:
> 
>          m6=a0d6

Well, as you say, you'd want to use base64 so both of the above would
be somewhat smaller, and you're right that you probably don't need (or
want) the full MD5 hash.

> If the full file size was there, then the short hash + the file size
> would be a good indication of a match.  But if it wasn't good enough,
> then you would still be stuck with the need of putting a larger hash
> somewhere else in the headers.  Maybe a 32 bit hash would be strong
> enough?  It's been implied that crc32 isn't very good, but maybe 32
> bits from an md5 of the file would be strong enough that it could all
> be placed in the Message-ID???

I'm still somewhat skeptical about doing a MD5 or a CRC based upon the
fact that you have to scan the article twice -- I'm not sure how long
that would take.  You're using a 500 mb file below as an example, how
long would it take to read that and compute an MD5 for it?

> So, to see what this looks like, I'll make up an example.  Let's assume
> we are posting the last segment of a 500 MB file and the segments are
> 500KB each. (I'm using numbers on the larger end to show what an ID will
> look like with farily large numbers in it).  And I'll put in a 32 bit
> hash encoded in base64 as well: (or why not a 36 bit hash):
> 
>   <.date-stuff.$h=uJb8Ex$s=eP000$o=eNb00$l=A900$@somehostname.com>
> 
> In the above, h is the 36 bit hash, s is the filesize, o is the file offset
> for this segment, l is the length of this segment. A 500K single part file
> would leave out the offset and length so it would look something like this:
> 
>   <date-stuff$h=uJb8Ex$s=A900$@somehostname.com>
> 
> Compared to an airnews id which usenet is already living with:
> 
>   <99372C2973C6A746.C6C49A8CCD3EA397.1810703A62E23B4F@lp.airnews.net>
> 
> If the hash and the size were always required, these IDs could be spotted
> by looking for the pattern: "$h=......$s=.*$"  I'm guessing that would be
> good enough to reduce false positive hits to an acceptably low level.

What about including the information on the RHS instead of the left?

<date-stuff@uJb8Ex.A900.ubin.invalid>

(ubin meaning usenet binary).

This should eliminate any chance of (random) false positives, while at
the same time reducing the size of the required message-id.

> As much as I dislike the idea of putting "header" information into the
> message-id, I think this has some potential. It forces the file segment
> informaion into a very compact form so header downloads won't be too
> adversely impacted.  It gives newsreaders everything they need with no
> changes to the current servers (other than the fact that the few servers in
> the world that don't allow you to specify the Message-ID would not be
> useable for posting binaries - but the users could still read binaries fine
> from those servers).

Well, if you used the RHS and allowed "invalid" to be replaced with the
actual host name if the server required, they might change the way they
generate message-id's.  Or simply make an exception for labeled
binaries.

> It's also 100% compatible with all current formats used for posting
> binaries to Usenet (uuencode, MIME, or yEnc) -- as long as you include
> only one file or file segment in each article.

And since that is the case in the VAST majority of articles, I think
that any loss in ability to do multiple files in one article is quite
acceptable for the benefits received.

> > (I.e. if you include an overall size component, servers could reject
> > messages of a size they don't want to carry).
> 
> Current servers have no real abilty to filter on Message-ID, so this
> isn't something they could make use of now, but it would be very
> straight forward to add to any server.  And the very cool thing
> is that a server could filter their incomming feeds by full file size
> and make changes to their filters without having to contact their peers!

Exactly what I was thinking of.

> Or you could simply filter all binaries from the feed if one day this
> convention became the norm instead of the exception.

Yep -- this would allow a text only server to carry all groups.

> Servers at some point could start to reject posted binary articles that
> didn't have a valid "binary" message-ID to help force the transistion
> of Usenet to this standard.  

Yep.  And assuming that binaries continue to outpace regular articles,
it wouldn't be hard to decide when the time came to force the
transition either -- just compare the number of binary MIDs against the
number of non-binary MIDs.

> And they could check articles at time of post to make sure the
> Message-ID was consistent with the data in the article (all you could
> really check was the length of the encoded data in the article - but
> that might be useful).  Doing that for example would prevent abuse
> where a hacker would post small fake messages in an attempt to block
> parts of a post from getting out to the net by guessing at the
> Message-IDs of the other parts that had not yet shown up.

Good idea, I hadn't considered that.

-- 
J.B. Moreno
Re: yenc - has anybody else noticed this?
#57471
Author: Joe Newsreader
Date: Wed, 20 Mar 2002 21:02
13 lines
2049 bytes
On 20 Mar 2002 21:26:05 +0100, Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> wrote:

>rra@stanford.edu wrote:
>
>>I don't think there's any reason not to use either MD5 of SHA-1, and I'd
>>vote for MD5.
>If the file size is known then the MD5 attack cannot be done.

Why not?

Joe

Re: yenc - has anybody else noticed this?
#57473
Author: Joe Newsreader
Date: Wed, 20 Mar 2002 22:02
27 lines
2583 bytes
On Wed, 20 Mar 2002 21:35:57 GMT, lordsnow@home.nl (=-lordsnow-=) wrote:

>
>> >I don't think there's any reason not to use either MD5 of SHA-1, and I'd
>> >vote for MD5.
>
>> If the file size is known then the MD5 attack cannot be done.
>
>So... what you're saying is: it IS possible that two files will have
>the same MD5, but only when they're not the same size?
>

I don't think you have to "crack" MD5 to mount an effective
attack against a multipart post.  The attacker can forge an
MD5 that matches the real post, which will lead some readers
to merge the part into the file they are assembling.  With the
bogus part, the final file won't pass the MD5 check, but the
attacker won't care.  The user has a hopeless (if there are
enough parts) task of figuring out which part(s) are bogus.

It's another matter entirely if the attacker wants the bogus part
to result in a file that passes the MD5 check.

Joe


Re: yenc - has anybody else noticed this?
#57474
Author: Marco d'Itri
Date: Wed, 20 Mar 2002 22:05
11 lines
1553 bytes
lordsnow@home.nl wrote:

>> If the file size is known then the MD5 attack cannot be done.
>So... what you're saying is: it IS possible that two files will have
>the same MD5, but only when they're not the same size?
Yes, at least as far as is currently known.

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *
Re: Using Message-ID to store binary file information
#57476
Author: Curt Welch
Date: Wed, 20 Mar 2002 22:41
206 lines
10934 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <20020320140409.897$WW_-_@newsreader.com>,
>  Curt Welch <curt@kcwc.com> wrote:

> > Ignoring the slippery slope problem of putting anything into
> > Message-IDs, what would you suggest putting in there for binaries?
>
> Well, first and foremost -- that it's a binary.  Then the size.  Then
> something that is reasonably compact and unique to the file so XPAT
> searches can be done looking for individual parts.

Ah, XPAT searches.  I hadn't thought about that. That's another potential
benefit.

But even without XAPT, just doing a XHDR message-id to dump the IDs for
an entire group is something that works today on all servers (I suspect)
and would give a binary download tool all the info it needed to locate
potential articles for missing parts (if this was a standard which was
all of Usenet was converted to at some point).

> Number of parts.

I think we need to get away from that.

> > You could throw in the segment offset and size:
> >
> >          so=3Hw6,ss=y7J
>
> What benefit do you expect to have from having the segment size and
> offset included in the Message-ID instead of elsewhere?

Well, to start with, we need to move away from the idea of part counts
or part numbers and move to the idea of byte ranges to allow newsreaders
to correctly find the segments they need to fill in holes.  This is needed
to replace the idea of part number so reposts no longer have to match
the size of the orginal post.

When I started to write my article, I assumed that we couldn't put
eveything in the ID (it would make the ID too large) so we would just put a
few thigns that was most useful (like the full size of the binary the
segment was a part of).  But by the middle of my article, I realized it was
actually possible to put everything that was needed into the ID and still
keep the Message-ID a resonable length (long, but not unworkably long).  So
if we have completly elimited the need to add other headers or to hide data
in other parts of the header, why not put it all in one place?  That was
what I was thinking.

If you put all that stuff in the ID, then the newsreader has
everything it needs to find articles without having to do XHDR or
HEAD commnds.  You could move that stuff into a fake id in the References
and still have it show up in XOVER, but then then the nice trick of a
single XHDR command to get everything you needed would not work.  You would
have to do two and get a lot of "real" References: data for the text
articles that you cared nothing about.  Putting it all in the ID seems
generally cleaner to me.

There is other information needed as well, like file name, and checksums
for the article, but that can all be dealt with how it's done now with
the various standards (MIME, uuencode, yEnc).  Those are things the
newsreader would need to know until after it started downloading the
articles.  And the subject alone is all the user needs to decide what to
try to download in the first place.

If moving things like offset and part size into the Refferences section
to prevent excessive bloat in Message-IDs makes sense, that could be done.

But once I realized that we could but everything that was needed into
the ID and not worry about any other new headers or tricks it seemed
to make more sense to me.

> I'm not suggesting that all of the binary information be presented in
> the Message-ID, just those parts that you want to have as quickly and
> easily as possible.  Above I mentioned encoding method, but only
> because it might help with filtering (and deciding what encoding
> methods to support).

Putting encoding method in there could help.  But it kinda implies
that we want to support lots of different methods.  And it creates
the complexity of adding new names later for other new encoding
systems.  You could attempt to kill that by defining only uuencode,
MIME, and yEnc and say that all new methods MUST be done as MIME
or not done at all.

But to be honest, I'd rather just leave the encoding method out and
not make it "easy" to support many standards - to encourage the net
to move to one standard (whatever that is).

> Well, as you say, you'd want to use base64 so both of the above would
> be somewhat smaller, and you're right that you probably don't need (or
> want) the full MD5 hash.

Some research could help determine how many bits are really justified
and what algorithm is the best for giving us those bits.  But if everything
is encoded with base64, then a total which is a multiple of 6 would
be logical.

> I'm still somewhat skeptical about doing a MD5 or a CRC based upon the
> fact that you have to scan the article twice -- I'm not sure how long
> that would take.  You're using a 500 mb file below as an example, how
> long would it take to read that and compute an MD5 for it?

This was discussed elsewhere recently.  MD5 is as fast as CRC-32 and both
are probably at least 10 times faster than disk-io.  So the answer for
most machines has nothing to do with the CPU time and is only a function
of the disk speed.  Disks run 10 to 20 MB per second these days, so you
are talking less than a minute to scan a 500 MB file before posting could
start.

For a real world test, on a 200 Mhz Pentium Pro box running FreeBSD,
It took 2.8 seconds to calculate an MD5 on a 23.8 MB file which was on
an old cheap IDE drive. (which is an IO rate 8.5 MB/sec)  It would take
over 2 minutes to post that same file to Usenet over a T1 line.

I don't see the time for the scan being a killer as long as we kept with
a hash fucntion that was a lot faster than the disks.  MD5 is nice because
it is so fast.

> What about including the information on the RHS instead of the left?
>
> <date-stuff@uJb8Ex.A900.ubin.invalid>
>
> (ubin meaning usenet binary).

It's an option.  But I believe some people in the past felt they wanted to
keep the RHS a real domain name and even allow their server to change the
RHS of a user supplied ID.  I don't know if any server is actually doing
that today.

It doesn't really save much in terms of bytes in the Message-ID.

Base64 needs two characters other than letters and numbers.  MIME uses
+ and /.  That's likely to cause problems on the RHS. We could use - and
something else (what else would be used?).  Or stick with hex or make
up a base32 encoding.

And domain names are case insensitive and there's always been an old
hanging issue of whether <1@TEST.COM> should be treated as equal to
<1@test.com>.  Even though most news servers would treat those two IDs
has being different, I think in theory they "should" be treated as
equal.  This issue could get in the way of puting base64 on the RHS
but wouldn't stop base32 or hex from working.

> This should eliminate any chance of (random) false positives,

I'm sure we can reduce the odds of false positives a few orders of
magnature below where we need it to be with no problem with data in the
LFS.  Increasing it futher by using the RHS encoding I don't think is
helpful.

> while at
> the same time reducing the size of the required message-id.

<date-stuff@uJb8Ex.A900.ubin.invalid> is really not much different than:

<date-stuff$ubin=uJb8Ex.A900@shortname.com>

Most of the size savings from my examples only happend because you left
half the data I put in there.  And you leave out a valid domain name
which I think some admins might not like.  But it's an option to think
about.

Using the RHS for the hash and the size makes XPAT searchs a lot
easier doesn't it?  As in:

  XPAT Message-ID 1- *@uJb8Ex.A900.ubin.invalid>

But, I guess that's really not easer than:

  XPAT Message-ID 1- *$h=uJb8Ex$s=A900$*

> Well, if you used the RHS and allowed "invalid" to be replaced with the
> actual host name if the server required, they might change the way they
> generate message-id's.  Or simply make an exception for labeled
> binaries.

Good point, the standard could all be defined in the context of doman
names so people could replace invalid with a real domain:

   <date-stuff@huJb8Ex.sA9000.o3443.lA900.ubin.isp.com>

If we get enought people to think about this, we could figure out what
made the most sense - i.e. what was the most flexible and caused the
least problems.

The more complex issue is what should or should not be put in there
and if we should even consider this at all.  Figuing out the best format
is not the hard part.

> > It's also 100% compatible with all current formats used for posting
> > binaries to Usenet (uuencode, MIME, or yEnc) -- as long as you include
> > only one file or file segment in each article.
>
> And since that is the case in the VAST majority of articles, I think
> that any loss in ability to do multiple files in one article is quite
> acceptable for the benefits received.

Maybe for those that wanted to put multiple binaries in a file we could
even define a "correct" way to code it.  For example, just by encoding
it as if it were one big file made up by concatenating all the small
files together.  The total size would still be valid and useful in that
case.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57477
Author: Curt Welch
Date: Wed, 20 Mar 2002 22:47
26 lines
2387 bytes
Joe Newsreader <not@this.address> wrote:

> I don't think you have to "crack" MD5 to mount an effective
> attack against a multipart post.

very true.

> The attacker can forge an
> MD5 that matches the real post, which will lead some readers
> to merge the part into the file they are assembling.  With the
> bogus part, the final file won't pass the MD5 check, but the
> attacker won't care.  The user has a hopeless (if there are
> enough parts) task of figuring out which part(s) are bogus.

But by adding MD5 - the newsreader CAN find the correct combination
on it's own.  How it is now, without any type of checksum or hash,
the user has to do it manually if parts were to be forged.  I
can't say I've ever heard of anyone trying to corrupt posts by
forging bogus parts.  Is this actually a problem that I've just
not heard about?  If not, why are we talking about it as if it's
an issue?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: yenc - has anybody else noticed this?
#57478
Author: Joe Newsreader
Date: Wed, 20 Mar 2002 22:58
29 lines
2844 bytes
On 20 Mar 2002 22:47:54 GMT, curt@kcwc.com (Curt Welch) wrote:

>Joe Newsreader <not@this.address> wrote:
>
>> I don't think you have to "crack" MD5 to mount an effective
>> attack against a multipart post.
>
>very true.
>
>> The attacker can forge an
>> MD5 that matches the real post, which will lead some readers
>> to merge the part into the file they are assembling.  With the
>> bogus part, the final file won't pass the MD5 check, but the
>> attacker won't care.  The user has a hopeless (if there are
>> enough parts) task of figuring out which part(s) are bogus.
>
>But by adding MD5 - the newsreader CAN find the correct combination
>on it's own.  How it is now, without any type of checksum or hash,
>the user has to do it manually if parts were to be forged.  I
>can't say I've ever heard of anyone trying to corrupt posts by
>forging bogus parts.  Is this actually a problem that I've just
>not heard about?  If not, why are we talking about it as if it's
>an issue?

Somebody brought it up.  I've never seen such an attack.

Joe

Re: yenc - has anybody else noticed this?
#57479
Author: Coises
Date: Thu, 21 Mar 2002 01:00
113 lines
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.
Re: Using Message-ID to store binary file information
#57480
Author: J.B. Moreno
Date: Thu, 21 Mar 2002 01:33
24 lines
2494 bytes
In article <3c98fde3.12974801@news>,
 =-lordsnow-= <lordsnow@home.nl> wrote:

> > I'm still somewhat skeptical about doing a MD5 or a CRC based upon the
> > fact that you have to scan the article twice -- I'm not sure how long
> > that would take.  You're using a 500 mb file below as an example, how
> > long would it take to read that and compute an MD5 for it?
> 
> Unless you have a REALLY slow PC, then it's the IO (disk read) that's
> going to affect the time it takes. Fast HD's are 15-20MB/s at the
> moment, so just reading it will take about 35 sec.
> 
> MD5 would take about 5sec, on a P850. CRC32 is a little faster.
> 
> i.e. rough estimate: about 40sec in total.

Well, I have a really old computer, and a slow connection (not even
28.8), so I don't have a good feeling for that would mean: with a
broadband or ASDL connection how long would it take someone to post
without having to do a first pass?

-- 
J.B. Moreno
Page 1 of 3 • 107 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads