Thread View: news.software.nntp
83 messages
83 total messages
Page 1 of 2
Started by Rene
Mon, 30 Dec 2002 18:33
Page 1 of 2 • 83 total messages
xBin and PARity files
Author: Rene
Date: Mon, 30 Dec 2002 18:33
Date: Mon, 30 Dec 2002 18:33
339 lines
18045 bytes
18045 bytes
Ok finally I got some time to write down my thoughts on the RS-RAID
(ReedSolomon-RAID) System. For short, I will name it "PAR-" or
"Parity"-System throughout this article, because that's what it does, it
creates parity information which can be used to repair lost data. (A quite
detailed description of how it actually works can be found here
http://www.cs.utk.edu/~plank/plank/papers/SPE-9-97.html )
The parity system works. It is in use today on usenet. A parity file
usually starts with a base name of the file(set) it is able to repair plus
an extension of the form .Pxx, whereas xx is the number describing the
parity file, from 01 to any number up. Often you also see a ".PAR" file,
which is NOT parity information but meta-information on the parity and the
original files themselves (containing filenames/crc values)
For any missing file of the fileset, you will need one parity file to
repair the loss. It does not matter which parity file you have. If you are
missing one file of the full fileset, you can use the P01, P02 or P99'th
parity file. Every single parity file belonging to that fileset can
recreate the missing file. If you are missing two parts, you will need two
*different* parity files. Again it matters not which ones that are, but you
will need two different parity files. For three missing files, that's three
different parity files, and so on.
So the great advantage of parity files is that one single parity file can
repair user A's missing part A, user B's missing part B etc. at the same
time. Therefor, they are more powerful than simple reposts. A repost of
part A only gives the data for that part A, while a Parity file can fix any
missing gap anywhere in the fileset that is smaller or equal in size as the
parity file itself.
The disadvantage of parity files is, that they must be calculated, which
eats some cpu cycles. I deem that a minor problem nowadays. However, the
Parity algorithms used to create parity data or fix data using parity files
is not trivial. It is certainly no insurmountable problem, but it is by far
more difficult than to implement say the xBin system that we are discussing
up until now.
This means that at this point we have two options regarding xBin with
Parity:
- we declare that a xBin-compliant client software must understand and
implement the parity system. By this we make xBin better, more efficient.
However, this also raises the bar for a prospective xBin implementator
significantly. In fact, I am convinced this would turn away almost all
programmers, leading to a nice standard noone is willing to implement.
- on the other hand, for sake of simplicity, we cut out parity from xBin.
We use full reposts and that's it. Its easy to implement. However we're
letting a chance pass to fix (or at least ease a bit) one of the problems
of binary usenet.
So that's it? Either all the way or none? Fortunately no. There is a middle
way, and this is what I suggest should be done:
Let us define xBin in a way such as articles with parity files are easily
distinguishable. A xBin-compliant client then must be able to distinguish
normal articles / reposts from parity data. It further must be able to
download parity data belonging to a certain file_hash should that be
necessary. However, the client is *not* required to implement the
ReedSolomon algorithms to actually fix files or to create parity files.
That way a client could then do the following:
1. For an incomplete file for which the client sees parity data, it
calculates how many parity files are required to fix the file.
2. The client fetches the parity data and saves them as separate files to
disk (P01, P02...)
3. The client starts an external application, which will do the necessary
computations to fix the file with the parity information
4. The client checks again the hash tree. This is necessary because we
cannot guarantee the parity files to be valid (more on that later) However,
the parity data cannot destroy more, it can only "not fix" the gaps. By
recalculating the hash tree of the file, the client knows for sure if the
file now is fixed or not. If it is fixed, then the job is done. If it was
not fixed, then the client discards those parity files and looks for more
parity files and/or reposts or files a repost request.
This way is not really all that different from what we have today. An
external application which does the ReedSolomon calculations. It also
complies with the unix way of life: Do one thing and do that well. We'll
have a (from the point of view of the newsreader) external application that
makes parity files or fixes them. And we have the newsreader. No need to
teach newsreaders what ReedSolomon is. They can still do that by
themselves, if they really want though.
The "external RS-Parity applications" already exist today. And they won't
work 1:1 with xBin either, because of the meta-data (see below) but I think
it is not too difficult to adapt them to "xBin-style parity data".
It would of course be cool if we'd come up with a reference implementation
of this external application so any implementer of xBin could use the
advantage of the parity system. And guess what, with only 5 minutes spent
googling, I've found the following sourceforge project:
http://parchive.sourceforge.net/
I haven't looked at the codebase yet, but they have some extensive
documentation about the PAR-file format that is in use currently. They also
seem to have clients for those parity files for about any operating system
(including MSDOS, MacOSX and a generic "unix" command line client) At least
the unix command line client includes source code.
So, with that out of the way, there are some differences between the way
the PAR-system works today and the way how it have to be under xBin. Most
of the differences stem from the fact that with xBin, we no longer have
filesets (one file splitted) but one big file. Of course xBin does not
hinder anyone to split his files, however everything in xBin is
file-centric in the sense of the file-hash or the root-hash of the
hash-tree of a file is the one single "induction-anchor" (if you follow my
meaning) and there is no relationship what so ever between one filehash and
another.
So here's the differences, or the problems that need to be adressed:
Blocksize
=========
The PAR-system as used now works with filesets. A fileset is simply a big
file splitted into several few. A PAR-Parityfile needs to be at least as
large as the largest file in the fileset.
Now we don't split files in xBin. But we can do as if we were. All we need
to do is to define a "virtual segment size", ie a size at which we would
split a file if we were splitting it. This virtual segment size then
defines the size of all parity files.
The value of this virtual segment size can either be static in the xBin
standard (like saying "every parity file is 10MB large") or it is a dynamic
size, depending of the file size of the original file ("a parity file is
always the size of N / 1000 blocks large, whereas N is the number of blocks
of the original file")
The virtual segment size in any case must be known because not only the
originator of a post may create parity files but anyone having that file in
full. Having mixed size parity files from different people would
complicate the maths involved in calcualting and reconstructing data by a
huge amount.
As of this time's writing, I'd go with a fixed size for this virtual
segment of about 10MB. This would lead to people using normal reposts for
small files but using the par-system for larger files.
But how should a newsreader react if the virtual segments does not match
(align) with the downloaded blocks? Ie consider the following picture:
+-----+-----+-----+-----+-----+-----+-----+
| A1 | A2 | A3 | A4 | A5 | A6 | A7 | articles
o o o x x x x x x x x x o o o o o o o o o <--- xBin blocks
� f1 � f2 � f3 � virtual segments
+-------------+-------------+-------------+
This depictes a file with the blocks in the middle. An article spans 3
blocks each. Our newsreader has got articles 1, 5, 6 and 7. It is missing
the blocks within the articles 2,3 and 4 (those blocks with an "x")
Below the blocks is the virtual segment size, regarding the PAR-system. So
the Par-system looks at this as if two files (f1, f2) are missing, even
though some blocks within that virtual segment are there. A "virtual file"
is therefor only complete, if all blocks within that virtual segment are
there.
For a newsreader, it is easy to decide at any point how many parity files
it would need to complete the file using parity-data. It is the total
number of virtual segments minus the number of completely filled virtual
segments.
Next item:
Header of Parity Data
=====================
If a newsreader wants to find parity data for an xBin posting, it must have
an easy way to do so. Therefor, the parity data must be strongly tied to
the original file's file hash.
To be able to create Parity files, you need the original file, therefor you
don't have a problem obtaining that file hash. To make that parity data
"belong" to a certain file hash, that parity data must also be posted under
the same "name", so the parity data gets posted with a message-id
containing the root hash of the original file and the root hash will also
be included in the X-Bin-Signature header.
To distinguish such a parity file from a normal part of an xBin file
however, there must be some change. One way to do that is to "overflow" the
offset variable in the message-id of an xBin posting. If that offset value
is larger than the total file length, an xBin client then could tell that
this must be "additional" data, what parity data in effect really is.
Some may look at this way as a nice way to use an already existing field,
others will say that this is a blatant misuse of a field. This is up to now
only a suggestion however. We can define entirely new fields, because the
x-Bin-Signature: header of parity data will not contain any hash except the
root hash. We unfortunately cannot guarantee the integrity of PAR-files
(see below under security) but at least that leaves us plenty of space in
the x-Bin-Signature header to mark this data as parity data.
What's also important is to give the sequence number of the parity data.
Having two P01 parity files is less than having a P02 and a P05 parity
file. So there must be a way of determing which parity file it actually is.
This is also important if user A gives 4 parity files (P01 to P04) but user
B is having 6 gaps to fill. Then user B can request additional 2 parity
files, which for example user X is going to give. But user X must know that
he should create P05 and P06 and not two parity files starting from 01...
So sequence numbers for parity files must be given, both in requests for
parity files as well as in the header of the xBin-parity files so a
newsreader knows what's there.
Next item:
Metadata
========
PAR-files as used currently not only contain data to reconstruct files
within filesets, they also contain meta-data. For example, for every file
in the fileset, a hash value (md5 seemingly) is computed. Also the filename
of every file is saved together with its position within the fileset. All
this information plus the sequence number of the PAR-file itself makes up
the meta-data. This meta-data is in every PAR-file. You can test this by
downloading a fileset, then change one or several of the files. Then
download any one Parity-File and feed it to FS-Raid or whatever tool you
use. The tool is then able to tell you which file is corrupt by using that
meta-data within the parity file.
The .PAR file only contains that meta-data, no data to reconstruct file
contents. That's why it is quite small.
With xBin however, we already have hashes of blocks, we already know when a
block is valid and when not. So we don't need that data. Furthermore, the
filenames are useless, since there is only one file. Splitting /
segmentation is purely virtual, so that's further useless data.
All the meta-data one xBin-parity file needs is actually the sequence
number of the parity file itself and the hash of the original's file.
Final item:
Security
========
It has been said in the posting already that we can't secure PAR files.
Here's why: Of course we could add parity files with any posting and add
the parity's data blocks under the xBin hash tree. However this enlarges
the hash tree (more hashes!) causes pro-active sending of parity data (more
volume) and makes selective retrieval of one single parity file or so more
clumsy.
But - arguably - most important of all: It's not what parity files are for!
Parity files must be something we opt to selectively retrieve. All blocks
under a hash-tree are blocks we absolutely want. Blocks we need. But parity
data is optional. We might need some of them. We might need none of them.
Somebody might want two parity files, someother might want three.
And parity files are expandable. Someone produces 3 parity files, another
person needs five though so another person creates two additional parity
files. How would they fit under a hash tree ? How do we keep track what is
needed and what is available?
So there's no simple way to secure parity data. Everybody with the full
original file can produce parity files, so everybody can produce wrong
parity files as well. Fortunately, having wrong parity files does not cause
corruption in your incomplete xBin-file. It does not fix the missing parts,
but it cannot kill the whole file or introduce more "errors". Of course if
you have some few valid blocks within one incomplete virtual segment, those
valid blocks will get lost using fake parity data. However from the view of
the virtual segments, there is no change: You had an incomplete virtual
segment, you still have an incomplete virtual segment.
Therefor, for the secure operation of xBin with parity, an xBin compliant
newsreader MUST check the hash tree after each attempt at parity repair.
That way, problems are detected and a corruption of the file is not
possible.
And if a corruption is not possible, attackers probably don't take up the
effort to even create fake-parity data, even though they could. Its simply
not worth it. If they do that however, the newsreader can throw aways the
parity data and try again with more parity files. If the problem persists,
the newsreader can fallback to repost-requests.
The End ?
=========
Wow you've read through all this. Now since that took me more time to think
about and write and formulate it out, I'm even going to give you a little
candy:
There's an easier way than that !
All we need is to define how a single file will be splitted and use a
common nameing scheme, as well as the virtual block size.
Let a newsreader who should produce PAR files use the following system:
1. It really splits the original file into N segments, all having the size
of virtual segment size (yet to be determined). The filename of those
splits is the original filename added by a dot added by a three digit
number starting from 000: a.000, a.001 ...
2. Use an ALREADY EXISTING external application to create M parity files.
3. Delete the splitted files.
4. Post the Parity data files according to xBin rules for parity data.
A newsreader wanting to use parity files to complete a file does the
following:
1. Determine how many parity files are necessary to complete the file
2. Get those parity files
3. Split the incomplete file into parts of virtual segment size each. Rule
for nameing the files as above.
4. Use the ALREADY EXISTING external application to fix the files using
parity data.
5. Concatenate the splits back to one single file, verify tree hash.
6. If ok, delete former incomplete file -> done. If not ok, delete parity
files, delete splits. Try to get more parity data.
The advantage is: With minimal effort, parity technology can be implemented
into xBin, NOW ! No adaption of PAR-technology needed, it's already there.
The disadvantage is: Uses more diskspace because of splitting, Parity files
have more meta-data than is actually needed.
Problems: Two users having the same file may have different file names, so
if those each create some parity files, they won't be able to fix data
because their meta-data does not match. So we chose as "basefilename" for
the split files the file-hash in an appropriate encoding (base64..)
So now we're really at the end of my parity with xBin excurse. Comments?
Additions? Corrections?
I *really* vote for the inclusion of Par-technology into xBin, and into
xBin v1.0, not later.
We really only need to define a new header-set, describing PAR files and
their sequence number as well as the "virtual block size". At least, that's
what I think is needed.
Let the discussion begin.
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Curt Welch
Date: Mon, 30 Dec 2002 22:18
Date: Mon, 30 Dec 2002 22:18
396 lines
21068 bytes
21068 bytes
Rene <invalid@email.addr> wrote: > As of this time's writing, I'd go with a fixed size for this virtual > segment of about 10MB. This would lead to people using normal reposts for > small files but using the par-system for larger files. There's the complexity that par files are limited to the number of virtual segments they can cover depending on the word sized used in the RS algorithm. I belive, but do not know, that all the current tools out there use 8 bit words and therefore limit the number of files/virtual segments which can be proteced by the par data to something like 128 or 256. In your post here, you seem to assume that each PXX file will cover the entire xBin file - i.e. all the virtual segments. I suspect that assumtion is not going to work. For one, if the external tools are limited to 128 files which they can protect, then you will have to create virtual segemnts, and PNN files which are a min of the xBin file size / 128. A 2GB xBin will will then need each PXX file to be 16MB. That ends up being posted as 32 some odd articles, of which 3 get lost, so how to you repair the lost articles from the par files? Also, to generate a missing virtial segment using par data, you have to scan and do calculations over all the virtual segments protected by PAR data. So if you have a 2GB file, the program to reconstruct the missing data has to scan the entire 2GB file. And depending on how clever to tool is, it will probably end up scaning the entire 2GB file for every virtual segment it has to recreate. I suspect this is going to be unworkable for very large files. > But how should a newsreader react if the virtual segments does not match > (align) with the downloaded blocks? Ie consider the following picture: > > +-----+-----+-----+-----+-----+-----+-----+ > | A1 | A2 | A3 | A4 | A5 | A6 | A7 | articles > o o o x x x x x x x x x o o o o o o o o o <--- xBin blocks > � f1 � f2 � f3 � virtual segments > +-------------+-------------+-------------+ This can work. But it means you end up having to download a lot of extra par data and do a lot of extra par calculations. If you above example, if articles are 500KB each, the your virtial segments, and each par file is 1.1MB each. If the guy happens to be missing articles A3, and A10, both which span virtial segments, he will need to "fix" 4 virtial segments, so he will need 4 PAR files of 1.1MB each. So in order to fix 2 missing 500KB articles, you are asking him to dowlonad 4.4MB of par data. No one is going to like that. And, because your par files are split across multiple articles, you risk losing one of those articles and having once again wated usenet bandwidth for some sites who have unuseable segements from another multipart post. I would propose always using "virtual" segments that can fit in a single arictle. This way, the PAR files will always be posted as a single article, and if some are lost, no harm is done. You just have a few less par files to work with. Each par article will still remain useful. And, because I think forcing the PAR repair tool to scan the entire 10GB file to replace a few missing 500KB sections is going to be unreasonable, (even more so when you find out the PAR was forged and has given you crap after all that work downloading it and wiating 20 minites for the repair tool to do number crunching over 10GB of data), I think we are going to have to limit the range of virtial segments each PAR article will cover. So you might divide the huge xBin file into virtual segments which each cover N hash blocks (virtial segements should align with hash blocks I think). If the hash block size is 22500 like we have talked about, and you wanted to post 400Kish par files, then you could use a virtial segment size of 18 hash blocks. You could them post a set of par articles, P01, P02, P03 etc which cover the first 100 virtial segments in the file (40MB of data), and another set of hash files for the next 100 virtual segments, etc. as required, for the entire file. The download tool then needs to figure out how many par files are needed for each 100-segment block based on how much data is missing from each. > Header of Parity Data > ===================== > To distinguish such a parity file from a normal part of an xBin file > however, there must be some change. One way to do that is to "overflow" > the offset variable in the message-id of an xBin posting. Bizzare and not needed. > What's also important is to give the sequence number of the parity data. Just add $P1$ in the xBin ID. That not only gives you the needed parity file sequence number, the presence of tthe $P field tells you that this is parity data and not normal data. The segment size should be used as it normally is - it tells you how much data is in the current article. This however, for parity files, becomes your "virtial" segment size because each parity article will span multiple virtual segments of this size. Since I propose the parity files not spaning the entire xBIn file, you need to also specify which virtual segments this parity file does span. I suggest you do it using the same offset we use for real data, and then adding a repeat count. So a normal data segment has this data: $H hash $S file size $o segment offset in hash blocks $s segment size in hash blocks A parity file could have: $H hash $S file size $o segment offset in hash blocks $s segment size in hash blocks $P parity sequence number $N number of segments spanned by parity data (100 in my example above) So, the data out of the full xBin file spanned by this parity data would start at the $o offset, and would continue for $N blocks of size $s. THis means the Message-ID for a PAR file will only have a few more characters than a normal xBin articles. Since we are re-using the $o and $s values, it would be very important for all xBin applications to understand that the meaning of $P and $N (even if they didn't support parity files) so they didn't mistake this as a data segment). But, then again, I guess that isn't as important because this data won't pass the hash test so it would be rejected if the program was too stupid to understand it wasn't meant to be file data. Article alignment.... But here's the rub. Articles get lost, not virtual segments. And though it's not all that hard for software to map the two, and figure out which par files on the server are useful and which not, it means to fill in holes, you end up haiving to downloading more par data than the amount of "holes" you actually need to fill. People having to download will prefer reposts instead of par because the par system makes them download more. You can post par files which match the orginal article split, but, because we are talking about trying to keep all the articles in a set as close the same size as possible, the articles will in fact not be the same size. The first 20 articles in a 35 article set might be 20 hash blocks each, and the next 14 19 hash blocks, and the last one 20 hash blocks. And I was thinking this would really mess up the par system because you can't pick virtial segment sizes which match this article split. But as I write this, I see the obvious answer. For the above example, you post one set of par files, which span only the first 20 articles - because they are all the same size. Then you post other par files which span the last 14 articles, because they are the same size, and then you just repost the last fill if needed and don't try to cover it with par data. This way, the above simple system of defining par files as covering a consecutive range of fixed sized virtial segments, can be nicely matched to the files which were posted even though the split sizes were selected to equalize the file sizes and cause them to have different sizes. So, if you post a set of articles each with this number of hash blocks each: 20 20 20 20 20 19 19 19 19 19 19 19 19 You can then post par files of size 20 for the first 5 articles, and par files of size 19, which cover the last files. And then the par files exactly match the data they are replacing, and if you are missing 19 blocks of data, you only need to download 19 blocks of par file to replace it. And if you make the last file the same size (19 above), instead of making it 20 like we have talked about to beter equlize the article sizes, then the par files work even better. > Security > ======== > Therefor, for the secure operation of xBin with parity, an xBin compliant > newsreader MUST check the hash tree after each attempt at parity repair. > That way, problems are detected and a corruption of the file is not > possible. Good idea. But it has problems that I think we need to figure out. If you have N files missing, then you need N par files to replace them. But, to generate even one missing file, you will need to use all N of your par files. If you have 5 files missing, one par file alone is useless and tells you nothing. Once you collect 5 par files, then you can try to generate the data. As you generate each missing file, you can attempt to check it aginst the parts of the has tree you happen to already know. But, depending on alighment with other missing blocks, you may not be able to reject it or to prove it's all valid. So the application will be forced to support the idea that blocks have been "repalce" but the quality is still unknown. So you have to continue to reclaculate missing data not knowing if the work you are doing is a waste of time, or not. And, with these par files which do not cover the entire file, even if you have all the par files you need to reproduce the articles you are missing from posts 21-35, and go ahead and reproduce the data, you may still not be able to prove or dis-prove that the the articles you generated or the par files they came from are valid because you may not have the parts of the hash tree you need to figure that out. So, my point is this, if you are woking on a huge file 20GB which was posted as 40,000 500K articles, and you missed a total of 500 parts, but you found and downloaded 500 par files to fix all those holes (and you have been working on getting this complete file for months), you can't know for sure if any of those 500 par files are corrupted or fakes, until you fill in all the 500 missing parts and then verify the entire hash tree. No one wants to find out a month later that the par file they grabbed was bogus, but that another one posted 2 weeks ago that they didn't bother to download because it was a duplicate, was in fact the real one they needed. So I think we need a little more help being able to identify bogus par files. The fact that the entire 20GB file is broken into rantges of 100 articles each covered by it's own par files, helps. But, because of the hash tree alighment, you may not have the hash values you need to verify that single 100 article block. But, here's an idea. If we include an X-Bin-Signature for each par file which is the same signature you would put on an article spanning the entire par-set, you would then have the hash values you need to veryify the entire par-set once it was re-constructed (i.e. the 100 article set). So, you pretend that the entire 100 article set is being posted as one huge article, and the X-Bin-Signature that would be generated for that huge article, is the one you include with each par file that covers that huge segment of data, then will know for sure you had the hash values you needed to verify that segment of data once you filled in all your holes. So, for the 500 par file example above, it would limit the problem into dealing with each 100 article set. So, if out of the 500 par files you had, 1 was broken or otherwise bogus, then that 1 bad par file would only mess up the articles form one 100-aritcle range of that 40,000 article post. However, if someone trying to attack the post, posted multiple bad par files for every 100-article set, you would still be screewed, beause you have no easy way to know which of the 10 par files you got for that 100 article set are the fakes, and which are the good ones. If you need only 5 par files, and there are 20 par files posted, you can download all 20 of them and try them 5 at a time, but that sucks, beause it would take forever for the software to automatically try this. If you manually look at the par files, you could see that some came from one place and some seemed to come from another (looking at the path), so you could try using only par files from one place vs the other in a gess that the bad ones all came from the same source. But this requires manual intervention, and xBin is all about preventing that. Maybe there is a way to prove that par data is valid and we just haven't thought about it yet. > And if a corruption is not possible, attackers probably don't take up the > effort to even create fake-parity data, even though they could. They can't corrupt the valid data you downloaded, but they can corrupt all the other par files from the same set because all the par files become useless once you get one bad apple and have no automatic and computationaly "reasonable" way of identifying it. But, I guess, the smaller the par-file-sets you cover with each par file, the more reasonabl it becomes. If you generate a 1 par file for each 5 aricles posted instead of 20 for each 100, then you are likely to only need 1 par file to fill that 1 hole, and you will then (with the X-Bin-Signature from the par file) have evertyhing you need to verify the data after you generate the 1 missing file. The larger the range of articles you cover with a par file, the more likely multiple par files will be needed, and the more likely a bogus or forged par file is going to screew things up. So the answer may be to use smaller article ranges if you are having problems with corrupted or forged par files. The smallest case is 2 articles covered by one par file, and with that, if you have one valid article, and one par file from the range, then you just generate the missing article in the par and verify it to prove or dis-prove the quality of the par file. Ok, I think this will work then, and the more a group is under attack, the smaller the range of par files they use, and it's under real heavy attck, they just stop using par files and only post fills. > There's an easier way than that ! [making the newsreader generate standard data and par-files for use by standard external par utility]. That will work even better when you limit the range of data each par file covers, because instead of splitting up a 20GB file into who knows how many files for the par utility to mess wtih, you only need to deal with the limited range of data which the par file covers. So if the xbin par files cover 20 200K posts, you just generate 20 files, and the N par files, use the external utility to fill in the gaps, and then make the newsreader check the generated fills for validity. You then remove all those external files, and go on to the next without every haivng ot so an exta 20GB of disk space just to replace 1 200K lost article. > Problems: Two users having the same file may have different file names, > so > if those each create some parity files, they won't be able to fix data > because their meta-data does not match. So we chose as "basefilename" for > the split files the file-hash in an appropriate encoding (base64..) The newsreader needs to hide all that. It would need to understand the xBin par file layout and know how to geneate the tmp files and the par files and make up the correct metadata to point to the tmp files. But, this may be so much work and so much knowledge of of par files that it won't really help simply the job for the newsreader. Here's another option.... If we were to define a standard disk format for saving partially downloaded xBin files which includes the data and hash data, then we could create either a complete par tool to work on that data (hack some of the current PAR utilities?) or just a data extraction tool which reads the xBin data files and produces the par files which the current par tools could use. If we had either of those tools available, then the newsreader authors would only have to store the xBin data (and the downloaded par data) in that standard format and the external tools would deal with the par problems for it. Having a standard disk-format for partially downloaded xBin files might be good for other reasons as well - but it might get very complex very fast when we look at how much information the newsreaders might want to store in these type of files and how much some newsreaders would not want to bother with. For example, you might bundle all the data into a directory with a common name, such as a hex version of the full 160 bit file-hash. (or XB-9A8700BD51F etc). Then in that directory, you have data segments where the file name is D-OFFSET where OFFSET is a hex offset value. And parity data files named P-OFFSET-P-N (the size of the file defines tells you the segment size for both of those). where the second P is the parity file sequence number and N is the number of virtual segments the data spans. Then you add a file to store all the known and verifyed hash tree data. Maybe something like this is all we needed. The newsreader can create and store additional files if it wants to keep additional meda-data (dates, download times, which server the data came from, the article headers from the orginal articles, the orignals articles, etc etc). But if we cerated a PC tool to go though that directory and fill in holes using the parity files then the job of the newsreader gets easier. Ah, but putting 40,000 files in one directly is an issue if you are dealing with a huge file.... Maybe the answer is for the newsreader to combine data segments whenever it can. So instead of ten files for blocks 1 to 100, it would be combined into one file where the name showed the correct offset and size for the whole thing. > So now we're really at the end of my parity with xBin excurse. Comments? > Additions? Corrections? > > I *really* vote for the inclusion of Par-technology into xBin, and into > xBin v1.0, not later. Yeah, me to. > We really only need to define a new header-set, describing PAR files and > their sequence number as well as the "virtual block size". At least, > that's what I think is needed. I think we only need a $P and $N added to the mesage-ID and use the Signature like I described. And the data encoded in the PAR file is pure RS data with no meta data. How to encode that is an issue though. If uuencode, what's the name to use on the begin line? and for yEnc, does it look just like one small file (I guess that's the answer), so then we just need to figure out what name should be used for the file. The name is not real improtant, but it wouldn't hurt to figure out something and specify it as the name. I guess it would fit with type type of stuff I was talking about above, It could have a name which was something like 982761DF-2-A2.XBP where the first hex number is the offset, the 2 is the parity sequency number, and the A2 is the count of blocks spaned by this PAR file. Using P02 would probably be wrong since the data would not be a valud standard PAR file and would not attemnt to include the typical PAR meta-data inside the file. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Thomas
Date: Mon, 30 Dec 2002 23:20
Date: Mon, 30 Dec 2002 23:20
130 lines
7242 bytes
7242 bytes
Rene wrote: > Blocksize > ========= > The PAR-system as used now works with filesets. A fileset is simply a big > file splitted into several few. A PAR-Parityfile needs to be at least as > large as the largest file in the fileset. > > Now we don't split files in xBin. But we can do as if we were. All we need > to do is to define a "virtual segment size", ie a size at which we would > split a file if we were splitting it. This virtual segment size then > defines the size of all parity files. As messages get lost individually, it makes sense to use the message size as the PAR block size. This means that the PAR is only applicable to a certain section of a large posted file. But it is a bit more efficient. Say you have a 500 part post. Say we lose two articles. If a PAR part was two articles, you probably need 2 PAR files to recover - total 4 articles. If a PAR part is a single article, you'd still need 2 blocks. And a PAR for the beginning wouldn't help for a missing article at the end. But it would be 2 articles PAR data posted. Now, we try the case where people are missing 2 articles randomly over the file: some missing the 2 fist, others the 2 last, etc. This would need 4 articles again. Not worse than using larger PAR files. This is easy enough to understand if you realize that a too large PAR file transfers correction data for the next article, that may or may not be missing. If articles sizes are different, just pad the short articles with 0's before generating the PAR data. But the length of the missing article should then be known somehow. As Curt noted, this also makes a PAR part the stand alone entity that it should be. > The virtual segment size in any case must be known because not only the > originator of a post may create parity files but anyone having that file in > full. Having mixed size parity files from different people would > complicate the maths involved in calcualting and reconstructing data by a > huge amount. > > As of this time's writing, I'd go with a fixed size for this virtual > segment of about 10MB. This would lead to people using normal reposts for > small files but using the par-system for larger files. Hmm.. I see teh problem where files get reposted in different article sizes. But still, PAR needs to paint in missing articles. And for that, it needs to traverse the already posted data in a consistent manner. I think that PAR can only work if postings are done in consistent sizes, with the last block not beaing exactly the right size. > Therefor, for the secure operation of xBin with parity, an xBin compliant > newsreader MUST check the hash tree after each attempt at parity repair. > That way, problems are detected and a corruption of the file is not > possible. I think that is the only solution. Not feasible to check on servers. > Let a newsreader who should produce PAR files use the following system: > > 1. It really splits the original file into N segments, all having the size > of virtual segment size (yet to be determined). The filename of those > splits is the original filename added by a dot added by a three digit > number starting from 000: a.000, a.001 ... > 2. Use an ALREADY EXISTING external application to create M parity files. > 3. Delete the splitted files. > 4. Post the Parity data files according to xBin rules for parity data. If it would use the net article size as the segment size, the PAR would be most efficient. But you would need to encode also to which segment range teh PAR files apply. > A newsreader wanting to use parity files to complete a file does the > following: > 1. Determine how many parity files are necessary to complete the file > 2. Get those parity files > 3. Split the incomplete file into parts of virtual segment size each. Rule > for nameing the files as above. > 4. Use the ALREADY EXISTING external application to fix the files using > parity data. > 5. Concatenate the splits back to one single file, verify tree hash. > 6. If ok, delete former incomplete file -> done. If not ok, delete parity > files, delete splits. Try to get more parity data. Nothing here changes, just the parts being smaller. It just happens that missing data is exactly a PAR block in size, making for easy to fill holes. It is much more efficient - just like it would be more efficient to repost just article 3 of .r13, instead of the whole .r13 (something that xBin tries to fix, but we forget again with PAR). > The advantage is: With minimal effort, parity technology can be implemented > into xBin, NOW ! No adaption of PAR-technology needed, it's already there. > > The disadvantage is: Uses more diskspace because of splitting, Parity files > have more meta-data than is actually needed. > > Problems: Two users having the same file may have different file names, so > if those each create some parity files, they won't be able to fix data > because their meta-data does not match. So we chose as "basefilename" for > the split files the file-hash in an appropriate encoding (base64..) > > So now we're really at the end of my parity with xBin excurse. Comments? > Additions? Corrections? I hope you see that having each PAR part span more than a single article is inefficient. But the overall idea should work. Any idea on how much extra metadata would be involved? If it means the PAR file has to be split anyway, that would be bad news. > I *really* vote for the inclusion of Par-technology into xBin, and into > xBin v1.0, not later. Agree. The PAR parts should be easy to identify by something that looks at headers. A feeder could examine the posts, check what block ranges it is missing for a file, als allow so many PAR files to come by plus some extras. Other point on PAR: is there a limit on how many PARs can be generated (say max 10% missing on a file)? Hopefully, using PAR and not reposts means Curt's fear of endless automatic reposts (which I share) does not become true. Thomas
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Mon, 30 Dec 2002 23:32
Date: Mon, 30 Dec 2002 23:32
52 lines
3360 bytes
3360 bytes
[Curt Welch]: > > If we include an X-Bin-Signature for each par file which is the > same signature you would put on an article spanning the entire > par-set, you would then have the hash values you need to veryify > the entire par-set once it was re-constructed (i.e. the 100 > article set). how about including the hashes of the correct blocks instead? all the leaves, not the tree. these can be verified against the hash tree in the real parts. for a segment of 100 parts of 18 blocks, the hashes use 36 kB (+N% for encoding), which seems reasonable to me. (if you want to, you can require segments to start on even offsets, and include the hashes from the level above the leaves, cutting the size in half.) it really depends on how PAR works -- can you do block by block, or PAR file by PAR file? if the former, you can detect bogus PAR files much earlier if you're told the hash value of the block. > If we were to define a standard disk format for saving partially > downloaded xBin files which includes the data and hash data, [...] I think this is a very good idea. > Maybe the answer is for the newsreader to combine data segments > whenever it can. this could be left to the newsreaders discretion. it makes sense to do so, though. > If uuencode, what's the name to use on the begin line? [...] > > I guess it would fit with type type of stuff I was talking about > above, It could have a name which was something like > 982761DF-2-A2.XBP where the first hex number is the offset, the 2 > is the parity sequency number, and the A2 is the count of blocks > spaned by this PAR file. I think the root hash of the file should be in that filename as well. we may have to consider filelength limits, and put the important information first in case it gets truncated and needs manual treatment (okay, who's still running good old SysV file systems? :). the value of offset should be specified in xBin blocks as well. OFFSET-SEQ-SPAN-ROOTHASH.XBP xxxxx-x-xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.XBP -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Curt Welch
Date: Tue, 31 Dec 2002 18:18
Date: Tue, 31 Dec 2002 18:18
70 lines
4419 bytes
4419 bytes
Thomas <zak@spam.invalid> wrote:
> I think that PAR can only work if postings are done in consistent sizes,
> with the last block not beaing exactly the right size.
I thought that as well, but it's not really a probelm, it just once again
makes things a litte more complex.
When you "level" articie sizes, you end up two different size size
articles. Depending on where you spit, you will end up with the first N
articles being larger, and the rest smaller. The last will logicall have
the same number of blocks, but one block will be partially empty to the
article will be smaller than all the rest (with the except of coruse of a
post which divides evenly into both hash-blocks and the article split).
SO, you part sizes like this:
4 4 4 3 3
For PAR, this is easy to deal with because you just pretend the short files
are longer. The though part however is that the par file is not in anyway
associated with that orgianl article split, so you have to exactly specify
what blocks from the file are used for each par segment. That gets messy
because you end up with the file being broken into logical blocks like
this:
1111 2222 3333 444 555
Where '1' is the blocks from the first par segment, 2, the second par
segment, etc. The par file has to include meta information to show this
strange lop-sided distribution of par segments thoughout the xbin file.
But, the easy solution is to ignore that. Just go with the simple type of
medata data which assumes the par segments must be N consecutive blocks all
of the same size which can start anywhere in the file, and extend for as
long, or as short as you want. To do that, all the meta data needed to
explain how the PAR segments are found in the full file is the offset of
the start of the par segments, the size of the par segments, and the number
of segments. All this fits nicely into the Message-ID, so we don't need
any additional article headers. We just add the $N count of segemnts to
the message-id.
So, for the above post, you could generate par files for the first 3
articles, because they are all the same size, and you could generate a par
file for the last 2 articles. You just couldn't span the entire _and_ keep
the par segments aligned with all the posts.
You could span the entire file like this:
1111 2222 3333 4444 55
With one par file, but the last two articles from the orginal post just
won't align correctly with the 4 and 5 par segments.
The tools which reconstruct missing xBin data using par files should have
the power to work with any aligment (which can get complex - but is still
not that bad). The par files found by a download tool might not have been
sent to "fix" the problems of the same post the first data came from, so
the aligment might be completly wrong anyhow. The download tools should
still have the power to make use of the mis-aligned par segments anyhow if
they will help fill in missing holes.
For a 500 article post, you still only have two different article sizes.
So you will have plenty of articles in both ranges to generate PAR files
for using the slimplified meta-data system of specifying par segment
ranges.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Curt Welch
Date: Tue, 31 Dec 2002 19:04
Date: Tue, 31 Dec 2002 19:04
98 lines
5786 bytes
5786 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch]: > > > > If we include an X-Bin-Signature for each par file which is the > > same signature you would put on an article spanning the entire > > par-set, you would then have the hash values you need to veryify > > the entire par-set once it was re-constructed (i.e. the 100 > > article set). > > how about including the hashes of the correct blocks instead? all the > leaves, not the tree. these can be verified against the hash tree in > the real parts. for a segment of 100 parts of 18 blocks, the hashes > use 36 kB (+N% for encoding), which seems reasonable to me. (if you > want to, you can require segments to start on even offsets, and > include the hashes from the level above the leaves, cutting the size > in half.) I thought about that, but it's a lot of data if the par file covers a lot of segments. It won't fit in the headers. But you could put in the article body. The problem is that you need the has not for the entire range, but for each par segment. Typical article size is in the 400KB range which means, or up to say 20 or hash blocks (of the 22500 size), which means worse case hash values of around 5 per segment. You would need those for every segemnt, so if you covered a 10MB segment of a file with the PAR data, you are talking 25 segments and 125 hash values which is 3K or 4K worth of metadata. That would work for a 400K par post, but like I said, not in the headers. Ah, but it would be of some potential use to just include a different single hash value of each par segment. That wouldn't allow you to prove the generated segment was part of the xBin file, it would help you spot problems quicker, and then you only need one hash value per segment instead of up to 5. I suspect however that even that isn't worth it however. > it really depends on how PAR works -- can you do block by block, or > PAR file by PAR file? if the former, you can detect bogus PAR files > much earlier if you're told the hash value of the block. You create blocks one at a time, but only after you have all the PAR files needed. Each different par file is generted using a different reed-solomon equation which is a linear equation (ax + by + cz = p) which calcuates each byte in the par file from the matching bytes from the 3 data blocks. If you have 2 par files, and 2 data blocks missing, you have this: a1x + b2y + ccz = p1 a2x + b2y + c2z = p2 Where a1, b2, a2, etc are reed-solomon defined constants. and x is the byte from the first data file, y the seconed, z the third, and p1 and p2 are bytes from the par files. So if you have two par files, you have two equations like above, so you can have up to two data values missing, and can still solve the equation for the unknown variables. If you have 2 par files, and 3 missing blocks, you can't solve anything. So you can't fill in any holes until you have enough par files to fill them all in. So as long as you have to wait to fill them all in to find your answer, then why not go ahead and generate all of them and use the much smaller "hash values for the rest of the file", to figure out if this set of par files is valid or not. Adding the large set of hash data to the par file wouldn't save you any download time, and it wouldn't make it easier to figure out which par files were good vs bad. It would only save computation time because instead of computing and generating your N missing articles, you would know if they were good after the first was generated. I suspect the simplicity of leaving the hash data out is more important than saving some number crunching time. > I think the root hash of the file should be in that filename as well. > we may have to consider filelength limits... > OFFSET-SEQ-SPAN-ROOTHASH.XBP > xxxxx-x-xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.XBP The potential file name length issues is what worries me. I was suggesting putting the roothash in the directory name as: XB-ROOTHASH/OFFSET-SEQ-SPAN.XBP XB-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxx-x-xx.XBP to keep the files names a bit more managable. Maybe you can even get away with using a name like that in a begin or =begin line? Maybe the way to do it is use a single file name in the actual article "begin" or "=ybegin" line like you suggest, but just assume it will never be created like that for the "disk format standard"? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Wed, 01 Jan 2003 21:32
Date: Wed, 01 Jan 2003 21:32
108 lines
5888 bytes
5888 bytes
[Curt Welch]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > how about including the hashes of the correct blocks instead? > > all the leaves, not the tree. these can be verified against the > > hash tree in the real parts. for a segment of 100 parts of 18 > > blocks, the hashes use 36 kB (+N% for encoding), which seems > > reasonable to me. (if you want to, you can require segments to > > start on even offsets, and include the hashes from the level > > above the leaves, cutting the size in half.) > > I thought about that, but it's a lot of data if the par file > covers a lot of segments. it's 20 bytes per block covered, or 0.09% of the file size with 22500 byte blocks. > It won't fit in the headers. no, but that's not important, it wouldn't protect against fakes anyway. > But you could put in the article body. The problem is that you > need the hash not for the entire range, but for each par segment. > Typical article size is in the 400KB range which means, or up to > say 20 or hash blocks (of the 22500 size), which means worse case > hash values of around 5 per segment. You would need those for > every segemnt, so if you covered a 10MB segment of a file with the > PAR data, you are talking 25 segments and 125 hash values which is > 3K or 4K worth of metadata. That would work for a 400K par post, > but like I said, not in the headers. I'm not sure I've got this right. I thought we'd split the file into segments of 100 article, and make PAR for each of these segments. the size of the PAR information is the same as one article. a PAR article would in addition include the correct hashes for the 100 articles it covers. that's the 36 KB i mentioned. > Ah, but it would be of some potential use to just include a > different single hash value of each par segment. That wouldn't > allow you to prove the generated segment was part of the xBin > file, it would help you spot problems quicker, and then you only > need one hash value per segment instead of up to 5. I suspect > however that even that isn't worth it however. where does this "5 hashes per segment" come from? > > it really depends on how PAR works -- can you do block by block, or > > PAR file by PAR file? if the former, you can detect bogus PAR files > > much earlier if you're told the hash value of the block. > > Adding the large set of hash data to the par file wouldn't save > you any download time, right, quite the opposite (10%). > and it wouldn't make it easier to figure out which par files were > good vs bad. yes it would, by an order of 20 or more (the number of blocks in a part). if you have five PAR files, and need three of them, you'll need to try a lot of combinations before finding out which two are fake. there are ten possible picks (5!/2!3!), only one is correct. in most systems it will probably give a better speedup than 20, due to caching effects. a devious attacker may let the first block be correct, so the program may pick the wrong PAR files. this doesn't really matter, the block is still valid, and the program just has to do a new search when it turns out block two is incorrect. > It would only save computation time because instead of computing > and generating your N missing articles, you would know if they > were good after the first was generated. I suspect the simplicity > of leaving the hash data out is more important than saving some > number crunching time. it really depends on how paranoid we are. if there are no attackers, the 10% increase in size of PAR files isn't worth it. history has shown us that protocols who assume people are benign get exploited, though. > The potential file name length issues is what worries me. > > I was suggesting putting the roothash in the directory name as: > > XB-ROOTHASH/OFFSET-SEQ-SPAN.XBP > > XB-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxx-x-xx.XBP > > to keep the files names a bit more managable. Maybe you can even > get away with using a name like that in a begin or =begin line? I don't think uudecode is clever enough to create the directory if needed. > Maybe the way to do it is use a single file name in the actual > article "begin" or "=ybegin" line like you suggest, but just > assume it will never be created like that for the "disk format > standard"? yeah, users generally shouldn't deal with this, the client should do all the work behind the scenes. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Curt Welch
Date: Thu, 02 Jan 2003 03:23
Date: Thu, 02 Jan 2003 03:23
142 lines
7795 bytes
7795 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:
> I'm not sure I've got this right. I thought we'd split the file into
> segments of 100 article, and make PAR for each of these segments. the
> size of the PAR information is the same as one article. a PAR article
> would in addition include the correct hashes for the 100 articles it
> covers. that's the 36 KB i mentioned.
Right, if a par file covers 100 articles, and we try to include "the
correct hash" for each individual aritcle, there are two different ways to
do that. I'm not sure which you are talking about.
If you use the hash-tree system to "include the hash for each article",
then you can't include just one hash value, you have to include all the
hash values at the tops of the subtrees that cover each article.
g
e f
a b c d
1 2 3 4 5 6 7 8
If the above 8 blocks were one article, then you only need to include value
g to specify the hash for the article. But if blocks 3 to 7 were in one
artcile, you would have to include the hash values b, c, and 7 to specify
the "hash" for the article. So you need 3 hash values to cover that 1 file
which is 1 out of 100 in the par block.
If each block above was a separte file in a 8 file par block, you can't
include just hash g because that is not enough to help you understand that
block 3 alone is valid or not. If you want the power to validate each file
as it's recreated, you have to include a lot more hash values.
> > Ah, but it would be of some potential use to just include a
> > different single hash value of each par segment. That wouldn't
> > allow you to prove the generated segment was part of the xBin
> > file, it would help you spot problems quicker, and then you only
> > need one hash value per segment instead of up to 5. I suspect
> > however that even that isn't worth it however.
>
> where does this "5 hashes per segment" come from?
The terms segment might be confusing you.
If you have a 100 article par block (i.e. the par data covers 100 articles
all the same size as the par article), then each article in that block
would need mulitple hash values. 5 is an example for about how many are
needed for a each file. So dependig on the size of the articles and how
many are protected by the par data, you may need 5 * 100 hash values
included in the each par article.
A file which spaned 31 hash blocks would need 5 or more hash values to
cover the data in that file (that's a 700KB file).
> > > it really depends on how PAR works -- can you do block by block, or
> > > PAR file by PAR file? if the former, you can detect bogus PAR
> > > files much earlier if you're told the hash value of the block.
> >
> > Adding the large set of hash data to the par file wouldn't save
> > you any download time,
>
> right, quite the opposite (10%).
Well, I wasn't talking about the the added size, I was talking about how it
wouldn't help the download tool make better decidsions about which par
articles to download. So you are forced to download all the same articles
with or without that data.
> > and it wouldn't make it easier to figure out which par files were
> > good vs bad.
>
> yes it would, by an order of 20 or more (the number of blocks in a
> part). if you have five PAR files, and need three of them, you'll
> need to try a lot of combinations before finding out which two are
> fake. there are ten possible picks (5!/2!3!), only one is correct.
> in most systems it will probably give a better speedup than 20, due to
> caching effects.
But how does the extra hash data help you search those 10 picks faster?
> a devious attacker may let the first block be correct, so the program
> may pick the wrong PAR files. this doesn't really matter, the block
> is still valid, and the program just has to do a new search when it
> turns out block two is incorrect.
>
> > It would only save computation time because instead of computing
> > and generating your N missing articles, you would know if they
> > were good after the first was generated. I suspect the simplicity
> > of leaving the hash data out is more important than saving some
> > number crunching time.
>
> it really depends on how paranoid we are. if there are no attackers,
> the 10% increase in size of PAR files isn't worth it.
Well, I don't think I understand enough about what time the extra hash data
saves so it's hard to try to weigh it against the 10% increase. Also, the
issue isn't just one of the 10% size increase (which I see as minor), it's
also an issue of added complexity of more meda data in each par file ("what
is that for and how is my code going to use that?").
On the time issue, for example, as long as you have to scan all the other
articles in the PAR set as you reconstruct a missing article, is it
possible and resonaoble to reconstruct all missing articles at the same
time? I suspect that the answer is yes. That not only can you, but that
it is by far the most resonable way to do it, because once you have all the
data you need to do the math to find the answer for one file, you have the
answer for the other missing files at the same time. So being able to spot
that the first reconstructed file by itself is bogus saves very little time
since after only a little more work, you have all the parts and can
easially compute and verify the file hash.
> > The potential file name length issues is what worries me.
> >
> > I was suggesting putting the roothash in the directory name as:
> >
> > XB-ROOTHASH/OFFSET-SEQ-SPAN.XBP
> >
> > XB-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxx-x-xx.XBP
> >
> > to keep the files names a bit more managable. Maybe you can even
> > get away with using a name like that in a begin or =begin line?
>
> I don't think uudecode is clever enough to create the directory if
> needed.
But will it cause chaos and core dumps, or will some be smart enought to
just use the part of the file name after the / or what?
> > Maybe the way to do it is use a single file name in the actual
> > article "begin" or "=ybegin" line like you suggest, but just
> > assume it will never be created like that for the "disk format
> > standard"?
>
> yeah, users generally shouldn't deal with this, the client should do
> all the work behind the scenes.
yeah.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Thu, 02 Jan 2003 11:45
Date: Thu, 02 Jan 2003 11:45
75 lines
4497 bytes
4497 bytes
[Curt Welch]: > > Right, if a par file covers 100 articles, and we try to include > "the correct hash" for each individual aritcle, there are two > different ways to do that. I'm not sure which you are talking > about. I suggest to include all the _leaves_, the hash of every xBin block covered. no tree information at all. > Well, I wasn't talking about the the added size, I was talking > about how it wouldn't help the download tool make better > decidsions about which par articles to download. So you are > forced to download all the same articles with or without that > data. yes, that's a bummer, but I don't see any way of fixing that. > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > yes it would, by an order of 20 or more (the number of blocks in > > a part). if you have five PAR files, and need three of them, > > you'll need to try a lot of combinations before finding out > > which two are fake. there are ten possible picks (5!/2!3!), > > only one is correct. in most systems it will probably give a > > better speedup than 20, due to caching effects. > > But how does the extra hash data help you search those 10 picks > faster? first, you verify that the leaf hashes included in the PAR files fit into your tree constructed from the normal articles. then you reconstruct the first missing block. compute its hash, see if it matches. if it doesn't, one (or more) of the PAR files was bogus, try a different pick. the win is that you only have to process _one_ block, rather than all the twenty blocks in the file, before you can smell a rat. (if two parts are missing, I guess you'll have to reconstruct two blocks, but on the other hand you'd have to do forty blocks before being able to verify the data otherwise, so the ratio is the same.) > On the time issue, for example, as long as you have to scan all > the other articles in the PAR set as you reconstruct a missing > article, is it possible and resonaoble to reconstruct all missing > articles at the same time? I suspect that the answer is yes. > That not only can you, but that it is by far the most resonable > way to do it, because once you have all the data you need to do > the math to find the answer for one file, you have the answer for > the other missing files at the same time. So being able to spot > that the first reconstructed file by itself is bogus saves very > little time since after only a little more work, you have all the > parts and can easially compute and verify the file hash. that's the way I imagine it must work as well. > > I don't think uudecode is clever enough to create the directory > > if needed. > > But will it cause chaos and core dumps, or will some be smart > enought to just use the part of the file name after the / or what? on Unix, you'll get a ENOENT from open since the directory doesn't exist. $ head -2 testinf begin 644 uggabugga/foo.avi M(R`N8F%S:')C"@HC(%5S97(@<W!E8VEF:6,@86QI87-E<R!A;F0@9G5N8W1I $ uudecode testinf uudecode: uggabugga/foo.avi: testinf: No such file or directory -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Curt Welch
Date: Thu, 02 Jan 2003 20:26
Date: Thu, 02 Jan 2003 20:26
103 lines
5895 bytes
5895 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch]: > > > > Right, if a par file covers 100 articles, and we try to include > > "the correct hash" for each individual aritcle, there are two > > different ways to do that. I'm not sure which you are talking > > about. > > I suggest to include all the _leaves_, the hash of every xBin block > covered. no tree information at all. Ok, I understand now. That means you are including even more more hashs than I was talking about. So instead of 5 hashes to cover 31 blocks, you would need 31 hash values. But like you say, you can then reject a bad combination of PAR files after reconstructing any one hash hash block. > > But how does the extra hash data help you search those 10 picks > > faster? > > first, you verify that the leaf hashes included in the PAR files fit > into your tree constructed from the normal articles. then you > reconstruct the first missing block. compute its hash, see if it > matches. if it doesn't, one (or more) of the PAR files was bogus, try > a different pick. > > the win is that you only have to process _one_ block, rather than all > the twenty blocks in the file, before you can smell a rat. Ok, I need to uderstand more about the PAR algorithm before I can measure the real value of that. You have to scan the entire 100 file PAR set to reconstruct data, but it might be fine (even resonable) to do it one hash block at a time. So if each article was 30 hash blocks, and the PAR data spanned 100 articles, you could scan the data reading only the first hash block of each article to calcuate the first hash blocks of each missing file. Being able to reject the PAR set as invalid after one pass like this would reduce the computation but almost 1/30th. But, for typical file sizes and typical PAR file spans, how much time is that saving? If scaning and rebuilding the missing files of a typical PAR set was only a 1 second processes to start with, and repeated scans were even faster because of data blocks cached, then you might not be saving that much. Or, if it's better to not skip blocks and scan the entire PAR set sequentially, then being able to reject after the first hash block might not save enought to be justified. I need to understand this better. > (if two parts are missing, I guess you'll have to reconstruct two > blocks, but on the other hand you'd have to do forty blocks before > being able to verify the data otherwise, so the ratio is the same.) Right. > > On the time issue, for example, as long as you have to scan all > > the other articles in the PAR set as you reconstruct a missing > > article, is it possible and resonaoble to reconstruct all missing > > articles at the same time? I suspect that the answer is yes. > > That not only can you, but that it is by far the most resonable > > way to do it, because once you have all the data you need to do > > the math to find the answer for one file, you have the answer for > > the other missing files at the same time. So being able to spot > > that the first reconstructed file by itself is bogus saves very > > little time since after only a little more work, you have all the > > parts and can easially compute and verify the file hash. > > that's the way I imagine it must work as well. > > > > I don't think uudecode is clever enough to create the directory > > > if needed. > > > > But will it cause chaos and core dumps, or will some be smart > > enought to just use the part of the file name after the / or what? > > on Unix, you'll get a ENOENT from open since the directory doesn't > exist. > > $ head -2 testinf > begin 644 uggabugga/foo.avi > M(R`N8F%S:')C"@HC(%5S97(@<W!E8VEF:6,@86QI87-E<R!A;F0@9G5N8W1I > $ uudecode testinf > uudecode: uggabugga/foo.avi: testinf: No such file or directory Yeah, that's no doubt common. I don't even remeber what my web interface code does. But it might look for / and \ and ignore everything in front of it to deal with the problem of "begin C:\mycoduments\file.doc" It's probably best to not think about trying to put directory names in the begin line. But then again, I suspect there's very little purpose in trying to extract xBin PAR data with any tool except one designed to deal with xBin PAR data, so maybe it's ok to do anything we want there??? We need to figure out other things first however.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Rene
Date: Sat, 04 Jan 2003 02:29
Date: Sat, 04 Jan 2003 02:29
428 lines
21829 bytes
21829 bytes
curt@kcwc.com (Curt Welch) wrote: > Rene <invalid@email.addr> wrote: > > As of this time's writing, I'd go with a fixed size for this virtual > > segment of about 10MB. This would lead to people using normal reposts > > for small files but using the par-system for larger files. > > There's the complexity that par files are limited to the number of > virtual segments they can cover depending on the word sized used in the > RS algorithm. I belive, but do not know, that all the current tools out > there use 8 bit words and therefore limit the number of files/virtual > segments which can be proteced by the par data to something like 128 or > 256. Yes, the number of virtual segments + par-files/segments must be smaller than 2^wordsize. The limitiation of the PAR-system used by FS-Raid for example is indeed 256. Quoting the help in FS-Raid: "At the present time, a PAR file is limited to 256 total files. In other words, the total number of files (parity files plus data files) may not be greater than 256. This limit is related to the mathematical algorithms used to recover missing data. Therefore, in order to push this limitation back (to, say, 64000 files instead of 256) the existing programs would need to be modified and a revised file format would need to be implemented. " > In your post here, you seem to assume that each PXX file will cover the > entire xBin file - i.e. all the virtual segments. I suspect that > assumtion is not going to work. Yes this is my base assumption. Anything else makes it more complex and is not desireable, imho. > For one, if the external tools are limited to 128 files which they can > protect, then you will have to create virtual segemnts, and PNN files > which are a min of the xBin file size / 128. A 2GB xBin will will then > need each PXX file to be 16MB. That ends up being posted as 32 some odd > articles, of which 3 get lost, so how to you repair the lost articles > from the par files? We cannot protect PAR files from forgery and we especially cannot protect them from getting dropped by any server. This is simply the risk of the PAR files. A PAR-file is quite "strong" in the sense that one single PAR file that makes it through, can repair a gap of its size anywhere in the file. All you do on the client side therefor is seeing how many PAR's you will need and then try to get them. Using the xBin-Signature header, a newsreader knows if that's possible or not. It sees if a par file is incomplete and simply tries to get another one. > Also, to generate a missing virtial segment using par data, you have to > scan and do calculations over all the virtual segments protected by PAR > data. So if you have a 2GB file, the program to reconstruct the missing No a newsreader needs to track which blocks it already has anyway. Its quite easy to expand that on the virtual segments: If all blocks from virtual-segment-start to virtual-segement-end are there, then that virtual segment is ok. > data has to scan the entire 2GB file. And depending on how clever to > tool is, it will probably end up scaning the entire 2GB file for every > virtual segment it has to recreate. Well when you attemp to repair a file using the PAR-system, you have to touch every single byte in the file anyhow. (The existing ones will be read, the missing ones will be read out of the PAR-file and written to - of course there's calculation too) > I suspect this is going to be unworkable for very large files. Depends on the size of the virtual segment (and wordsize of the RS-algorithm). If the limit on the number were not there, there would be no problem. So to solve the problem, we either need to increase wordsize (in the RS-algorithm) or we need to set the virtual segment size to a value such that we will always remain below 255 segments. > > But how should a newsreader react if the virtual segments does not > > match (align) with the downloaded blocks? Ie consider the following > > picture: > > > > +-----+-----+-----+-----+-----+-----+-----+ > > | A1 | A2 | A3 | A4 | A5 | A6 | A7 | articles > > o o o x x x x x x x x x o o o o o o o o o <--- xBin blocks > > � f1 � f2 � f3 � virtual segments > > +-------------+-------------+-------------+ > > This can work. But it means you end up having to download a lot of extra > par data and do a lot of extra par calculations. If you above example, > if articles are 500KB each, the your virtial segments, and each par file > is 1.1MB each. Well, you can't get a half PAR-file. Either you get a full one or you don't have it. The problem is, yes at the edges there is some loss. It's still better than full-reposts or many reposts. But it is compatible to reposts. A newsreader can get reposts first, if it sees some, filling some more gaps and then starts to cry for PAR-data. > If the guy happens to be missing articles A3, and A10, both which span > virtial segments, he will need to "fix" 4 virtial segments, so he will > need 4 PAR files of 1.1MB each. So in order to fix 2 missing 500KB > articles, you are asking him to dowlonad 4.4MB of par data. No one is > going to like that. Yes, it would be clever if virtual segments span complete article boundaries. But that's not going to be. Article size will be arbitrary and can change. Actually with the algorithm posted for article-size levelling, we are even doing this for one single poster. But xBin is designed for and works with several posters, all sending the file with different article size. Look at PAR-files for "bulk-repair". Fine fixes can be done easier with reposts. But reposts are place-specific whereas PAR-data is not. > And, because your par files are split across multiple articles, you risk > losing one of those articles and having once again wated usenet bandwidth > for some sites who have unuseable segements from another multipart post. Yes. That's the risk. But the number of PAR files is usually quite lower than the number of reposts. Combining both methods should get the best out of this, that's why I propose inclusion of PAR-technology into the xBin standard. > I would propose always using "virtual" segments that can fit in a single > arictle. This way, the PAR files will always be posted as a single > article, and if some are lost, no harm is done. You just have a few less > par files to work with. Each par article will still remain useful. That will limit the size of PAR-files downto 1MB max, preferably something in the range of 300KB. This then increases the number of virtual-segments over 256 for any file > 75MB. Doable if we can increase the wordsize of the RS-algorithms to 16. However the assumption of PAR-data being as big as an article max means that usenet is very bad with completion. But its not really THAT bad, is it? I look at PAR-data as "bonus"-data. Fetch some if you can and need some. > And, because I think forcing the PAR repair tool to scan the entire 10GB > file to replace a few missing 500KB sections is going to be unreasonable, > (even more so when you find out the PAR was forged and has given you crap > after all that work downloading it and wiating 20 minites for the repair > tool to do number crunching over 10GB of data), I think we are going to If you do a repair attempt, you must go through the whole file, no matter how small the gap(s) is. That's why I say for small filesizes/gaps, reposts are better. > have to limit the range of virtial segments each PAR article will cover. > So you might divide the huge xBin file into virtual segments which each > cover N hash blocks (virtial segements should align with hash blocks I > think). If the hash block size is 22500 like we have talked about, and > you wanted to post 400Kish par files, then you could use a virtial > segment size of 18 hash blocks. You could them post a set of par > articles, P01, P02, P03 etc which cover the first 100 virtial segments in > the file (40MB of data), and another set of hash files for the next 100 > virtual segments, etc. as required, for the entire file. Uh this adds a layer of complexity without giving much in return. The power of the PAR-data comes from the fact that they fix any segment anywhere in the file. Now this power is lessened if they are "range-locked". Additionally we need to clearly define which range which PAR-file is for and a newsreader needs to do the same for its gaps. Also when the PAR data spans the full file, then after a repair attempt, you can scan the file, calculate the hashes and then you know instantly if everything went right, because if so, you can recalculate the hash-tree and you will land at the root. When this falls away because PAR-files are range-locked, then you end up with having not all data to recalculate only these ranges. It is still an all or nothing thing: You need to have all the PAR-data for all the ranges with gaps until you can start the fixing AND verifiy it. > > To distinguish such a parity file from a normal part of an xBin file > > however, there must be some change. One way to do that is to "overflow" > > the offset variable in the message-id of an xBin posting. > > Bizzare and not needed. Its just my first thought. I don't know the exact alphabet of identifiers you were already using so I didn't want to introduce my own which would might have caused collisions. > > What's also important is to give the sequence number of the parity > > data. > > Just add $P1$ in the xBin ID. That not only gives you the needed parity > file sequence number, the presence of tthe $P field tells you that this > is parity data and not normal data. Yes, that's one way it could be easily done. > The segment size should be used as it normally is - it tells you how much > data is in the current article. This however, for parity files, becomes > your "virtial" segment size because each parity article will span > multiple virtual segments of this size. Exactly. > $H hash > $S file size > $o segment offset in hash blocks > $s segment size in hash blocks > $P parity sequence number > $N number of segments spanned by parity data (100 in my example above) > > So, the data out of the full xBin file spanned by this parity data would > start at the $o offset, and would continue for $N blocks of size $s. > THis means the Message-ID for a PAR file will only have a few more > characters than a normal xBin articles. Should the message-id not contain only the hash ? This additional information is only relevant to xBin-compliant software which can get that out of the xBin-Signature header. I thought the data in the message-id is only there to make xBin posts easily findable. I wouldn't put more than the hash into the message-id. > Since we are re-using the $o and $s values, it would be very important > for all xBin applications to understand that the meaning of $P and $N > (even if they didn't support parity files) so they didn't mistake this as > a data segment). Yes. That's what I meant by having a xBin-compliant newsreader understand what a parity file is and what not. > But, then again, I guess that isn't as important because this data won't > pass the hash test so it would be rejected if the program was too stupid > to understand it wasn't meant to be file data. But shouldn't be downloaded if the software can't do anything with it anyways... > But here's the rub. Articles get lost, not virtual segments. And though > it's not all that hard for software to map the two, and figure out which > par files on the server are useful and which not, it means to fill in > holes, you end up haiving to downloading more par data than the amount of > "holes" you actually need to fill. People having to download will prefer > reposts instead of par because the par system makes them download more. Depends. At the end of the day, it's a social issue over which we have no influence. We can only make it as easy as possible. If I can get a Parity file now, which is larger but fixes my problem or wait for a smaller repost, I take the larger parity file. But then again I'm a low-volume downloader at your site, where your volume-limit for me simply means "infinite"... others may have to be more conservative. Depends how many users act like I do and how many contrary. > For the above example, you post one set of par files, which span only the > first 20 articles - because they are all the same size. Then you post > other par files which span the last 14 articles, because they are the > same size, and then you just repost the last fill if needed and don't try > to cover it with par data. So effectively you are saying we should split the one xBin file into files depending on the different article sizes and then treat it as three files (from your example?) If so, we would then get three different "P01" parity files for the same xBin file (ie we'd get three parity-sequences). This could all be hidden from the user, but its a complexity-increase that must be handled at the newsreader software. > So, if you post a set of articles each with this number of hash blocks > each: > > 20 20 20 20 20 19 19 19 19 19 19 19 19 > > You can then post par files of size 20 for the first 5 articles, and par > files of size 19, which cover the last files. And then the par files > exactly match the data they are replacing, and if you are missing 19 > blocks of data, you only need to download 19 blocks of par file to > replace it. Yes. But what happens if a xBin posting is expiring and someone other fills in with a different article size? Oh the mess ! Fixing the Par-size on article size is no solution in my eyes. > If you have N files missing, then you need N par files to replace them. > But, to generate even one missing file, you will need to use all N of > your par files. If you have 5 files missing, one par file alone is > useless and tells you nothing. Once you collect 5 par files, then you > can try to generate the data. As you generate each missing file, you can > attempt to check it aginst the parts of the has tree you happen to > already know. But, depending on alighment with other missing blocks, you No that's not possible. You can't use 3 out of 5 PAR-files to repair "a bit". It is really an all or nothing thing. You can repair, or you can't. But you cannot repair a bit. Or repair only the first gap. Look at it as the virtual segments taking up space as columns. If you repair you don't repair "from left to right", ie a vertical line starts to grow from left to right. But you repair with a "horizontal line" which slowly grows from top to bottom. Or to put it another way: If you have 4 gaps and four parity files and you'd stop the repair-process 3/4 through, then all the 4 gaps would contain 3/4 the correct data but would be empty in the last 1/4. > may not be able to reject it or to prove it's all valid. So the > application will be forced to support the idea that blocks have been > "repalce" but the quality is still unknown. So you have to continue to > reclaculate missing data not knowing if the work you are doing is a waste > of time, or not. Yes, but if the PAR-files span the whole file, you can recalculate the hash-tree, and arrive at the file-hash or not, telling you if it was successful or not. > And, with these par files which do not cover the entire file, even if you > have all the par files you need to reproduce the articles you are missing > from posts 21-35, and go ahead and reproduce the data, you may still not > be able to prove or dis-prove that the the articles you generated or the > par files they came from are valid because you may not have the parts of > the hash tree you need to figure that out. Yes. Another added complexity issue. > So, my point is this, if you are woking on a huge file 20GB which was > posted as 40,000 500K articles, and you missed a total of 500 parts, but > you found and downloaded 500 par files to fix all those holes (and you > have been working on getting this complete file for months), you can't > know for sure if any of those 500 par files are corrupted or fakes, until > you fill in all the 500 missing parts and then verify the entire hash > tree. Yes. > No one wants to find out a month later that the par file they grabbed was > bogus, but that another one posted 2 weeks ago that they didn't bother to > download because it was a duplicate, was in fact the real one they > needed. > > So I think we need a little more help being able to identify bogus par > files. I see no easy way in doing this. Because anyone having the full file should be able to produce PAR-files, not only the original poster. > But, here's an idea. > > If we include an X-Bin-Signature for each par file which is the same > signature you would put on an article spanning the entire par-set, you > would then have the hash values you need to veryify the entire par-set > once it was re-constructed (i.e. the 100 article set). Yes, but we possibly don't even want the entire PAR-set, I might only need one single PAR-file. Forcing someone to download an entire set of an arbitrary length just to be sure is even more wasteful. > Maybe there is a way to prove that par data is valid and we just haven't > thought about it yet. Possible, but I simply see no easy way at the moment for this problem. > The larger the range of articles you cover with a par file, the more > likely multiple par files will be needed, and the more likely a bogus or > forged par file is going to screew things up. So the answer may be to > use smaller article ranges if you are having problems with corrupted or > forged par files. Not necessarily, the range of par files does not matter. The completion of the original xBin file does. If it is complete I will never need a par-file. If only one article out of it got lost, I will only need one par-file. If more than one article got lost, then it depends on how many virtual segments the gaps are spanning. > Here's another option.... > > If we were to define a standard disk format for saving partially > downloaded xBin files which includes the data and hash data, then we > could create either a complete par tool to work on that data (hack some > of the current PAR utilities?) or just a data extraction tool which reads > the xBin data files and produces the par files which the current par > tools could use. That is a way I have thought about too. However I wouldn't touch the partially downloaded file. That file should have the size of the final file, simply that it doesn't have all the data. But the data that is already downloaded must be at the correct offset (ie a file with "gaps"). Then we need but a meta-file describing this file's completion status and hash-tree. > Ah, but putting 40,000 files in one directly is an issue if you are > dealing with a huge file.... Yes, the file to download should in any case only be one on disk. > Maybe the answer is for the newsreader to combine data segments whenever > it can. This is a possibility. Or as I propose, simply create a file of the final size and fill in data when it gets some (at the correct position) > I think we only need a $P and $N added to the mesage-ID and use the > Signature like I described. And the data encoded in the PAR file is pure > RS data with no meta data. I would have the sequence number included, but you're right, that too can be gained from the header, so it is superfluous too... > How to encode that is an issue though. If uuencode, what's the name to > use on the begin line? and for yEnc, does it look just like one small > file (I guess that's the answer), so then we just need to figure out what > name should be used for the file. The name is not real improtant, but it > wouldn't hurt to figure out something and specify it as the name. basename.Pxx basename would be the same name the downloaded file would get. Or the file-hash. > I guess it would fit with type type of stuff I was talking about above, > It could have a name which was something like 982761DF-2-A2.XBP where the > first hex number is the offset, the 2 is the parity sequency number, and > the A2 is the count of blocks spaned by this PAR file. Using P02 would > probably be wrong since the data would not be a valud standard PAR file > and would not attemnt to include the typical PAR meta-data inside the > file. Ok, that's a good reason not to use Pxx suffix, I must say. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Rene
Date: Sat, 04 Jan 2003 02:57
Date: Sat, 04 Jan 2003 02:57
93 lines
5206 bytes
5206 bytes
Thomas <zak@spam.invalid> wrote: > As messages get lost individually, it makes sense to use the message size > as the PAR block size. Not really, article sizes fluctuate, even within one posting run of a file, if the use of the already posted "flattening" algorithm is encouraged. Besides other people are able to fill in, using different article sizes. But the size of the virtual segment *must* be fixed for a specific xBin file-hash. > This is easy enough to understand if you realize that a too large PAR > file transfers correction data for the next article, that may or may not > be missing. Yes I see that perfectly, that's why I made that little ascii diagram. The lower half is the point of view from the par system, the upper is the xBin view with blocks and articles containing them. But for the PAR-system, only the lower view is relevant. > If articles sizes are different, just pad the short articles with 0's > before generating the PAR data. But the length of the missing article > should then be known somehow. At the end of the day, I don't want to fix articles, I want to fix the blocks... > I think that PAR can only work if postings are done in consistent sizes, > with the last block not beaing exactly the right size. The last segment being smaller is ok. Others not, as far as the RS-restoration algorithm goes. > > Therefor, for the secure operation of xBin with parity, an xBin > > compliant newsreader MUST check the hash tree after each attempt at > > parity repair. That way, problems are detected and a corruption of the > > file is not possible. > > I think that is the only solution. Not feasible to check on servers. No feasible check anywhere actually. All you can do is start a repair and then check to see if that succeeded. > It is much more efficient - just like it would be more efficient to > repost just article 3 of .r13, instead of the whole .r13 (something that > xBin tries to fix, but we forget again with PAR). Well yes, sort of, but PAR's are more universal, since they fix gaps in different positions for different users. But PARs don't replace reposts, they complement reposts: "First create some PARs THEN fix individual holes" > I hope you see that having each PAR part span more than a single article > is inefficient. But the overall idea should work. Any idea on how much > extra metadata would be involved? If it means the PAR file has to be > split anyway, that would be bad news. Inefficient is the wrong word. I definitly see the advantage could a par-file be just as big as an article. However, usenets completion isn't as bad that every second post gets lost, is it? Ok, I might be spoiled, for I use Curt's service but I don't think a run of say 30 consecutive articles get lost too often. Add to that that PAR's are something you selectively fish out if you need one. The beauty again is, that PAR's are universal. You don't need P01 if you only have one gap. You just take any one PAR-data which is fully available at your server(s). > Agree. The PAR parts should be easy to identify by something that looks > at headers. A feeder could examine the posts, check what block ranges it > is missing for a file, als allow so many PAR files to come by plus some > extras. Yep. A server which "knows" it has a complete xBin file could even throw those away, because it doesn't need them itself. > Other point on PAR: is there a limit on how many PARs can be generated > (say max 10% missing on a file)? Hopefully, using PAR and not reposts Yes there is a limit. It is not a percentage of a file though. Just the total number of files (virtual segments) plus PAR-files may not exceed 2^wordsize. The current RS-system in use has a wordsize of 8, therefor limiting the max number of files + parity files to 256. > means Curt's fear of endless automatic reposts (which I share) does not > become true. Reposts should never occur automatically, using xBin. In fact, that's one of the things that must be made clear in the specs. The problem remains if we cut out PAR, its just the same with "normal reposts". Automatic request sending, yes. Automatic request fullfilling, big no-no. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 04:09
Date: Sat, 04 Jan 2003 04:09
42 lines
2892 bytes
2892 bytes
[Rene]: > > If you do a repair attempt, you must go through the whole file, no > matter how small the gap(s) is. That's why I say for small > filesizes/gaps, reposts are better. this is one point in favour of PAR files covering only a range -- you don't have to go through the entire file, so it scales better CPU-wise. also, a lot of files won't need more than one range. 250*400 KB is 100 MB. the downside to it is that the PAR files will always be 400 KB, whereas in your suggestion their size will be a fraction of the total size. > > $H hash > > $S file size > > $o segment offset in hash blocks > > $s segment size in hash blocks > > $P parity sequence number > > $N number of segments spanned by parity data (100 in my example above) > > > > So, the data out of the full xBin file spanned by this parity > > data would start at the $o offset, and would continue for $N > > blocks of size $s. THis means the Message-ID for a PAR file > > will only have a few more characters than a normal xBin > > articles. > > Should the message-id not contain only the hash ? This additional > information is only relevant to xBin-compliant software which can > get that out of the xBin-Signature header. no, this is a fine point: you need to keep the file size in there so that the servers will reject the PAR files as well as the file itself! (well, the alternative is that the server has a special history file for hashes, but I think that complicates implementation for very little gain.) -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Curt Welch
Date: Sat, 04 Jan 2003 04:31
Date: Sat, 04 Jan 2003 04:31
34 lines
2490 bytes
2490 bytes
Rene <invalid@email.addr> wrote: You said a lot I'd like to comment on, but I don't have the time at the moment.. > > I suspect this is going to be unworkable for very large files. > > Depends on the size of the virtual segment (and wordsize of the > RS-algorithm). I think you missed my point. What's "unworkable" is the fact that the repair tool is being forced to scan the entire xBin file to fix anything. > If you do a repair attempt, you must go through the whole file, no matter > how small the gap(s) is. That's why I say for small filesizes/gaps, > reposts are better. If the PAR files specify what section of the xBin file they protect, then no, you do not have to scan the entire file. You only have to scan the section of the file the PAR file covers. If a PAR file spans only the data covered by three articles, then to replace a missing article from the 3, you only need to scan the other 2, not the other 10,000 in a huge post. > Uh this adds a layer of complexity without giving much in return. It gives a huge return. It prevents you from having to scan a 10GB file to fix a single 500KB section which is missing. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 11:22
Date: Sat, 04 Jan 2003 11:22
13 lines
1563 bytes
1563 bytes
[Kjetil Torgrim Homme]: > > the downside to it is that the PAR files will always be 400 KB, > whereas in your suggestion their size will be a fraction of the > total size. duh, this doesn't matter. if one part goes missing, a halfsize PAR file won't help much... -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Sat, 04 Jan 2003 20:45
Date: Sat, 04 Jan 2003 20:45
51 lines
2933 bytes
2933 bytes
curt@kcwc.com (Curt Welch) wrote: > Rene <invalid@email.addr> wrote: > > You said a lot I'd like to comment on, but I don't have the time at the > moment.. Yeah it was the same for me the last 5 days or so. That's why I only responded (and read) the first three or so answers to this thread yet. Take your time, we have the priviledge that we don't need to meet a deadline here :) > > > I suspect this is going to be unworkable for very large files. > > > > Depends on the size of the virtual segment (and wordsize of the > > RS-algorithm). > > I think you missed my point. What's "unworkable" is the fact that the > repair tool is being forced to scan the entire xBin file to fix anything. Ah but nobody can help there. This needs to be done to fix the file. Or did you mean scan the file to find the missing blocks? > > If you do a repair attempt, you must go through the whole file, no > > matter how small the gap(s) is. That's why I say for small > > filesizes/gaps, reposts are better. > > If the PAR files specify what section of the xBin file they protect, then > no, you do not have to scan the entire file. You only have to scan the > section of the file the PAR file covers. Yes of course, not in that case. Simply look at that section as a seperate file. > If a PAR file spans only the data covered by three articles, then to > replace a missing article from the 3, you only need to scan the other 2, > not the other 10,000 in a huge post. > > > Uh this adds a layer of complexity without giving much in return. > > It gives a huge return. It prevents you from having to scan a 10GB file > to fix a single 500KB section which is missing. Yes that's right, but when we only lose 500KB in a 10GB posting, then I think we can easily live with PAR files spanning more than one article :) I see your point though. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Rene
Date: Sat, 04 Jan 2003 22:55
Date: Sat, 04 Jan 2003 22:55
35 lines
2673 bytes
2673 bytes
curt@kcwc.com (Curt Welch) wrote: > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > [Curt Welch]: > > > > > > Right, if a par file covers 100 articles, and we try to include > > > "the correct hash" for each individual aritcle, there are two > > > different ways to do that. I'm not sure which you are talking > > > about. > > > > I suggest to include all the _leaves_, the hash of every xBin block > > covered. no tree information at all. > > Ok, I understand now. That means you are including even more more hashs > than I was talking about. So instead of 5 hashes to cover 31 blocks, you > would need 31 hash values. This would work, with the leave hashes you'd have the data to validate the new hash blocks after the reconstruction. However, a malicous attacker who has the complete file has the hashes already, so he can send a faked PAR-file with the correct leave hashes... it doesn't help. We still can't secure PAR-files, because those hashes cover the blocks of the original file, not the PAR-data... Unless the hashes somehow include the PAR-data, the parity file cannot be trusted to be what it claims to be. This is the fundamental problem here if you want to know if you can trust a PAR-data file. As I said I see no easy way of accomplishing that. I see a complicated way how this can be done, but that is just... well ridicoulously inconvenient and having some consequences so that I'm not even going to tell. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Curt Welch
Date: Sun, 05 Jan 2003 01:39
Date: Sun, 05 Jan 2003 01:39
54 lines
3794 bytes
3794 bytes
Rene <invalid@email.addr> wrote: > curt@kcwc.com (Curt Welch) wrote: > > Rene <invalid@email.addr> wrote: > > > > You said a lot I'd like to comment on, but I don't have the time at the > > moment.. > > Yeah it was the same for me the last 5 days or so. That's why I only > responded (and read) the first three or so answers to this thread yet. > Take your time, we have the priviledge that we don't need to meet a > deadline here :) Yeah, and now I'm making the mistake of replying to newer posts when I haven't read all the older ones yet... :) > > > Uh this adds a layer of complexity without giving much in return. > > > > It gives a huge return. It prevents you from having to scan a 10GB > > file to fix a single 500KB section which is missing. > > Yes that's right, but when we only lose 500KB in a 10GB posting, then I > think we can easily live with PAR files spanning more than one article :) It applies even more when you are missing more articles. What if you are missing 1000 articles from a 40,000 article post. You have to download 1000 par files, and then try to figure out which of the 1000 PAR files is the fake or corrupted article, then the amount of computation required to recreate even one block from one missing file means you are forced to scan 39,000 articles and 1,000 par files (though only the first hash block from each). If you have 1001 PAR files available and you think some combination might work, you will be forced to try 1000 different combinations to find one that works, and each different combination will require to to scan 40,000 hash blocks of data (though there might be an optimization possible there which would allow you to scan the data blocks only once). But, if each PAR file only coverd 100 articles, then the problem is broken into managable chunks. You might have 3 PAR files for the first 100 articles, and when you scan thouse and rebuild the 3 missing articles, you find they are vall valid, so you throw out those 3 PAR files and move on. So the download tool checkes each 100 article section at a time and can in the end fix 1000 missing articles without having to download and work with more than 5 PAR files at once. It's true that more PAR files may need to be posted when they scan smaller sections of the file, but I think the effect is minimal. From the download side, people won't have to download more PAR files to solve their own problems. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Sun, 05 Jan 2003 13:37
Date: Sun, 05 Jan 2003 13:37
18 lines
2046 bytes
2046 bytes
[Rene]: > > This would work, with the leave hashes you'd have the data to > validate the new hash blocks after the reconstruction. However, a > malicous attacker who has the complete file has the hashes > already, so he can send a faked PAR-file with the correct leave > hashes... it doesn't help. it does help, but only by reducing the amount of work needed to expose its bogosity. it suffices to process one block. without the leave hashes, the amount of work needed to verify the PAR file will depend on what's missing in the tree structure. worst case is _all_ blocks must be processed. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Sun, 05 Jan 2003 15:38
Date: Sun, 05 Jan 2003 15:38
86 lines
4877 bytes
4877 bytes
g <gypsy@dont.you.dare.spam> wrote: > On 30 Dec 2002 18:33:12 GMT, in <20021230133312.202$K5@newsreader.com> > [name suppressed] wrote: name suppressed? Damn, I am so vain :-) > >The parity system works. It is in use today on usenet. > > "Works" is a questionable term WRT parchives. How well does something > "work" when it's an automatic "in advance" repost? I did a little > "expidition" into a binary group where I'd been told it worked so well - > and found that 43% of the binary files were either a repost or a > parchive - they're basically the same things. To me, that's not > "working." I agree that posting them in advance is not helping usenet much. But we've already said we don't want xBin to post PAR-data in advance. > There is a way to use parchives so that they do elminiate massive > reposts instead of just add more bloat to usenet but VERY few people > actually use them that way. The vast majority pick a percentage of the Yes. And xBin is designed to fix that problem by not allowing to send Par-data alongside a post. It allowes it afterwards, to fix real missing parts. > total post (like an 800 meg image gets (generally) about 40% parchives = > an additional 320 megs. GENERALLY, all the files for the post are in No usually its about 4 to 6 par-files. At least from my experience. And then those were about 10 to 16MB large. > OTOH it's rare for a multipart file to completely not show up on a > server; it more likely is incomplete, and most frequently it's just > missing one or just a few segments. What "good use of usenet resources" I more often either see a file either complete or not at all. I almost never see them just missing one article, save when the file is expiring on the server. > is it to (basically) repost a 20 meg file if all that is actually needed > is 400k-1meg? Vast majority of windoze people posting binaries use PP2K > - Chris Morse's program. Right click within it and repost individual > segements - as many as you need.. Piece of cake and better for everyone > and the servers. Yes, but I never see only the missing article reposted, I always see the full file reposted. The joke is, we want the same for xBin. It should NEVER send Par-data in advance. An xBin recieving client can automatically send a message detailing what it is missing. The sender can then by one click fullfill this request (but not automatically!) When the sender waits a bit and gathers several of those requests, then he can decide to send a PAR-file instead of multiple different reposts. That's how we think it should work. Most of that hasn't been formalized yet, though. > I would wish parchives be "handled" as a separate issue and not lumped > in as "automatic" and included with a binary post Besides the above But yes, it must be automatic otherwise people will send them in advance. If we take away the manual aspect of it, they can't send par-data unless the client sees it makes sense. > mentioned "overposting" issues, parchives become and even worse waste of > usenet space when the "set" of files being posted are not all exactly > the same size. One recent example of that - 14 ape files (an audio > format). The largest was 127 megs and the smallest was 4 megs. If the > 4 meg file was missing, someone would have to download 127 megs to get > 4. Stupid waste of usenet resources. Yes I agree. PAR data must be as large as the largest file, which makes no sense in that scenario you are describing. But with xBin, we no longer have file-splits. We only have one single file. That's why we're discussing some finer points of a virtual segment size currently. > The par itself is a "good thing" and very helpful. Automatic parchives > are not. They are, sent afterwards not pre-actively. After recieving a specific request. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Curt Welch
Date: Mon, 06 Jan 2003 03:34
Date: Mon, 06 Jan 2003 03:34
50 lines
3816 bytes
3816 bytes
Rene <invalid@email.addr> wrote: > curt@kcwc.com (Curt Welch) wrote: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > > [Curt Welch]: > > > > > > > > Right, if a par file covers 100 articles, and we try to include > > > > "the correct hash" for each individual aritcle, there are two > > > > different ways to do that. I'm not sure which you are talking > > > > about. > > > > > > I suggest to include all the _leaves_, the hash of every xBin block > > > covered. no tree information at all. > > > > Ok, I understand now. That means you are including even more more > > hashs than I was talking about. So instead of 5 hashes to cover 31 > > blocks, you would need 31 hash values. > > This would work, with the leave hashes you'd have the data to validate > the new hash blocks after the reconstruction. However, a malicous > attacker who has the complete file has the hashes already, so he can send > a faked PAR-file with the correct leave hashes... it doesn't help. We > still can't secure PAR-files, because those hashes cover the blocks of > the original file, not the PAR-data... > > Unless the hashes somehow include the PAR-data, the parity file cannot be > trusted to be what it claims to be. This is the fundamental problem here > if you want to know if you can trust a PAR-data file. Yeah. The only straight forward way we saw to figure out if the PAR data was valid was to use it to reconstrut something. What were were talking about above is what do they we need to include to make sure that once you have reconstructed some missing data, that you could tell it was was valid. With no hash data, then you know that once the entire file is rebuilt, you can recalcuate the file hash and see if it's correct. But we were looking at options of allowing the par tool to figure out the reconstructed data was valid or bogus faster. If you included the hash of over leaf block, then one you had reconstructed any hash one hash block, you would know if the par set you were using was valid or not. What we have not figured out is how much time is really saved by adding all those extra hashs so it's hard to figure out if the hashes are "worth it". I need to write a par recover tool to work with xBin to see how this really works. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Rene
Date: Mon, 06 Jan 2003 10:13
Date: Mon, 06 Jan 2003 10:13
42 lines
3182 bytes
3182 bytes
curt@kcwc.com (Curt Welch) wrote: > Rene <invalid@email.addr> wrote: > > Unless the hashes somehow include the PAR-data, the parity file cannot > > be trusted to be what it claims to be. This is the fundamental problem > > here if you want to know if you can trust a PAR-data file. > > Yeah. The only straight forward way we saw to figure out if the PAR data > was valid was to use it to reconstrut something. What were were talking > about above is what do they we need to include to make sure that once you > have reconstructed some missing data, that you could tell it was was > valid. > > With no hash data, then you know that once the entire file is rebuilt, > you can recalcuate the file hash and see if it's correct. But we were Yep. But when you use region-lockes PAR data, all you did is the known divide & conquer method. You divided the one problem into two (or several) smaller ones. Thus the solution also got "divided" : > looking at options of allowing the par tool to figure out the > reconstructed data was valid or bogus faster. If you included the hash > of over leaf block, then one you had reconstructed any hash one hash > block, you would know if the par set you were using was valid or not. > > What we have not figured out is how much time is really saved by adding > all those extra hashs so it's hard to figure out if the hashes are "worth > it". Well why not simply define the regions such as they are power of two's blocks, so they are (in the full hash tree of the full file) covered somewhere by one single hash ? Then you'll only need to include that single hash. Since PAR-recovery is still an all or nothing thingie, you then have to recover that region fully and can then validate that region using that single hash covering that region. Its basically defining the region as a full file and the region hash as that full files'hash. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Rene
Date: Tue, 07 Jan 2003 15:08
Date: Tue, 07 Jan 2003 15:08
205 lines
11492 bytes
11492 bytes
> >I agree that posting them in advance is not helping usenet much. But > >we've already said we don't want xBin to post PAR-data in advance. > > par-data meaning the parchives or both the par and the parchive? The Just the parchive. The .PAR-file is only having meta-data containing the filenames plus their checksums (currently MD5, as I have seen). When I say par-data I mean parity data which can be used to restore file-data. The .PAR file itself is like an .SFV it does not contain any data to restore files/data. > par file should be the first thing posted so that people could detect > possible corruption in the data as they receive the files. Yes, but for xBin this is not necessary, because the xBin tree hash serves the same purpose. Therefor the .PAR file is completely superfluous for xBin. > >No usually its about 4 to 6 par-files. At least from my experience. And > >then those were about 10 to 16MB large. > > I think you need to expand your horizons. <G> It's up to 50% depending > on the group/poster. The vcd groups use 10-20% normally, xbox group is > about 25-33%, the dutch guys go up to 50%. Filesize is also variable > with up to 50 meg files. Obviously I just today saw someone sending 21 PAR-files in advance. Ok, he used very small split size ( < 5MB) and the full set contained more than 140 splits, but it's still 15% > >I more often either see a file either complete or not at all. I almost > >never see them just missing one article, save when the file is expiring > >on the server. > > And I gotta question what you see - or maybe it's just the completion > rate on the server you're using? I just took a look at Completion is usually very good on Curt's server. At the moment he has a problem with it, but it should be fixed. I never had any problem though. > alt.binaries.cd.image.xbox. That's the group that had 43% of the group > as fills/reposts/parchives and the group that I was pointed to in I just looked into that group. Yes that one looks like one big lump of a mess. I only see two files completely available, anything else is missing stuff all around. Might be the completion problem on my server currently or might be not. I'll check that one again in a few days when I can be sure that its not the server. > group. feh. Best stuff to look at is the newest game posted - lrtt > since it was just released 12/31, nothing has expired, and there's been > no repack - yet. Using Easynews, there have been 437 50 meg rars and Well I only have 2.5 days retention there but I still see different reposts (or rather attempts, for they are largely incomplete, too) there. > 75 rar'd files. The original poster chose 20 parchives for this, 27%. > Just by post count it's been posted ~6 times in as many days. <sigh> Well at the end of the day, if people are posting and posting and posting the same stuff over, nobody's gonna help that. Nothing - on the client side - does take away the ability to use one's brain... if those posters want to post things that need no posting, well xBin's not going to stop them either. However, should xBin become widespread and if servers are then later becoming xBin-aware, they could easily reject those unneeded articles and tell the poster "stop that crap, I already got that fully!". Note that the servers *could* act that way, nobody says they must. The message probably would be more friendly, too :) > on Easynews. With my "reposting segments" stuff only 24.7 megs needs to > be reposted - that's less than half of one file. Your "after the fact" > method would require up to 2.25 gigs. (ASSuming no duplicates) It depends, if two or more gaps fall within one virtual segment (which is equal as two or more articles missing for one splitted file), then less parity-data is needed. What's important is this: The PAR-data is not meant to replace reposts (of segments) it's only meant to complement with reposts. > The remaining 12 posts consisted of 11 posts that stopped midstream so > the guy lost his connection - nobody has 'em. BUT of those 11, 10 were > posted using a variant of Chris Morse's PP2K that resumes posting so > each one could have just been picked up where it left off and completed > but not one guy in that group did that. They just reposted in full. Having automatic software which *could* do it better seems simply not enough for this group. Having automatic software which would have prohibited a full repost and had resumed would have been better. This is more or less what we're trying to do : one of xBin's goals is to make all that transparently to the end-user. You will not have to select different posts because they contain the missing parts reposted you need, because xBin does this automatically for you. You don't have to manually merge all 300 rar's to one because xBin automatically handles the splitting and merging issue for you. You don't have to manually look which parts/segments you miss, because xBin knows this at any time and can create an automatic post telling other software what it is missing. Basically, xBin should take away all those hassles and handle it automatically, and in a smart way. PAR-data is more efficient, when different people have missing parts at different places. If everyone misses the very same segment, then a repost of that and only that segment is better. Now since an xBin client knows at any time what it has and what it misses, it can communicate that data. If you as a poster recieve such data from different users, you can better decide what's best to (re-)send. > I think that kinda proves my point IF the server has good comletion > (which I understand is not true for all servers, even all commercial > servers). That I see, the clear majority of times one segment is > missing. And using a posting utility which resumes posting and can > repost missing segments can handle 96% of the "reposts" necessary > without ANY "parchives." Yes, if completion were similar on all servers, I'm quite confident the parchives would have never shown up. But the parchives can still be useful, if used properly. Since xBin abstracts all that from the end user, effectively the posting software becomes responsible for proper use, no longer the user. And looking into your newsgroup I am quite confident that shifting the decision of what to send from the user to the posting-software is exactly what is needed. Of course, that does not help if the software does not work properly. But fixing that is surely a lot easier than fixing 100 misbehaving users. > If someone reposts a missing segment, the only way to tell it was done > (generallY) is to examine the posting dates for the segments. The > repost just "blends" into the rest of the post with the same subject > line. Rarely, someone will repost a segment with a different subject This is not so with xBin. xBin has the ability to gather missing parts (and find them) by only looking at the headers. This is what makes it so powerful with relative little effort. This also makes it feasible to get a file automatically, because it does not need to parse subjects or wait for an enduser to feed it more possible subjects. "it just knows" when an usenet-article contains parts of a file it wants. And it just sees in the very same header if that article contains parts it needs or if it has them already. > line but that should be detectable by the subject and manually joined > when it comes in. No manual joining required. xBin does that for you. For free. really ! > >Yes I agree. PAR data must be as large as the largest file, which makes > >no sense in that scenario you are describing. But with xBin, we no > >longer have file-splits. We only have one single file. That's why we're > >discussing some finer points of a virtual segment size currently. > > Not every multipart binary group works the same way. This "OBF" stuff > would work with cd images and movies and big honkin stuff like that. > Audio formats, for example, are posted (generally) by individual track. > If someone only wants one mp3 from a cd - why should they have to > download the full cd? Why should someone have to post the full cd if Ah no, xBin does not *force* you to send the full album. It cannot force you to do that. If you want to send a full album but every track separatly, you can do so. If you want to send a full album as a image, you can do so as well. xBin does not force you in any way what you will send. All what was meant by my paragraph above is that with xBin you can send one 600MB file without the need to split it first on your side. You can still do so, if you like. But you are no longer forced to do so. Taking up your example again: If you want to send one album as one file, you feed xBin your Album.iso and it sends it. If you want to send one album but send the tracks separatly, you feed xBin track1.mp3, then track2.mp3 and so on. What you simply cannot do then is fix parts in Album.iso by using data from trackN.mp3 or vice versa (should both be posted) because they are different files. > they don't want to? If someone wants to sample an mp3 to see if the > encoding is "up to their quality standards," you can't do it with an > OBF. abs.mp3 is multiplatform and compression doesn't work on the files > themselves - they're already compressed so compressing 'em actually > makes 'em larger and removes the ability to preview. Last I heard, Yes, but that's true for lots of files nowadays. Only worth compressing is text, cheap picture formats like bmp and pure cd-images. avi/mpeg is highly compressed already. The reason you see those data is RAR'ed is not compression but the problem that today you can't send one big file with clever recovery should one or more article get lost. But xBin can do that. That's why you would no longer need to split a file with xBin. > >They are, sent afterwards not pre-actively. After recieving a specific > >request. > They can be but they are not. I don't see automatic binary posting as > being any kind of good, xbin or not. Not fully automatic, a user still needs to approve if he should send out data. But he can't really select what, because the software knows better what should be sent. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Fri, 10 Jan 2003 13:39
Date: Fri, 10 Jan 2003 13:39
35 lines
2730 bytes
2730 bytes
[g]: > > X-No-Archive: yes thank you for your report "from the trenches" so to speak. I don't run or have access to a fullfeed server myself. you mentioned "comments about rejecting posts not using xbin", and I wonder if that's me? if so, I think I should clarify: xBin should have enough good features to entice users on its own, without changes to server configuration. however, if a server administrator takes advantage of the information in xBin, it is critical that he makes sure that xBin articles allowed through get preferential treatment, since anything else will kill xBin. e.g., he filters large xBin files, but allows 2000 untagged multiparts to come through. some users will go for their own short term benefit and turn off xBin to allow their files to go through. that would be bad for everyone. the problem is that it's very hard to identify huge multiparts without xBin. probably the best the server can do is to recognize binary articles, and do some limiting based on NNTP-Posting-Host. it certainly is a very tricky question, and it's important that server administrators don't provide a negative incentive for using xBin. it's probably best to wait until xBin has caught on to such an extent that the majority of material is tagged using xBin before turning on any xBin-based filtering. we have some way to go before we reach that point :-) -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Fri, 10 Jan 2003 14:55
Date: Fri, 10 Jan 2003 14:55
313 lines
17603 bytes
17603 bytes
g <gypsy@dont.you.dare.spam> wrote: > On 07 Jan 2003 15:08:42 GMT, in <20030107100842.258$FS@newsreader.com> > [name suppressed] wrote: > <snip> > > >Obviously I just today saw someone sending 21 PAR-files in advance. Ok, > >he used very small split size ( < 5MB) and the full set contained more > >than 140 splits, but it's still 15% > > That the michael jackson spew in alt.chello.binaries? I didn't know > Michael Jackson was dutch. Or Bruce Lee. Dunno which group you're No I don't look into alt.chello.binaries. I did once, but that was enough to drop it quickly - very quickly - again. That's a huge dump. > They have their own "unique" approach to usenet. As does the xbox > group. Yeah there seem to be particularly large files. Some post files numbering up to 300-500 articles per file. > >I just looked into that group. Yes that one looks like one big lump of a > >mess. I only see two files completely available, anything else is > >missing stuff all around. Might be the completion problem on my server > >currently or might be not. > > > >I'll check that one again in a few days when I can be sure that its not > >the server. > > It was your server. xbox is a dump where 6+ gigs/day from one guy is > not uncommon. These are the kinda guys who need the xbin stuff with > their massive reposts and parchives and parchives of parchives. Yes its much better now, it was heavily affected by the completness problem my server had. However I still see quite many gaps, usually only one article in one single file of the entire set. What's more, I often see a file where only one article out of 100 or so is there. But the same file has been posted twice, just in the next row I see the very same file but complete. There seems to be no time difference. Might be a bug in BNR2, I don't know, it just seems to happen a lot in abcix. > >Well I only have 2.5 days retention there but I still see different > >reposts (or rather attempts, for they are largely incomplete, too) > >there. > > Have you checked it since? FWIW, biggulp's completion rate is about > equivalent to easynews's. The trick is getting connected. Yes I checked it again after the completion problems were solved. It looks far better now, but still stranger than my usual places. > >Well at the end of the day, if people are posting and posting and > >posting the same stuff over, nobody's gonna help that. Nothing - on the > >client side - does take away the ability to use one's brain... if those > >posters want to post things that need no posting, well xBin's not going > >to stop them either. > > So - and I am serious - what am I missing about the "good" of it? I'm > already regretting asking chris to post here about the new PP2K - he > hasn't been seen or heard from since. <G> Well I really doubt he's implementing xBin, because there is no xBin yet. We haven't even done the proof-of-concept although we're fairly certain it will work. What are you missing good about it? If several (full or not) reposts of one single file are made, your software will fetch automatically, without your intervention, all the parts it will need to complete a file. Today, there's subject guessing which is unreliable, especially if someone else (re-/)posts the same files with different article size, and which fails completely if someone else posts the very same file under another file name. Also there is ensurance of integrity for xBin articles. Once you have an xBin article, you can calculate the hash of that data block and then you know if that data is correct or if it is junk-data, that someone put into place to jam the posting. No more file-corruption. > >What's important is this: The PAR-data is not meant to replace reposts > >(of segments) it's only meant to complement with reposts. > > It basically duplicates reposts or reposts duplicate the parchvies. Six > of one... It basically makes no difference because the original post > is reposted, the parchives are reposted and the reposts of both are > reposted. Right, today. And why is that so? Only because of the different retention on different servers? Not only. There are also users who don't know or even want to know about parchives. There are users who don't monitor the group carefully enough to see that all they need is already there. But with xBin, the recieving end knows exactly what it has and what it needs and it does fetch those articles it needs automatically. So an xBin client always gets as much as it can before it even starts screaming "repost". And it "sees" this from the overview headers, it doesn't need to download one single article. It knows beforehand what is there and what isn't. So when the clients got more articles, that logically means they are missing less and therefor, the need for reposts decreases which in turn should result in less reposts. And why does that work for xBin? Because IF there is data that is in some way belonging to a file, no matter if it is a block of data, a repost of such a block or a parchive capable to repair something of that file, then it WILL be seen. No matter how it is labelled (subject), how large it is (article size) or who posted it (sender). The xBin header line, of which a part is replicated into the message-id, enables xBin to give all that information that is needed. Plus, once you start getting articles which have data for a file you want, after each article downloaded, xBin can verify if that data is really ok or not. This effectivly eliminates the threat of file corruption. > >Having automatic software which *could* do it better seems simply not > >enough for this group. Having automatic software which would have > >prohibited a full repost and had resumed would have been better. This is > >more or less what we're trying to do : one of xBin's goals is to make > >all that transparently to the end-user. You will not have to select > >different posts because they contain the missing parts reposted you > >need, because xBin does this automatically for you. You don't have to > >manually merge all 300 rar's to one because xBin automatically handles > >the splitting and merging issue for you. You don't have to manually look > >which parts/segments you miss, because xBin knows this at any time and > >can create an automatic post telling other software what it is missing. > > So if john doe comes into a group when a big honking post is expiring, > he'd get an automatic repost of virtually everything? And the next guy > who has different retention? No he won't get an automatic repost. He can request one such (as can be done today...) but there must be someone who actually does it (says "yes I will give them that" and clicks his yes do a full repost button). If there are a lot of people which always do full reposts as soon as someone requests that - then yes, there won't be any difference. Besides, that's a social issue and can't be really mended by using technology. Or to put it another way: If you make it foolproof, nature will create better fools. If there is someone who posts the same file every other day, which is possible today, it will be possible tomorrow using xBin. Servers using xBin *could* still react to that and only save it once on their disks, because using xBin they can recognize duplicates. But no one says they must. They could. xBin works wheter servers recognize xBin or not. If they do, they could do things with xBin which saves them bandwith and/or disk space at the cost of some CPU time (calculations). But they are not forced to, which is why xBin is "backwards compatible" with the existing infrastructure. > > > >Basically, xBin should take away all those hassles and handle it > >automatically, and in a smart way. > > I'm not so sure about that... If all you have to do is to say "get me that file" (one single click) and the software automatically gets the file, no matter over which many articles / reposts or par's and at the end simply presents you that file and says "done" without you having to monitor a group, select new subjects containing potential reposts from another source etc. and you can be sure the file can't get corrupted by someone else... say, hasn't it just gotten a load less troublesome? > >Now since an xBin client knows at any time what it has and what it > >misses, it can communicate that data. If you as a poster recieve such > >data from different users, you can better decide what's best to > >(re-)send. > > And you get daily information that differs so you just keep reposting > the same crap but it's "good" cause it's "xbin"? feh reposting is not automatically. It still needs a human on the other end which reposts. Nobody says it must be done. If someone requests reposts and nobody does it, why should that change with xBin? If everybody fullfills every request, well you get the mess you're having today. But xBin at least minimizes the need for request because IF data is there in whatever form, it gets it first. > >Yes, if completion were similar on all servers, I'm quite confident the > >parchives would have never shown up. > > HOW can you say this when the parchives are the first thing to be > posted? OR - at "best" - they're "automatically" posted along with the > first post. What I said is: If completion where the exact same (or very similar) on every server, then there would be no parchives, because everyone is missing the same segments and therefor only repost those segments. Now reality is different from utopia and that's why there is parchive. But par-technology is not evil. It just needs to be apropriatly handled. > >> If someone reposts a missing segment, the only way to tell it was done > >> (generallY) is to examine the posting dates for the segments. The > >> repost just "blends" into the rest of the post with the same subject > >> line. Rarely, someone will repost a segment with a different subject > > > >This is not so with xBin. xBin has the ability to gather missing parts > >(and find them) by only looking at the headers. This is what makes it so > >powerful with relative little effort. > > Ummmmmmmmm...current software does the same thing. That is what I mean > by it "blends" the reposted segment into the original post. Yes but it is done by guessing the subject header. There is no standard, everybody can post under what subject they like. Current software searches for [x/y] and (x/y) and links those articles together. But its all guesswork. Some programs send 001/352 others send 1/352. Its easy for humans to spot what belongs to what but its not so easy for software which has no intuition. And then you have RE:, Re:'s. Then you have ATTN: here's, ATTENTION:, ATT:. And then you have REQ: xyz HERE'S:, REQ: xyz HERE IS:, and their reverse brothers etc etc etc. There is NO STANDARD. It is all guesswork. Try writing a software which tries to find all articles containing file x. If you do it cleverly you might get hit rates in the upper level of 90%+. But you will never catch it all. Because there is no standard. Now xBin would provide that standard. It is, in effect, no more than a labelling standard for binary posts. > >> line but that should be detectable by the subject and manually joined > >> when it comes in. > > > >No manual joining required. xBin does that for you. For free. really ! > > I think at that point they'd have to pay me to access usenet. Now that I don't understand. English is not my native language so I might be missing something between the lines. Why should you get paid for usenet access when it gets far easier to download files by removing the manual hassle of splitting and remerging files ? > >Ah no, xBin does not *force* you to send the full album. It cannot force > >you to do that. If you want to send a full album but every track > >separatly, you can do so. If you want to send a full album as a image, > >you can do so as well. xBin does not force you in any way what you will > >send. > > Unfortunately, you are not giving people options. (note the comments > about rejecting posts not using xbin). That's a - future - possibility that server operators could do if they want, but this then would be a per server option. I don't think this will come to pass though. And first of all, to be able to do that, xBin must become widespread. Until that happens, no one will change his server to do something special to xBin articles (or non-xBin articles). > >Taking up your example again: If you want to send one album as one file, > >you feed xBin your Album.iso and it sends it. If you want to send one > >album but send the tracks separatly, you feed xBin track1.mp3, then > >track2.mp3 and so on. > > And what if you decide you want to post an OBF? You're screwing the > users who don't want it, who want tracks. So who reposts it as tracks? > How is this good for usenet? No no no ! xBin creates a unique identifier on a per file base. It works with that identifier. Any article containing data for that file, contains also that identifier in the header (which xBin software uses to find articles with data for a file, they are interested in). Now WHAT that file is, xBin doesn't care. If you send it one big album.iso, then its that file. If you send track1.mp3, then that's another file. But you are absolutely NOT forced to send an album in any special form. xBin doesn't care and it doesn't mandate you to anything. Just WHEN you send "a file", whatever that may be, in xBin, that file gets a unique identification. When somebody other sends that very same file (or parts of it, or reposts, or parchives for that file), he'll send it under the same identification allowing recieving software to recognize that the data in that article belongs to that file. But xBin does not force you to send special files or in a special form. > >Yes, but that's true for lots of files nowadays. Only worth compressing > >is text, cheap picture formats like bmp and pure cd-images. avi/mpeg is > >highly compressed already. The reason you see those data is RAR'ed is > >not compression but the problem that today you can't send one big file > >with clever recovery should one or more article get lost. > > Yes, you can. PP2K and Peck's Power Post before it among others handled > reposting segments with no problems. No what I meant is: Nobody sends a 600MB file without splitting it. Not even in the xbox group. Largest file I see there is 48.9 MB at the moment. Why? Why doesn't everyone send his file in one part ? PP2K and Peck's Power Post - I have no knowledge of these tools but I doubt not that they could - could do it. But why then does nobody use their abilities? Why still this splitting that does not give you any real advantage? Since we are going to create a new standard with xBin anyway, this problem presents itself to be once and for all solved. xBin does that all for you, because you should not need to do it manually. Its a cludge and it always was. There's lot of splitting in networking: at the ethernet layer, at the network layer, at the transport layer. But its always done transparently. You don't go and manually reassemble the TCP packets - the TCP/IP stack does that for you. You don't go and collect a HTML-file and all images and then put it together to view a website - your webbrowser does that for you. So why the h... should you manually rearrange 300 rar files when you actually wanted the content of the one single rar-file that was splitted? As I wrote earlier in the - huge - thread that this has become : Splitting is something that the software should do transparently. The user should NOT be responsible that a large file is splitted so it fits into the underlying transport mechanism. The software should do that transparently, the splitting and the merging. This way, the user puts in one file and gets out one file. He does not have to care that his file needs to be splitted into 100'000 parts where each of those parts needed seperate transfer. It just "gets done". (And the 100'000 parts is no exaggeration from me. If you send a 150MB large file, you have at least 100'000 seperate TCP packets ! Think about that.) -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Sat, 11 Jan 2003 09:59
Date: Sat, 11 Jan 2003 09:59
38 lines
3004 bytes
3004 bytes
[g]: > > [Kjetil Torgrim Homme]: > > xBin should have enough good features to entice users on its > > own, without changes to server configuration. however, if a > > server administrator takes advantage of the information in xBin, > > it is critical that he makes sure that xBin articles allowed > > through get preferential treatment, since anything else will > > kill xBin. e.g., he filters large xBin files, but allows 2000 > > untagged multiparts to come through. some users will go for > > their own short term benefit and turn off xBin to allow their > > files to go through. that would be bad for everyone. > > > > the problem is that it's very hard to identify huge multiparts without > > xBin. probably the best the server can do is to recognize binary > > articles, and do some limiting based on NNTP-Posting-Host. > > But you're lumping ALL multiparts into "huge multiparts" and > giving the flooders "preferential treatment." why do you think so? flooders using xBin should get preferential treatment over flooders not using it; small multiparts using xBin should get preferential treatment over small multiparts not using it, that's all I'm saying. if the server admin can't implement that, he shouldn't give either of them preference. > There are jpgs that are multiparts - or does everyone have to make > an image to post a jpg? no. you should use xBin for singlepart binaries as well. it's very low overhead, just another 60 characters or so in the header. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Sat, 11 Jan 2003 10:16
Date: Sat, 11 Jan 2003 10:16
24 lines
2332 bytes
2332 bytes
[g]: > > >No no no ! xBin creates a unique identifier on a per file base. [...] > > What kind of performance hit does that do to the servers for the > average mp3 cd which is 14.1 tracks? That's ~14 "unique > identifiers" for ~100 megs or less and thousands of posters. Or > what about that 500 piece set of jpgs? zero performance hit. the work is all done by the posting client. it is possible for a server to verify posts, but I think it will take a while before we see anyone implement that. it could run as a batch job during lulls, to reclaim the disk space used by bogus parts. bogus parts are probably so uncommon that it wouldn't be worth spending CPU for just that. however, once the complete file has been verified, the server could do fancy stuff like rejecting reposts (it's all there already, right?). rest assured a news admin wouldn't run stuff like this unless it is good for system. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Sat, 11 Jan 2003 16:23
Date: Sat, 11 Jan 2003 16:23
508 lines
27379 bytes
27379 bytes
g <gypsy@dont.you.dare.spam> wrote: > On 10 Jan 2003 14:55:19 GMT, in <20030110095519.693$Wf@newsreader.com> > [name suppressed] wrote: > >No I don't look into alt.chello.binaries. I did once, but that was > >enough to drop it quickly - very quickly - again. That's a huge dump. > > That is usenet. That is the clueless that nobody bothers to teach that > you wanna help by still not teaching them but making it easier for them > to post their 7 cd's of printmaster. Not really. The advantage of xBin lies primarily with those who download not with those who upload. But if teaching users were easy, it would have been done. It is not however. Some of them probably even think the only real way of doing it is theirs. And maybe they are even right. Who am I to go there and tell 'em look, this is all wrong, do it such and such? Do you think but one single poster would not only read that message but also think about it and make his mind up? No, its far easier to remain at the status quo. "Because it works today. What could be wrong?" he'll probably think. I don't have the power to fix it that way. You probably neither. But I (or rather we) have the power to propose a standard, wheter it will become used or not. If there is a fix in this standard, it fixes the problem from a different angle. > >Yeah there seem to be particularly large files. Some post files > >numbering up to 300-500 articles per file. > > Forget counting articles. Over 4 gigs per image. That's just the main difference I see in comparison to "my" newsgroups. > >Yes its much better now, it was heavily affected by the completness > >problem my server had. However I still see quite many gaps, usually only > >one article in one single file of the entire set. What's more, I often > >see a file where only one article out of 100 or so is there. But the > >same file has been posted twice, just in the next row I see the very > >same file but complete. There seems to be no time difference. Might be a > >bug in BNR2, I don't know, it just seems to happen a lot in abcix. > > I never could get the linux version of bnr2 to even open. Pan choked on > the xbox group - chugged for over 24 hours and kinda froze at 98% trying > to sort all the headers from easynews but I don't use pan often and am As I understand, the Linux version of BNR2 is quite different from the latest Win32-one. You could try using it with vmWare or Wine, if you really want. > Which posts specifically? You got me curious. I can't give you MID's out of BNR so I'm giving you subjects/posternames. Author: "guppyhustler@yenc-post.org (guppyhustler)" Subject: "Wreckless The Yakuza Mission for KoolAss -yEnc "cs-wrus.r04" (79/79)" This one is once complete and another time only part 47 is available, making it look like there's the file "cs-wrus.r04" once complete and once only one part available on my server (newsreader.com) Same goes for the "P01"file, same poster, same file/image. Another poster, same quirk: Author: "lickme@wetone.net (PuckX)" Subject: "[#3218[PaltryP]Whacked - PuckX - NTSC DVD + PARS yEnc [16/58] - "pkx-whacked.r05" (71/80)" This file, pkx-whacked.r05 I see it once completed and once only part 71. Again, maybe its a bug in BNR2, maybe its my newsserver, I don't know. But it seems to happen a lot in the xbox group, it simply caught my eye while I was only skimming through that group. > >Well I really doubt he's implementing xBin, because there is no xBin > >yet. We haven't even done the proof-of-concept although we're fairly > >certain it will work. > > I didn't mean implementing xbin exactly - just sort of getting pp2k > ready for it or getting ideas from that discussion. He had planned to > have a beta for us to test the beginning of this month IIRC, but I > haven't heard anything from him. Well I DO hope he just doesn't do "anything" we are discussion for xBin yet. There's a lot of open questions still. There's no final agreement reached, lots may change and lots will change yet. Some of the ideas could be done independently, like chaining the articles together using the MID's, but that hasn't anything to do with xBin actually. > See my blather in the other post. This part of xbin sounds good. But > the whole of it doesn't quite smell right. What do we need to do then to make it smell right? What is missing? What is too much? We're discussing technical issues with xBin here, hearing "outside" doubts or things we haven't even considered is good and may change the way xBin is being designed. But please be a bit more specific. What exactly is your fear with xBin? Where will it fail? Educating the users however won't work, that's like saying everybody will adhere to the usenet netiquette. > >Also there is ensurance of integrity for xBin articles. Once you have an > >xBin article, you can calculate the hash of that data block and then you > >know if that data is correct or if it is junk-data, that someone put > >into place to jam the posting. No more file-corruption. > > File corruption is (generally) a hardware problem like a linksys router > or a bad router at some server somewhere. Or a buggy yenc posting > program or interference with a satellite download. It is really *not* > common. Or it should not be. No its not (apparently). I didn't ever had that problem myself but it does exist. Some people are killing/corrupting other peoples binary postings. Well that results - of course in nothing but more reposts (and flamewars). Also in my quest to find something better than BNR2 which I use currently, I've found newsbin pro. Guess what their latest beta is about: "This version includes more logic changes to counteract the latest attacks on the newsgroups to foil NewsBin's automatic multipart reassembly functionality. Please let us know if this new logic is effective." (from http://www.newsbin.com/downloads.htm) So this is a problem for some people. Its none (yet?) for me and apparently none for you either. But for some it seems to be. Fixing it is just a side-effect of xBin's hash-tree. > >Right, today. And why is that so? Only because of the different > >retention on different servers? Not only. There are also users who don't > >know or even want to know about parchives. There are users who don't > >monitor the group carefully enough to see that all they need is already > >there. > > Then they shouldn't f*cking be on usenet in a massive binary group. > This sounds like a M$ solution to me. In my opinion, its the responsibility of the software to find all parts of data belonging to a file the user said he wants. Don't know if that qualifies as a M$ solution or not. I could go even further and declare the today's status as half-heartedly and far more complicated than it should have ever become. For users, posters AND servers. Yes, it has always worked. No it was never good. But that's just my opinion, and yes, I want to "sell" you xBin. > >But with xBin, > >the recieving end knows exactly what it has and what it needs and it > >does fetch those articles it needs automatically. So an xBin client > >always gets as much as it can before it even starts screaming "repost". > >And it "sees" this from the overview headers, it doesn't need to > >download one single article. It knows beforehand what is there and what > >isn't. So when the clients got more articles, that logically means they > >are missing less > > That does not flow logically to me. How does getting new headers mean > they are missing less? Those headers that were not there before are not > gonna be there now. No, but that's no change from today. But from those headers the software has, it WILL find ALL articles, containing data for that file the user wants. No matter how (miss-)labelled they are, no matter if the poster has changed (another took over or what ever), no matter if the filename as given in the subject has changed, no matter the article size is completely different from the last time. It will find it if it is there. It will download it, if it is there and contains data that is missing on its end. Therefor, IF data is there, it will get it - autonomously. If I have more data for my file, I logically miss less and therfor, the need for reposts decreases. You may, of course, argue that this is my fault, that I should have monitored more carefully. And rightly so. But is that really my job? The software can do this far more easily. Specifically, it already has the headers and using xBin it knows exactly which articles are containing data in which I might be interested. To make my point more clear, here's a real-life scenario: alt.binaries.cd.image.games. Some days ago someone posted the game "Robin Hood". He started one day, sending 5MB chunks, then stopped. Picked up the next day and continued, then stopped. Nothing more. Somebody cries "Please send the rest of the Game". Nothing happens. Today he's back, staring from anew, having "Sorry, HD crashed!" in the subject. But he has started sending the VERY SAME DATA using file-splits which are now 10MB large. I've tried getting it with BNR2, it didn't detect that this is the same file (I had a "watch" on it). It couldn't, because he apparently made new RAR's, larger ones. But basically he is sending the same data again. I can't merge the two sets - its not possible and it is not even detectable by software that this is the same thing, only presented differently. xBin would have detected it. Today, that's impossible. Oh I, as a human see it very well, but I can't merge the two. The whole first download of the 5MB chunks is therefor utterly wasted. With xBin, that would not be so. I don't know how much that happens, and I don't even care to know. But I do know that xBin would have helped in that case. It could use the data of both posting-attempts (which wouldn't be different as in this case here - he obviously re-rared it which is no longer needed for xBin) picking out what it needs and only what it needs, thus not wasting bandwith. > I don't see that. I see people with 12 hours retention doing the first > scream. And then first reposts. And then the guys with the 24 hour > retention comes in and needs different stuff and their screams. And > then the guy with 12 hour retention who just got there and saw the > reposts and he wants it too. If screams are always heard and served, yes, there's no much difference. Apart that an xBin client can take up "leftovers" more easily. > >And why does that work for xBin? Because IF there is data > >that is in some way belonging to a file, no matter if it is a block of > >data, a repost of such a block or a parchive capable to repair something > >of that file, then it WILL be seen. No matter how it is labelled > >(subject), how large it is (article size) or who posted it (sender). > > Please ignore my one comment about a segment repost using a different > subject line. That is NOT done in those garbage dump groups and only > rarely done in any other groups. And you're making an ASSumption that > everyone ONLY sorts by subject line and is unable to filter anything. No I'm making my assumption on what I see on my end. This does not cover the full span of all the problems of binary usenet but some - those that I see. xBin by no means is the holy grail of usenet. We think it will fix some issues, and will make life easier for users, posters and servers. But it will never fix "all" problems nor does it strive to achieve that goal. It is an attempt to go into the direction of solving some of these problems now, without giving up backwards-compatibility (ie without requiring a NNTP2-standard) > >Plus, once you start getting articles which have data for a file you > >want, after each article downloaded, xBin can verify if that data is > >really ok or not. This effectivly eliminates the threat of file > >corruption. > > I don't see any great threat of corruption. Before yenc, IIRC the last > corruption issue was a small one from giganews. Before that was the > cidera crap. Before that goes back to 2/97 and a bad router at alt.net. > That's all I can remember since ~'94. Neither do I but it is a problem, just read alt.binaries.news-server-comparison > >Besides, that's a social issue and can't be really mended by using > >technology. Or to put it another way: If you make it foolproof, nature > >will create better fools. > > Not a social issue. It's called ignorance and is propagated by the ISPs > and NSPs because they cannot "condone" binary posts to usenet because of > the content. And how is that not a social problem? > What you're essentially saying is that usenet is too "troublesome" for > the clueless. Rather than educate 'em, you'd rather reward their > cluelessness and make it easier for them so they don't have to think > before they post that 5 gig xbox image. Yes, that's very helpful and > much less "troublesome." <wg> Well no. I have no problem finding files and parts and reposts of them. It however makes no sense to me, why I should need to do that. If that can be removed, then it can be done automatically. If it can be done automatically, then you can't "miss" things. If you can't miss things, you'll get them if they are there. If you get them when they are there, you will miss less. If you miss less then you need less reposts. If there are less reposts, wasted bandwith decreases. Or let me put it another way: Yes I find it quite more troublesome than, say download someting using a P2P program. I do however invest time to find what I want. But how many others do this? What happens if they don't invest that time, and only see what they can get most easiest? Then they scream and scream and repost and repost. So you see, solve that problem and - in theory - the repost-screams should decrease. > >But xBin at least > >minimizes the need for request because IF data is there in whatever > >form, it gets it first. > > DAMN, I always knew those 2 line requests were the problem on usenet... No that's *one* of the problems. xBin does not fix one problem, it (tries to) fix several. Again, this is only a side-effect of the way xBin articles are labelled. xBin was concieved by Curt as a way to label binary posts. But as a side-effect, by only labelling them using a *standardized*-way, much much more is possible. Many more problems are fixed. Oh there are better ways to fix usenet binary problems. But I don't see many doable ways. Best way would be to kick it all away and create a NNTP-2 standard which deals from bottom up with binaries. Guess how possible that is... > >What I said is: If completion where the exact same (or very similar) on > >every server, then there would be no parchives, because everyone is > >missing the same segments and therefor only repost those segments. > > No, everyone is not necessarily missing the same segments. The other Yes, everyone is missing the same segments IF completion is exact the same. That's what I said. I don't see completion as a %-value, that's but a easy quantification of completion. > >Now reality is different from utopia and that's why there is parchive. > >But par-technology is not evil. It just needs to be apropriatly handled. > > Parchives suck as they are used on usenet. Period. End. There ain't > any more. I said the technology of the parity system is not evil and it *can* be helpfull if used well. You said parchives as used today sucks. I am not contradicting you and you are not contradicting me. > >Yes but it is done by guessing the subject header. > > No, it's in the history - no guessing, not even any frickin' typing. > Right click and poof. If someone can't handle that, NOTHING will help > them. Sorry, read my example above again. It doesn't work that way. It also doesn't work if someone renames their file. As I said, its all subject guessing. There IS NO STANDARD. There is no "filename" field. There is only and only the subject. The filename is somewhere in the subject. There is a quasi-convention which *most* people adhere to, but there is no standard. It works *most* of the time but not always. It breaks if I rename the file. It is absolutely not trivial to find a sequence of a file. There are actually even two levels of splits: First the file splitted into many parts and second layer those parts spanning several articles. Which is which? Again: Try writing software that fetches multipart-binaries. I *am* in the process of doing just that. Its not impossible, but you do have to implement heuristicas', simple rules which allow you to do the job but which ultimately are based on *assumptions* which can be and are not always true. As I said, most of the time it works if you do it in a clever way. 100%? forget it. That's not reachable today. Enter xBin, one single addition in the header, the unique filehash and bam! goal reached. No more subject parsing. Why? Because xBin is a standard (or will be..) but there is no subject standard. Were there a subject standard, then its not needed but - I know I repeat myself - there is no standard. > >There is no standard, > >everybody can post under what subject they like. Current software > >searches for [x/y] and (x/y) and links those articles together. But its > >all guesswork. Some programs send 001/352 others send 1/352. Its easy > >for humans to spot what belongs to what but its not so easy for software > >which has no intuition. And then you have RE:, Re:'s. Then you have > >ATTN: here's, ATTENTION:, ATT:. And then you have REQ: xyz HERE'S:, REQ: > >xyz HERE IS:, and their reverse brothers etc etc etc. > > And the only thing that actually matters is the filename and (that I > know) there is not one piece of software that you cannot use a search or > a filter. If you're too stupid to do that, deal with your stupidity > first. There is no filename field. There is only the subject. What is the standard of getting the filename *reliably* out of the subject? Give me some piece of pseudo-code that parses the filename *reliably* out of the subject header please. You will be helping not only me but lots of people. I'm not too stupid to do this all by hand. My software too is clever enough to manage to get all the splits often, but not always. It can't because it doesn't even has a chance to make it always right. This clearly is a deficency to me, a problem worth solving. Your mileage may vary. > >There is NO STANDARD. It is all guesswork. Try writing a software which > >tries to find all articles containing file x. If you do it cleverly you > >might get hit rates in the upper level of 90%+. But you will never catch > >it all. Because there is no standard. > > HUH? Just what I said, create some software which will always report to you, as the user, that it spotted an article containing parts of file X. Even when that file X has been posted by a chinese user and bears "gibberish" as filename. Yes the normal cases, those were people all use PP2K for example will work fine. But the other cases... that's an entirely different story. And its not even the fault of those other users - most of the time at least. > >Now xBin would provide that standard. It is, in effect, no more than a > >labelling standard for binary posts. > > among other things... I call that other things "side effects". Wanted side-effects, mind you. But really, its nothing more but a special way of labelling binaries. > >> I think at that point they'd have to pay me to access usenet. > > > >Now that I don't understand. English is not my native language so I > >might be missing something between the lines. Why should you get paid > >for usenet access when it gets far easier to download files by removing > >the manual hassle of splitting and remerging files ? > > I got to usenet about 12 years ago. Got into binaries about 9 years > ago. Old school in a way, but what is usenet and what is FTP and what > are the differences? I kinda think of russ's rant when I see dumps like > chello and xbox. My experience of usenet binaries is very short. Been using usenet-technology text-only since 95 (but only the technology, not usenet itself), binary side since November 02. What strikes me the most is that this splitting business is so accepted and deep-rooted as if that were the most normal thing ever. But its so artifical and downright "last-century" for me. > Personally, I don't have a hastle with splitting and remerging files > cause I rarely need to. I did do it once about 2 years ago. I haven't > needed a repost of anything in I dunno how many years now - prolly '98 - > and I only got cable less than 5 months ago. I didn't need a repost either, but the splitting I have - and hate. But I'm not a hardcore binary downloader either. Last time I used about 12GB of my 50GB limit and this period which ends in a week I'm at 9GB. Then I read alt.binaries.news-server-comparison and read from people who do 300GB / month. My needs are certainly different, but I think other people will profit as well from this type of fix. It makes it simply more hassle-free. You are free to call me too stupid to operate the software, but I still think it is overly complicated because the volume outgrew the technology. From my point of view, a binary downloader doesn't want articles, doesn't want rar's, splits, reposts, pars. He wants a file, the one within the rar, that got splitted into multiple-parts which themselves got splitted and distributed over multiple articles. Software is perfectly suited to make the splitting and merging and hide that fact from the user. It hasn't been done because binary usenet evolved differently, at a time where a binary attachment still fit perfectly into one single article. (<- at least that's what I guess, I wasn't around then) But it grew and grew and today, this mechanism has become cumbersome. I'm here and willing to spend some of my free time to fix it, but if that fix is not needed, I easily find enough other projects to keep myself busy. At the moment I still think that "fix" would be good. Even if it "only" consists of hiding the complexities of splitting files over articles. The real fix is unattainable, imho. > I dunno how "good" redesigning usenet to appease ignorant greedy > children is. I take it you'd like to remove the binary capability of usenet alltogether? Yes that's a fix too. Too hard to do again, however. > What kind of performance hit does that do to the servers for the average > mp3 cd which is 14.1 tracks? That's ~14 "unique identifiers" for ~100 > megs or less and thousands of posters. Or what about that 500 piece set > of jpgs? 0 - an xBin article is no different from any other articles. Only when servers start to do something with xBin, then this will "cost" them. It will cost them depending what they want to do. If they only see if the header is there, then it doesn't really cost them anything. If they are recalculating the hash-data to check integrity, then it costs them some CPU cycles. If they are saving which xBin file they've seen and what of that, then it costs them some few Bytes to KBytes (depending on what they safe) in a database per xBin file hash. > >No what I meant is: Nobody sends a 600MB file without splitting it. Not > >even in the xbox group. Largest file I see there is 48.9 MB at the > >moment. Why? Why doesn't everyone send his file in one part ? > > Ya got me. They have the ability with the posting utilities that are > out. I think the "chunking" stuff was user designed waybackwhen > binaries were larger than could fit on one floppy disk and never changed > except for larger and larger chunks. 50 megs is the largest I've seen > but there may be groups with larger. I think it came up when a binary was still fitting nicely into an article. Files simply were small back then. Then came multiparts, the need to split one file over several articles. There the problem began and was done by a quick and dirty hack: put a number into the subject, and re-merge it on the other end. Then came even larger files and they get split before they get distributed over articles... > >PP2K and Peck's Power Post - I have no knowledge of these tools but I > >doubt not that they could - could do it. But why then does nobody use > >their abilities? > > Please don't say nobody. That is done (to an extent) in absm* when a > full cd is a long dance mix or one track so "a file" may be 75+ megs. Ok, why then does almost nobody use that ability of those tools? > AFA why the splitting, etc., has never changed - look around at where > you are. These are news admins who until fairly recently didn't even > acknowledge that binaries were being posted to usenet - kinda the I'm pretty sure every news-admin carring binaries knows that he is carrying binaries, because they take up more than 90% of their bandwith. What they don't do is look at the binary data because that way, they don't know what exactly is where and therefor are not forced to filter stuff out, should that proove to be some copyright violation or some such. > around. Even back when chris was working on the first version of PP2K I > would not have even thought to ask him to come in here to get input. > Binary guys were "abusers" and you still see that among some admins so > why come here for help when you'd just get flamed or ignored? For one thing, xBin allows a server admin to filter out binaries when he only wants to carry text stuff. That too, is a side-effect because binaries then would be marked as such. What is the difference of a large text article and a small binary today? How can you *reliably* filter them, today? Its pretty hard, I tell you. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Mon, 13 Jan 2003 15:30
Date: Mon, 13 Jan 2003 15:30
20 lines
2149 bytes
2149 bytes
[g]: > > Ok, at first reading (going back to october) xbin really sounded > good, but I'm not seeing the good of it anymore. Since I > apparently still don't get it - why xbin? What would xbin change? > What problem(s) will it solve? What "benefit" from it, especialy > as it would not be a "requirement"? it gets easier to pick up reposts, since it doesn't rely on the whims of the Subject. it's just a small first step, but if it gets accepted and becomes widespread, software _can_ be made more intelligent. we could even see changes in the way newsgroups are structured -- going back to the .d convention, posting references to other groups. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Tue, 14 Jan 2003 00:42
Date: Tue, 14 Jan 2003 00:42
750 lines
37592 bytes
37592 bytes
g <gypsy@dont.you.dare.spam> wrote: > On 11 Jan 2003 16:23:22 GMT, in <20030111112322.992$Yc@newsreader.com> > [name suppressed] wrote: > >Not really. The advantage of xBin lies primarily with those who download > >not with those who upload. But if teaching users were easy, it would > >have been done. It is not however. > > Perhaps not in your group. You could almost say the same for the xbox > group except one guy does try - sorta. Let me put it another way: These guys learn about parchives somewhere otherwise they wouldn't have neither the tools nor the knowledge to produce/use them. However wherever they pick that up, education fails - miserably. So please fix it rather than argue with me here. It must be simple, mustn't it? I'm exaggerating a bit, of course. Again: Were educating people easy, it would have been done. It doesn't work in such a diverse widespread culturally broad spectrum that the Internet is. It doesn't and it wont ever. No matter how hard you try. If it would, there would be no SPAM, neither on usenet nor in email. It would be a nice Internet, if it would work, but this is almost more utopical than world peace. The Internet has changed, it *was* something almost only educated users could access because of the less easy to operate tools, because you only had a chance to get on the Internet when you were in an university or in the (US) military. It has changed. A huge lot. It brought more users, more tools, new tools, it became larger, more widespread. There's more of the good, there's more of the bad, there's more of the ugly. Usenet is very "old". Its base RFC is a three-digit number. The RFC was written in February 1986 ! The Internet simply has changed since then, usenet too, but its roots are still based more or less in 1986 - and it shows ! There are probably more than 10-times more users accessing it than five years ago. And since it was that long around, there was *plenty* of time to create documents, to explain to people how usenet works, how it should be accessed, what should be done and what not. Has it been done? Yes. Has it worked? No. It failed - otherwise we'd not have this discussion here. Simply forget about educating users - you can try, you might even succeed at converting one to your view of how it should be done. But for every single one you manage to "convert", there will be 10 more new ones misbehaving, 100 more that disagree with your view and 1000ends more that simply don't read and don't care. All I'm saying is: it can't be done. Feel free to proof me wrong, however, I won't hold you back. > >I don't have the power to fix it that way. You probably neither. > >But I (or rather we) have the power to propose a standard, wheter it > >will become used or not. If there is a fix in this standard, it fixes > >the problem from a different angle. > > But I'm not exactly seeing a fix - from either side. It lessens the problem a bit, because it picks up parts automatically, without user intervention. No, it does not educate them. That can't be done using technology. > >This one is once complete and another time only part 47 is available, > >making it look like there's the file "cs-wrus.r04" once complete and > >once only one part available on my server (newsreader.com) > > All your examples are either a bnr2 bug or a problem at newsreaders. > There were no duplicate sections posted on any of 'em. Ok thanks, I'll look into it as soon as my own software has its data-backend. At this point I don't know who's to blame, though I suspect it is a BNR2 bug. > HHmmmm...what was percolating in the back of my head didn't hit until > now. And how do I explain it to those who do not know the "underground" > of warez and cd images? Let's take that robin hood image as an example. > There is a "hierarchy" - a protocol - netiquette, if you will and laugh > at that term all you will, it IS done and honored - to this kinda stuff. I have a long experience with that part. No matter that my usenet binary is rather short, because that exists outside usenet for a very long time as well. > It's work; I dunno if you've ever packaged anything for release, but it > *is* work and requires testing - guppyfuck sure didn't do any of that on > any of his repacks. He's in too much of a "hurry" No I've never packaged anything. In my country it is not legal to distribute copyright protected stuff, and I don't do it. It *is* however legal for me to download it - as much as I want. A friend of mine - which actually showed me the usenet binary side - does. He seems to get away with it easily. He's a major contributor in one of the TV-series ng's and he's quite a series-junkie. No matter that though - I do know the "unwritten" laws, I know what a releaser, what a r-group, courier, packager, distri, etc is. I don't partake in that game though save that sometimes I fetch their output. > There are release groups who get and package this stuff. No two groups > release the same stuff. There's even a few websites that list the It happens, quite a lot. The term "nuked" wouldn't be there otherwise, would it? > guppyfuck's repacks. Part of that "protocol" and "netiquette" is that > the archive (all the rars/ace's/whatever) remain EXACTLY as they are - > NO modifications, the only addition allowed is that a courier may add > his own nfo to the package. That's it. It gives credit where credit is > due. guppyfuck did not honor that and if the guys in cd.image.games had Well I have a slight problem with that. I hate stupid filenames with "This is X - by groupA packed by PackerB distributed by DistributorX.avi" This is simply stupid - I always rename that stuff down to what it is. I don't care who provided it, I don't care who - encoded/ripped/whatever it. I'm not a groupie, I'm interested in a file not in a group. Now this is all without any problem due to the "rules" since I don't redistribute it. What strikes me very funny however is this: Even if someone renames/repackages that stuff why that uproar? So they got ripped ? Well they ripped the original manufacturer/artist/team of the movie/audiocd/game themselves and NOW they complain? I can't follow the logic here. I know they do it for the "fame" of being the first one, the fastest group and not for some monetary gain (at least I hope so !) but they are or should be very clear what they are doing and what they allow other to do with their "product". If they feel they are getting ripped off by "noobs" or whatever and don't like it, they should stop doing it. > half a clue they'd know that. They don't. What they're doing is gonna > shaft 'em in the end cause the guys getting the stuff from the release > groups just ain't gonna post the stuff anymore or the guys releasing it > just ain't gonna do it anymore. Why should they bother? Fine. But it won't happen - again. Because there are always new groups and new places to gather where it is going to be sworn to abide by the rules - or new rules are being instated by some obscure group of some of the groups. And new rivalties spring up, new races, new groups, new rings, new conventions. So what? I don't play by the "rules" but I don't cause them any "damage" either because I don't (re-)send stuff. But I don't really care if someone abides the rules, because, looked at it from an objective perspective: These rules were set up by people who do nothing than break other people's rules. Why should I honor these rules? What gives them the right to dictate my filenames ? What gives them more rights than Microsoft limiting the usage of your (data-)files using TCPA/TPM and Palladium ? If it is your belief that everyone must abide by this honor code, then you are no better than a religous-fundamentalist trying to stamp his one and only real religion upon everyone else. Again, this is my opinion. I do not force it on anyone, though I don't prevent others having it the same way. To everyone his own. The Internet is a great place for wastly different point of views and what happens when they clash upon each other. (Average Joe would now preach you about his strange ways of Free Speech here :-) ) > Or are news admins gonna tell the release groups how they have to > release their product? LOL Or do you think guppyfuck "miraculously" > bought this robin hood game and did the original rip himself but just > happened to "find" that nfo file and included it with his post? Does it really matter? The people want files, not release groups. There was once a time, where it was HARD to do rips. There might have been a time where doing such was a huge effort and by this somewhat deserved fame. Today, its point or click. Any idiot can do it. To get "quality stuff" a bit knowledge is still required. But that's it. If they really care for being recognized to be able to click the "rip this" button, then I pity "the scene". They should start getting in on newer technology. Everyone can rip a dvd today. Its no more anything special. > Seriously, the only thing I see with xbin is that users do not have to > set their posting programs to post a binary file using a specific size > per segment - and xbin posts will propagate as well as anything else on > usenet propagates. But how that will do anything - really - I don't > quite understand. Is that supposed "guarantee" that all servers will > get all files complete? No, that can't be done by tagging the articles differently. It guarantees that no corruption can occur. It does label binaries as such. > It's kinda just one more way to elminate thinking, and there's so little > of that done on usenet now. IMO it's not something that should be > "encouraged." L00ns like guppyfuck should get their butt kicked in a > little and pointed to a few FAQs to learn wTF their doing before they do > it. Its not really encouraged just because there are less unnecessary traps one can fall in. > >Educating the users however won't work, that's like saying everybody > >will adhere to the usenet netiquette. > > And I see it differently - educating the users is the only thing that > works. Ok, please make all spam disappear (yes that IS educating the users). [Corruption] > Yes, that corruption has happened in a few groups a few times - I found > one done by an Easynews customer last month. Supersedes have also been > used to corrupt posts although not in a couple days. MUCH more Not that last week, there was a case in december. It is really corruption intentionally done, as Jango-Fett's clone is telling you. All you need to do is to understand the algorithm the programs use to find all the parts, then use that knowledge to inject bogus articles that get prefered, using that article. Its basically a weapons-race between the jammers and the newsreader-programmers. > image dumped with a buggy yenc. But that's what you get with > "uneducated" users and nobody to educate 'em. As I say, it is real, intentional corruption and it does exists - even if it doesn't touch me personally, it does exist. I could be evil now and claim that you are not educated, because you don't know that it does exists :) xBin can prevent it. > >You may, of course, argue that this is my fault, that I should have > >monitored more carefully. And rightly so. But is that really my job? > > You want it? It's your job. Don't wanna deal with the "hastle" - > there's ftp and p2p, both of which were designed for binaries. Yes and both have their advantages and disadvantages. FTP is dying - its no longer used widely except for private access - P2P programs caused this. But they have a problem usenet does not have: Total upload = total download. This is a simple equation any closed network (a p2p network for example) has. Everything one downloads, must be uploaded by someone. Throw in thousends of people with asynchronous connections like ADSL or cable and you see where the problem is. They can download more than upload. Usenet is flood-fill. Upload once, and thousends can download it without using *your* bandwith. This is what makes usenet attractive for binaries. Nothing more, nothing less. > Ummmm...he's also just reposting something that was REposted on 12/28. > First post of it goes back to before 34 days ago. Interesting that EN > lost 3 days of retention on the http: interface just within the last > couple days. So this guy screwed up in more ways than one. He repacked > it twice. It was originally posted as an ace file. He rar'd it. Repacking is an operation that will be superflous with xBin - another trap taken away. > 74 rars followed immediately by 26 parchives = 35% parchives on my > calculator - what does yours say? It was the same I think. At least I remember seeing about 20 PAR's. He sent par's first with his first posting attempt. > > >But he has started sending the VERY SAME DATA > > |You ASSume that but you don't know that, do you? Since he already > |repacked it once - it *was* released with this info: Yes of course I assume that, because I can't know, the first posting was incomplete - how can I be able to compare it ? But why should he send different data? > which everyone already had. Then he repacked it yet again but this tim > actually did bother to say it was a repack - yet he scammed the nfo from > his original download on it and shined the guys who did the work to get > his the stuff to begin with. Right - this he did. Big deal - see paragraph above. > same one? Different? Bin/cue? Why doesn't he know what he's f*cking > doing and why do you think xbin will fix his ignorance and why do you > think the ignorant do not need to get an education? He downloaded this I didn't say he wouldn't need education. In my opinion, education never hurts, no matter in what field. However, the problem lies in getting it to him. Go ahead. Educate him. See if it has a lasting impression. I've been there, done that (NOT on usenet - but I don't see a difference in one huge heap of people and another). It's hopeless, I've given up. Its even a double edged sword. What if your way to do it has one severe side effect you are unaware today? > xbin will not fix ignorance. No. It won't. It can't. Ignorance is a "people-problem", its a social problem. Social problems can *never* be fixed by technical solutions. It doesn't work, it never did, never will. Everyone thinking it could, I will call ignorant now. Imagine a software which had the power of removing child-porn from the whole Internet. Not only usenet, the whole Internet. Would that cure pedophiles? No. They'd still be pedophiles, just cut off the Internet. They'd still want "their stuff". They will still get it. Again: Technical solutions *can* *not* *fix* social problems. Social solutions can. Technical ones not. It simply doesn't work. Period. Don't expect too much from xBin (or any change in any standard). It won't educate users - ever. > How frequently do you see this? I VERY rarely see anything like that. I don't observer the usenet. It just happend and I saw it - per chance. It did serve very well to show you what is (also) happening "out there". It would have been fixed, as I say. It doesn't matter if that is a one in a million thing. It would have been less damaging. And xBin was not concieved to fix that, it is again but a nice side-effect. > And I have to ask - is it REALLY the same image he's posting or did he > rerip the image and did he use some other software for the second one? I don't know. I assume it is the same file. It makes no sense of being another file. > ISO or clone cd or bin/cue or what? Not even all bin/cue's are the same An image of a cd or dvd is bit for bit equal, otherwise it is no image. Test it yourself - take any cd, make an image. Make another image and do a bitwise compare. > thing even though they have the same file extentions. Even two files > with the same name and file extention may not be duplicates and xbin > can't fix that. If they were from different files, yes. But I really doubt that in this specific case. Don't you? > You *do* need the poster and downloader to think. xbin won't fix that. Less hassle = less need to pay attention to the various booby-traps of usenet. Call it ignorance if you want. You don't need to know all 7 ISO-OSI Layers either to do networking. This is just a thing that should have been fixed far earlier. Better late than never, no? > Not necessarily. Create two bin/cue's of the same cd with different > software and do a binary compare. Is it the same? Nope. Do you know An image is an image is an image of an original. If you make an .iso instead of a bin/cue, then yes, thats a different *sort* of image. Otherwise, nope sorry. > that? Nope. You need more binary experience and in more than just that > one group. No. I don't need more binary experience (whatever that is). I know enough of binary representation (and their problems across different plattforms). I am in more than one group, too. I am relativly new to binary usenet, as I've said, yes. But usenet's problem have nothing to do with the intrinsincs of an image file. They are different. And I claim that I see them. I have many years experience in programming and networking. Heck, I even study this stuff. My perspective, in relation to xBin, is more from the technical side than from the user's side, but I do see what advantages it would give ME. I see how many thinks it makes far easier for users, for me, for you, for every user. It is a step ahead, in my opinion. That does not mean "it doesnt work today" because it does work today. It means it wants to do it better. Usenet works apparently since about 1986. Oh it has been enhanced where it was necessary, but the basic idea is still the same. Do you use software that hasn't incorporated new ideas since this software's base idea has first been formalized? Don't think so. Why do you use yEnc? Binary usenet worked without it, before. Drop yEnc. What? You see an advantage in it that makes it worth using? Good, I see several in xBin. Did yEnc educate users? Did you read the funny postings about the "yEnc technical department" which is supposed to speak down all yEnc opposition ? > >I don't know how much that happens, and I don't even care to know. But I > >do know that xBin would have helped in that case. > > No, you just ASSumed it would. You don't know what he used to make each > image. Even an ISO made with two different windoze programs is not the Sorry, the ISO image format is clearly defined. Look up the ISO 9660 Standard. Do you know how to create a .iso under linux? Just dd if=/dev/cdrom of=/some/file.iso > same. xbin can't make the image something it's not. No it can't. An image is nothing where interpretation is allowed. It is a standard. Defined. Rigid. Not like subject header parsing for filenames... > >It could use the data of > >both posting-attempts (which wouldn't be different as in this case here > >- he obviously re-rared it which is no longer needed for xBin) picking > >out what it needs and only what it needs, thus not wasting bandwith. > > Since he lost the rars with his crash he hadda make another new image. > What with? xbin will not fix his ignorance. He wouldn't have needed to. He obviously had the source file(s) out of which he made his splits. Since xBin obsoletes the splitting process, he would have sent the source file(s) first and again. > And that is what I've been saying. So what good is it - really? Servers and newsreades see at one glance what a binary is. Yes, that's it ! As I said, its only a labelling mechanism. But a powerfull one. Allowing all that stuff we've been saying up so far. > posted to alt.binaries.cd.image and cd.image.games. He got to usenet > last week - 42 copies of another REQ spammed last sunday. He has no > clue and nobody will give him one. You call that "status quo" and > that's good and educating 'em bad. feh Oh no, I never said that this is good. In fact the contrary, I always said its not good today. If it works = it is good for you, then you apply different measurment standards than I do. I did say however that educating them is hopeless. But I repeat myself again: Please *try* to proof me wrong in that regard. > >Neither do I but it is a problem, just read > >alt.binaries.news-server-comparison > > Please reread nsc and connect the dots. You will see my posts in there. Yes THAT one was a problem (or none) with supercedes. The one I was referring to was not. It was in December but I'm not going to dig it out. > >> Not a social issue. It's called ignorance and is propagated by the > >> ISPs and NSPs because they cannot "condone" binary posts to usenet > >> because of the content. > > > >And how is that not a social problem? > > It's ignorance and people like you who say the "status quo" is the best. > Call it whatever you want. It's ignorance and it's the biggest problem > on usenet. No amount of "cosmetics" is gonna fix that. No if it were best I would not try to make it better. I but say "your way" (educating them) does not work. You had 20 years, you failed. Admit it or not, you can't educate them. You can educate one or few. Big deal. That's not even a drop on the hot stone, its one atom of H2O on the hot stone. I did *not* say the status quo is best. If it were, why should I spend my time talking about xBin? > >Well no. I have no problem finding files and parts and reposts of them. > >It however makes no sense to me, why I should need to do that. > > Is usenet domino's? Why should anyone request anything? Shouldn't > EVERYTHING be here on usenet anyway? Should someone read your mind and > know what you want? My demands are not utopical. It works anywhere else. Splitting is just plain stupid. I see why it is on usenet - its a tradition that is there because it evolved that way on usenet. We have a term in IT for such things. Its called "legacy". I am just amazed on the resistance from you against obsoleting such - in my opinion - archaical things like splitting. You argue it is ignorance, giving something to the uneducated who should rather learn to use it as it is. Do you always block advancement ? Face the fact: Nobody splits, nowhere. Just on usenet. Splitting happens everywhere though and is hidden from the user. Why? Is everyone using a Webbrowser uneducated and ignorant? Is everyone transfering a file without splitting it in some arbitrary length uneducated and / or ignorant? Sorry, not hiding splitting is outdated, last-century, troublesome, archaic. You get the idea. I could call everyone ignorant who does not see this, because it is nowhere else handled this way. > >Oh there are better ways to fix usenet binary problems. But I don't see > >many doable ways. Best way would be to kick it all away and create a > >NNTP-2 standard which deals from bottom up with binaries. Guess how > >possible that is... > > And maybe that really is the better way to go. Yes it *is* the better way. But how realistic is it? Even if you get some people to do it, splitting the usenet in two parts, doubling its bandwith usage will really not be what people want. How likely is a nntp2 specification and servers actually doing that, implementing it and incurring more costs? Well you tell me, you're longer on usenet than I am. How likely is such a radical change on the server side? > >Yes, everyone is missing the same segments IF completion is exact the > >same. That's what I said. I don't see completion as a %-value, that's > >but a easy quantification of completion. > > Completion is NOT the same everywhere. Not even the same on two similar Read the block. "IF completion is exact..." [PAR-example] > That's how well it works on usenet. I am the one here who wants to go away from that status quo today, you are the opposing one. Or am I seeing something skewed here? > Excuse me? YOU please go back and reread. I explained to you exactly > how it works for the MASSIVLY *vast* majority of people - they're using > PP2K or a variant of it. Virtually NOBODY but the original poster > reposts segments. Other people do repost chunks. Again: This may work for exactly those with PP2K or variant. It does NOT work reliably. Does binary usenet mean I must use PP2K ? Don't you really see the need for a binding standard in that matter? > >It works *most* of the time but not always. It breaks if I rename the > >file. > And xbin will break on mp3s if someone changes the ID3 tag on an mp3 > also. The audio's the same - the file is different. How does xbin fix > that? I can't, this does change the bits in the file. In the eye of xBin, this file is different. (It is different in reality too). What changes today? Its not better today, is it? So it does not make matters worse. That's one goal. > >It is absolutely not trivial to find a sequence of a file. There are > >actually even two levels of splits: First the file splitted into many > >parts and second layer those parts spanning several articles. Which is > >which? > > segment = one of the many tiny parts that make up a file. a chunk = a > rar or whatever that is posted to usenet that is part of a larger file. Ok another terminology, same problem. Having subject "(01/12) xyz.file (01/14)" which is the chunk number, which is the segment number ? Oh yes, its easy when its "(01/12) xyz.file.r01 (01/14)" or is it? Think about that. > >There is no filename field. There is only the subject. What is the > >standard of getting the filename *reliably* out of the subject? Give me > >some piece of pseudo-code that parses the filename *reliably* out of the > >subject header please. You will be helping not only me but lots of > >people. > > No, because no filename is required. You can post inline. Unless How do I find what I want then? This data must be present in the header... And not all transfer-encodings also replicate the filename I heard (uuenc) > someone is changing that also? If that happens, then all the software > would change. Try looking for a file extension. Not all operating systems have a notion for file extensions. MAC doesn't. Unix neither. Its alien to them. MIME solves that problem, actually but that's yet another discussion. > I'm not a programmer and don't wanna be one either. Nor do I subscribe > to chinese binary newsgroups nor have I ever seen what you're > describing, even in chinese binary newsgroups. Nor do I. The dominance of the english language in usenet will cease to be in the future though. There's more asian people than english speaking ones. One day this will be felt. Not today. > Labeling the binaries differently isn't gonna fix anything; it'll make > things worse. Nope. Mind you the whole idea is not mine, Curt did it and he does operate a server. Unless me, he's also pretty long in the usenet business. > >> I got to usenet about 12 years ago. Got into binaries about 9 years > >> ago. Old school in a way, but what is usenet and what is FTP and what > >> are the differences? I kinda think of russ's rant when I see dumps > >> like chello and xbox. > > > >My experience of usenet binaries is very short. Been using > >usenet-technology text-only since 95 (but only the technology, not > >usenet itself), binary side since November 02. > > I think you need a HELLUVA LOT more experience. I actually expected such a reply - I saw it coming when I typed above lines. I was fully aware at that time, that this would be opening myself to a broad-side attack of the class "you are a newbie". So here's my reply: The number of days I've been using usenet does not give you any data to allow any assesment of my skills of analyzing technical systems, be that networking systems or not, mechanical systems or whatever. It does not allow you to make judgment of my understanding of usenet netiquette (which I have read, a long time ago, btw.) nor of usenet's inner workins of which I even think I have a more accurate picture than you do. That I am completely aware of some of usenets social systems, namely the way how the various release groups and their attached helpers work, I've already shown you. I can even go further than that by saying that I am a member of the "demo scene" which is, should you not know, that part of people who split off themselves from the crackers in the days of good old Commodore C64 and Amiga. The demo scene once was part of the cracker groups in those days, producing small little demos which were displayed before the (cracked) game was finally loaded. The demo scene separated itself from the cracker-part of those groups and did only do demos - outside of cracked program. The focus shifted from C64 and Amiga to PC nowadays, but C64 demos are *still* being made. Making cool graphic and sound demos is what the demo scene does, and that's even fully legal (probably a bit boring because of that for some, I would think). Never the less, the roots are the same, and I do know the "rules" or honor codes, at least some of them. Binary usenet may be quite new for me. But I've all seen it before. There are no new problems. Its all the same old - on a grander scale. Been BBSing for years, I was even CoSysop. So I'm pretty sure I'm well equipped with a nice slab of experience. But I'm learning every day and I don't mind learning new stuff either. I learnt alot in the short time just reading here and I hopefully will continue doing just that. However, I do have one big advantage of being new here: I don't see tradition. There is no invisible barrier here for me that says "don't touch that, it's always been done that way". So I came, I looked and I found splitting ugly. Do you really like it so much you don't want it seen gone? I see other things, things which could be optimized, by relative small changes even. But I also am aware of problems which get introduced, should changes appear too soon, or unexpected or uncontrolled. That's why I decided to write here, picking up Curt's idea, expanding on it. Looking at it from this and that angle and trying to see aspects of what it can do, what it could become and what is required for it to work. It is a step which has the potential to change how usenet works, yes. I don't think it is a harmful one, making things worse, you've yet to convince me of that (and this explicitly includes PAR-technology). There are a lot of people in here though I don't know how many read the large threads this has become. So far I haven't seen much negative comments. And so far, you are the only one accusing me of lack of experience. Maybe that's even true, I don't know. However I'm pretty sure should I suggest a change which is obviously harmful to the net, a lot will reply and hint at that. So for now I suggest we drop the issue of who knows of what how much and re-focus on the problem. > >What strikes me the most is that this splitting business is so accepted > >and deep-rooted as if that were the most normal thing ever. But its so > >artifical and downright "last-century" for me. > > Then go back to p2p or ftp. That's really how massive binaries should > be handled. Yes and no. FTP is not nat-safe. Ask any firewall admin/implementer. It creates a whole bunch of nightmarish scenarios. And everyone today should use a firewall, imho, especially should the OS be from Redmont. HTTP/1.1 were actually a better solution even with its small protocoll overhead, but I think there's still no resumable upload. P2P has its deficencies as outlined above. Apart from that it works fine. The only thing that makes usenet attractive for binaries is its flood-fill mechanism. This can't and won't be replicated in P2P. Multicast is no option. Multicast again works as a technical solution, but political reasons prevent it from ever being enabled at ISPs. They can't bill anyone when multicast packets come in and use their net as transit. Multicast works within one company or university, but you'll probably never see it "out in the wild". Its bloody unattractive for ISPs. Active Networks would be the next step. They could provide similar features. But ANs are a research subject. You won't see that in the next 5 to 10 years. And probably even more important than technology: The inertia of the people. It requires a lot to get them to use something new, even if that new thing is "better". Personally, I tend to use different tools for different requirements. I use binary usenet, where I see it gives me an advantage, but its no 100% or nothing thingie for me. Yes I can go back to P2P or FTP, but there are situations where usenet has a clear advantage which surpasses the hassles and then I'm using usenet. But apart from that, what is wrong of taking away that hassles? > >I take it you'd like to remove the binary capability of usenet > >alltogether? Yes that's a fix too. Too hard to do again, however. > > So how is it that so many ISPs have done it already? NSPs haven't - > it's in their financial best interests to keep the kiddies dumping cause > without them they have no business. They haven't even bothered to block > binary dumping from non binary groups and so let the kiddies trash those > text servers that don't want binaries. Goodie. Usenet really is a > cooperative effort.... <wg> Again: xBin marks binaries. Filtering out xBin articles is *easy* if you don't want them. You can even filter them out according to size constraints. [overhead for servers] > But that "few bytes to kbytes" and cpu cycles is what you're saying is > why it's "needed" - that people rename the same stuff and it would "fix" > that and the file corruption thing. All server processing is purely optional. The features of integrity and automatic retrieval is done at client side. A server *only* needs to do some xBin processing if it wants to take advantage of it in any way. It doesn't even need to do so when it recieves articles, it can do it later, "when it got time". > So why *really*? Fixing old cludges, making it easier, going a step into the future. Of course, standing where we are today is always a viable option. Hey it has worked the last 20 year, why shouldn't it work another 20 years? Its not a question of xBin or nothing, there have been other proposals like with the chained MIDs, which works when a cryptographic secure one-way function is used. But that only fixes one single problem. xBin fixes several and prepares the way for even more things that could be tested to see if they would benefit binary usenet (separate channels for binary files, as Curt has outlined) My main gripe - as you certainly know by now - is that this whole splitting nonsense would be gone as well. > >> Please don't say nobody. That is done (to an extent) in absm* when a > >> full cd is a long dance mix or one track so "a file" may be 75+ megs. > > > >Ok, why then does almost nobody use that ability of those tools? > > IGNORANCE. Fine. And how should that be handled ? If you answer eduction, then please outline HOW this education should work and who will do it. Bonus points awarded for an estimation of success rate :-) > >For one thing, xBin allows a server admin to filter out binaries when he > >only wants to carry text stuff. > > They can do that now - cleanfeed. Right, I cannot say how well this works, so lets just assume it works 100% perfect. In that case, let me rephrase it. They can filter out binaries according to size constraints per ng. No movies in picture only group (filesize < 1MB for example). -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Tue, 14 Jan 2003 03:29
Date: Tue, 14 Jan 2003 03:29
42 lines
3130 bytes
3130 bytes
[Rene]: > > g <gypsy@dont.you.dare.spam> wrote: > > No, you just ASSumed it would. You don't know what he used to > > make each image. Even an ISO made with two different windoze > > programs is not the > > Sorry, the ISO image format is clearly defined. Look up the ISO > 9660 Standard. so? the ordering of files within a directory isn't fixed. there are probably lots of other ways of making the ISOs different. > Do you know how to create a .iso under linux? Just > dd if=/dev/cdrom of=/some/file.iso or you could use mkisofs. odds are the ISO files will be different. > Big deal. That's not even a drop on the hot stone, its one atom of > H2O on the hot stone. interesting. in English the idiom is "drop in the bucket" or "drop in the ocean". (in Norwegian it's the latter only.) > Multicast again works as a technical solution, but political > reasons prevent it from ever being enabled at ISPs. They can't > bill anyone when multicast packets come in and use their net as > transit. Multicast works within one company or university, but > you'll probably never see it "out in the wild". Its bloody > unattractive for ISPs. more off-topic stuff, but why not? it's just bytes as usual. those transmitted bytes will be picked up by the normal traffic counters. everyone wins by using multicast, consider web radio, for instance (I love www.somafm.com :). it only has a problem with subscription based content. you can encrypt it, but what hinders the paying customer from sharing the key with others? -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Tue, 14 Jan 2003 13:28
Date: Tue, 14 Jan 2003 13:28
64 lines
4036 bytes
4036 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Rene]: > > Sorry, the ISO image format is clearly defined. Look up the ISO > > 9660 Standard. > > so? the ordering of files within a directory isn't fixed. there are > probably lots of other ways of making the ISOs different. Yes but that's not the point. The point is that if you and I buy both the same CD and we both make an .iso file out of the CD, no matter using which program, the content of that .iso file is going to be the same. Because that's what an image is: A 1-to-1 representation of the contents of a CD. Now CDs get pressed, not burned, that's why they are all the same (baring errors which damage the disk of course). The extension .iso is just short for: this is an ISO 9660 filesystem. > > Do you know how to create a .iso under linux? Just > > dd if=/dev/cdrom of=/some/file.iso > > or you could use mkisofs. odds are the ISO files will be different. No mkisofs makes a new, empty .iso file. I create an .iso file from a CD. I probably didn't say that clear enough. I can repeat my process and *always* get the very same iso file from the same CD. If you create an .iso file yourself and fill it yourself, then ordering and filedates matter and change the file. But in that case, the file is not a direct image of an existing CD. > > Big deal. That's not even a drop on the hot stone, its one atom of > > H2O on the hot stone. > > interesting. in English the idiom is "drop in the bucket" or "drop in > the ocean". (in Norwegian it's the latter only.) Ah I am pretty sure I've read it in english before. I meant the same though. [Multicast] > more off-topic stuff, but why not? it's just bytes as usual. those > transmitted bytes will be picked up by the normal traffic counters. Yes but they carry multicast adresses, not an IP adress which can be traced back to any AS/ISP. IP multicast adresses are class D adresses (range 224.0.0.0 - 239.255.255.255) They are sort of dynamically assigned (you simply pick one and send under this IP as sender). > everyone wins by using multicast, consider web radio, for instance (I > love www.somafm.com :). it only has a problem with subscription based I do listen to webradio quite often, I even have a stereo with an ethernet connection which can directly play streams (http://www.streamium.com), the Philips Streamium MCi-200. But they actually use HTTP. One listener = one full nn kbps uplink. I haven't seen any streaming-media actually use multicast. Your station uses Shoutcast which works over HTTP non-multicast as well. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Tue, 14 Jan 2003 16:35
Date: Tue, 14 Jan 2003 16:35
46 lines
3437 bytes
3437 bytes
[Rene]: > > Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > > so? the ordering of files within a directory isn't fixed. there are > > probably lots of other ways of making the ISOs different. > > Yes but that's not the point. The point is that if you and I buy > both the same CD and we both make an .iso file out of the CD, no > matter using which program, the content of that .iso file is going > to be the same. Because that's what an image is: A 1-to-1 > representation of the contents of a CD. an image doesn't have to be a rip. > > or you could use mkisofs. odds are the ISO files will be different. > > No mkisofs makes a new, empty .iso file. I create an .iso file > from a CD. I probably didn't say that clear enough. I can repeat > my process and *always* get the very same iso file from the same > CD. sure, but I could use mkisofs to get an ISO which contains the same data, but with a different bit pattern. > If you create an .iso file yourself and fill it yourself, then > ordering and filedates matter and change the file. But in that > case, the file is not a direct image of an existing CD. I didn't claim it was. > [Multicast] > > more off-topic stuff, but why not? it's just bytes as usual. those > > transmitted bytes will be picked up by the normal traffic counters. > > Yes but they carry multicast adresses, not an IP adress which can > be traced back to any AS/ISP. they will still increment the counters of the router interfaces the traffic crosses. I don't think many people do accounting based on originating AS, but that information can be culled from IGMP if you really want to. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Andrew - Supernews
Date: Tue, 14 Jan 2003 22:38
Date: Tue, 14 Jan 2003 22:38
17 lines
2037 bytes
2037 bytes
In article <20030114082829.537$0p@newsreader.com>, Rene wrote: > [Multicast] >> more off-topic stuff, but why not? it's just bytes as usual. those >> transmitted bytes will be picked up by the normal traffic counters. > > Yes but they carry multicast adresses, not an IP adress which can be traced > back to any AS/ISP. IP multicast adresses are class D adresses (range > 224.0.0.0 - 239.255.255.255) They are sort of dynamically assigned (you > simply pick one and send under this IP as sender). not so - multicast addresses in the _source_ field are forbidden; they can be used only as _destination_ addresses. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: xBin and PARity files
Author: Rene
Date: Tue, 14 Jan 2003 23:56
Date: Tue, 14 Jan 2003 23:56
67 lines
4741 bytes
4741 bytes
andrew@supernews.com wrote:
> In article <20030114082829.537$0p@newsreader.com>, Rene wrote:
> > [Multicast]
> >> more off-topic stuff, but why not? it's just bytes as usual. those
> >> transmitted bytes will be picked up by the normal traffic counters.
> >
> > Yes but they carry multicast adresses, not an IP adress which can be
> > traced back to any AS/ISP. IP multicast adresses are class D adresses
> > (range 224.0.0.0 - 239.255.255.255) They are sort of dynamically
> > assigned (you simply pick one and send under this IP as sender).
>
> not so - multicast addresses in the _source_ field are forbidden; they
> can be used only as _destination_ addresses.
Yes, sorry I have problems formulating what I actually want to say.
Everything works sort of reversed when you have multicast. With unicast, a
routers look at the destination and know where they have to send out the
packet, with multicast they only look at the source and sort of build up
the routing tree reversly (from reciever to sender)
Now the problem is this. Consider yourself an ISP which interconnects with
several other ISPs. Every packet that comes in from another net, then I can
bill them, every packet from my net leaves towards another ISP, they bill
me. What can happen now is that unfortunatly I'm well connected and a
(external!) multicast stream happens to branch multiple times within my
network, going out to other ISPs. Neither sender nor any reciever is in my
net.
See this diagram:
R's are routers within my network, other capital letters are other ISPs.
B C D E F
border ^ ^ | ^ | border
A >>>>�>->->->R->->->->R->->->->->R->->->->R--------R----�---- L
| V V V |
G H I J K
In this case, a multicast stream comes in from ISP A (or further behind A)
and comes into my network. It branches and goes out to B, C, E, H, I and J.
So I can bill A one time and I get billed 6 time as much. Ouch. Bloody
unattractive. Billing per Packet/Stream is usually done at the border
towards other ISPs/customers, not within your net, if I'm not mistaken, and
therefor, there is no easy method of realizing that I'd need to bill A far
more for that packet.
What's worse, if it *would* be possible to get the total cost this
multicast packet creates, then I would as ISP certainly turn off multicast,
because one of my customers can therefor by sending but one packet create a
cost of houndres of packets that I will get billed as ISP. And then I'd
need to have a logging facility that logs which customers were multicast
senders so I could bill them in turn.
Also, the costs may incurr somewhere in Asia, but your business is in the
States and you have no business relationship what so ever with any asian
ISP. How is it going to work? Chaining up until they reach you?
As far as I know, such a logging and billing infrastructure does not exist.
I could be easily wrong, for I only messed around with small routers. But I
remember faintly having read an article outlining such billing problems as
reason why almost no one allows multicast.
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: multicast (was: xBin and PARity files)
Author: Kjetil Torgrim Homme
Date: Wed, 15 Jan 2003 00:23
Date: Wed, 15 Jan 2003 00:23
32 lines
3265 bytes
3265 bytes
[Rene]: > > Everything works sort of reversed when you have multicast. With > unicast, a routers look at the destination and know where they > have to send out the packet, with multicast they only look at the > source and sort of build up the routing tree reversly (from > reciever to sender) this is not my understanding of multicast. you announce a session using IGMP, and interested parties tell their upstream router that they want the data. each router must therefore keep a list of ports for each multicast address. the source address is irrelevant. > Now the problem is this. Consider yourself an ISP which > interconnects with several other ISPs. Every packet that comes in > from another net, then I can bill them, every packet from my net > leaves towards another ISP, they bill me. What can happen now is > that unfortunatly I'm well connected and a (external!) multicast > stream happens to branch multiple times within my network, going > out to other ISPs. Neither sender nor any reciever is in my net. do they really bill based on inbound traffic? it seems unnatural assign the costs to the producer, it makes more sense to bill the consumer. and then it all works out. you pay once, for the single copy you receive, and the six ISP's getting data from you pay for that privelege. if no one requests the data from you, you will not get the data. if one peer wants the data, you're even. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: multicast (was: xBin and PARity files)
Author: Rene
Date: Wed, 15 Jan 2003 00:53
Date: Wed, 15 Jan 2003 00:53
44 lines
3839 bytes
3839 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > this is not my understanding of multicast. you announce a session > using IGMP, and interested parties tell their upstream router that > they want the data. each router must therefore keep a list of ports > for each multicast address. the source address is irrelevant. There are several mechanisms. One is flooding and pruning or something like that. It starts by being replicated at ANY router, and then later gets cut back when no one on that router wants it. Shouldn't be used on the internet that way, its easy to do in internal nets though. There's also one mechanism as you describe, though I don't have the exact details at the moment. Your mechanism has a hen and egg problem. When I want to send multicast session 227.0.0.1 and you want it, how do our two routers ever meet ? How does yours know that mine has that multicast stream? Source adress must play a role here, you could find me with my source adress (or at least the routers along the direct path) I don't know the exact details either, and I don't have equipment around to play with that kind of stuff. > do they really bill based on inbound traffic? it seems unnatural Total traffic or none actually (at least from around here. Its free if they have a peering otherwise you have transit or other access contracts). Well there's even different billing. My ISP once told me they don't pay per traffic, they pay for their connected bandwith. So they only pay more when they need to upgrade and add bandwith. That was only for their backbone access, they have smaller ISPs which pay them. But multicast is one-directional UDP traffic. One sender sends, several reciever get it. > assign the costs to the producer, it makes more sense to bill the > consumer. and then it all works out. you pay once, for the single > copy you receive, and the six ISP's getting data from you pay for that > privelege. if no one requests the data from you, you will not get the > data. if one peer wants the data, you're even. Yes you're right, paying for inbound makes a lot more sense. Then again, I know some pay for total traffic. I probably need to ask my ISP next time I get a chance. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: multicast (was: xBin and PARity files)
Author: Kjetil Torgrim Homme
Date: Wed, 15 Jan 2003 01:31
Date: Wed, 15 Jan 2003 01:31
49 lines
4055 bytes
4055 bytes
[Rene]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> > this is not my understanding of multicast. you announce a
> > session using IGMP, and interested parties tell their upstream
> > router that they want the data. each router must therefore keep
> > a list of ports for each multicast address. the source address
> > is irrelevant.
>
> There are several mechanisms. One is flooding and pruning or
> something like that. It starts by being replicated at ANY router,
> and then later gets cut back when no one on that router wants
> it. Shouldn't be used on the internet that way, its easy to do in
> internal nets though.
the session traffic is broadcast to everyone[1] using IGMP. this will
cause a constant trickle, which may invalidate this technology for
medium speed users (384 kbps and below).
[1] there's a time-to-live which is decremented depending on the hop
the packet makes. the Norwegian university network specified a policy
where all links out of Norway should decrement TTL by 32 (or
something). this means that you can specify TTL 32 for your session,
and be sure that the traffic never leaves the country. note that this
scales up, for each administrative level, you just double the TTL
decrement at the border.
> There's also one mechanism as you describe, though I don't have
> the exact details at the moment. Your mechanism has a hen and egg
> problem. When I want to send multicast session 227.0.0.1 and you
> want it, how do our two routers ever meet ? How does yours know
> that mine has that multicast stream?
it doesn't have to, it suffices to contact your immediate upstream ("I
want packets addressed to multicast session 227.0.0.1"). eventually,
it will percolate up to the source(s). yes, there can be more than
one source for a session, no special setup required.
> Source adress must play a role here, you could find me with my
> source adress (or at least the routers along the direct path) I
> don't know the exact details either, and I don't have equipment
> around to play with that kind of stuff.
I must admit that I don't know IGMP as well as I should, either.
--
Kjetil T. | read and make up your own mind
| http://www.cactus48.com/truth.html
Re: multicast (was: xBin and PARity files)
Author: Rene
Date: Wed, 15 Jan 2003 01:57
Date: Wed, 15 Jan 2003 01:57
71 lines
5049 bytes
5049 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Rene]:
> > There are several mechanisms. One is flooding and pruning or
> > something like that. It starts by being replicated at ANY router,
> > and then later gets cut back when no one on that router wants
> > it. Shouldn't be used on the internet that way, its easy to do in
> > internal nets though.
>
> the session traffic is broadcast to everyone[1] using IGMP. this will
> cause a constant trickle, which may invalidate this technology for
> medium speed users (384 kbps and below).
Its meant for LANs anyway. Imagine sending data to every Internet node
first and then backing-off from those that don't want it. Would be a nice
DDOS tool. One packet to rule them all :-)
> [1] there's a time-to-live which is decremented depending on the hop
> the packet makes. the Norwegian university network specified a policy
> where all links out of Norway should decrement TTL by 32 (or
Ah yes, I remember, that's a sort of administrative barrier which you can
use to separate entities. You could for example set it to 32 in each of
your departements and to 64 for your campus. So when you want to allow your
multicast stream to "leak out" of your department, you set the TTL above 32
but below 64.
> scales up, for each administrative level, you just double the TTL
> decrement at the border.
I don't think it must be doubled, just higher (but at least by the number
of hops between the borders)
> > There's also one mechanism as you describe, though I don't have
> > the exact details at the moment. Your mechanism has a hen and egg
> > problem. When I want to send multicast session 227.0.0.1 and you
> > want it, how do our two routers ever meet ? How does yours know
> > that mine has that multicast stream?
>
> it doesn't have to, it suffices to contact your immediate upstream ("I
> want packets addressed to multicast session 227.0.0.1"). eventually,
> it will percolate up to the source(s). yes, there can be more than
> one source for a session, no special setup required.
Yes, but you don't know my immediate upstream :) Imagine me here in
Switzerland sending at 227.0.0.1 and you in Norway wanting it. You tell
your router "I want 227.0.0.1" and then what? Does it ask all its upstream
links, and they too and again once around all the world until someone hits
me? I don't think it works that way, because assuming there is no one
sending 227.0.0.1 (ie I told you a wrong address) then you'd ask every
single router in the world you can reach with your TTL? I don't think so.
With the source address you can at least ask in my direction. Once you are
part of the distribution tree you can still optimize and find a better
place to click yourself in. I think something like that happens because I
dimly remember that you must be prepared to recieve the same data packet
twice (or several times) because of tree - reconfiguration.
> I must admit that I don't know IGMP as well as I should, either.
Well at least we can agree that its a bit complicated :)
I tried googling a bit an the best of what I found why there is no widely
used multicast is about that :
"http://www.seyboldreports.com/TSR/free/0101/html/multicast.html" - and it
gives entirely different reasons, so I guess I was wrong with the billing
problem.
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Thu, 16 Jan 2003 07:59
Date: Thu, 16 Jan 2003 07:59
15 lines
2043 bytes
2043 bytes
[g]: > > Please learn legalities cause unless you're in china or a very few > countries which have not signed the Berne Convention or WIPO, you > are bound by international copyright law and downloading > copyrighted material and instaling/using it IS illegal. this is not clear. who makes the copy? I don't think we have a legal precedent in Norway. it certainly is not illegal to own or buy pirate copies in physical form. the illegal act is the manufacture. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Thu, 16 Jan 2003 13:40
Date: Thu, 16 Jan 2003 13:40
41 lines
3268 bytes
3268 bytes
g <gypsy@dont.you.dare.spam> wrote:
> for "images." Please learn legalities cause unless you're in china or a
> very few countries which have not signed the Berne Convention or WIPO,
> you are bound by international copyright law and downloading copyrighted
> material and instaling/using it IS illegal.
Not so fast. It isn't that easy. First of all: downloading is in most cases
absolutely legal. "Using" it afterwards might be not. As I've already
stated, downloading mp3 (or music in general) is perfectly legal for ME.
Listening downloaded music ("using it") *too*. I can give you the
corresponding paragraphs of current valid Swiss law if you like (it should
even be online somewhere on http://www.admin.ch) though I will not
translate the German into English. So unless you can read German its not
going to help you.
And yes, this *has* been confirmed to me by a Swiss lawyer.
Now international treaties make things much more complicated. Sometimes
local law overrides them sometimes it doesnt. When is seemingly decided on
a per-case basis.
You see, that's the status in Switzerland, and as a side note, Berne
(locally spelled Bern) is the capital city and Geneva (Genf) lies a bit
more to the South-West near the border to France, but is still in
Switzerland.
Now for the other thing:
> Let me put it this way, please do not "help" usenet binaries until you
> have a little more experience than 2 months leeching in some group(s).
> You do not know enough about it. Please learn about the software used
There again.. well since you didn't reply to any of the rest of my message,
and since I'm seemingly having failed to show you my experience with the
social and technical mechanisms at work here, I'll stop this discussion
here and now. (and by this I don't mean my participation with xBin)
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Rene
Date: Thu, 16 Jan 2003 13:50
Date: Thu, 16 Jan 2003 13:50
43 lines
3200 bytes
3200 bytes
g <gypsy@dont.you.dare.spam> wrote: > >Yes but that's not the point. The point is that if you and I buy both > >the same CD and we both make an .iso file out of the CD, no matter using > >which program, the content of that .iso file is going to be the same. > >Because that's what an image is: A 1-to-1 representation of the contents > >of a CD. > > Not true. That you don't know that is a problem. There are *different* (cd-)image formats, yes. They produce diffrent files (sometimes even more than one) yes. I've deliberatly omitted this to not more complicate the discussion than it was already. Then I rephrase, if I must: An .iso is always the same, an bin/cue is always the same, etc. even different persons create them from the same cd. Better? Probably not. > So load up Easy Cd Creator version 4 and then roxio's version 5 and make > images with both and compare both of them to ones created by nero and > cdrwin. And then maybe throw in clonecd while you're at it. clonecd makes ccd's (and sub's and...) because subchannel data was never important until new features came (cd-text) and copy - protections used that. .iso has no sufficient notion of that, ccd+sub has. They are *different* image formats, having different goals, design philosophies and yes they make different files. That was never my point. <evil mode on>By the way, a nero .nrg is just a "mislabled" .iso, didn't you know that? <evil mode off> Here's a list of all(?) the known image formats and their extensions: http://www.macdisk.com/faqcden.php3#BM20 And here's a small tool that can convert from one into another format. (And mess around with what gets saved and what not) Unfortunately, its no longer developed: http://pages.unisonfree.net/jaelanicu/cic.html HTH. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Thu, 16 Jan 2003 15:34
Date: Thu, 16 Jan 2003 15:34
23 lines
2397 bytes
2397 bytes
[g]: > > [Kjetil Torgrim Homme]: > > this is not clear. who makes the copy? I don't think we have a > > legal precedent in Norway. it certainly is not illegal to own > > or buy pirate copies in physical form. the illegal act is the > > manufacture. > > Since I doo't read norwegian, > > http://www.wipo.org/about-ip/en/ipworldwide/no.pdf > > They signed the geneva convention in 1896 and WIPO in 1974 - > Norway is bound to honor international copyrights. And yes, there > has been international copyright law cases tried, including russia > losing one back in '98 in New York City. this does not address my point. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Fri, 17 Jan 2003 17:03
Date: Fri, 17 Jan 2003 17:03
15 lines
2047 bytes
2047 bytes
[g]: > > Then I suggest you read through WIPO, the Berne Convention and > related international copyright law. Unless you're only > downloading norwegian stuff. Then your own country's copyright > law would apply. bullshit. Norwegian law does not conflict with the Berne Convention etc., that's the whole point of joining it. come on, stop handwaving and show us some proof. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Rene
Date: Tue, 21 Jan 2003 15:20
Date: Tue, 21 Jan 2003 15:20
53 lines
3982 bytes
3982 bytes
g <gypsy@dont.you.dare.spam> wrote: > On 16 Jan 2003 13:50:49 GMT, in <20030116085049.867$To@newsreader.com> > [name suppressed] wrote: > >There are *different* (cd-)image formats, yes. They produce diffre nt > >files (sometimes even more than one) yes. I've deliberatly omitted this > >to not more complicate the discussion than it was already. > > Why? That IS usenet. So please explain to me how - if you try to > download an ISO created by one program, but didnt' get it complete, and > someone else posts an ISO of the same thing made by another program, > xbin is going to realize that both images are exactly the same thing and > get you the missing stuff you need from the second post? Because if you do create an .iso-file, it matters not which program did it. We agree that the same source CD is bit-wise completely the same, no matter if I buy it or you, right? Ok, then when you make an .iso, you dump the content of that disc on your HD - in a specific format. If I create an .iso, I do the same, from the same original data in the same way - even when I use another program. Because that's what an .iso file is : A structured bit-for-bit representation of the original CD. There's no creation date (of the file) there's a creation date of the CD but because our two CDs are the same, so will the content of the .iso file be. In the end, the .iso file is a bit-for bit representation of the CD. There is no room for interpretation there is no "creation string" no creation date for the file (that's file meta data, saved in the filesystem of the os, but not IN the .iso file) For the files IN the .iso file, they are the same because they are read out of the disc which is the same wheter you buy it or I do it. Now if you chose to do a bin/cue, then that won't be the same as my .iso, but it will be the same if I do a bin/cue myself - even when I use another program than you did. Same for ccd save that I only know cloneCD which creates them - but there might be other programs able to create a ccd. > You're not getting my point. You say - anyone create/post any image > with any product and anyone else post image of same product and xbin > will fix all the incompletes and handle all the repost stuff no matter > how the image is posted. And I say no way. Yes that I say, because the CDs are the same and the images, which are nothing but a 1:1 representation of the CDs are too going to be the same. And when that happens, you realize that the files are indeed the same as is their hash - and xBin will pick it up. -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Tue, 21 Jan 2003 20:09
Date: Tue, 21 Jan 2003 20:09
50 lines
3415 bytes
3415 bytes
[g]: > > >bullshit. Norwegian law does not conflict with the Berne Convention > >etc., that's the whole point of joining it. come on, stop handwaving > >and show us some proof. > > Oh, bullshit yourself. It's not too difficult - go read even the > little blurb about WIPO at www.wipo.org/about-ip/en why don't you read the treaty instead? that's what matters. > "The creator - or the owner of the copyright in a work - can > enforce rights administratively and in the courts, by inspecition > of productiono or possession of illegally made - "pirated" - goods > related to protected works. The owner may obtain court orders to > stop such activities, as well as seek damages for loss of > financial rewards and recognition." this does not conflict with what I said. possession of pirated goods is not illegal (they can be seized, though). reproducing or selling is. > Read your own law...in English. guess what, that version isn't authoritative. > The CLEA website is helpful - each county's law is translated. > Http://makeashorterlink.com/?D5E021A23 > > NO005EN Copyright, Act (Consolidation), 12/05/1961 (30/06/1995), No.2, > Chapter 7, Penal Sanctions. > > "Anyone who willfully or negligently...." "Any person who is > willfully or negligently an accessory" "Even if the offender acted > in good faith.." again, this relates to reproduction. you are allowed to make copies of published works[1] for personal use, but you are not allowed to pay someone to make the copy for you. also note that you don't have to own the original you make a copy of. [1] computer programs are exempted. our copyright law should have been updated as per INFOSOC before Christmas, but the work is delayed. from my reading of INFOSOC, little has to change, though. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: David Magda
Date: Thu, 23 Jan 2003 23:02
Date: Thu, 23 Jan 2003 23:02
34 lines
2998 bytes
2998 bytes
Rene <invalid@email.addr> writes: [...] > Yes that I say, because the CDs are the same and the images, which are > nothing but a 1:1 representation of the CDs are too going to be the same. > And when that happens, you realize that the files are indeed the same as is > their hash - and xBin will pick it up. Basically you're saying that the content is the same, just the encoding is different. And assuming xBin (or rather the program that implememnts it) is able to handle UUE, yEnc, Base64, etc., it should be able to piece together the file regardless of which parts were encoded in which format. So although Alice encoded 'mickeymouse.iso' in UUE resulting in 40 parts, and Bod encoded the same CD with yEnc and produced 30 parts; the algorithm should be able to determine that parts 39 and 40 from Alice are the equivalent as part 30 from Bob. Presumably the filenames don't even have to same if a hash of the original content is used in matching pieces together. That way if Alice and Bob both encode the same CD, Alice can name it 'mickey_mouse.iso' and Bob calls it 'steamboat_mickey.iso' and it should not matter. Is this an accurate summary? -- David Magda <dmagda at ee.ryerson.ca> Because the innovator has for enemies all those who have done well under the old conditions, and lukewarm defenders in those who may do well under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: xBin and PARity files
Author: Kjetil Torgrim Homme
Date: Fri, 24 Jan 2003 15:08
Date: Fri, 24 Jan 2003 15:08
32 lines
2839 bytes
2839 bytes
[David Magda]: > > And assuming xBin (or rather the program that implememnts it) is > able to handle UUE, yEnc, Base64, etc., it should be able to piece > together the file regardless of which parts were encoded in which > format. > > So although Alice encoded 'mickeymouse.iso' in UUE resulting in 40 > parts, and Bod encoded the same CD with yEnc and produced 30 > parts; the algorithm should be able to determine that parts 39 and > 40 from Alice are the equivalent as part 30 from Bob. > > Presumably the filenames don't even have to same if a hash of the > original content is used in matching pieces together. That way if > Alice and Bob both encode the same CD, Alice can name it > 'mickey_mouse.iso' and Bob calls it 'steamboat_mickey.iso' and it > should not matter. > > Is this an accurate summary? yes. an xBin-aware decoder won't really care about part numbers, it will look at offsets and fragment numbers and keep track of what is missing. typically, the implementation will maintain a bitmap with one bit for each block (22500 bytes) since that is the smallest unit which can be missing. -- Kjetil T. | read and make up your own mind | http://www.cactus48.com/truth.html
Re: xBin and PARity files
Author: Curt Welch
Date: Fri, 31 Jan 2003 01:25
Date: Fri, 31 Jan 2003 01:25
126 lines
7641 bytes
7641 bytes
I'm continuing to try and cacth up on old articles so excuse me if my comments out out-dated..... Rene <invalid@email.addr> wrote: > Thomas <zak@spam.invalid> wrote: > > As messages get lost individually, it makes sense to use the message > > size as the PAR block size. > > Not really, article sizes fluctuate, even within one posting run of a > file, if the use of the already posted "flattening" algorithm is > encouraged. > > Besides other people are able to fill in, using different article sizes. > But the size of the virtual segment *must* be fixed for a specific xBin > file-hash. There is no need to fix the size of the virtual segment. Why do you say it *must* be fixed? Why not specify it in the meta data so you can adjust it to correctly match the post you are trying to "fix". It can still be used to fix other posts which don't align with your virtual segment as you point out, but I see no reason not to allow it to be matched to the post. > > If articles sizes are different, just pad the short articles with 0's > > before generating the PAR data. But the length of the missing article > > should then be known somehow. > > At the end of the day, I don't want to fix articles, I want to fix the > blocks... Yes, I agree. But at the beginning of the day, the reason we post PAR files is to fix missing articles. So why not allow the poster to match the PAR virtual segments to the file he is trying to fix? > > I think that PAR can only work if postings are done in consistent > > sizes, with the last block not beaing exactly the right size. > > The last segment being smaller is ok. Others not, as far as the > RS-restoration algorithm goes. I've talked about how it will work with the leveling algorithm but I'll repeat just for the fun again. When we level the article size, the first N articles are one size, and the last M are another size. So you simply post PAR files which cover the first N, or the last M. That way, the PAR file is only having to deal with fixed sized virtual segments and we can still use the leveling algorithm. > > > Therefor, for the secure operation of xBin with parity, an xBin > > > compliant newsreader MUST check the hash tree after each attempt at > > > parity repair. That way, problems are detected and a corruption of > > > the file is not possible. > > > > I think that is the only solution. Not feasible to check on servers. > > No feasible check anywhere actually. All you can do is start a repair and > then check to see if that succeeded. > > > It is much more efficient - just like it would be more efficient to > > repost just article 3 of .r13, instead of the whole .r13 (something > > that xBin tries to fix, but we forget again with PAR). > > Well yes, sort of, but PAR's are more universal, since they fix gaps in > different positions for different users. But PARs don't replace reposts, > they complement reposts: "First create some PARs THEN fix individual > holes" > > > I hope you see that having each PAR part span more than a single > > article is inefficient. But the overall idea should work. Any idea on > > how much extra metadata would be involved? If it means the PAR file has > > to be split anyway, that would be bad news. > > Inefficient is the wrong word. I definitly see the advantage could a > par-file be just as big as an article. However, usenets completion isn't > as bad that every second post gets lost, is it? Ok, I might be spoiled, > for I use Curt's service but I don't think a run of say 30 consecutive > articles get lost too often. Add to that that PAR's are something you > selectively fish out if you need one. The beauty again is, that PAR's are > universal. You don't need P01 if you only have one gap. You just take any > one PAR-data which is fully available at your server(s). Well, the problem is that if you have large virutal segments then PAR files become to large to post as a single article. So then you have post a PAR file in N parts. And if you are posting PAR files, you already have the problem thar articles are getting lost, so when one of the N parts gets lost, the rest of the PAR articles for that N article set become useless and just more "wasted bandwidth". You realy want each PAR _article_ to be useful by itself so if you need 3 PARs for a segement, any 3 that make it though will solve your problem. > > means Curt's fear of endless automatic reposts (which I share) does not > > become true. > > Reposts should never occur automatically, using xBin. In fact, that's one > of the things that must be made clear in the specs. The problem remains > if we cut out PAR, its just the same with "normal reposts". Automatic > request sending, yes. Automatic request fullfilling, big no-no. That's not really what my fear is about. What I suspect is that someone will post a 1000 article file (girls gone wild), over a period of three weeks. Two weeks into this someone spots the post and starts to download it. But they already missed the first week (it has expired). Then, when the post is done, they ask if somebody can repost the first week of articles. Someone which downloaded it does this for them. (xBin makes reposts by anyone simple and secure). But someone else came into the post later and missed the second week but got the last week and the repost of the first week. So then they ask someone to repost the middle week. The guy that just asked for the repost of the first week feels he "ows" something to the net so now he helps out by reposting the middle week. This then just keeps going on, and on, and on, for a year or two. People keep catching on late that this post is "in progress" and keep asking for the same reposts week after week, after week. But since everyone that downloads has the power to repost, everyone keeps helping out the people that came after them so it's not like the orginal poster has to keep reposting anything. The fact that xBin makes reposts so simple means that everyone can help out a little simply by posting one article in the series. If there are tools for creating automatic repost requests, then this becomes even more likely. Not because the automated systems would flood usenet, but because a lot more people will probably be willing to help "a little" by sending out a single post. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Curt Welch
Date: Fri, 31 Jan 2003 02:43
Date: Fri, 31 Jan 2003 02:43
446 lines
23882 bytes
23882 bytes
Once again, a reply to a very old article when I haven't read the 50 other aritcles in this thread so ignore my comments if you have moved past these issues already - I'll get caught up at some point. Rene <invalid@email.addr> wrote: > curt@kcwc.com (Curt Welch) wrote: > > In your post here, you seem to assume that each PXX file will cover the > > entire xBin file - i.e. all the virtual segments. I suspect that > > assumtion is not going to work. > > Yes this is my base assumption. Anything else makes it more complex and > is not desireable, imho. It's true that it makes to too complex for the user to undersant what the par data is "for". i.e., he is missing article 1453 out of 4324 so which par file does he need to download? In your system, _any_ complete par fill will do it. In my system, only some of the par files can be used to repare that part of the post. But the complexity for the user is not important because the user won't have to understand any of this anymore. The download tool figures out what par files to use on it's own and tells the user that the following articles can be downloaded to fill in this much of the data. They user just says "yes do it", or "no, don't bother". > > For one, if the external tools are limited to 128 files which they can > > protect, then you will have to create virtual segemnts, and PNN files > > which are a min of the xBin file size / 128. A 2GB xBin will will then > > need each PXX file to be 16MB. That ends up being posted as 32 some > > odd articles, of which 3 get lost, so how to you repair the lost > > articles from the par files? > > We cannot protect PAR files from forgery and we especially cannot protect > them from getting dropped by any server. This is simply the risk of the > PAR files. > > A PAR-file is quite "strong" in the sense that one single PAR file that > makes it through, can repair a gap of its size anywhere in the file. All > you do on the client side therefor is seeing how many PAR's you will need > and then try to get them. But, if you upload 10 super-par files, each which must be broken into 32 articles (so you upload 320 par articles total), and some guy is on a server which is missing 25% of the articles (which is very common), then the odds of any of those 32-article par sets showing up complete is very low (.75^32 or less than 1 out of 10,000). So the guy ends up with 240 par articles, all of which are useless to him. With my way, he ends up with 240 par articles, all of which can be used by him if they help complete a section of the file he has problems with. And with a 75% loss rate, he's probably going to be able to use all those par articles. > > data has to scan the entire 2GB file. And depending on how clever to > > tool is, it will probably end up scaning the entire 2GB file for every > > virtual segment it has to recreate. > > Well when you attemp to repair a file using the PAR-system, you have to > touch every single byte in the file anyhow. (The existing ones will be > read, the missing ones will be read out of the PAR-file and written to - > of course there's calculation too) With the system I propose, that's just not true. I'm talking about being able to send a PAR file which just covers article 100 to 200 in a 5000 article set. If you are missing article 128, then all you need to fix it is one of the 100-200 range PAR articles, and to fix it, you only need to read all the data in the range from article 100 to article 200. You don't need to read the entire file. However, in your system, that's kinda the same as well. If you "virtual segments" spanned 100 articles in this example, then your par files would take 100 articles to post. If I was missing only one article (say 128), then to repaire that, I could download an entire 100 article super-PAR file, but I would not need to use all of it. I would onlu need to use article 128 out of the PAR file, and it would cover bytes in article 128, 228, 328, 428, etc. So those articles are also the only articles I would need to read to reconstruct my missing article. My main point is that it's stupid to make someone download a 100 article super-PAR, when all they need was one article out of that super-set. We need to create a par system to they can identify that one article (or two if it's not aligned correctly), to download instead of having the download the entire super-PAR set. I really wish I was standing in front of a white-board so I could draw pictures here.... > > > +-----+-----+-----+-----+-----+-----+-----+ > > > | A1 | A2 | A3 | A4 | A5 | A6 | A7 | articles > > > o o o x x x x x x x x x o o o o o o o o o <--- xBin blocks > > > � f1 � f2 � f3 � virtual segments > > > +-------------+-------------+-------------+ > > > > This can work. But it means you end up having to download a lot of > > extra par data and do a lot of extra par calculations. If you above > > example, if articles are 500KB each, the your virtial segments, and > > each par file is 1.1MB each. > > Well, you can't get a half PAR-file. Either you get a full one or you > don't have it. The problem is, yes at the edges there is some loss. It's > still better than full-reposts or many reposts. But it is compatible to > reposts. A newsreader can get reposts first, if it sees some, filling > some more gaps and then starts to cry for PAR-data. The big problem is not the edge-loss, but if the virual segments span a lot of aritcles (say 10), then why make them download 10 articles to fix just one missing article? That is where the real waste comes in. If you allow the poster to specify the PAR virtual segment lay-out in the meta-data, then they can fit it to the post they are trying to help someone repair and everyone will then be able to download the same amount of PAR data as the data they are missing. None of this 10 to one problem. i.e. downloading 10MB to repain a 1MB gap. > > If the guy happens to be missing articles A3, and A10, both which span > > virtial segments, he will need to "fix" 4 virtial segments, so he will > > need 4 PAR files of 1.1MB each. So in order to fix 2 missing 500KB > > articles, you are asking him to dowlonad 4.4MB of par data. No one is > > going to like that. > > Yes, it would be clever if virtual segments span complete article > boundaries. But that's not going to be. Article size will be arbitrary > and can change. Actually with the algorithm posted for article-size > levelling, we are even doing this for one single poster. But xBin is > designed for and works with several posters, all sending the file with > different article size. > > Look at PAR-files for "bulk-repair". Fine fixes can be done easier with > reposts. But reposts are place-specific whereas PAR-data is not. > > > And, because your par files are split across multiple articles, you > > risk losing one of those articles and having once again wated usenet > > bandwidth for some sites who have unuseable segements from another > > multipart post. > > Yes. That's the risk. But the number of PAR files is usually quite lower > than the number of reposts. Combining both methods should get the best > out of this, that's why I propose inclusion of PAR-technology into the > xBin standard. > > > I would propose always using "virtual" segments that can fit in a > > single arictle. This way, the PAR files will always be posted as a > > single article, and if some are lost, no harm is done. You just have a > > few less par files to work with. Each par article will still remain > > useful. > > That will limit the size of PAR-files downto 1MB max, preferably > something in the range of 300KB. This then increases the number of > virtual-segments over 256 for any file > 75MB. > > Doable if we can increase the wordsize of the RS-algorithms to 16. > However the assumption of PAR-data being as big as an article max means > that usenet is very bad with completion. But its not really THAT bad, is > it? > > I look at PAR-data as "bonus"-data. Fetch some if you can and need some. > > > And, because I think forcing the PAR repair tool to scan the entire > > 10GB file to replace a few missing 500KB sections is going to be > > unreasonable, (even more so when you find out the PAR was forged and > > has given you crap after all that work downloading it and wiating 20 > > minites for the repair tool to do number crunching over 10GB of data), > > I think we are going to > > If you do a repair attempt, you must go through the whole file, no matter > how small the gap(s) is. That's why I say for small filesizes/gaps, > reposts are better. > > > have to limit the range of virtial segments each PAR article will > > cover. So you might divide the huge xBin file into virtual segments > > which each cover N hash blocks (virtial segements should align with > > hash blocks I think). If the hash block size is 22500 like we have > > talked about, and you wanted to post 400Kish par files, then you could > > use a virtial segment size of 18 hash blocks. You could them post a > > set of par articles, P01, P02, P03 etc which cover the first 100 > > virtial segments in the file (40MB of data), and another set of hash > > files for the next 100 virtual segments, etc. as required, for the > > entire file. > > Uh this adds a layer of complexity without giving much in return. The > power of the PAR-data comes from the fact that they fix any segment > anywhere in the file. Now this power is lessened if they are > "range-locked". Additionally we need to clearly define which range which > PAR-file is for and a newsreader needs to do the same for its gaps. > > Also when the PAR data spans the full file, then after a repair attempt, > you can scan the file, calculate the hashes and then you know instantly > if everything went right, because if so, you can recalculate the > hash-tree and you will land at the root. When this falls away because > PAR-files are range-locked, then you end up with having not all data to > recalculate only these ranges. It is still an all or nothing thing: You > need to have all the PAR-data for all the ranges with gaps until you can > start the fixing AND verifiy it. > > > > To distinguish such a parity file from a normal part of an xBin file > > > however, there must be some change. One way to do that is to > > > "overflow" the offset variable in the message-id of an xBin posting. > > > > Bizzare and not needed. > > Its just my first thought. I don't know the exact alphabet of identifiers > you were already using so I didn't want to introduce my own which would > might have caused collisions. > > > > What's also important is to give the sequence number of the parity > > > data. > > > > Just add $P1$ in the xBin ID. That not only gives you the needed > > parity file sequence number, the presence of tthe $P field tells you > > that this is parity data and not normal data. > > Yes, that's one way it could be easily done. > > > The segment size should be used as it normally is - it tells you how > > much data is in the current article. This however, for parity files, > > becomes your "virtial" segment size because each parity article will > > span multiple virtual segments of this size. > > Exactly. > > > $H hash > > $S file size > > $o segment offset in hash blocks > > $s segment size in hash blocks > > $P parity sequence number > > $N number of segments spanned by parity data (100 in my example > > above) > > > > So, the data out of the full xBin file spanned by this parity data > > would start at the $o offset, and would continue for $N blocks of size > > $s. THis means the Message-ID for a PAR file will only have a few more > > characters than a normal xBin articles. > > Should the message-id not contain only the hash ? This additional > information is only relevant to xBin-compliant software which can get > that out of the xBin-Signature header. > > I thought the data in the message-id is only there to make xBin posts > easily findable. I wouldn't put more than the hash into the message-id. The point is to put _everyhing_ in the Message-Id that the download tool needs to decide if it wants the article. That's what the above does. Once you do that, the ONLY thing a download tool needs to do is XHDR Message-Id of all the articles in a group to decide what articles it needs. If you don't put the other meta data into the Message-ID, what happens when I'm missing 1 article of a 10,000 article post and someone reposts the entire things? My newsreader is going to have to a "HEAD" on 10,000 articles to figure out which of all those articles is the one I need. By adding in the segment offset and size (and for PAR files the par sequence number) the download tool _never_ had to do anything else besides look at the message-id to figure out what it has to download to complete the files it's looking for. It can of course do a head or XOVER on the article before downloading it to check thikngs like the size to make sure it's valid and to make sure headers like X-Bin-Signature are there before wasting the time downlaodting the full article. > > Since we are re-using the $o and $s values, it would be very important > > for all xBin applications to understand that the meaning of $P and $N > > (even if they didn't support parity files) so they didn't mistake this > > as a data segment). > > Yes. That's what I meant by having a xBin-compliant newsreader understand > what a parity file is and what not. > > > But, then again, I guess that isn't as important because this data > > won't pass the hash test so it would be rejected if the program was too > > stupid to understand it wasn't meant to be file data. > > But shouldn't be downloaded if the software can't do anything with it > anyways... > > > But here's the rub. Articles get lost, not virtual segments. And > > though it's not all that hard for software to map the two, and figure > > out which par files on the server are useful and which not, it means to > > fill in holes, you end up haiving to downloading more par data than the > > amount of "holes" you actually need to fill. People having to download > > will prefer reposts instead of par because the par system makes them > > download more. > > Depends. At the end of the day, it's a social issue over which we have no > influence. We can only make it as easy as possible. If I can get a Parity > file now, which is larger but fixes my problem or wait for a smaller > repost, I take the larger parity file. But then again I'm a low-volume > downloader at your site, where your volume-limit for me simply means > "infinite"... others may have to be more conservative. Sure, and even in my system, if the par files were created to fix a different post than the one I downloaded most my data from, then I will have the same problem of par files which do not align with my gaps so I'll be forced to decide if I want to download 2X more than I need to fill in my gaps. But, the more important question is why not allow the PAR files to at least match the last post so you do get a 1-1 download issue instead of a 10-to-1 question. > > For the above example, you post one set of par files, which span only > > the first 20 articles - because they are all the same size. Then you > > post other par files which span the last 14 articles, because they are > > the same size, and then you just repost the last fill if needed and > > don't try to cover it with par data. > > So effectively you are saying we should split the one xBin file into > files depending on the different article sizes and then treat it as three > files (from your example?) If so, we would then get three different "P01" > parity files for the same xBin file (ie we'd get three parity-sequences). > This could all be hidden from the user, but its a complexity-increase > that must be handled at the newsreader software. Right. It would make it far too complex for the user to figure out which par files he needed. It would have to be automated. But that's the entire goal of this in the first place. The tool just tells the user "if you download this N GB of data in Y articles, it will compelete the file you are trying to get, should I do it?". > > So, if you post a set of articles each with this number of hash blocks > > each: > > > > 20 20 20 20 20 19 19 19 19 19 19 19 19 > > > > You can then post par files of size 20 for the first 5 articles, and > > par files of size 19, which cover the last files. And then the par > > files exactly match the data they are replacing, and if you are missing > > 19 blocks of data, you only need to download 19 blocks of par file to > > replace it. > > Yes. But what happens if a xBin posting is expiring and someone other > fills in with a different article size? Oh the mess ! Fixing the Par-size > on article size is no solution in my eyes. Then it reverts to your problem which as you point out, is not a problem. The software just have to figure out what it needs to download and do it. > > If you have N files missing, then you need N par files to replace them. > > But, to generate even one missing file, you will need to use all N of > > your par files. If you have 5 files missing, one par file alone is > > useless and tells you nothing. Once you collect 5 par files, then you > > can try to generate the data. As you generate each missing file, you > > can attempt to check it aginst the parts of the has tree you happen to > > already know. But, depending on alighment with other missing blocks, > > you > > No that's not possible. You can't use 3 out of 5 PAR-files to repair "a > bit". That what I just said above. You need all 5 par files before you can repair anything. I understand that. > It is really an all or nothing thing. You can repair, or you can't. > But you cannot repair a bit. Or repair only the first gap. > > Look at it as the virtual segments taking up space as columns. If you > repair you don't repair "from left to right", ie a vertical line starts > to grow from left to right. But you repair with a "horizontal line" which > slowly grows from top to bottom. > > Or to put it another way: If you have 4 gaps and four parity files and > you'd stop the repair-process 3/4 through, then all the 4 gaps would > contain 3/4 the correct data but would be empty in the last 1/4. > > > may not be able to reject it or to prove it's all valid. So the > > application will be forced to support the idea that blocks have been > > "repalce" but the quality is still unknown. So you have to continue to > > reclaculate missing data not knowing if the work you are doing is a > > waste of time, or not. > > Yes, but if the PAR-files span the whole file, you can recalculate the > hash-tree, and arrive at the file-hash or not, telling you if it was > successful or not. > > > And, with these par files which do not cover the entire file, even if > > you have all the par files you need to reproduce the articles you are > > missing from posts 21-35, and go ahead and reproduce the data, you may > > still not be able to prove or dis-prove that the the articles you > > generated or the par files they came from are valid because you may not > > have the parts of the hash tree you need to figure that out. > > Yes. Another added complexity issue. It's not really any different than your approach. In the end, you need enough PAR data to reconstruct the entire file before you know for sure that all the PAR data is valid. > > So, my point is this, if you are woking on a huge file 20GB which was > > posted as 40,000 500K articles, and you missed a total of 500 parts, > > but you found and downloaded 500 par files to fix all those holes (and > > you have been working on getting this complete file for months), you > > can't know for sure if any of those 500 par files are corrupted or > > fakes, until you fill in all the 500 missing parts and then verify the > > entire hash tree. > > Yes. > > > No one wants to find out a month later that the par file they grabbed > > was bogus, but that another one posted 2 weeks ago that they didn't > > bother to download because it was a duplicate, was in fact the real one > > they needed. > > > > So I think we need a little more help being able to identify bogus par > > files. > > I see no easy way in doing this. Because anyone having the full file > should be able to produce PAR-files, not only the original poster. > > > But, here's an idea. > > > > If we include an X-Bin-Signature for each par file which is the same > > signature you would put on an article spanning the entire par-set, you > > would then have the hash values you need to veryify the entire par-set > > once it was re-constructed (i.e. the 100 article set). > > Yes, but we possibly don't even want the entire PAR-set, I might only > need one single PAR-file. Forcing someone to download an entire set of an > arbitrary length just to be sure is even more wasteful. I think you missed my point. I was just talking about what you would but in the signature of a PAR file. If the PAR data coverd 100 articles, then the signature you need to use in that single PAR article, would be the same signature you would place in a data article which were those 100 articles combined. I really need that white board... > > Maybe there is a way to prove that par data is valid and we just > > haven't thought about it yet. > > Possible, but I simply see no easy way at the moment for this problem. > > > The larger the range of articles you cover with a par file, the more > > likely multiple par files will be needed, and the more likely a bogus > > or forged par file is going to screew things up. So the answer may be > > to use smaller article ranges if you are having problems with corrupted > > or forged par files. > > Not necessarily, the range of par files does not matter. The completion > of the original xBin file does. If it is complete I will never need a > par-file. If only one article out of it got lost, I will only need one > par-file. If more than one article got lost, then it depends on how many > virtual segments the gaps are spanning. Yeah, I don't think you are seeing my point. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: xBin and PARity files
Author: Curt Welch
Date: Fri, 31 Jan 2003 02:48
Date: Fri, 31 Jan 2003 02:48
44 lines
3584 bytes
3584 bytes
Rene <invalid@email.addr> wrote: > curt@kcwc.com (Curt Welch) wrote: > > Rene <invalid@email.addr> wrote: > > > Unless the hashes somehow include the PAR-data, the parity file > > > cannot be trusted to be what it claims to be. This is the fundamental > > > problem here if you want to know if you can trust a PAR-data file. > > > > Yeah. The only straight forward way we saw to figure out if the PAR > > data was valid was to use it to reconstrut something. What were were > > talking about above is what do they we need to include to make sure > > that once you have reconstructed some missing data, that you could tell > > it was was valid. > > > > With no hash data, then you know that once the entire file is rebuilt, > > you can recalcuate the file hash and see if it's correct. But we were > > Yep. But when you use region-lockes PAR data, all you did is the known > divide & conquer method. You divided the one problem into two (or > several) smaller ones. Thus the solution also got "divided" : > > > looking at options of allowing the par tool to figure out the > > reconstructed data was valid or bogus faster. If you included the hash > > of over leaf block, then one you had reconstructed any hash one hash > > block, you would know if the par set you were using was valid or not. > > > > What we have not figured out is how much time is really saved by adding > > all those extra hashs so it's hard to figure out if the hashes are > > "worth it". > > Well why not simply define the regions such as they are power of two's > blocks, so they are (in the full hash tree of the full file) covered > somewhere by one single hash ? Then you'll only need to include that > single hash. Well, that's not bad. But it makes it hard to do that and to also keep the PAR file virtual regions aligned with the orginal articles you are trying to repair. So then you are forcing the PAR articles to be strange sizes and you are forcing the user to download extra PAR data (because of the alignment problems). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Page 1 of 2 • 83 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads