🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63861

Re: xBin and PARity files

#63861
From: Curt Welch
Date: Wed, 05 Feb 2003 02:03
86 lines
5750 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:

> >   > the algorithm I specified will actually produce the sequence
> >   >
> >   >    20 20 20 20 19 19 19 19 19 19 19 19 20
> >   >
> >   > where the last block is only partially full.  I don't think this
> >   > matters much, the PAR file covering the last article will simply
> >   > contain 22500 bytes more than necessary.
> >
> >   Yeah, the above makes the article sizes closer but creates a minor
> >   problem with the PAR files.  If you want to create a PAR file
> >   (using the specification system we are talking about in this
> >   article) that spans the last 5 articles of the above post you
> >   can't do it.  The PAR file would end up covering only the first 19
> >   blocks of that last article.

> >   However, posting the orginal as 20 20 19 19 19 18.5 takes the
> >   strangeness out.

> this would work as well, of course.  the downside is that the delta
> between smallest and largest article is now two blocks rather than
> just one.
>
> >   In the end however, either would work with xBin as we are talking
> >   about it now, so people that write the posting tools could decide
> >   for themself what they think works best and post it either way.
>
> true, but I think the recommendation on fragment sizes in the spec is
> needed, and it should give the preferred result.
>
> >   As far as what we talk about in the spec, maybe the simpler way
> >   (which produces posts with articles that aren't as close in size)
> >   is the better one to go with because this is very complex already
> >   for a lot of people?  Or maybe we could mention both?
>
> I don't think the algorithm is that different, I think it may actually
> be a little more complicated.

The algorithm for calculating the number of bocks in each article is
identical in complexity either way.  For your way, when the last block is a
parital block, you round down to get the number of blocks to do the
calculations with and then just add the "stub" block on the end of the last
article. With my way, you round up and make the "stub" block the last block
of the last article.

What's not as simple is the algorithm for generating par data and the fact
that when you want to post PAR files, you end up having to post a very
short data article as well. (an article which can be as small as 1 byte).
Having to post a 1 block data file when you are trying to post 20 block par
files is not exactly keeping the files all the same size nore is it going
to be various obvious to the user why the software just posted a short data
file when they thought they were trying to post PAR files.  And, there's
the issue that the posting software has to have the speical code to "know"
that it needs to post that data file.

Or, maybe the par posting code has to be so complex and general purpose
anyway that it can take any strange description of missing data from
multiple repost requests and tend to generate a strange mix of par and
"real" data files all the time so none of my concerns is really relevent?
:)

What I'm talking about is you can have a case where a file gets posted in a
normal way, and someone picks up 80% of it but is missing a bunch of
articles.  Then the file gets reposted a few weeks later but the article
size is completely different.  The first guy then fills in a lot of his
missing data with articles from this new post.  But there are still many
"holes". However, the actual location of these holes is a strange mix of
the alignemt of the posts from the first and second post.  He then sends
out an autmoated "repost request file".  A few others send out equally
strange descriptions fo the "holes" they have left in their data.

The software then combines all those requests together and ends up with a
bunch of data that needs to be reposted.  Then it uses an internal
algorithm to figure out the minimum amount of data that can be posted to
fill all the requests using a strange combination of PAR files and data
files with the PAR files having block alignments that seem to have nothing
to do with either of the orginal posts.  If PAR data is always generated by
a complex algorithm like that, then it makes no difference how the stuff is
first posted so why not use the file leveling technique.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030204210357.038$Rw@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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <20030103212914.998$3s@newsreader.com> <20030130214337.749$eF@newsreader.com> <1ry951werx.fsf@vingodur.ifi.uio.no> <20030202192320.152$Sn@newsreader.com> <1ry94vo843.fsf@vingodur.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20030204210357.038$Rw@newsreader.com>
Subject: Re: xBin and PARity files
Date: Wed, 05 Feb 2003 02:03:57 +0000
From: curt@kcwc.com (Curt Welch)
References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <20030103212914.998$3s@newsreader.com> <20030130214337.749$eF@newsreader.com> <1ry951werx.fsf@vingodur.ifi.uio.no> <20030202192320.152$Sn@newsreader.com> <1ry94vo843.fsf@vingodur.ifi.uio.no>
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!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com HpyaVLd7q@BFfi70b4Vx6idr8NDG,l.BUZXZ8K=jWl1S-A
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: 85