🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62745

Re: xBin and PARity files

#62745
From: Rene
Date: Sat, 04 Jan 2003 02:57
93 lines
5206 bytes
Thomas <zak@spam.invalid> wrote:
> As messages get lost individually, it makes sense to use the message size
> as the PAR block size.

Not really, article sizes fluctuate, even within one posting run of a file,
if the use of the already posted "flattening" algorithm is encouraged.

Besides other people are able to fill in, using different article sizes.
But the size of the virtual segment *must* be fixed for a specific xBin
file-hash.

> This is easy enough to understand if you realize that a too large PAR
> file transfers correction data for the next article, that may or may not
> be missing.

Yes I see that perfectly, that's why I made that little ascii diagram. The
lower half is the point of view from the par system, the upper is the xBin
view with blocks and articles containing them. But for the PAR-system, only
the lower view is relevant.

> If articles sizes are different, just pad the short articles with 0's
> before generating the PAR data. But the length of the missing article
> should then be known somehow.

At the end of the day, I don't want to fix articles, I want to fix the
blocks...

> I think that PAR can only work if postings are done in consistent sizes,
> with the last block not beaing exactly the right size.

The last segment being smaller is ok. Others not, as far as the
RS-restoration algorithm goes.

> > Therefor, for the secure operation of xBin with parity, an xBin
> > compliant newsreader MUST check the hash tree after each attempt at
> > parity repair. That way, problems are detected and a corruption of the
> > file is not possible.
>
> I think that is the only solution. Not feasible to check on servers.

No feasible check anywhere actually. All you can do is start a repair and
then check to see if that succeeded.

> It is much more efficient - just like it would be more efficient to
> repost just article 3 of .r13, instead of the whole .r13 (something that
> xBin tries to fix, but we forget again with PAR).

Well yes, sort of, but PAR's are more universal, since they fix gaps in
different positions for different users. But PARs don't replace reposts,
they complement reposts: "First create some PARs THEN fix individual holes"

> I hope you see that having each PAR part span more than a single article
> is inefficient. But the overall idea should work. Any idea on how much
> extra metadata would be involved? If it means the PAR file has to be
> split anyway, that would be bad news.

Inefficient is the wrong word. I definitly see the advantage could a
par-file be just as big as an article. However, usenets completion isn't as
bad that every second post gets lost, is it? Ok, I might be spoiled, for I
use Curt's service but I don't think a run of say 30 consecutive articles
get lost too often. Add to that that PAR's are something you selectively
fish out if you need one. The beauty again is, that PAR's are universal.
You don't need P01 if you only have one gap. You just take any one PAR-data
which is fully available at your server(s).

> Agree. The PAR parts should be easy to identify by something that looks
> at headers. A feeder could examine the posts, check what block ranges it
> is missing for a file, als allow so many PAR files to come by plus some
> extras.

Yep. A server which "knows" it has a complete xBin file could even throw
those away, because it doesn't need them itself.

> Other point on PAR: is there a limit on how many PARs can be generated
> (say max 10% missing on a file)? Hopefully, using PAR and not reposts

Yes there is a limit. It is not a percentage of a file though. Just the
total number of files (virtual segments) plus PAR-files may not exceed
2^wordsize. The current RS-system in use has a wordsize of 8, therefor
limiting the max number of files + parity files to 256.

> means Curt's fear of endless automatic reposts (which I share) does not
> become true.

Reposts should never occur automatically, using xBin. In fact, that's one
of the things that must be made clear in the specs. The problem remains if
we cut out PAR, its just the same with "normal reposts". Automatic request
sending, yes. Automatic request fullfilling, big no-no.

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Technical Details
Message-ID: <20030103215719.700$Xm@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <20021230133312.202$K5@newsreader.com> <ix4Q9.2961$T41.7255@amstwist00>

Show Full Headers
Complete Article Headers
Message-ID: <20030103215719.700$Xm@newsreader.com>
Subject: Re: xBin and PARity files
Date: Sat, 04 Jan 2003 02:57:19 +0000
From: Rene <invalid@email.addr>
References: <20021230133312.202$K5@newsreader.com> <ix4Q9.2961$T41.7255@amstwist00>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com cY0/Ql0oSfjGi=v.V@b2,deyzl9,h6cyWlA7_mrov-R_80
Lines: 92