🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63376

Re: Power-Post 2003 - requesting input from authorities.. - TRY THIS

#63376
From: Curt Welch
Date: Mon, 20 Jan 2003 02:04
90 lines
6532 bytes
peon@somecompany.com.invalid (Dufus Systems) wrote:
> I've been keeping an eye on the whole XBin thing. Yes, it looks like
> it'll work. Seems like alot of work and it seems like it'll be a long
> time getting implemented/propagated. I was hoping for a simpler solution.
> Even if part #1 had a list of the MD5's of each of the following posts,
> filtering would be alot easier.

xBin is in fact is simpler to implement than that.

On posting, you need to make one scan of the file to be posted, and build
and save the hash tree.  For normal size files (up to a few hundred MB),
this is easily done in-memory.  It's just causes a small delay before the
posting starts.  You don't even have to write the tree out to a file.

When you post, the code is identical to what it does now with regards to
how the article is formated.  The only thing extra you need to do is spit
out a special Message-ID (which no more complex than a printf combined with
a function that nows how to encode a number in Base64 since printf doesn't
support that),  And add on special header, which is nothing more than a
list of values from the hash-tree which is saved in-memory.  The code that
figures out which values need to be included in the header for the current
article is one recursive decent function which is about 5 lines of code.

I've written an entire yEnc/uuencode/xBIn posting tool and the entire thing
is only 1700 lines of code.  Anyone could add this to their current posting
tool in a day or two.  I don't think getting people to add it to their
current tools is going to be an issue of people want it added.

On download, xBin offers great future powers.  But to take advantage of
that requires the download tools be re-written from the ground up.  That
will take time.

But, before that happens, it has great and simple potential for retro
fitting into current download tools.  With xBin, any article, stand-alone,
can be verified and rejected or accepted.  I've not wirtten that code yet,
but like the posting tool, it's the same order of magnatude of complexity.
You simple add this 1500 or so lines of "checking coce" to any current
download tool, and after any article is downloaded, you just use the
routine to check the data before you decide to make it part of the "file".
The code will tell you if the data matches the xBin ID (i.e. full file CRC)
and you can reject the post as  fake before it causes any more problems.

The posting tool will also have to keep track of the xBin ID for the file
it is downloading and make sure all parts not only are valid, but they all
have the same xBIn ID, but that likewise is trivial.

That can be added easilly to any existing tools and would provide great
value in detecting forged posts without the brute force mix-and-max game
that is currently requried when you know one part is bad but have no way of
telling which it is.

The fact that it's easy and harmless to retro-fit into existing tools I'm
sure will make it spread very quickly.

Once a larger percentage of post are showing up with xBin message-IDs, then
the real fun can begin.  The download tools can use that to locate parts
instead of playing stupid games with subjects.  This allows anyone to post
parts of a file and the author and subject become meaningless. The tool has
everything it needs to know simply by looking at the Message-ID.  The user
needs to know a little more to make his decission about "what" to download
- so the subjects will still be used for that.

I suspect that once a few of the major posting and download tools start
using xBin, the conversion to an all-xBin usenet will be swifter than the
yEnc conversion.  Users will _scream_ at the posts to only use xBin tools
for posting - partically if a good tool is available and free.  At leat in
the large multpart binary groups.

But, there are issues that need to be resolved before this takes over
usenet.

We have to figure out a few more things.  the PAR file issue is important.
It doesn't have to be implemented in the first tools, but we need to make
sure we have the correct plan in place for how it will be done and make
sure we haven't done something wrong from the start which will prevent it
from being added later.  And the little things have to be aggreed on like
the block size and the hash function to use and the actual format of the
Message-IDs and the signature header.  These are things we will be foreced
to live with for a very long time and it's crutial to get it right now.

trying to do something quick and dirty like MD5 hash values for each post
in a part 0 article is going to have the same problem.  Anyone can sit down
and create a system tha will work in a day.  But if it becomes a usenet
standard, we could be stuck with it for the rest of our lives (like yEnc).
It's not something you want to rush too quickly into use.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030119210421.509$oE@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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <av0bii$1co$2@puck.litech.org> <20030102011916.320$xR@newsreader.com> <65B5D3426DC71674.B0DBC1CDB021F8FD.9D54124FB2CFD750@lp.airnews.net> <1rwulnt0oc.fsf@vingodur.ifi.uio.no> <E4D03873E494E92E.C2BA96F52E36DB1A.A815175B4CE90D23@lp.airnews.net> <20030115123725.330$yM@newsreader.com> <13449.i13206@archiver.winews.net> <20030119040631.364$EK@newsreader.com> <Xns93086F378D455peonsomecompanycomin@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <20030119210421.509$oE@newsreader.com>
Subject: Re: Power-Post 2003 - requesting input from authorities.. - TRY THIS
Date: Mon, 20 Jan 2003 02:04:21 +0000
From: curt@kcwc.com (Curt Welch)
References: <av0bii$1co$2@puck.litech.org> <20030102011916.320$xR@newsreader.com> <65B5D3426DC71674.B0DBC1CDB021F8FD.9D54124FB2CFD750@lp.airnews.net> <1rwulnt0oc.fsf@vingodur.ifi.uio.no> <E4D03873E494E92E.C2BA96F52E36DB1A.A815175B4CE90D23@lp.airnews.net> <20030115123725.330$yM@newsreader.com> <13449.i13206@archiver.winews.net> <20030119040631.364$EK@newsreader.com> <Xns93086F378D455peonsomecompanycomin@127.0.0.1>
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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com pdGLXJ2dtvCgjX+/GV4a=f3WnP9tt-sD4VV@5g_mrD_oT4mx
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: 89