🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Curt Welch Thu, 10 Oct 2002 05:42
Re: [FNTP] verifying that part reposts belong to a file - solution
#61268
Author: Curt Welch
Date: Thu, 10 Oct 2002 05:42
10 lines
1424 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> To quote:

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.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] verifying that part reposts belong to a file - solution
#61299
Author: Bas Ruiter
Date: Fri, 11 Oct 2002 03:57
18 lines
1565 bytes
> 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?


 Bas Ruiter

-- 

[ l o r d s n o w @home.nl    http://members.home.nl/ l o r d s n o w ]

 Only when the population of 50 mysteriously dropped to 7 did the
 remainder start to suspect Hungry.
Re: [FNTP] verifying that part reposts belong to a file - solution
#61302
Author: Curt Welch
Date: Fri, 11 Oct 2002 05:18
85 lines
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/
Re: [FNTP] verifying that part reposts belong to a file - solution
#61306
Author: Dr.Ruud
Date: Fri, 11 Oct 2002 08:16
27 lines
2260 bytes
Curt Welch skribis:

> 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.

Maybe it's possible to have the par-data coming with the actual data,
in such a way that you would only have to get (for example)
any 8 out of 10 articles from a group to have the whole group.

That reminds me of some old Dutch archiving program of which the
archives would survive damaged sectors on floppy disks.

With that program it was also possible to generate a code-table
from a set of documents, and then use that table to compress
documents of the same type against, so that you would only have
to transfer that code-table once. All I know now is that the
name started with a U. There was nice technical documentation
coming with it (in English).

-- 
Affijn, Ruud


Re: [FNTP] verifying that part reposts belong to a file - solution
#61319
Author: Curt Welch
Date: Fri, 11 Oct 2002 18:04
93 lines
6402 bytes
"Dr.Ruud" <rvtol@isolution.nl> wrote:
> Curt Welch skribis:
>
> > 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.
>
> Maybe it's possible to have the par-data coming with the actual data,
> in such a way that you would only have to get (for example)
> any 8 out of 10 articles from a group to have the whole group.

That think that could be done.  If you want to be able to reconstruct with
8 out of 10 missing it would require that you send at least 20% more data
with each article.  But because of the limited span of the reed-solomon
technolgy, you can't make it _any_ 8 out of 10 for a large post.  You would
end up with something more complex like any 20 for each set of 50.

And because when you loose an article you loose the reed-soloman data
that was posted with it, you would actually need to send more just 20%
additional data.  And it gets complex trying to figure out how to make
that work.  But I suspect there are answers if I think a bit more.

But, adding a large chunk of extra data to each article will break backward
compatibility with uuencode multiparts.  It could be made to work with yEnc
but it would mean the par data could not be in yEnc format or else it would
confuse the yEnc decoders tryting to decode the real data (the ones that
did not know about the new standard yet).

On top of that, the concept of posting PAR data with the orginal post is a
very questionable habit for Usenet.  That's because usenet articles are
lost not because there is some fixed amount of noise in the channel, but
because the channel is generally bandwidth limited.  Articles are dropped
because there are many systems or feed paths that are bandwidth limited.
They allow X bytes of data thourgh ecah day and everything else over the
limit gets dropped.

It's impossible to fix this problem by posting more data.  The more you
post, the less gets through.  PAR data isn't compression.  It doens't make
your post get any smaller.  In the end, for a 10MB post, you need to force
10MB of data though the pipe before the guy on the other side gets a
complete file.  PAR data just helps you get that 10MB though without having
to post as much, and without having to flood the rest of Usenet with too
much extra crap.

PAR data in general is just a way of trying to make yourself stronger in an
out of control crowd of people trying to push though a blocked door.  If
you use PAR data and the next guy doesn't, it just means you get to push
his posts out ot the way so you get through and he doesn't.  It's a way of
giving your data priority over the other guy who hasn't yet upgraded to the
new technology.

Technologys thare are just a game of escalation to see who gets to use
Usenet and who doesn't isn't a very fair way to fix anything.

One advantage of this Message-Id taging system is that it gives news
servers another tools for deciding who gets through and who doesn't.  They
can set up a system (on the receiving side of a feed), that uses a random
hash to decide which _files_ (not articles) get through and which don't.
So instead of being forced to drop random articles (which makes all posts
with a large part count worthless), they can drop random files.  So when
the system decides to drop the file with a hash of jFim7HN it drops all the
posts associated with that file leaving that much more room to get a few
other posts though comopletely.

So we are looking for ways to make thing better for everyone, not just the
ones who are willing to push the hardest.  So because of this, you really
don't want to post PAR data by defult with the orginal post.  But posting
it after the fact when you have specific requests to fix specific missing
parts I think still has some meret.  Articles are sometimes lost or
corrupted for  other reasons besides the normal "bandwidth limits" which
are so common today.

And if we are trying to make it possible to post large files as 1,000 parts
or more, then it really would be nice to support reposts with PAR data
instead of only reposts with real data.

If we do a good job of fixing the problem of news servers having to drop
random articles all the time, then the need for par files would with luck
fade out of existence.  We would be left in a world were the entire file
was dropped instead of random articles.  And if you are on a server which
is unable to get a given file, then it's very clear to the user that they
need to either use a different server, or learn to live without that file.

When you are on a server that has 95 of the 100 parts of a file, it only
makes you want to find a way to "fix" the missing article problem instead
of learning to live without the data.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] verifying that part reposts belong to a file - solution
#61340
Author: Thomas
Date: Sat, 12 Oct 2002 07:32
34 lines
2758 bytes
Curt Welch wrote:

