🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Russ Allbery Mon, 20 Jan 2003 01:18
A short summary of xBin
#63372
Author: Russ Allbery
Date: Mon, 20 Jan 2003 01:18
42 lines
3081 bytes
Here, as promised, is a short summary of xBin as I understand it (in
penance for asking so many questions of people to get it explained to me).
This is a summary leaving out the technical details of implementation,
just to give the basic idea of what it's for.

Corrections obviously welcome.  If this summary proves useful, please feel
free to reuse it whereever.

xBin aims at trying to solve two problems:  ensuring that all the parts of
a binary that one downloads belong to the same file (to prevent DoS
attacks by spoofing parts, to detect corruption, and to serve as an aid in
reassembly), and to provide a way for news servers to be aware of what
articles contain binaries so that they can potentially be treated
differently at the feed level.

Any file to be posted to Usenet is divided into a series of blocks, which
are hashed.  Those hashes are then combined and hashed, recursively,
creating a tree of hash values culminating in a hash that represents the
complete file (and the complete hash tree).  This hash serves to identify
that file from an xBin standpoint.

Each post making up that file would include, in a header, the hashes of
the parts in that post and the necessary details to establish where they
fit into the hash tree of that file and to identify which file they're
part of.

Finally, all posts made using xBin would use special message IDs that
would encode which file they're part of as well as the total size of that
file.  These message IDs would be in a reserved domain so that they can be
recognized by news servers.  The intention is that news servers may wish
to refuse articles at the CHECK phase based on the total size of binary
that the posts contain, and also that news readers can use the information
in the message IDs to find all the posts associated with a particular
binary without having to download other headers or guess based on the
Subject header.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: A short summary of xBin
#63375
Author: Curt Welch
Date: Mon, 20 Jan 2003 01:34
56 lines
3882 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Any file to be posted to Usenet is divided into a series of blocks, which
> are hashed.  Those hashes are then combined and hashed, recursively,
> creating a tree of hash values culminating in a hash that represents the
> complete file (and the complete hash tree).  This hash serves to identify
> that file from an xBin standpoint.

And it works just like any other "normal" hash, like an MD5 of the file.
The xBin "file-id" becomes the unique name of the file, and because of the
cryptographic strength of the hash, it's totaly impractical (bascially
impossible) to create a different file which has the same hash value.

The file length is also included so the full "unique name" of the file
would be the hash combined with the total file length.

> Each post making up that file would include, in a header, the hashes of
> the parts in that post and the necessary details to establish where they
> fit into the hash tree of that file and to identify which file they're
> part of.

Almost.  The header does not include the hash values for the data in the
article.  The header includes the hash values from the hash-tree of all the
data from the file which is NOT in the article.  It does that so you will
have everything you need to recompute the full and unique file-hash so that
you can prove that the data in the article does in fact belong to a file
with a file-hash of XYZ.  It's just as if you you were to include all the
other data in the headers so that you could recompute the full-file MD5
value to prove tha the data was valid.  The beauty of the tree hash is that
we only need to include a few hundre bytes of data in the header instead of
including the entire rest of the file as you would have to if you just used
a straight MD5 of the entire file as it's "unique ID".

> Finally, all posts made using xBin would use special message IDs that
> would encode which file they're part of as well as the total size of that
> file.

> These message IDs would be in a reserved domain so that they can
> be recognized by news servers.

They would be of a unique format so they could be recognized by news
servers.  I think the "reserved domain" approch is not the best way to do
that, but it's one option.

> The intention is that news servers may
> wish to refuse articles at the CHECK phase based on the total size of
> binary that the posts contain, and also that news readers can use the
> information in the message IDs to find all the posts associated with a
> particular binary without having to download other headers or guess based
> on the Subject header.

Yes, that's a nice summary.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: A short summary of xBin
#63415
Author: Dr.Ruud
Date: Mon, 20 Jan 2003 14:08
18 lines
1607 bytes
Curt Welch skribis:
> Russ Allbery:

>> These message IDs would be in a reserved domain so that they can
>> be recognized by news servers.

> They would be of a unique format so they could be recognized by news
> servers.  I think the "reserved domain" approch is not the best way to do
> that, but it's one option.

Being mathematically underchallenged, I read Russ's 'a reserved domain' as
meaning 'a unique format'. <hihi>

-- 
Affijn, Ruud


Re: A short summary of xBin
#64078
Author: Chris
Date: Tue, 18 Feb 2003 23:54
27 lines
2343 bytes
I've just come across these xBin discussions while trying to write an
automated binary downloader.  Turns out to be harder than I thought at
first, but it's fun tinkering around with stuff.  xBin looks very
interesting, but I've got a ton of questions...Please excuse me if these
have been answered in some of the threads here.

What's the status of xBin?  I've been going through some of the Message-Id
convention threads and the PARity file threads, is there any agreement on
the format / contents of the Message-Id header?

