Article View: news.software.nntp
Article #61302Re: [FNTP] verifying that part reposts belong to a file - solution
From: Curt Welch
Date: Fri, 11 Oct 2002 05:18
Date: Fri, 11 Oct 2002 05:18
85 lines
5449 bytes
5449 bytes
Bas Ruiter <lordsnow@home.nl> wrote: > > You really shouldn't be posting stuff like that with X-No-Archive set. > > These are the posts that need to be included in the archives. > > Changed it now, removed the X-No-Archive. > > btw - how would PAR (PAR 2) work with this scheme we're discussing at > the moment? Well, lets think about that (I have done this some in the past)... The cheap way is to do what they do now. Break something big into a lot of small files, then you can create par files from the sets of of the little split up files, and then post all of those using our scheem. Each as a different file. But that sucks and is not what we really want people to have to do. So to get par functionality, you have to build this into the standard. Instead of spliting up a large file into sub files, you just post the whole thing as one large post like we have talked about. But then you difine a standard for creating and posting PAR data as well. I haven't thought much about it lately, but you need to bascially define "virtual files" which the par files work against which are part of the standard. i.e. a logical way of defining how the large file is split into sub-sections which are used to generate the PAR data. I guess the obvious choice is one which matches the split used for the posting. So if you are splitting the file into 300K chunks, the par files should work on the same size. But, a PAR file has a limited reach (# files + max # of Par files < 256 for the 8-bit version of reed-solomon). So for example if you made PAR files for the first 200 parts, you could post up to 55 PAR files to fill holes in the first 200 parts. So you could post PAR data, but it would not cover all the 10,000 posts, it would only cover sections of less then 256 parts. The Message-ID of the par files should include the same hash as the real file (I think), because this data is all part of the real file as well. But it needs to be marked in some fashion to show that it's really reed-soloman data for the file and not just straight data. And you need to document the geomeotry of the reed soloman files as well somehow. I guess the obvious way would require you to specify what segment of the large file the PAR data "protected". You would need to specify an offset, the part size, and the number of parts, as well as the PAR file # in the Reed-Solomon sense. So the number of part + the part file # is < 256, to that's real small, and the offset and size are the same things we are posting for normal segemetns. So, I guess this means a PAR (RS) article will just need two small 1 byte numbers added to the Message-Id to document the fact that it is par data and to explain what par data it is. Now the bad thing here is that off hand, I see no way to use the hash system we have talked about to prevent these par files from being forged. Ah, but maybe there is a simple way to do that. WIth the par file, maybe you can include hash data for all the segments the par file is protecting. You could not use the hash data to verify the par file itslef, but once you used the par file to reconstruct a missing data segment, you could use the hash data to verify that the reconstructed data was valid, so that in turn proves the par file was valid. But, if the par files cover 100 posts, and you have 10 par files and 10 missing posts, and then you try to reconstruct the 10 missing posts and find none of them are valid, you have no way of knowing which of the par files is the fake. So someone posting one fake par file could prevent par files from being used to fix holes. But I bet if we think more, we can figure out a simple way to deal with that (other than just not worry about the forge problem which for par files might be a fine option). But, the short answer is that we have to define how par files work with this and build it into the system in order to make them easy to use. And because they are marked in the Message-ID, the download tools can tell what they are, and can tell if they would be of any help fixing holes. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021011011847.958$mp@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014227.515$ke@newsreader.com> <quicqusrm520ic3bepeaorp4m82bum3lab@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20021011011847.958$mp@newsreader.com>
Subject: Re: [FNTP] verifying that part reposts belong to a file - solution
Date: Fri, 11 Oct 2002 05:18:47 +0000
From: curt@kcwc.com (Curt Welch)
References: <hpk9quk1cq0ti2reeu03epd0tgf4b8a8p0@4ax.com> <20021010014227.515$ke@newsreader.com> <quicqusrm520ic3bepeaorp4m82bum3lab@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com Dbi@MegOEFMnO/0CcjpARo./zgIC.klb./_w8_8-n9DOHD
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 84