> And because when you loose an article you loose the reed-soloman data
> that was posted with it, you would actually need to send more just 20%
> additional data.  And it gets complex trying to figure out how to make
> that work.  But I suspect there are answers if I think a bit more.

Reed-solomon is not the right choice here. Reed-Solomon also detects errors, and 
that would be a waste of bits here. RS is too powerful here. Think of it as a 
RAID5 setup, where disks "know" whether they are broken or not.

> And if we are trying to make it possible to post large files as 1,000 parts
> or more, then it really would be nice to support reposts with PAR data
> instead of only reposts with real data.

The simplest here would be 2 recipients, missing section 300 and section 400 for 
example. The reposter could post a XOR of these two sections, allowing both 
recipients to reconstruct their own missing part.

This can be extended (can it?) to cover an arbitrary number of missing articles 
in a single repost.

So if N recipients post a message with what they have and what they miss (or the 
have is implied...) someone can generate appropriate XOR posts that would be N 
times as efficient as plain reposting (for recipients each missing different 
pieces).

It would be a good idea to reserve a special offset in the msg-id for this... 
the actual meaning of the data could be encoded elsewhere.


Thomas

Re: [FNTP] verifying that part reposts belong to a file - solution
#61353
Author: Curt Welch
Date: Sat, 12 Oct 2002 17:07
135 lines
7942 bytes
Thomas <zak@spam.invalid> wrote:
> Curt Welch wrote:
>
> > And because when you loose an article you loose the reed-soloman data
> > that was posted with it, you would actually need to send more just 20%
> > additional data.  And it gets complex trying to figure out how to make
> > that work.  But I suspect there are answers if I think a bit more.
>
> Reed-solomon is not the right choice here. Reed-Solomon also detects
> errors, and that would be a waste of bits here.

RS is not a waste of bits.

Let me teach you a bit about how Reed-Solomon works.

It's nothing more complicated than your XOR system below. The reasons it's
used over XOR is that instead of being one equations (XOR in your example)
for calculating one checksum, it defines a set of checksum equations.  If
you are working with 8bit words (which is common), then RS defines 256
different checksum equations instead of just one like you get with XOR.

If you use only one of the RS checksum equations, then you have a system
that is identical in power to XOR.  You have N blocks of data, you
calculate the checksum block C which is the same size as your data blocks.
With only one checksum block, just like with XOR, you can replace any
missing data block, but only one missing data block.

And, like with XOR, the only error detection you can do is recalculate what
the checksum should be and make sure your calculated checksum matches. If
it doesn't match, you know you have an error, but you have no idea where
the error is.  It could be an error in the checksum block or any of the
data blocks.

The power of RS comes when you start adding more checksum blocks.

