🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #124559

Re: More microsoft usenet spam (another proposed filtering rule)

#124559
From: Matija Nalis
Date: Wed, 03 Mar 2010 19:52
242 lines
13919 bytes
On 2010-03-01, Frank Slootweg <this@ddress.is.invalid> wrote:
> Matija Nalis <mnalis-news@voyager.hr> wrote:
>> As host A and host B and all the hosts up to 's'-th (as specified in
>> examples) has no knowledge of what the other host will do (ie. the
>> internal state of their algorithm), *whatever* the algorithm you
>> choose, they *will* have a chance of collisions. It is mathematically
>> impossible to design such algorithm that will have no collisions
>> unless hosts have internal knowledge of each other state (which they,
>> in NNTP/Usenet news world, they do NOT have).
>
>   You (and Mr. Stussy) keep saying that, but you're wrong. It's
> perfectly possible to have the guarantee of no collisions.

Of course it is possible. I (at least) am not saying it is not possible to
have guarantee of no collision. I said however that in order to be able to
provide such guarantee, a host has to have knowledge of what range of values
other hosts won't be using, so it can be safe using that. And that requires
two things, of which you're (it seems to me) only considering one (more
about it later)

>   I've said it in so many ways, that I don't know how to get that very
> simple, but apparently grossly misunderstood, fact accross.

Thank you for trying, so do I ! :)

> - We have already seen that <unique_to_generator>@<host.domain> is a
>   *world-wide* *guaranteed* unique MID. ('guaranteed' within the limits
>   of a FQDN being unique, more on this at the end of this post.)

Thank you, I'm glad I managed to get that idea across, and am glad you
agree.

>   Where "unique_to_generator" means that the "generator" - i.e. a
>   (specific instance of a) newsreader or News-server - makes sure that
>   the 'numbers'generated are unique within the scope of that generator.
>   A simple sequence number already meets this requirement.

I would however expand the "unique_to_generator" to
"unique_to_all_generators_on_that_host", otherwise you could still get
collisions on the same host. See below for info how it is done on my system
for example. (and so "simple seq. number" would need to be extended to meet
that requirement)

> - If we redefine "host.domain" as "generator_identifier",
>  <unique_to_generator>@<generator_identifier> is also a *world-wide*
>   *guaranteed* unique MID.

Yes, but only if <generator_identifier> *REALLY* is a *world-wide*
*guaranteed* unique MID.

And the problem is next: 

People writing usenet readers/servers has to follow some standard in order
for Usenet to work and them being able to exchange posts. They currently use
RFC1036 for that (or some of the newer ones, but the important part is the
same).

In section 2.1.5, RFC1036 defines how the <generator_identifier> must look
(that it has to be full domain name). It is crucially important. 

Sure, back when the RFC1036 was written, they could use something else for
<generator_identifier> INSTEAD of DNS domain name (as you give example of
MAC addresses, CPUIDs etc). But they did not. 

So we're stuck with current standard if we want to remain compatible -- if
we don't and break it, it might still work most of the time (depending on
which way we decided to break it), but it will break if chance strikes (in
this case, but loosing guarantee that there won't be MID collisions)

Of course, it is possible to design NEW standard, and even to do it in such
a way to be compatible with old one. For example, if you decide to use
ethernet MAC address (which has its problems, but let's use it for argument
sake), you could start your <generator_identifier> with something that
cannot be in DNS, for example: "_ETHMAC:11:22:33:44:55:66". As "_" is
invalid in DNS name, your new standard would never clash with old RFC1036, 
and both old and new MIDs will continue to enjoy guaranteed uniqueness. AND
you've left a space for expansion by some other standard (which might use
"_CPUID: xxxx"  etc)

However, if people try to do such changes ad-hoc *without* documenting and
pushing and gaining acceptance of such standard *beforehand*, they will get
into trouble.

You might have thought that <generator_identifier> of "_ETHMAC:<your_MAC>"
is unique as <your_MAC> is unique, but as I do not know of that idea of
yours, I might decide some other scheme, for example to use 
"_<myhostname>:<somerandomstring>" as a RHS host-unique side.

And it might just happen that <myhostname> will be "ETHMAC" and that my
<somerandomstring> might be "11:22:33:44:55:66", and so our schemes would
clash, and world-wide uniqueness would be lost.

So unless *everyone* agrees what standard they will use, there will be
possibility of clashes. On my servers and clients, I agree to RFC1036, and
use full domain name as <generator_identifier>. And you ?

