🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Curt Welch Fri, 11 Oct 2002 07:52
[xBin] some examples (was [FNTP])
#61305
Author: Curt Welch
Date: Fri, 11 Oct 2002 07:52
114 lines
6818 bytes
I've got the beginning of some protoype code working to generate the type
of hash system we have been talking about in the NFTP thread.  It scans a
file, generates the entire hash tree, and they decides how to split up the
file into multipart files, and for now, just spits out fake headers (well,
it's actually connectiong to an NNTP sever and logging, and selecting the
group as well, but I'm not to the point where I actually want to do the
POST commands yet).

Here's an example article header that it's generating (most the stuff is
debug information and not how it would actually look in a real article).
BTW, This test file is about 5MB and it takes about 1 second to scan the
file, and connect to the server and get read to post.

I'm using an SHA1 hash which is 160 bits here.  The hash and other values
are being converted to Base64.  The Offset and Size refeer to what segment
of the entire file is included in this article and are in units of hash
blocks, which on this example was 1024 bytes each.

The Hash-Signature are all the hash values needed to verify that this data
really is part of the file with the given File-Hash. The numbers in front
of each hash value are the range of blocks from the file which that hash
covers.

The number of hash values needed in the Signature is complex because it
depends on the alignment of the data in the article relative to the file.
If you stick with an article size where the number of hash blocks is a nice
power of two, then the number of hash values you need in the signature is
contant for all articles.  But if you don't stick with power of 2 sizes,
then you need to add more hash values.  My code currently figures all that
out and includes whatever is needed.  This one article is the worst case
example from this run because it needed 14 hash values.  Others only needed
6.

The Message-ID includes the full 160 bit hash, the full file size, the
offset (in blocks) for this segment, and the size of this segment.  It has
no random data addeded yet - but that would be required as well.  I used #
instead of ~ because # doesn't cause problems on a Unix command line.  ~
might look nicer.

The Message-ID, as is, is 59 characters long.  Large, but workable.

I've included a real airnews ID under it for reference... :)

Subject: fake-song.mp3 (09/11)
File-Size: 5304320 (base64: UPAA)
Block-Size: 1024
Offset: 3768 blocks (base64: 64)
Size: 471 blocks (base64: HX)
Article-Bytes: 471 KB
File-Hash: /ccfp4olQYjcAXkQdtqNUEMl/jM
Hash-Signature: 0-2047 e4I7TYyZX+AC46oAsNGbo3es8+s
                2048-3071 cgceUJgfpagS/UI+FFeZyKdNjzo
                3072-3583 ezrJkm78eNcswCuEfoG3r5cJ3AE
                3584-3711 Fjlsh7yi1mRknXD72cNwAuAMRJI
                3712-3743 q3qk2ajtJ7FH8lo4/UUifQaO5XE
                3744-3759 HENIqxEZCm4cwkPb4JOCwHtczNA
                3760-3767 su8T4yo5IWJDZb73e7rmcU06wxQ
                4239-4239 kWLP7Nfd7UIsmuJaM5G16EQCAkk
                4240-4255 M2U73zYqLFz4kHCUCtJTWFnY/u4
                4256-4287 aW4RW7+nxAuljcy1yYUtGkCaUcU
                4288-4351 ojmlY/89uOuxG8LmYcM9Bc1iAy4
                4352-4607 xyXZNCPzdh9OpxC1WiAzpd/H5mo
                4608-5119 SBJY44qQ8PhxaFHmSeMqZDhbf1k
                5120-5179 Uua7QECo7dOkc06p85SkzRDc/So
Message-ID: <#XB#H/ccfp4olQYjcAXkQdtqNUEMl/jM#SUPAA#o64#sHX##@xbin.org>

Message-ID: <FE88B2BE7FE02017.23410DB6222218E4.EE9D873B867EB5CD@lp.airnews.net>