With 2 checksum blocks, if you find you have an error (because at least one
of the checksums doesn't match) then you have the extra power to locate
which data block is bad by stepping though each block, assume it's bad, use
one checksum block to recalcuate what it should have been, and then use the
other to verify that the new block makes the second checksum valid.  If
only one block is bad, then this is guaranteed to find and fix it.  So with
2 RS checksums for each dataset, you can both detect and correct single
data block errors.

To go further, you create a matrix with your data set like this:

   DDDDCC
   DDDDCC
   DDDDCC
   DDDDCC
   CCCCCC
   CCCCCC

Each D is a data set, and each C is a checksum block.  The Cs on the right
are the row checksums, and the Cs at the bottom are column checksums.

Each row and each column now has the power to detect and correct single
block errors on their own.  But when combined, in the 2D system, you can
fix much more than that because you have a lot more data to work with in
terms of figuring out which blocks are bad and which are good.

RS by itself does not use any more bits than XOR does, it just gives you
the option of doing more interesting things like the above - and it's the
more interesting things you do that wastes the bits.

> RS is too powerful here.
> Think of it as a RAID5 setup, where disks "know" whether they are broken
> or not.
>
> > And if we are trying to make it possible to post large files as 1,000
> > parts or more, then it really would be nice to support reposts with PAR
> > data instead of only reposts with real data.
>
> The simplest here would be 2 recipients, missing section 300 and section
> 400 for example. The reposter could post a XOR of these two sections,
> allowing both recipients to reconstruct their own missing part.

PAR files started as simple XOR PARity blocks.  They then realized it was
stupid not to use RS, and converted to RS checksum blocks.

The problem with posting an XOR block is that it's only ONE checksum block
and only has the power to fix a single missing missing article from the set
which the XOR covers.

The beauty of RS is that you can post multiple checksum blocks for the same
set of articles and anyone (even if they didn't send out a repost request),
can use them to fill holes anywhere in that set.  So if you repost 10 RS
blocks (using 10 different RS equations), for a set of 100 articles, than
any of those RS blocks can be used to fill a single missing article from
the set of 100, or any two of those 10 reposts can be used to fill any two
missing articles, etc.

> This can be extended (can it?) to cover an arbitrary number of missing
> articles in a single repost.

Yeah, it's extended by using Reed-Solomon checksum blocks instead of XOR
checksum blocks.

An XOR checksum can only be used to replace a single failed block.  The
only way to extend XOR to deal with multiple blocks is segment the articles
in different sets (like the 2D table from above). If you wanted to post two
XOR checksums, then you post one which covered all the even number articles
and one which covered all the odd numbered articles.  Then you could
replace up to two articles as long as only one was from the even set, and
one was from the odd set.  You could continue posting XORs for different
sets like that, say one for the first half of the articles, and one for the
second half, and one for every thrid artice, and one for every forth
aricle, etc.  The more you post, the more articles someone could recreate.
If you post 4 XOR articles, that would allow up to 4 articles to be
recreated, but only if the missing articles were correctly distributed
though the XOR sets.

RS is the general solution to this problem.  4 RS checksum blocks can all
be checksums for the same set of articles, and can be used to replace any 4
missing articles from that set.

> So if N recipients post a message with what they have and what they miss
> (or the have is implied...) someone can generate appropriate XOR posts
> that would be N times as efficient as plain reposting (for recipients
> each missing different pieces).
>
> It would be a good idea to reserve a special offset in the msg-id for
> this... the actual meaning of the data could be encoded elsewhere.

Reposting RS checksum blocks is useful and does need to be marked in the
Message-ID somehow.  You need to document which blocks of data the RS
checksum covers, and you need to document which RS checksum algorithm is
used.  You could probably extend that by including a code for an XOR
checksum algorithm, but I see little point to that because RS is just so
much better it's silly to encourage anyone to use XOR.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [FNTP] verifying that part reposts belong to a file - solution
#61533
Author: JanC
Date: Sat, 19 Oct 2002 18:15
21 lines
2033 bytes
"Dr.Ruud" <'t.leven.is.fijn@life.i$.great> schreef:

> That reminds me of some old Dutch archiving program of which the
> archives would survive damaged sectors on floppy disks.
> 
> With that program it was also possible to generate a code-table
> from a set of documents, and then use that table to compress
> documents of the same type against, so that you would only have
> to transfer that code-table once. All I know now is that the
> name started with a U. There was nice technical documentation
> coming with it (in English).

"UltraCompressor"
<http://www.xs4all.nl/~aipnl/>

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Re: [FNTP] verifying that part reposts belong to a file - solution
#61539
Author: Dr.Ruud
Date: Sun, 20 Oct 2002 13:59
18 lines
1598 bytes
JanC skribis:
> Dr.Ruud:

>> That reminds me of some old Dutch archiving program of which the
>> archives would survive damaged sectors on floppy disks.

> "UltraCompressor"
> http://www.xs4all.nl/~aipnl/

Thanks. I found it downloadable at (a.o.)
http://ftp.br.xemacs.org/pub/pc/archivers/
(latest version from Feb 1997)

-- 
Affijn, Ruud


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