🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63563

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

#63563
From: Kjetil Torgrim Homme
Date: Wed, 22 Jan 2003 17:16
61 lines
4667 bytes
[Rene]:
>
>   I don't remember anyone suggesting to cover filesequences under
>   one hash-tree. It just creates too many problems and is not the
>   way to go.

right.  I have however suggested that xBin can handle a multipost
which contains several files, so that we don't have to put
restrictions on MIME documents.

consider we have file A (800 000 octets) and file B (900 000 octets)
which are attachments to a message.  the block size is 22 500, part
size is 360 000 octets (unencoded).  file A will fill part 1 and 2,
the last 80 000 octets are put in part 3.  there is still room for
more data in part 3, so the first 270 000 bytes of file B go there as
well.  the rest of file B goes in part 4 and 5.

okay, how would it look?

each included file will have its own roothash which is included in the
Content-SHA1-Tree in the entity headers of each fragment.  remember,
part 3 will contain two fragments, one for the end of file A, one for
the beginning of file B, and will contain one set of entity headers
for each fragment.

in addition, we need a roothash for the Content-SHA1-Tree to put in
the article headers.  my suggestion was to add a parameter to xBin
containing the total number of files in the multipart.  this parameter
would default to 1, of course.  if there is more than one file, the
roothashes are concatenated in order, and a new SHA1 hash calculated
from that.  this way, there is one SHA1 hash for the collection of
files.

it occured to me now that it would be neat to be able to pick just
some of the files out of that multipart.  to do this, we only need to
add another parameter, holding the number of the file contained in the
fragment in the part.  if there is more than one fragment, look at the
last one.

so, in my example, we add $MB (B is 2 in BASE64) to every Message-ID,
meaning that the multipart contains two files .  we could add $FA to
part 1 and 2 (but 1 is the default value, so it can be left out), and
$FB to part 3, 4 and 5.  if you're only interested in the second file,
you know that it suffices to download 3, 4, and 5.  (if there was a
part 6 with $FC, ie. a third file, it may contain the tail end of file
2, but you'll know whether more data is needed after looking at part
5.)

>   Sequentially collecting the hashes though is rather easy and
>   accomplishes the same thing. (But it does not guarantee that the
>   collection is complete ! Anyone can just arrange some xBin hashes
>   and present "his" collection)

this would usually be the better method, I think, especially since the
above method requires a fully-fledged MIME decoder, whereas a simple
list of hashes will work with any encoding method.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1rwukxp0ji.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.uchicago.edu!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <2bi91vg80cfhrc1vu78r8226o241ngmid7@news.iplweb.org> <D937CC94FFD1B06B.2262204BE93E08E7.8BD8BA8158F689AA@lp.airnews.net> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030121093654.179$lk@newsreader.com> <01547.m13203@archiver.winews.net> <20030122083140.000$gH@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rwukxp0ji.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Wed, 22 Jan 2003 17:16:49 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <2bi91vg80cfhrc1vu78r8226o241ngmid7@news.iplweb.org> <D937CC94FFD1B06B.2262204BE93E08E7.8BD8BA8158F689AA@lp.airnews.net> <3o9b1vglqbf4sm72efks2ivgd7u5tqn7mr@news.iplweb.org> <1041671876.599031@ok-corral.gunslinger.net> <11ud1v47mk49997bgnnnun1d57mi52f0pk@news.iplweb.org> <20030104113637.385$sm@newsreader.com> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <20030119214844.592$sv@newsreader.com> <GJLW9.736995$vi4.98872@post-02.news.easynews.com> <20030121093654.179$lk@newsreader.com> <01547.m13203@archiver.winews.net> <20030122083140.000$gH@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.uchicago.edu!newsswitch.lcs.mit.edu!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 60
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1043255809 6200 129.240.68.200 (22 Jan 2003 17:16:49 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 22 Jan 2003 17:16:49 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7