Article View: news.software.nntp
Article #62614Re: xBin and PARity files
From: Curt Welch
Date: Tue, 31 Dec 2002 18:18
Date: Tue, 31 Dec 2002 18:18
70 lines
4419 bytes
4419 bytes
Thomas <zak@spam.invalid> wrote:
> I think that PAR can only work if postings are done in consistent sizes,
> with the last block not beaing exactly the right size.
I thought that as well, but it's not really a probelm, it just once again
makes things a litte more complex.
When you "level" articie sizes, you end up two different size size
articles. Depending on where you spit, you will end up with the first N
articles being larger, and the rest smaller. The last will logicall have
the same number of blocks, but one block will be partially empty to the
article will be smaller than all the rest (with the except of coruse of a
post which divides evenly into both hash-blocks and the article split).
SO, you part sizes like this:
4 4 4 3 3
For PAR, this is easy to deal with because you just pretend the short files
are longer. The though part however is that the par file is not in anyway
associated with that orgianl article split, so you have to exactly specify
what blocks from the file are used for each par segment. That gets messy
because you end up with the file being broken into logical blocks like
this:
1111 2222 3333 444 555
Where '1' is the blocks from the first par segment, 2, the second par
segment, etc. The par file has to include meta information to show this
strange lop-sided distribution of par segments thoughout the xbin file.
But, the easy solution is to ignore that. Just go with the simple type of
medata data which assumes the par segments must be N consecutive blocks all
of the same size which can start anywhere in the file, and extend for as
long, or as short as you want. To do that, all the meta data needed to
explain how the PAR segments are found in the full file is the offset of
the start of the par segments, the size of the par segments, and the number
of segments. All this fits nicely into the Message-ID, so we don't need
any additional article headers. We just add the $N count of segemnts to
the message-id.
So, for the above post, you could generate par files for the first 3
articles, because they are all the same size, and you could generate a par
file for the last 2 articles. You just couldn't span the entire _and_ keep
the par segments aligned with all the posts.
You could span the entire file like this:
1111 2222 3333 4444 55
With one par file, but the last two articles from the orginal post just
won't align correctly with the 4 and 5 par segments.
The tools which reconstruct missing xBin data using par files should have
the power to work with any aligment (which can get complex - but is still
not that bad). The par files found by a download tool might not have been
sent to "fix" the problems of the same post the first data came from, so
the aligment might be completly wrong anyhow. The download tools should
still have the power to make use of the mis-aligned par segments anyhow if
they will help fill in missing holes.
For a 500 article post, you still only have two different article sizes.
So you will have plenty of articles in both ranges to generate PAR files
for using the slimplified meta-data system of specifying par segment
ranges.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021231131804.942$YG@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<20021230133312.202$K5@newsreader.com> <ix4Q9.2961$T41.7255@amstwist00>Show Full Headers
Complete Article Headers
Message-ID: <20021231131804.942$YG@newsreader.com>
Subject: Re: xBin and PARity files
Date: Tue, 31 Dec 2002 18:18:04 +0000
From: curt@kcwc.com (Curt Welch)
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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 74DdHxuoHY-=BJKJkmHQ.Xx+zZw7TC6kRC8jzMsxSss-C._l=
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: 69