🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #61336

Re: [xBin] some examples (was [FNTP])

#61336
From: Curt Welch
Date: Sat, 12 Oct 2002 06:18
165 lines
9201 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <20021011215658.332$3G@newsreader.com>, Curt Welch
> <curt@kcwc.com> wrote:
>
> > "J.B. Moreno" <planb@newsreaders.com> wrote:
> > > In article <20021011035242.323$xD@newsreader.com>,
> > >  Curt Welch <curt@kcwc.com> wrote:
> > >
> > > -snip-
> > >
> > > > The Message-ID, as is, is 59 characters long.  Large, but workable.
> > > >
> > > > I've included a real airnews ID under it for reference... :)
> > >
> > > Airnews is hardly a good comparison, neither is pine.
> >
> > Yeah, I know.  They are about twice the average message-id size.  But
> > is shows that there are message-ids in use that are longer.
>
> True.
>
> > The main options for making these Message-IDs shorter is to either use
> > a shorter hash, or just put less bits of the real hash into the
> > Message-ID. The full hash can remain elsewhere in the header.  Reducing
> > the bits in the header to say 60 gets it to this (plus I added 18 bits
> > of randomness with is needed but missing from the other example):
> >
> >   <#XB#H/ccfp4olQY#SUPAA#o64#sHX##Fu8@xbin.org>
>
> I'm cool with the longer id, it's short enough that you can write
> ==
> In article <#XB#H/ccfp4olQYjcAXkQdtqNUEMl/jM#SUPAA#o64#sHX##@xbin.org>,
>  Curt Welch posted...
> ==
>
> without exceeding the 72 char line length for unquoted text that is
> used for wrapping.
>
> If I was to suggest reducing the hash bits, it'd be in order to replace
> them with something else -- I'd like to see a hash of the Newsgroups
> and From.  Especially the Newsgroups -- that seems just too useful to
> leave out (it allows servers to filter based upon group and not
> hierarchy).

Yeah, but before long, you've put the entire header into the Message-ID.
Of course this is the danger once you talk about putting anything real
into it.  It's that old slippery slope problem.  Once you start, sometimes
it's impossible to turn back, and the next thing you know, you do have
everything useful from the header hidden in the messaage-id.  Sometimes
it's better not to take that first becuase of this problem.

The newsgroup has little to no use for clients because they can already
get that from XOVER.  And for the sending side of the feed, they have
access to the header, so it's no help there.  The only thing putting
newsgrop information into the header would help is to the receving
end of a feed.  It would allow that side to block groups without having
to send requests to their peers.

But even if you hash the groups, you can't hash the entire Newsgroups:
line. You would have to hash each newsgroup name.  And you would need a lot
of bits per name to prevent false positives with a hash (I would think 30
bits would be a minimum, so that's 5 base64 characters per newsgroup name.
Lots of binary stuff gets cross posted to 5 or so groups, so you are
talking 25 more characters in the Message-Id.  I don't think that would be
wise for a feature.

Also, part of how I can justify the idea of putting anything in the
Message-Id is the thought that this class of messages will get special
treatment at the news server level.  Serevers will deal with binary
messages very differently than they deal with normal text messages.  They
might give them different prioirty and send them over different feed paths
(so small binary part sizes don't allow them to move as fast as text
messages etc.).  They might get checked for validity in transit in ways
that text messages are not, they might get stored in a different type of
spool.  Thought we will start this as a simple special Message-ID on a text
message, over time, I see it as having the potential to transform to a very
different type of message.  And if that happens, having it identified as
"special" in the Message-Id, is I belive appropriate, and not just a game
of moving some header data into the Message-ID to get around the fact that
the NNTP feed protocol gives you nothing other than the message-Id to make
incoming feed decisions with.

In regards to fending of the natural tendency for people to want to put
more into the Message-ID to get incoming feed servers more to work with, we
might talk about extentions to the feed protocol where the receiving side
can get more information in the CHECK messages.

A simple extension could be an XCHECK (extended check), which sends
something like:

  XCHECK <Message-ID> header:value header:value

The semantics would be the same as CHECK but the receiving side would have
more data to work with.  The sending side could just hard-code what gets
sent at the request of the guy receiving the feed.  Common things to send
would include Newsgroups:, or Bytes: (the XOVER value - article size).

Bytes might be so common a thing (and so small) that you might want to
include it on every XCHEWCK command in a compresed format like base64 or
maybe in a lower resoluion value like 1K blocks - so for a 34KB article:

  XCHECK <messageid> 34

If a feed was programmed to send XCHECK but got the command rejected with
a 500 commmand, it would just default to standard CHECK commands for that
feeds.

In general, if the only problem you are trying to solve is to give an
incoming feed more information to work with, a solution like the above
is much better than craming more stuff into Message-Ids.  The above
soluion will work for all articles sent between two machines that know
how to support XCHECK, whereas anything that gets added to Message-IDs will
take a long time to get make it into a large percentage of Message-IDs.

> -snip-
> > > I have two comments just off the top of my head -- (1) if you're
> > > using xbin.org then the "#XB#" at the start isn't required,
> >
> > xbin.org wouldn't be part of the standard.  I think a lot of
> > people/sysadmins/newsreader authors would prefer the option of putting
> > their real domain name there.
>
> IIRC Jeremey replaces the ID, and he said he would be willing to use a
> fixed domain in the interest of clear identification.

I think a lot of people would be willing I bet.   But I think there would
be less resistence if we didn't force a change on the RHS.

Befor we settle on the final format, I bet we can do a little homework
on what algorithms all the most common newsreaders and news servers use to
generate message IDs and find a LHS format which is guaranteed not to be
generated by any of those packages and at the same time, be very very very
unlikely to happen by chance on anything else.  The size of these new
message-ids alone seem like they might help this as well.

> > The intent would be to only define what falls between #XB# and ## in
> > the lfs. And the existence of a correctly formated marker on the LFS
> > is what would define the message to be an xBin format article.  But
> > as I was creating the example it occured to me that using xbin.org
> > could be allowed.  It's a nice short domain name to help keep the
> > overall Message-ID more resonable.  However, the thought of all the
> > binaries posted to Usenet having a domain name that belongs to me is
> > something that I'm not sure I want.
>
> If it goes that far I'd suggest that it be transferred to a more
> appropriate agency.

That could work.

> Of course IIR Jeremy said he'd prefer to use their RHS, so perhaps it'd
> be best to keep the LFS marker even if the xbin.org domain is used.
>
> Hmn, on thinking about it, the "ideal" solution is probably to have a
> top level domain ".bin" or ".ubin" and then let the ISPs reserve their
> own subdomains within that if they liked, but that's probably not going
> to happen anytime soon.

Set up a whole new top level domain and people to adminsiter it and let
ISPs fight over the doman space just so people could post binaries on
Usenet?  I don't think so. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20021012021809.043$Ah@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!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <20021011035242.323$xD@newsreader.com> <111020021936591927%planb@newsreaders.com> <20021011215658.332$3G@newsreader.com> <121020020105387942%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <20021012021809.043$Ah@newsreader.com>
Subject: Re: [xBin] some examples (was [FNTP])
Date: Sat, 12 Oct 2002 06:18:09 +0000
From: curt@kcwc.com (Curt Welch)
References: <20021011035242.323$xD@newsreader.com> <111020021936591927%planb@newsreaders.com> <20021011215658.332$3G@newsreader.com> <121020020105387942%planb@newsreaders.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!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 L3p6zncRw9O6Db,PSna@fT,TI/=@/LXi4VV@5g_mLGFD.geS
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: 164