> - Because we need only one generator identifier, something like
>  <unique_to_generator><generator_identifier_2>@4ax.com
>   is also a *world-wide* *guaranteed* unique MID and so is

The *additional* problem here is, the Forte Agent (as far as I know and have
checked) does not have per-client-unique <generator_identifier_2> (it does
not require you to be online to get MID for your article, or to register and
get some number etc).

I do seem to recall the discussions with Forte developers, and they weren't
arguing that they are making it unique -- just that the chance of collision
is so small that they don't perceive it as a problem (arguably, much more
articles are lost *daily* to non-perfect filters than would be in dozens of
years due to MID collision, so yeah, the point is moot in the first place)

>  <unique_to_generator><generator_identifier_2>@localhost
>   (where "localhost" is the literal *string* "localhost).

A this is even more WRONG -- actually, it is equally wrong, but will
probably result in much bigger chance of collisions, as you are breaking
RFC1036 expectations in a bigger degree (there will be more hosts that could
claim being called "localhost" [and there should be none in networked
environment] than those called "4ax.com" [which is, afterall, valid and
registered domain])

>   So I've - once more - proven that it is perfectly possible to generate
> *word-wide" *guaranteed* unique MIDs of the form
>
>  <unique_to_generator><generator_identifier_2>@localhost
>
> even with an 'algorithm' as simple as a sequence counter.

Provided that you have world-wide agreed-upon <generator_identifier_2>,
which you don't. Maybe one day, when all opposition is crushed by Microsoft
(or Google, or whatever bogeyman will be then), and there is only one
software to access the Usenet, then such uniqueness can be guaranteed without
having a need for those pesky standards (like RFC1036) and cooperation from all
the usenet software writers.

Until then, in order to have possibility of having world-wide host-unique
<generator_identifier_2>, you must have a standard for all programmers to
agree on. Today that is RFC1036 (or proposed RFC5536), and if you choose to
break those, you will break the guarantees they make if everybody agrees to
them.

>   The only point I've not proven above that it's possible to define a
> generator_identifier_2.

Yes, and that is crucial problem. 

You have also not proven that everybody in the world will *agree* to use any
convention you think up for generator_identifier_2, and until they *all* do,
the whole of the argument does not hold water (as without such agreement one
cannot define where is the <unique_to_generator> and where is
<generator_identifier_2>, and there will be collisions due to that).

>   Of course the latter is *trivial*. One could (again) use the
> host.domain, the IP address, the MAC address, the CPU identifier, the
> disk tattoo, etc., etc., ad infinitum, i.e. *anything* which is unique
> to the instance of that platform or/and the instance of the generator on
> the instance of that platform.

You would also have to guarantee everybody has such unique sources. IPv4
address is usually good (even better than host.domain one might argue), but
not always -- not so many years back I was using UUCP for posting to Usenet,
and now I'm using IPv6. There is also local IP ranges (10.x.x.x etc).

MAC address is not good, not everybody connects to the 'net using Ethernet
standard. CPUID is even worse, many net-connected devices do not even run
Intel or such which provides those (look at all those smartphones for
example...)

But the fact remains that current RFCs specify using full domain name, and
not some other algorithm.

>   That's why I've been harping on that FQDN sillyness and gave my IBAN
> analogy: The FQDN is hardly the only unique identifier in the world. I
> don't understand what's so hard to grasp about that fact.

It might be interesting to see the usenet RFC mandate using IBAN as
<generator_identifier>, though :)

>> The current system (RFC1036 for example) solves this mathematical problem in
>> only way possible -- by *KNOWING* (*not* guessing) that his ID will NOT be
>> used by any other system !
>
>   Not that it matters for *my* argument, but it has already been
> discussed that the FQDN does *not* guarantee "that his ID will NOT be
> used by any other system", because *multiple* systems can have the
> *same* FQDN, i.e. all bigger (pools of) servers in this world (like
> www.google.com).

Yes, they can, but they are under same authority (the one that put all the
"A" records in "news.google.com" record), and if google for example decides
to use pool of hosts using RHS-name news.google.com, than it is *their*
(Google's) responsibility to make sure *all* of their news hosts cooperate
and make sure they don't stomp at each other toes. And if they fail to do so
(eg. by installing *unmodified* inn2 or something), they fail to do so on
their own peril.

Most probably they would do it by having each system have unique RHS (eg.
news1.google.com, news2.google.com, ...), but as you said (and I agree),
that is not requirement (but just the probably simplest implementation) --
the could choose for example to use "google.com" as RHS, and make any LHS
end in "_<MAC_of_specific_host>", or use any more complicated algorithm.
Would work as well.

>   *And*, as I mentioned, one can have *multiple* MID-generators
> (newsreaders) on a *single* system, so even *if* a FQDN uniquely
> identified a *system*, it still would not uniquely define a (instance
> of) a *generator* *on* that system.

Of course they can. And than it is their obligation to make sure no other
generator on the single system breaks LHS-uniqueness on that system.

>   Bummer heh? :-)

