🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62414

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#62414
From: Kjetil Torgrim Homme
Date: Mon, 23 Dec 2002 18:27
39 lines
2728 bytes
[Kjetil Torgrim Homme]:
>
>   (this ignores the possibility that the size of a part is not a
>   power of two multiple of the chosen block size.  in that case,
>   each part must contain the hashes of its internal tree.)

let me expound a little on that.  if we let the block size be 64 KiB
and someone posts 192 KiB parts, it will look like this internally:


            +---------------+
            |               |
       +---------+          |
       |         |          |
    +----+    + - - +    +----+
    |    |    :     :    |    |
    a    b    c     d    e    f

   == part 1 ==    == part 2 ==

so, part 1 needs to contain the hash of "ab" (using Rene's
nomenclature :) and the hash of "c".  including the hash of "a" and
"b" individually is wasteful.  this means the the hash must be marked
with its position in the tree somehow in the signature.  or maybe not.
the software can deduce this from the size of the file, the offset and
the size of the segment.  just start at the top and do depth first:

part 1: "abcdef", "abcd", "ab", "c"
part 2: "abcdef", "abcd", "cd", "d", "ef"

perhaps we can use a smaller block size since this mechanism reduces
the overhead, but that makes it more likely that the segment size will
be chosen to be an oddball multiple of the block size, which makes the
hash trees more complex.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1r8yyga8vg.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!canoe.uoregon.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.fsf@vingodur.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <1r8yyga8vg.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Mon, 23 Dec 2002 18:27:31 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <cfka0vsbjdlbdmtv2gg8qnehok033qh5f1@4ax.com> <20021223041127.986$6M_-_@newsreader.com> <1rfzsoaacf.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!canoe.uoregon.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.bredband.com!bredband!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 38
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1040668052 18026 129.240.68.200 (23 Dec 2002 18:27:32 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 23 Dec 2002 18:27:32 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7