Is xBin intended to replace yEnc / uu / base64, or to be used in
conjunction with those encodings?  It seems to me that if you add all the
xBin information to the header and also use yEnc in the message body
itself, you're duplicating a lot of information (filename, file size,
checksums, part number, total parts).  Maybe this question would be better
phrased as: Is xBin intended to be 100% backwards compatible with existing
newsreaders?

Will using xBin mean posters no longer have to use tools like RAR to split
large files into parts?  (actually, I don't really understand why people
do this anyway...to make reposting easier?)

Thanks in advance,
Chris


Re: A short summary of xBin
#64084
Author: J.B. Moreno
Date: Wed, 19 Feb 2003 08:41
23 lines
1709 bytes
In article <pan.2003.02.18.23.54.44.798722@rogers.com>, 
 Chris <nobody@rogers.com> wrote:

> Is xBin intended to replace yEnc / uu / base64, or to be used in
> conjunction with those encodings?

In conjunction.

> It seems to me that if you add all the
> xBin information to the header and also use yEnc in the message body
> itself, you're duplicating a lot of information (filename, file size,
> checksums, part number, total parts).

Yes.

> Maybe this question would be better phrased as: Is xBin intended to
> be 100% backwards compatible with existing newsreaders?

Yes.

-- 
J.B. Moreno
Re: A short summary of xBin
#64085
Author: Chris
Date: Wed, 19 Feb 2003 09:51
32 lines
2285 bytes
On Wed, 19 Feb 2003 03:41:10 -0500, J.B. Moreno wrote:
> In article <pan.2003.02.18.23.54.44.798722@rogers.com>, 
>  Chris <nobody@rogers.com> wrote:
> 
>> Is xBin intended to replace yEnc / uu / base64, or to be used in
>> conjunction with those encodings?
> 
> In conjunction.
> 
>> It seems to me that if you add all the
>> xBin information to the header and also use yEnc in the message body
>> itself, you're duplicating a lot of information (filename, file size,
>> checksums, part number, total parts).
> 
> Yes.
> 
>> Maybe this question would be better phrased as: Is xBin intended to
>> be 100% backwards compatible with existing newsreaders?
> 
> Yes.

Ok, if this is the case...how is parity data going to work?  To be
backwards compatible, you'd need to post separate .par files encoded using
your favorite flavor.  It would be difficult for an xBin poster to
determine exactly what data is being covered in a particular article. 
Difficult, but not impossible if the program understood the parchive file
format well enough.

Cheers,
Chris

Re: A short summary of xBin
#64104
Author: Kjetil Torgrim Homme
Date: Fri, 21 Feb 2003 19:09
32 lines
2339 bytes
[Chris]:
>
>   J.B. Moreno wrote:
>   > Chris <nobody@rogers.com> wrote:
>   > > Maybe this question would be better phrased as: Is xBin
>   > > intended to be 100% backwards compatible with existing
>   > > newsreaders?
>   > 
>   > Yes.
>   
>   Ok, if this is the case...how is parity data going to work?

it won't, so it isn't :-)

>   To be backwards compatible, you'd need to post separate .par files
>   encoded using your favorite flavor.  It would be difficult for an
>   xBin poster to determine exactly what data is being covered in a
>   particular article.  Difficult, but not impossible if the program
>   understood the parchive file format well enough.

you could use xBin in an intermediary step, that is, do the splitting
into RAR parts as before, and PAR files to match.  xBin will not
contain the information needed to identify that these files are
actually related (but an xBin set file could).

that's only stop-gap measure, we'll need a new PAR format and
implementation which fits xBin better.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: A short summary of xBin
#64108
Author: Curt Welch
Date: Fri, 21 Feb 2003 21:43
76 lines
4694 bytes
"Chris" <nobody@rogers.com> wrote:
> What's the status of xBin?

I need to spend more time to make it happen.  I've been busy trying to keep
my news servers running... :)

> I've been going through some of the
> Message-Id convention threads and the PARity file threads, is there any
> agreement on the format / contents of the Message-Id header?

Yeah, that's a lot of agreement, but nothing is final yet. There are still
unresolveed issues.

> Is xBin intended to replace yEnc / uu / base64, or to be used in
> conjunction with those encodings?

xBin is not an encoding, it's really just a way to label binary posts to
make downloading completly automatic.  And to prevent abuse, it adds an
interesting hash system that allows the download tools to both identify,
and verify posts.  but it's all done in addition to the current systems so
it won't break the current posting or downloading tools.

> It seems to me that if you add all the
> xBin information to the header and also use yEnc in the message body
> itself, you're duplicating a lot of information (filename, file size,
> checksums, part number, total parts).

Yes, there's duplication, but the hash system is far far better than the
yEnc CRCs because it not only allows you to veryify the the data was not
corrupted by accident, but it also allows you to veryify that a single
article is in, the part of the file which it claims to be.

> Maybe this question would be
> better phrased as: Is xBin intended to be 100% backwards compatible with
> existing newsreaders?

Yes.  It's just extra data that will be added to the posts which will not
break current newsreaders.

