Article View: news.software.nntp
Article #64638[BinFor] Splitting extra large files - slice method.
From: Juergen Helbing
Date: Tue, 01 Apr 2003 08:48
Date: Tue, 01 Apr 2003 08:48
248 lines
10626 bytes
10626 bytes
As some of you know I'm working currently on the "BinFor" draft.
[BinFor] would be the description of "how to post binaries"
and might be introduced as a BCP.
There is one problem I'd like to show you:
Posting binaries which are too large for conventional splitting.
This applies to all binaries larger than 500 MBytes because
multiparts with more than 999 parts at a maximum size of
500 kBytes/msg can be splitted only up to this size.
The current method for the neticens is to compress a file
with (Win)RAR - to split the result with the integrated splitter
and to post the .RAR .R01 .R02 files
(or - worse: .part1.rar .part2.rar, ..... )
Usually PAR files are also generated: .PAR .P01 .P02
and posted together with the RAR files as a set.
Today 'sets' of binaries are posted with the square bracket
indicator: [7/9] ... <filename> ... (4/69)
Unfortunately the [7/9] set-counter is also used for accompanied
files (NFO, PAR, SFV, ...) - so it is not an indicator to count the
messages for the _binary_ itself.
Currently the ONLY chance to see that a set of RAR files is complete
would be to check the amount of segments: The latest RAR part
is usually smaller than the previous ones.
If an autoposter (or splitter) is creating 'equal size par files' and the
RAR files are the last ones to be posted then just the "is still incomplete"
status shows that a binary is not yet fully posted.....
As you see: A perfect mess - unsolvable for automated retrieval and
even hard to use for experienced neticens.
The question would be:
How to split such "super-binaries" - and how to label them properly ?
I dont believe than formalizing the RAR compression and splitting
would be helpful. It would just formalize software theft because this
is a copyrighted format and tool.
If the new CTE "gzip-8bit" would lift off, then we would have compression
for free. But it is still necessary to make 'super-splits'....
The "older" method to split binaries had been:
Splitting the bytes and posting the files with a filename extension as:
001 .002 .003 (.000 would include splitting info).
This method is meanwhile seldomly used - but at least legal.
A possible solution for "super binaries" could be:
a) Split the file into 'n' pieces: .001 .002 ... .<n>
b) Create the necessary PAR files (if wanted)
c) Send the individual files with any CTE (preferably "gzip-8bit")
and split them again.
Another solution would be:
Split the file into 'n' pieces (size: 100-500 kBytes) and send them
out without any further splitting.
Disadvantage: Older Newsreader cannot join them
- this results in enormous header-lists. So I dont believe this would
be any option. A flamewar would be started against early adaptors.
In all cases some "MIME-spec" for "super-splitting" is also necessary.
And I'm not having yet any idea how to realize this.
Also the labelling of additional NFO/TXT/SFV and PAR files is
unsolved.
The next problem to consider would be:
Currently PAR files are 'protecting' just up to 255 splits
(splits+PARs). With 10-20% PAR files up to 200 splits
might be a good standard. So large binaries should be posted
with as many splits as possible: If messages are lost then
just small segments and/or Pxx files must be downloaded
additionally.
Unfortunately this target (minimizing download volume in case
of message loss) is counterproductive to the amount of
headers/messages/size of xover-list in the newsreader.
The secondary target (to maintain current convenience and
header volume) is also important.....
My experiences is that neticens are not able to ask
for segment reposts. Entire splitted files are wanted.
This is a direct result of the fact that some newsreaders
are joining parts automatically - and dont offer detailled
info which segment is not available.
So it would be even better to avoid 'internal joining'
as far as possible. But this results again in huge
message-lists.
This is now a "multi-restriction" problem:
* The hosts are restricting splits to 999 segments.
* The hosts are restricting splits to 500 kBytes/msg
* The PAR system restricts splits to 200 files
(the more the better).
* The users dont want larger header lists after joining.
(the fewer files the better)
* The multi-file-post indicator [4/nFile] is already
in use for 'additional info'....
Creating a "BCP" under these restrictions is obviously difficult.
Considering compatibility to current newsreaders and their
join-and-decode features makes it even worse.
- - - - - snip - - - - -
Confusing enough ?
Well - here is what I believe could be a solution:
Here is some 'bcp-thoughts' for posting huge binaries:
(This is not even a draft... just a brainstorming ;-)
* Using the new 'slice' indicator requires full complience
to this specification. The combination of the slice
indicator with the multipart indicator: {/} (/) can be trusted.
Messages with this combinations which dont comply
with this spec are subject to real cancels issued by
plausibility check robots.
The user of this spec accepts this fact.
* Large binaries are splitted into slices
* The slices are numbered as an appendix to the filename:
.001 .002 .003 .....
* The size of the slices is 100.000 to 500.000 bytes.
* If more than 200 pieces are necessary then the
pieces are sent as multipart in a way that
100-200 slices are created.
* Slices and multiparts are properly labelled in the
subject line. Example:
<what is it> [7/fctr] <enc> "fname.ext.200" {200/slctr} (2/mpctr)
+ <what is it> is any informal text the user wants to post.
+ [7/fctr] is an indicator how many files are sent in a set.
+ <enc> is an indicator for encoding, formats, ...
Examples are: yEnc, gzip8, uue, mp3, lame, divx5.3, mpeg2 ....
+ The "fname.ext.000" is the filename extended by the slice counter
The fname can be replaced by the MD5 checksum of the file.
Quotes are mandatory.
Quotes in the filename are converted to '' (double tick).
+ The {200/slctr} is a NEW indicator. It indicates just slices.
+ The (2/mpctr) is a multipart counter. If no multiparts are used
then it is (1/1).
* Adding parity information:
Slices might be protected by additional 'parity' files.
These belong _exactly_ to one file - but are 'superfluous'.
So they are included as 'overcounted slices':
... "fname.ext.par" {201/200} (1/1)
... "fname.ext.p01" {202/200} (1/1)
... "fname.ext.p02" {203/200} (1/1)
* Size of parts and slices:
If a slice is sent as a multipart, then all parts have the
same size (rounding effects excluded)
If a file is sent as slices, then all slices have the same size.
(round effects excluded).
Programmers: Calculate correctly.
We dont want to see empty parts and/or slices ;-)
* Adding reliability - xBin:
Slices and PAR files are protected optionally with xBin.
The xBin headers are located inside the message headers.
More info: see xBin spec....
* Adding identification - MD5
All messages of a 'sliced' file contain a special identification header:
Content-MD5: <MD5 value>
This identifies the original file properly for all kind of reposts.
It also permits to retrieve the file from news->web and other
services by simply referencing it.
It also permits to transfer the file over additional and alternative
net-protocols.
* Standard header labelling
For easy and fast identification of binaries, slices and multiparts
a standard header is (ab)used: References.
For 'sliced binaries' the References header is re-specified.
This is possible because NO FOLLOW-UPS to sliced binaries
are permitted and/or recommended.
If comments are wanted or welcome, then an additional
unsliced preface TEXT message must be included into the fileset
as [0/fctr]....
The References: header for sliced binaries is specifed as:
References: MD5 [1/fctr] {1/slctr} (1/mpctr}
For implementors:
It will happen that someone tries to fake that header.
See 'xBin' for solutions.
* Message Format
The 'slice' method can be used compatibly for
UUenc, Base64, BinHex, yEnc, gZip8 and other encodings.
It is transparent to MIME.
The recommended encoding would be gZip8.
Proper MIME headers are strongly recommended.
(see -> gZip8 draft).
* International charsets for filenames.
If the filename is not restricted to printable 7 bit ASCII
then the MD5 value is used instead in the subject header.
Alternatively the user can offer an internationally acceptable
7-bit-filename to offer readability in all countries around the world.
* Database information {000/nnn} slice zero (optional).
NFO files are widely used today to specify binaries.
eCSV files are used to check integrity and offer additional info.
'Sliced' message (even in one slice) with the slice indicator
{000/nnn} contain just database information about the binary.
The used filename-extension is: *.NFO
The format of the NFO file is: <tag>: <content> (Colon-Space method)
Tags would be: Artist: Title: Album: Sales: Size: MD5: ....
(and of course: Copyright: public domain ;-)
A colon in the first column indicates a comment (or ascii grafics ;-)
Those NFO files can be encrypted.
* Multi file posts
This "slice" method can be also used for sets of 'small' files.
In this case the slice indicator is still present but: {1/1}
It is still possible to add an NFO slice {0/1}
* t.b.d.
- - - - - snip - - - - -
.. well I'm going to stop right now.....
I'm sure that most of you have already brain overflow signs own :-)
Your feedback would be appreciated.
TIA
--
Juergen
Technical Details
Message-ID:
<1048a.143208@archiver.winews.net>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!yellow.newsread.com!netaxs.com!newsread.com!news-out.visi.com!petbe.visi.com!news.alt.net!usenetShow Full Headers
Complete Article Headers
Message-ID: <1048a.143208@archiver.winews.net> Subject: [BinFor] Splitting extra large files - slice method. Date: Tue, 01 Apr 2003 08:48:10 +0000 From: archiver@i3w.com (Juergen Helbing) 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!yellow.newsread.com!netaxs.com!newsread.com!news-out.visi.com!petbe.visi.com!news.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 247 X-Newsreader: MyNews