Here's a example of the same file using a block size of 45K. Note that only
9 hash values are needed now in the worse case file from this example.  And
the Message-ID is two bytes shorter because the block numbers are smaller
(larger block means less blocks total in the file).  But the sizes of the
articles varried from 495KB for the large ones to 410KB for the last one.

Subject: fake-song.mp3 (03/11)
File-Size: 5304320 (base64: UPAA)
Block-Size: 46080
Offset: 22 blocks (base64: W)
Size: 11 blocks (base64: L)
Article-Bytes: 495 KB
File-Hash: Ze4E38t6JYcSypFH/I16cm6Kygk
Hash-Signature: 0-15 0qNCHhaQ/C34WM8bdy5Ja8h0DCM
                16-19 3JzzYKNxpak2C/QZEw5qkqiu6Xk
                20-21 djhQoqi4mLGAnEqcjkUA+c2sIWY
                33-33 lO5JrpTW9I7stZCs8b+2TcylWuU
                34-35 +sWkIoA2GDb8EwNp3c9F5tnoJt4
                36-39 8HEnogea7Z5N696d77BtMKzgQjs
                40-47 Xifpeio1c7xpJB89hD3TX+/mxMw
                48-63 C9tHD38dBLXsPXAbqM9naLMJqzA
                64-115 J02wl8irh/8AwlEosnKkeFCANyA
Message-ID: <#XB#HZe4E38t6JYcSypFH/I16cm6Kygk#SUPAA#oW#sL##@xbin.org>

Why 45K you ask?  Because uuencoded data as 45 file bytes per line.  So if
we want to be able to support uuencoded data without requring a strange
short line at the end of each file, we need to use a block size which makes
it easy to get an even number of uuencoced lines in each file.  If you want
to keep the block sizes aligned on disk blocks, and allow uuencode lines to
fall nicely into each block, you need to go with either 45K to align with
1K blocks or half that to align with 512 byte blocks.  I kinda liked the
45K number.

YOu could pick a smaller block size and force anyone trying to do
uuencoding to pick a number of blocks for each file which makes sure the
line size and block size align, but if you just pick 45K blocks as the
standard, anyone producing uuencode output doesn't have to think about it.
Each 45K block will be aligned for them and they can put any number of 45K
blocks per file and know it will always be aligned on uuencode line
boundries correctly.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [xBin] some examples (was [FNTP])
#61327
Author: J.B. Moreno
Date: Fri, 11 Oct 2002 23:36
23 lines
1826 bytes
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.

> Subject: fake-song.mp3 (09/11)
> File-Size: 5304320 (base64: UPAA)
> Message-ID: <#XB#H/ccfp4olQYjcAXkQdtqNUEMl/jM#SUPAA#o64#sHX##@xbin.org>

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, and (2) for the
alternative representation of the various sizes, I'd suggest using the
MIME parameter, like File-Size 5304320; base64=UPAA

-- 
J.B. Moreno
Re: [xBin] some examples (was [FNTP])
#61329
Author: Curt Welch
Date: Sat, 12 Oct 2002 01:56
69 lines
4160 bytes
"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.

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>

That gets it down to 45 characters which is much closer to a typcial
Message-ID in use today.  Here are our message-ids from this thread:

  <111020021936591927%planb@newsreaders.com>

  <20021011213243.293$Wv@newsreader.com>

> > Subject: fake-song.mp3 (09/11)
> > File-Size: 5304320 (base64: UPAA)
> > Message-ID: <#XB#H/ccfp4olQYjcAXkQdtqNUEMl/jM#SUPAA#o64#sHX##@xbin.org>
>
> 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.  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.

> and (2) for the
> alternative representation of the various sizes, I'd suggest using the
> MIME parameter, like File-Size 5304320; base64=UPAA

Yeah, all that stuff is just debug output for my code right now.  Most
would not even be in the headers of the final version.  The intent at this
point is to not worry too much about the format and just focus on the
technology to see how well it can work.  Once I/we have a better understand
of how well it works and what does and doesn't need to be done, then we
focus more on the what really needs to be where and what the best format
will be.