However, once you get stuff posted with xBin, it allows download tools to
do things they can't do now - like deal with a 10,000 part post posted over
a t month period.  And allow anyone to repost segments of large files -
even if the reposted parts are not the same size as the orginial.  The
current download tools won't be able to take advantage of any posts like
that.  So as xBin starts to catch on, those that don't upgrade to the new
technology will be left behind and there will be people who don't want to
upgrade that will be screeming to stop doing partial re-posts, or to not
post the 600MB file as one post but to split it up as rar and PAR files
like it's done now.

> Will using xBin mean posters no longer have to use tools like RAR to
> split large files into parts?

Yes, with good xBin posting and download tools, you will be able to post a
huge file as one file in as many parts as you need to.

> (actually, I don't really understand why
> people do this anyway...to make reposting easier?)

And to make downloading easy.  Many download tools can't download a file
unless all the parts are on the server.  If you post a large file as 1,000
parts over a period of a week, and you are trying to download it from a
server which has only a days worth of retnetion, it will never be
"complete" on that server.  So it works better if you can split it up and
post each split as a small multipart post.

But with xBin, the tools will be able to start downloading when you see the
first article show up.  It will be smart enough to not only find all the
parts, and all the reposts done by different people, but it will be able to
verify, article by article, that the data is in fact the segment of the
huge file it claims to be a part of.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: A short summary of xBin
#64109
Author: Curt Welch
Date: Fri, 21 Feb 2003 22:01
64 lines
4868 bytes
"Chris" <nobody@rogers.com> wrote:
> Ok, if this is the case...how is parity data going to work?  To be
> backwards compatible, you'd need to post separate .par files encoded
> using your favorite flavor.  It would be difficult for an xBin poster to
> determine exactly what data is being covered in a particular article.
> Difficult, but not impossible if the program understood the parchive file
> format well enough.

Yeah, we have been looking at that.

To start with, nothing will change.  Huge files will still be split up and
posted as rar files and parity files like they are now.  xBin will simply
treat each of those posts as separte and unreated files.  xBin will help
prevent fakes within a single r01 file for example, but it won't help you
know if the r01 you got, and the r02 file you got, belong together.  winrar
of course will tell you that - but it won't help you find the "real"
missing parts.

But, as more people get xBin tools, they won't want people to split up the
files, they will want them to be posted as huge 1000 part sets where xBin's
strength will replace what winrar is used for.  Of course anyone without a
good xBin tool will not like this.  The hope is that there will be good
(and free) xBin tools available so no one will have a good reason not to
convert.

But then there's the PAR question.  Are PAR files really needed?  They sure
seem like they are today.  Lots of people swear by them (and with good
reason).  With xBin however, it's unclear how important PAR files will be
because partial reposts (single article reposts) will be simple, and can be
done by anyone, not just the orginal poster.  You can even repost a single
600KB article which was lost as 3 separte 200KB articles.  And the people
trying to download the file won't even know it's happened.  Their download
tool will simply tell them that the post is complete, and grap all the
different sized parts and deliver the final file to them.

People swear by PAR today because it allows them to get the file they want.
If xBin allows people to get the file they want without having to do
anything, why would PAR be needed?  The only reason is that it might help
cut down Usenet volume.  I'm not sure if that's important.

However, assuming PAR will be needed, we have looked at how to do it with
xBin and basiclaly have answers to that.  However, PAR needs to be built
into xBin to make it work so xBIN PAR data will not be backward compatible
with the PAR systems currently in use.  An, on top of that, we have not
been able to find any good ways to secure PAR files and "prove" in an
automated, and low-cost system that the data is valid.  i.e., PAR data will
never really be secure it's use will open more peotential future doors for
abuse which will threaten to kill some of the strengthes which xBin brings
in terms of allowing the tool to do everything and finally get the person
out of the loop in terms of dealing with with multipart posts.  So it's
unclear at this point where all this PAR issue with xBin will go.

What we are trying to do with xBin is make the downloading of "files" from
usenet nothing more complex than presenting a list of "files" to the user,
and allowing them to select one for download.  The tool will take care of
everything else for them without them having to oversee the operation and
mess with splits, and pars, and rars.  We want to hide all that from the
use and make it only an issue which the programmers and admins have to deal
with.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: A short summary of xBin
#64209
Author: DS
Date: Fri, 28 Feb 2003 16:26
34 lines
2462 bytes
Hi "Chris",

I am also writing a binary d/l'er, but automation to come later. It is 
quite confusing and overwhelming at first (more so than you imagine going 
in), but it becomes easier as time goes by. I've been working on it since 
September and am faily far.

The people here in n.s.n have helped me tremendously with all/any questions 
I've had regarding the protocol and undocumented ways of NNTP. So a THANK 
YOU to all the regulars here.

I'd like if you could drop me a line via e-mail at the displayed address, 
(minus all the dots except one of the double-dots) just because I'm 
interested in your project and would like to help if I can with any 
questions you might have. We might also have some knowledge that could help 
each other out.

I only have a few screenshots of mine up. http://home.adelphia.net/
~thisnthat/znc . The top 3 are the old UI as I have updated it in the past 
2 weeks and put up newer pics.

Hope to here from you,

DS

t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t




-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
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