🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62481

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

#62481
From: Rene
Date: Sat, 28 Dec 2002 17:31
119 lines
6963 bytes
curt@kcwc.com (Curt Welch) wrote:
> > and you need a space between each hash as well...
> Right, so with the full hash + the X-Bin-Signature" you end up with
> 16+37*28 or 1052 and you still haven't added the CR LF.  And that for a
> 2, 000,000,000 byte file and not a 2GB file.

Actually I was wondering all the time why that space character? Can't we
just leave that out? I mean, we know how big a hash is, why do we need a
start/stop token?

> How long would the total worse case header be for a hash block size of
> 22500 butes with a 2GB file when you include the "X-Bin-Signature:" (16
> bytes) plus the total file hash and a space (28 bytes), and 28 bytes for
> each tree-hash required?

That's 88888.888... -> 88889 blocks. That produces a worst case of 31. Add
one for the root hash makes 32 hashes. So thats 32*27 (without spaces) =
864 Bytes. Add the Header-Name + 16 = 880 Bytes. Now if we really need
those spaces, its +32 = 912.

So that fits with a comfortable distance towards the critical value. Also,
22500 is a multiple of 45 and 3 (well anything that is a multiple of 45
is...)

For the hash code efficency, 22500 is 351 rounds a 64 Bytes making 22464,
just short of 36 Bytes for the last round (the last round in SHA-1, MD4,
MD5 may only use 55 Bytes and 7 bits, the rest is padding)

So that would be 352 rounds in the hash algorithm / block. 19 more Bytes
could have stuffed into the last round but its better than 4500. Time
difference for one more round is neglectable though.

> Knowing that the standard caused no header length problems for files up
> to 2GB in size would be nice.  Large files could be posted and would
> probably work today as long as the header was folded so each line was
> under the 997 number.

Yep. Question is what we want to permit as max file size then. 2GB? 20?
200? 2TB?

2GB is a nice value for today's use, because many still widespread end-user
filesystems can't handle files larger than 2GB anyway. But they are dying
out (the filesystems, not the users :) ) It is therefor reasonable to
assume that by 2010, any filesystem in use can handle files larger than
2GB.

Today, most P2P apps contain ISO-images (1:1 image) of CDs, they are in the
range of 600-800MB. It is sensible to assume, that people will start (if
they haven't already) to distribute DVD-images, which will have a size of
upwards to 16GB.

So for my liking being able to handle 20GB easily would be the way to go.
Going further past that limit is then possible if the servers can handle
more than 1000 Bytes in that header.

Actually I just went to see where the next higher value occurs. The largest
block number which still gives a worstcase of 32 is 131072. Dividing
2*10^10 (20GB) through that value gives 152587.89... So to handle a 20GB
file means the block size must be at least 152588 Bytes, a whopping 152K !

> But, unlike References: this is a header that we can not risk allowing it
> to be corrupted. If it's corrupted on 50 posts out of a 2000 part set
> which hits the worse case, and gets rejected all over the place as being
> invalid, we would have a nasty little problem.

little? :)

> I do like the effect of forcing the minimal multipart post size higher,
> but I think leveling article sizes is more important in terms of helping
> usenet run smoother.

Well its possible to level the difference for the last article to one
blocksize by making the last N articles short of 1 blocks. But less is not
possible. Thats the cheapest price, 1 blocksize difference.

> times as large.  But if it allows us to keep the header under a total
> size of 1000 bytes for a 2B file, that might be a valid justification for
> going larger than 4500.

I think we can agree that a 2GB file is a "must have". I'm the opinion we
should strive for more (20) but the exact value is debateable.

It is clear that it is a compromise between max filesize under the
condition the header may not be larger than 1000 Bytes and the min/max
difference between the articles.

> > (I think a guideline regarding this should be part of the xBin
> > documentation.)
> I agree.  And if we get into reed-solomon support (PAR files) as a built
> in feature, then the "standard" way to split articles could be a very
> important part of it all.

RS-Raiding adds some complexity to the system. For example, the PAR's
virtual segement size must be fixed, otherwise when 2 par files from the
same file but with different virtual segment sizes were created by two
users, you can't mix them. I can expand on why that is, but I need to leave
the house in some minutes so I can't write that now :)

So since the virtual segement size must be fixed, we need either to define
it at a fix value, or we define it to a value which is a function of the
original's file size. (actually of the original's file block number, for
the par file's virtual segement size must be a multiple of the block size)

> But I realized we have another big problem with the idea of PAR files as
> part of this standard.  I see no way to verify them.  The idea of this
> standard is to prevent people from posting fakes, yet I see no way to
> stop them from posting a fake PAR file.

You can't verify them, yes. I thought about that. But you can download
them, "fix" the file and then verify, if the file was fixed or not
(calculate the hash tree..). If it was not fixed, then simply kill the par
files and act as if you haven't downloaded them.

More to come on that, need to go now :)

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Technical Details
Message-ID: <20021228123158.846$pN@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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!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> <1rsmwjxgk5.fsf@sjau.ifi.uio.no> <20021228023313.941$tN@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <20021228123158.846$pN@newsreader.com>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Sat, 28 Dec 2002 17:31:58 +0000
From: Rene <invalid@email.addr>
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> <1rsmwjxgk5.fsf@sjau.ifi.uio.no> <20021228023313.941$tN@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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com LoRJzl/F4F33Q.Yw0@@EDQCYTZzl9,h6cyWlA7_mroFqOPUF
Lines: 118