If the general technology looks like something that can take off, I'm
hoping we can find a format for the information (including the body
encoding) that would have a chance of becomming a MIME standard at some
point.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [xBin] some examples (was [FNTP])
#61335
Author: J.B. Moreno
Date: Sat, 12 Oct 2002 05:05
77 lines
4350 bytes
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).

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

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

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.

-- 
J.B. Moreno
Re: [xBin] some examples (was [FNTP])
#61336
Author: 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/
Re: [xBin] some examples (was [FNTP])
#61341
Author: J.B. Moreno
Date: Sat, 12 Oct 2002 08:56
78 lines
5094 bytes
In article <20021012021809.043$Ah@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> > In article <20021011215658.332$3G@newsreader.com>, 
> >  Curt Welch <curt@kcwc.com> wrote:
-snip-
> > 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.

I understand what you're saying, but I disagree -- I think this is a
pretty short slope, with not a lot extra that would be valuable to
include.

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

Right.  Exactly.

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

I'm not the one running a full feed, but (a) aren't most binaries
posted only to a single group, and (b) why guess on the number of bits
needed, it ought to be a fairly straightforward test if you've got the
hashing code set up (start with 18 bits, run it across the entire group
list, if the number of hashes is less than the number of groups, up the
bit allocation).

If (a) is correct then there is an additional benefit from hashing the
entire Newsgroups header -- namely it allows you to filter out
cross-posted binaries.

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

Once the format has been settled and implemented, you're right, but
remember that part of the plan for getting it off the ground is for
servers to drop binaries that aren't appropriately tagged.

That means that you don't have to worry about partial implementations
to begin with -- servers can make sure that the id's are conformant.

This fits in with someone elses suggestion that the structure be
partially fixed, allowing you to leave off tags for those fields, but
have tags included as part of the "extras" which are allowed for in the
future if it's ever expanded (the above suggestion for the ng hash
could be one of the extra's, if it's present the binary is posted to a
single group, if not either it wasn't or the posting software decided
not to include that info).

-- 
J.B. Moreno
Re: [xBin] some examples (was [FNTP])
#61355
Author: Curt Welch
Date: Sat, 12 Oct 2002 17:25
69 lines
4656 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> I'm not the one running a full feed, but (a) aren't most binaries
> posted only to a single group,

I don't know.  I'd have to study that.  But almost everything in the mp3
groups is cross posted to many groups, like this from the first one I
checked:

  Newsgroups: alt.binaries.sounds.mp3, alt.binaries.sounds.mp3.1990s,
              alt.binaries.sounds.mp3.indie

The mp3 groups might be somewhat unique in this practice.

> and (b) why guess on the number of bits
> needed, it ought to be a fairly straightforward test if you've got the
> hashing code set up (start with 18 bits, run it across the entire group
> list, if the number of hashes is less than the number of groups, up the
> bit allocation).

The group list constantly changes.  Just because you don't get a collision
today doesn't mean one won't show up tomorrow.  You have to do the above
test and then add a lot more bits beyond the point you are stop seeing
collisions in the set of groups today.

> If (a) is correct then there is an additional benefit from hashing the
> entire Newsgroups header -- namely it allows you to filter out
> cross-posted binaries.

Only if you were using a positive filter intead of a negative one.  Someone
wanting only a few groups could make good use of the hash by accepting only
a small set of hash values. And collisions for them would not be as
dangerous because it would tend to sometimes leak a random group (which by
odds would tend not to have a lot of volume).  But if you wanted to use the
hash to block a few high volume groups, hasing the entire group list would
mean anything cross posted in your blcoked group would leak through. That
would not be good.

The idea of hashing the newsgroup name to make it shorter is an interesting
one which might have use somewhere, but I don't think it has a hope of
making it into the message-id.

> Once the format has been settled and implemented, you're right, but
> remember that part of the plan for getting it off the ground is for
> servers to drop binaries that aren't appropriately tagged.

