🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62464

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

#62464
From: Kjetil Torgrim Homme
Date: Fri, 27 Dec 2002 22:06
44 lines
3215 bytes
[Rene]:
>
>   But not anymore, is it?

no.  thanks.

>   Level is not the important variable. Worst Case is. And I've now
>   provided the algorithm / the java programm to calculate those. A
>   2GB (2*10^9, not 2^..) file needs 444445 blocks if a block is 4500
>   bytes. That creates a worst case of 36 hashes (not counting the
>   root) 36*27 Bytes = 972 Bytes.  Damn close to the 1000 Byte-header
>   limit. And you haven't said "X-bin-Signature" then...

and you need a space between each hash as well...

>   If a block were 4 times as large (18000 Bytes), then a 2GB file
>   would span 111112 blocks, the worst case were 32, which is 864
>   Bytes for hashes alone.

I think 4500 is too small, 64 KiB would be a good choice, or perhaps
32 KiB.  no one should be posting multipart binaries with full parts
smaller than 256 KiB, anyway.  to make articles sizes as similar as
possible, some parts will be smaller, of course:

 257 KiB -> 3+2 blocks (not optimal, since the actual size will be 192+65)
 513 KiB -> 3+3+3 blocks (actual size 192+192+129)
4097 KiB -> 4+4+3+3+3 blocks (actual size 256+256+192+192+129)

(I think a guideline regarding this should be part of the xBin
documentation.)

>   A 20GB file would exceed 1000 Bytes with a worstcase of 39 though.

likewise, there should be a guideline telling posting tools to try to
use power-of-two segment sizes (in blocks) to reduce the size of the
hash signature.  (when expressed in binary, the segment size should
have as many zeroes to the right as possible -- 12 (1100) is better
than 10 (1010).  8 is even better, but the smaller segment size
requires more parts, so 12 (ie., rounding up) is probably better.)

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1rsmwjxgk5.fsf@sjau.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!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> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no> <20021223181329.108$LI@newsreader.com> <1rfzsjz87r.fsf@sjau.ifi.uio.no> <20021227144125.156$Nm@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rsmwjxgk5.fsf@sjau.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Fri, 27 Dec 2002 22:06:34 +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> <20021223150103.132$Bb@newsreader.com> <1rd6ns9y06.fsf@tolf.ifi.uio.no> <20021223181329.108$LI@newsreader.com> <1rfzsjz87r.fsf@sjau.ifi.uio.no> <20021227144125.156$Nm@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!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: 43
NNTP-Posting-Host: sjau.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1041026795 9316 129.240.65.207 (27 Dec 2002 22:06:35 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 27 Dec 2002 22:06:35 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7