No, actually. For decades, it has been standard assumption on any UN*X
system (which had usenet access way before microsoft or any other
single-user system had access to it) that dozens or hundreds of users might
be generating message IDs at the same time, and their LHS algorithms reflect
that.

For example, the reader I'm using (slrn) has a function "char
*create_message_id(int *error)" at about line 95 in "src/post.c", and it
takes care of multiple-generators-per-unix-host by encoding timestamp and
PID (among other things) in LHS. As on UN*X systems it is guaranteed by
specification that no two running programs can have same PID on the same
moment, it is thus *guaranteed* that this system will not use same MID even
if thousands of generators are running in parallel (as they very well might
be doing on any bigger multiuser system)


But I do agree with Forte people that the collision chance is so small it is
not worth bothering about - not for an usenet post anyway...

If the damage of such a collision was for example LHC creating a black hole
in the middle of the planet, then one might well get paranoid and insist on
having such *guarantee* that it won't ever happen .

But if the damage is a usenet post getting lost (and malicious hacker has no
incentive to make it happen), well, who really cares that much if one
message in thousand billion or so gets lost due to that ?

-- 
Opinions above are GNU-copylefted.
Technical Details
Message-ID: <slrnhotffu.m59.mnalis-news@bukavac.carpriv.carnet.hr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!not-for-mail
References: <4B781124.5D1CB4EB@Guy.com> <hlkqqv$meo$1@speranza.aioe.org> <hll8ni$iod$1@snarked.org> <hllg48$hi5$1@speranza.aioe.org> <hllmlk$lr7$1@snarked.org> <slrnho78vk.sb9.mnalis-news@bukavac.carpriv.carnet.hr> <7ui5dgFdvtU1@mid.individual.net> <slrnho7ufk.sb9.mnalis-news@bukavac.carpriv.carnet.hr> <slrnho8bt5.8kc.catwheezel@ID-107770.user.individual.net> <slrnhodc4g.5b5.mnalis-news@bukavac.carpriv.carnet.hr> <7ut8ouFij1U1@mid.individual.net> <slrnhonj8n.df4.mnalis-news@bukavac.carpriv.carnet.hr> <7v2789FfjU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhotffu.m59.mnalis-news@bukavac.carpriv.carnet.hr>
Subject: Re: More microsoft usenet spam (another proposed filtering rule)
Date: Wed, 03 Mar 2010 19:52:30 +0000
From: Matija Nalis <mnalis-news@voyager.hr>
References: <4B781124.5D1CB4EB@Guy.com> <hlkqqv$meo$1@speranza.aioe.org> <hll8ni$iod$1@snarked.org> <hllg48$hi5$1@speranza.aioe.org> <hllmlk$lr7$1@snarked.org> <slrnho78vk.sb9.mnalis-news@bukavac.carpriv.carnet.hr> <7ui5dgFdvtU1@mid.individual.net> <slrnho7ufk.sb9.mnalis-news@bukavac.carpriv.carnet.hr> <slrnho8bt5.8kc.catwheezel@ID-107770.user.individual.net> <slrnhodc4g.5b5.mnalis-news@bukavac.carpriv.carnet.hr> <7ut8ouFij1U1@mid.individual.net> <slrnhonj8n.df4.mnalis-news@bukavac.carpriv.carnet.hr> <7v2789FfjU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!not-for-mail
Newsgroups: alt.free.newsservers,news.admin.net-abuse.usenet
Organization: CARNet, Croatia
Lines: 242
NNTP-Posting-Host: 2001:b68:ff:12:21c:25ff:fe97:5f8c
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news1.carnet.hr 1267645950 20365 2001:b68:ff:12:21c:25ff:fe97:5f8c (3
X-Complaints-To: abuse@CARNet.hr
NNTP-Posting-Date: Wed, 3 Mar 2010 19:52:30 +0000 (UTC)
User-Agent: slrn/pre0.9.9-111 (Linux)
Cancel-Lock: sha1:Cl+r0KT9LEREEXoM6ofNNiO5wrs=
X-Original-Bytes: 13754