I don't expect many large servers to do anything like that until the system
is will established.  More likely, small sites runing mostly just text with
a few binaries might start allowing only binary files marked like that so
they can easily filter them if the volume gets too high.  Or other sites
might give priority to binaries posted like that to encourage their use.

> That means that you don't have to worry about partial implementations
> to begin with -- servers can make sure that the id's are conformant.
>
> This fits in with someone elses suggestion that the structure be
> partially fixed, allowing you to leave off tags for those fields, but
> have tags included as part of the "extras" which are allowed for in the
> future if it's ever expanded (the above suggestion for the ng hash
> could be one of the extra's, if it's present the binary is posted to a
> single group, if not either it wasn't or the posting software decided
> not to include that info).

Yeah, the idea of using tags in the format is just to allow that type of
felexibility.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [xBin] some examples (was [FNTP])
#61364
Author: Bas Ruiter
Date: Sat, 12 Oct 2002 19:38
29 lines
2241 bytes
> I don't know.  I'd have to study that.  But almost everything in the mp3
> groups is cross posted to many groups, like this from the first one I
> checked:
> 
>   Newsgroups: alt.binaries.sounds.mp3, alt.binaries.sounds.mp3.1990s,
>               alt.binaries.sounds.mp3.indie

This is just following the .mp3 FAQ.

Posts are to be posted to (1) the main group, (2) the decade group, and
(3) the "type of music" group.

They also recommend not posting to more than 5 groups or so, to prevent
posts being lost by cross-posting limits filtering.

the .mp3 heirarchy is kinda unique in this respect.. it's fairly well
organized.



 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: [xBin] some examples (was [FNTP])
#61376
Author: J.B. Moreno
Date: Sun, 13 Oct 2002 01:31
83 lines
5147 bytes
In article <20021012132501.396$rd@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> > I'm not the one running a full feed, but (a) aren't most binaries
> > posted only to a single group,
> 
> I don't know.  I'd have to study that.  But almost everything in the mp3
> groups is cross posted to many groups, like this from the first one I
> checked:
> 
>   Newsgroups: alt.binaries.sounds.mp3, alt.binaries.sounds.mp3.1990s,
>               alt.binaries.sounds.mp3.indie
> 
> The mp3 groups might be somewhat unique in this practice.

Probably so -- since the problem for most binary groups is too many
post, not too few, it's probably misguided.

Also if you order the groups before hashing them, even crossposting
isn't out of the question if it's limited to a subset of groups.

> > and (b) why guess on the number of bits needed, it ought to be a
> > fairly straightforward test if you've got the hashing code set up
> > (start with 18 bits, run it across the entire group list, if the
> > number of hashes is less than the number of groups, up the bit
> > allocation).
> 
> The group list constantly changes.  Just because you don't get a collision
> today doesn't mean one won't show up tomorrow.  You have to do the above
> test and then add a lot more bits beyond the point you are stop seeing
> collisions in the set of groups today.

True, but in practice you'll be adding bits by 6, not 1 or 2.  Also,
remember it's not all groups, just the ones where binaries are posted
(in fact this will help prevent binaries from being posted to
inappropriate groups).

> > If (a) is correct then there is an additional benefit from hashing the
> > entire Newsgroups header -- namely it allows you to filter out
> > cross-posted binaries.
> 
> Only if you were using a positive filter intead of a negative one.  Someone
> wanting only a few groups could make good use of the hash by accepting only
> a small set of hash values. And collisions for them would not be as
> dangerous because it would tend to sometimes leak a random group (which by
> odds would tend not to have a lot of volume).  But if you wanted to use the
> hash to block a few high volume groups, hasing the entire group list would
> mean anything cross posted in your blcoked group would leak through. That
> would not be good.

Given the number of groups, it seems possible to use a postivie test
without being too time consuming -- making it possible to filter based
upon individual groups and not whole hierarchies.

