🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57516

Re: Using Message-ID to store binary file information

#57516
From: Curt Welch
Date: Thu, 21 Mar 2002 17:51
91 lines
6426 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <20020321022856.582$dC@newsreader.com>,
>  Curt Welch <curt@kcwc.com> wrote:
>
> > The newsreader may save a downloaded file with missing segments for a
> > very long time (a year for example) and check all articles downloaded
> > in a group to see if the missing segments ever show up.  Is a 36 bit
> > hash + the file length good enough to prevent the newsreader from
> > getting a false postive match and downloading a segment which it thinks
> > is what it was looking for when in fact it is not?  This is what we
> > would want to prevent - or at least reduce to a point where it was very
> > uncommon.
> >
> > If the 36 bit hash wasn't good enought for that, we could add more bits
> > in the Message-ID.  But if that was just too many characters for the
> > Message-ID, we would have to put those bits some place else. So then
> > the question becomes, once again, where?
>
> Well, I was thinking that the main purpose of this would be:
>    a) allow both servers and clients to know that it was a binary
>
>    b) allow clients to easily find CURRENT missing parts on other
> servers and to improve their grouping/threading by getting away from
> the confusion in the Subject (possibly even dropping part numbers from
> the subject).

Yes, but "CURRENT" must extend over a few days.  One thing that a lot of
download tools don't do well know is deal with posts that take days for
all the parts to show up - and what they deal even worse with is servers
with short retention where the first part of a big will will expire before
the last part shows up.  One reason people split the huge files into lots
of smaller files (rar like) is to allow each small file to be seen in full
and downloaded.  With these new tools, it would be possible to post a 5000
part post over a period of two week.  You tell your newsreader to start
downloding when you see the beginning of the post, and it just keeps
downloading parts for days.

Once you have that type of tool working, people will naturally just let
it keep searching for parts forever if they are missing 5 segments out of
a 5000 part post.

To make this useful, we need to make sure the odds of the newsreader
downloadig a segment from some other post by accident is very very small.

Putting a hash which only works well for short term searches (days), but
not strong enough for a long term search (years) would be a shame.  It
would mean the newsreader could not automatically grab parts and but them
in the download list because the odds of being bogus would be too great.
The user would have to manually verify everything and the tool would need a
complex interface for letting the user try segments which he thinks might
be the same file but then reject them when it produces a bogus file etc.

>    c) allow servers to improve their handling of binaries (for
> instance, expiring all parts of a binary at once, expiring based upon
> total size, accept or reject articles from their peers based upon size
> and/or binary status).
>
> So, as long as the ID was unique and could associate parts during their
> "active" life, that was good enough for me (for instance, if MD5 had
> been a bottleneck, I was thinking of proposing that the MD5 be only on
> a part of the file).

Yeah, I had thought of that as well.  Just something simple like the first
1MB and the last 1MB of the file would probably have been a useable
hack.

> If you want to allow a more long term solution, it seems to me that
> what you'd want is a full MD5 in the References header.

Full MD5 would be "safe".  But it's a lot of bits to put into every header
of a mutlipart post if it's not needed.  Even if it's in the References:
header, it will still have to be downloaded in Xover:.

But then again, 128 bits in Base64 is only 22 characters.  It's such a
hack however putting these things in these places.  If you put everything
you needed in the Message-ID, it's a cleaner hack.

If you can't put enough hash bits into the Message-ID to make it work well
for long term searches then maybe it's better to just add a new header
for the MD5 of the file?  That way, the newsreader can find the files
using the Message-id, but then just do a head on the segment to find the
full MD-5 to make sure it's really the correct file before downloading?

But first, we would need to figure out how many bits are really needed.  If
you have the file size to check as well, what's the odds of false positive
with a 36 bit MD5 based hash?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020321125143.414$Wp@newsreader.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!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <20020318154507.410$TU@newsreader.com> <9hlc9u8ga789vu6hfcun0oln29ae6mck5m@4ax.com> <20020318160827.211$fq@newsreader.com> <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com> <20020318181949.333$Fq@newsreader.com> <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <20020321125143.414$Wp@newsreader.com>
Subject: Re: Using Message-ID to store binary file information
Date: Thu, 21 Mar 2002 17:51:43 +0000
From: curt@kcwc.com (Curt Welch)
References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news> <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com> <20020318154507.410$TU@newsreader.com> <9hlc9u8ga789vu6hfcun0oln29ae6mck5m@4ax.com> <20020318160827.211$fq@newsreader.com> <ldmc9u48omjm6sf5vj9fn54c83tob9u69g@4ax.com> <20020318181949.333$Fq@newsreader.com> <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%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!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: alt.usenet.offline-reader.forte-agent,news.software.nntp
X-Trace: NewsReader.Com bBDJCB0mYqFk8/xdKwBzz8-ihd295jyXEV3MSz0S6hgHD.
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 90