🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62594

Re: xBin and PARity files

#62594
From: Kjetil Torgrim Homme
Date: Mon, 30 Dec 2002 23:32
52 lines
3360 bytes
[Curt Welch]:
>
>   If we include an X-Bin-Signature for each par file which is the
>   same signature you would put on an article spanning the entire
>   par-set, you would then have the hash values you need to veryify
>   the entire par-set once it was re-constructed (i.e. the 100
>   article set).

how about including the hashes of the correct blocks instead?  all the
leaves, not the tree.  these can be verified against the hash tree in
the real parts.  for a segment of 100 parts of 18 blocks, the hashes
use 36 kB (+N% for encoding), which seems reasonable to me.  (if you
want to, you can require segments to start on even offsets, and
include the hashes from the level above the leaves, cutting the size
in half.)

it really depends on how PAR works -- can you do block by block, or
PAR file by PAR file?  if the former, you can detect bogus PAR files
much earlier if you're told the hash value of the block.

>   If we were to define a standard disk format for saving partially
>   downloaded xBin files which includes the data and hash data, [...]

I think this is a very good idea.

>   Maybe the answer is for the newsreader to combine data segments
>   whenever it can.

this could be left to the newsreaders discretion.  it makes sense to
do so, though.

>   If uuencode, what's the name to use on the begin line? [...]
>   
>   I guess it would fit with type type of stuff I was talking about
>   above, It could have a name which was something like
>   982761DF-2-A2.XBP where the first hex number is the offset, the 2
>   is the parity sequency number, and the A2 is the count of blocks
>   spaned by this PAR file.

I think the root hash of the file should be in that filename as well.
we may have to consider filelength limits, and put the important
information first in case it gets truncated and needs manual treatment
(okay, who's still running good old SysV file systems? :).  the value
of offset should be specified in xBin blocks as well.

  OFFSET-SEQ-SPAN-ROOTHASH.XBP
  xxxxx-x-xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.XBP

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1r7kdr2id0.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!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!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>

Show Full Headers
Complete Article Headers
Message-ID: <1r7kdr2id0.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin and PARity files
Date: Mon, 30 Dec 2002 23:32:27 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <20021230133312.202$K5@newsreader.com> <20021230171837.399$Im@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!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!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: 51
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1041291148 14395 129.240.68.200 (30 Dec 2002 23:32:28 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 30 Dec 2002 23:32:28 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7