Small ISPs could carry a binary feed that automatically configures
itself to carry groups that were requested, and not have the bother of
a full feed.  Better yet, it'd allow ISPs do something even more useful
-- retain a limited number of full files (as little as 1 file) for
"unused" groups, and use the bandwidth savings for groups with heavy
traffic (hmn, in fact that could be expanded so that the more times a
group is accessed and files downloaded, the greater it's allocation for
bandwidth and server space).


-snip-
> > This fits in with someone elses suggestion that the structure be
> > partially fixed, allowing you to leave off tags for those fields, but
> > have tags included as part of the "extras" which are allowed for in the
> > future if it's ever expanded (the above suggestion for the ng hash
> > could be one of the extra's, if it's present the binary is posted to a
> > single group, if not either it wasn't or the posting software decided
> > not to include that info).
> 
> Yeah, the idea of using tags in the format is just to allow that type of
> felexibility.

Yeah, but my main point was that you could reduce the required size by
eliminating the tags for "required" fields.

-- 
J.B. Moreno
Re: [xBin] some examples (was [FNTP])
#61381
Author: Klaas
Date: Sun, 13 Oct 2002 03:04
19 lines
2032 bytes
After careful consideration, Curt Welch muttered:

> "J.B. Moreno" <planb@newsreaders.com> wrote:

>> If (a) is correct then there is an additional benefit from hashing
>> the entire Newsgroups header -- namely it allows you to filter out
>> cross-posted binaries.

<> 
> The idea of hashing the newsgroup name to make it shorter is an
> interesting one which might have use somewhere, but I don't think it
> has a hope of making it into the message-id.

I too think it is a bit much for the m-id.  A hashed newsgroups: header in 
a command such as the XCHECK you thought up earlier would accomplish the 
same goal, since it is then and only then that the information is needed.

-Mike
Re: [xBin] some examples (was [FNTP])
#61389
Author: Curt Welch
Date: Sun, 13 Oct 2002 03:59
58 lines
4119 bytes
Klaas <spamhole@klaas.ca> wrote:
> After careful consideration, Curt Welch muttered:
>
> > "J.B. Moreno" <planb@newsreaders.com> wrote:
>
> >> If (a) is correct then there is an additional benefit from hashing
> >> the entire Newsgroups header -- namely it allows you to filter out
> >> cross-posted binaries.
>
> <>
> > The idea of hashing the newsgroup name to make it shorter is an
> > interesting one which might have use somewhere, but I don't think it
> > has a hope of making it into the message-id.
>
> I too think it is a bit much for the m-id.  A hashed newsgroups: header
> in a command such as the XCHECK you thought up earlier would accomplish
> the same goal, since it is then and only then that the information is
> needed.

Yeah, that thought went through my head as well.  But to be honest,
newsgroup names aren't all that long most the time anyway, so it seems to
me that the idea of hashing them for that would not save enough bytes to
justify the compexity of the protocol. I've just been staring at traces for
incomming feeds and the thought of not being able to see the group names if
they were being sent with an XCHECK just seems wrong.  For example, what if
you only wanted to accept articles which were in your active list but
wanted to log newsgroups which you were turning down articles for.  If they
were hashed you would know it's not a group you wanted, but you would have
no idea what the group name actually was unless you accepted the article
just to find out.

Speaking of watching traces of incoming feeds, did you know that cyclone,
it seems, likes to send TAKETHIS commands with a zero length article?  Like
this:

   TAKETHIS <mid>
   .

I believe it's happening because the feed is backlogged so far that the
article has expired from the spool of the transit machine.  Once again I
find something going on with NNTP that I never would have expected.

It could also be that the sending site just has something broken,
(webusenet), but I suspect it's just that the article has expired and
that's the way it deals with it.

My code ignores the null article nicely, but it's not smart enough to know
that this means the article will never show up, so the Message-ID should no
longer be in the cache as "comming soon".  It sits there for 60 seconds
before it's expired which prevents anyone else from sending it in that
time.  There's always something else that needs to be adjusted when it
comes to makeing this stuff work.  And NNTP looks like such a simple
portocol. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
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