🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64105

Re: xBin and PARity files

#64105
From: Kjetil Torgrim Homme
Date: Fri, 21 Feb 2003 19:55
117 lines
6360 bytes
[Chris]:
>
>   I've just read through the RS Coding pdf that was linked to
>   somewhere in this thread, and it seems that implementing a 16 bit
>   parchive system isn't that difficult.

interesting.  how about CPU, RAM and temporary disk space
requirements?  won't the computation for PAR file 1000 be prohibitive?
(I should read that PDF myself...)

>   That would mean that the number of segments covered + number of
>   parity volumes could be up to 65536.  24 bits is feasible as well,
>   but 32 bits requires too much memory.  Using a 16 bit parchive
>   would mean that your parity posts could cover a larger span of
>   articles.

that would be useful.

>   Why couldn't xBin handle both systems (consecutive par segments
>   vs.  spanning entire file)?  In the Message-ID where you're
>   specifying that this article contains parity data, you can just as
>   easily specify what data it is protecting.

it does, actually, but we don't support fragmentation of PAR files.

>   Sorry, I'm not familiar with how you have specified the parity
>   data header so far, so bear with me.

|   P   parity file number.  the type is integer.  this parameter is
|       mandatory for parity files.
| 
|   N   parity fragment coverage.  how many fragments the parity
|       information contains redundancy information for.  the type is
|       integer.  this parameter defaults to 100[TBD] or the number of
|       remaining fragments, whichever is smaller.

>   Is the specification that difficult?  For parity data covering
>   consecutive articles you could do something like:
>   ~P1~S524288~R0-99
>   meaning that this is the first parity volume, with size 512K and
>   that it spans articles 0-99

this is almost exactly what we have, except we use "s" for "S" and a
combination of "N" and "o" for "R".  as worded, your "R" requires
information of the segment sizes of the original posting...

>   alternatively:
>   ~P1~S524288~R0,8388608
>   meaning that this is the first parity volume, with size 512K and that it
>   spans data starting at 0 with virtual segment size 8MB

... but you probably noticed that :)

>   The only real difference is how the data is being split up...

the PAR tools in current use contain metadata.  we (well, at least I)
want pure parity information, and keep the metadata separate.  this
means breaking compatibility, unfortunately.

>   In the end, I think it's the specification of what data is being
>   protected with parity that is really important, not what that data
>   is.

I wrote a little more on the draft:

parity files
============

a parity file can be recognised by looking for the tag "P".  the hash
("H") and total size ("S") are the values from the original, complete
file.  by tagging the parity data with the xBin file id of the
original file, software can easily find and download the parity
information it needs.  it is also useful for news administrators, as
any administrative policy which hits the articles containing the data
(e.g., refused due to its total size) will also hit the articles
containing the parity for it (no use keeping parity for a refused
file).

the offset value "o" points to the first block of the original file
which can be reconstructed using the parity data.  the parity data
covers the next "s" * "N" blocks of the original file.

for a parity file, the "s" tag is mandatory.  the parameter holds the
size of the parity data contained in the article.  the size MAY be
different than the segment size of the original article, but this is
discouraged:

  * differently sized articles will see differences in propagation,
    meaning some users will see only the parity or only the original
    data, depending on which is sent in larger segments.

  * if parity data straddles the segment boundaries of the original
    articles, the user may have to download two parity files to
    compensate, even though s/he only needs the last half of one and
    the first half of the other.


file identification
===================

the msgid only identifies a single article, so users need a way of
referring to a complete file.

the xBin file identifier consists of the root hash and the total size
of the file.  when a user is presented with an offer to download a
file, it is convenient to know the size of the it in order to estimate
download time or free disk space.  including the total size in the
identifier also reduces the risk of hash collisions.

the format of an xBin file id is "~XB~H" hash "~S" size "~~".  the
ordering of "H" and "S" MUST be followed.


-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1ry949h0id.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.tele.dk!news.tele.dk!small.news.tele.dk!news100.image.dk!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <1r7kdr2id0.fsf@vingodur.ifi.uio.no> <20021231140408.995$iu@newsreader.com> <1rlm24a74r.fsf@thrir.ifi.uio.no> <20030101222332.694$bV@newsreader.com> <1rptrflqrl.fsf@ellifu.ifi.uio.no> <20030102152631.435$cR@newsreader.com> <20030104175550.818$mI@newsreader.com> <20030105223458.280$SO@newsreader.com> <20030106051307.259$0O@newsreader.com> <20030130214837.046$fc@newsreader.com> <20030206203828.211$Vw@newsreader.com> <20030212160144.071$NF@newsreader.com> <pan.2003.02.19.08.34.56.817883@rogers.com>

Show Full Headers
Complete Article Headers
Message-ID: <1ry949h0id.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin and PARity files
Date: Fri, 21 Feb 2003 19:55:22 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@newsreader.com> <1r7kdr2id0.fsf@vingodur.ifi.uio.no> <20021231140408.995$iu@newsreader.com> <1rlm24a74r.fsf@thrir.ifi.uio.no> <20030101222332.694$bV@newsreader.com> <1rptrflqrl.fsf@ellifu.ifi.uio.no> <20030102152631.435$cR@newsreader.com> <20030104175550.818$mI@newsreader.com> <20030105223458.280$SO@newsreader.com> <20030106051307.259$0O@newsreader.com> <20030130214837.046$fc@newsreader.com> <20030206203828.211$Vw@newsreader.com> <20030212160144.071$NF@newsreader.com> <pan.2003.02.19.08.34.56.817883@rogers.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.tele.dk!news.tele.dk!small.news.tele.dk!news100.image.dk!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 116
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1045857323 18813 129.240.68.200 (21 Feb 2003 19:55:23 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 21 Feb 2003 19:55:23 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7