🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63155

Re: Is this a valid Message-ID?

#63155
From: Curt Welch
Date: Wed, 15 Jan 2003 03:07
252 lines
12500 bytes
Heiko.Studt@gmx.de wrote:
> Curt Welch made me laugh on 14.01.2003 23:11:06:

:) I like that.  We need to make more people in the world laugh.

> But it MUST be unique... ;-)

I'm, not sure if you are giving me a :) or you just don't get it.

Message-IDs can not be unique even though we want them to be.  We "wish
they were unique", but in fact, we can never guarantee it. We can't even
guarantee that a single machine will _always_ produce unqique numbers and
never produce a dup by mistake.  We can prove that an alogrithm will never
produce a dup, but we can't implement the alogrithm in the real world in a
way that allows us to gurantee that there will never be a dup.

Because we are already stuck with this fact, that is what allows us to use
"random numbers" which we know for a fact _will_ produce dups but which
will do so in a very easy to control and predict fashion instead of the the
very hard to predict behavior of guesing how often our other algorthams
will "break" when used in real-world settings.

> The 'big' domains such as free Mail-Provider and other free services in
> mail/news are used often. But the smaller domains AND the FQDNs are used
> more often. And for those there is no problem, because they are not used
> twice or only very seldom.

Yeah, but you miss the point again.  Because _most_ messages are used in
_most_ the heavy duplicated RHS, then the amount of collsion protection it
produces on average for all Usenet message is much less than would
otherwise be expected.  the 20% of messages which have very unique RHSs,
are will protected but the 80% of messages which share 20% of the RHSs are
very poorly proteced from collisions by the use of a RHS in the Message-ID.
My point was that adding somehing like 8 random bits of data in a
Message-ID would give Usenet messages as a whole better protection from
collsions than the current use of domains in the RHS of Message-IDs.
(Wheither 8 is the right number of not is of course debatable, but I think
I showed it was in the ballpark).

> You say above 'there are some not using this standard, so this is a
> problem' Now you say 'if everyone would use another standard'.
> If *everyone* would use first standard (domains/fqdns) there would be
> guaranteed no dupes.

Nope.  You just don't see the real problem here.

Have you ever run your own server?  Have you every tried to write your own
server software?  Have you ever seen how many messages _every day_ get
dropped because of "various problems"?  Messages get dropped because
servers don't have the right newsgroup listed in their active file.  They
get dropped because they have a Message-Id which is not accepted by all
servers.  They get dropped because of the growth of the Path: line made the
article too large after 10 hops.  They get dropped because spam filters
drop them even though they are not spam.

There are no RFCs written to the level that would even make it possible to
write a server that "worked" on usenet without these problems.

> Yes. Of course. The Agent is broken by design in this point. I don't know
> how it makes numbers on left side, but it's ONLY agent using 4ax.com. So
> it is *possible* to guaranetee the unique, if those agents were using
> local informations other than time.

It's not.  It's impossible for two versions of Agent to "guarantee
uniqness" if they can't check each others' message IDs.  It's impossible.
It's impossible.  How many times do I have to say this.

If there were a single machine handing out unque numbers for all Usenet
articles, for all time, then the probabilty of a collsion would become the
probablity of that system failing to work (which is non-zero for all real
machines).  It possible in theory only, in pactice, it's always impossible.

> >  163 fe02
> >  174 FE06
> >  434 Flipper
>
> Those are used by some people and not domains, so they are not using
> standard. They are NOT guarenteed.

fe02 and FE06 seems to be coming from people posting to the Usenetserver
machines of the same name.

> You are getting binaries? Or are there *so* many ones using easynews with
> a broken client?

That's data from a full feed which includes binaries and the machine I
grabbed it from tends to get more binaries then text so that data was
skewed towards binary posts.

> > Dividing the usenet message-ID generation problem into 1/10 is the same
> > as adding something like 3.3 random bits to the Message-ID.  So
> > "news.easynews.com" is something like 100 real bits of information
> > added to the Message-ID but only manages to break the problem space
> > down as much as 3.3 random bits would.
>
> No. ATM you are thinking about 'real' random. Random numbers can also
> come again immidiatelly.

I am not confused by that.

> > 4ax.com is around 5.9 bits of randomness.
>
> No. 4ax.com is used *only* by Agent. So it depends on Agent to not
> generating dupes.

You have no idea what I'm talking about.

Agent seems to use a 33 digit base36 (26 letters pluse 10 digits) random
number on the LHS. That's about 181 bits.

> > The issue is that tons of independent and uncontroled and uncoordinated
> > message-ID generation algorithms are at work sharing the same RHS doman
> > names.
>
> The last thing should be prohibited.

It's impossible to build Usenet any other way.

> > Using unique domain names on the RHS of a Message-ID in no way
> > guarantees uniqueness.
>
> Why not? If *ONLY* your server is using eg news.easynews.com it *can*
> guarentee the unique by simply using Date/Time and a random-number or
> even by using a <1@>, <2@>, <3@>, <4@> and so on.

Only in theory are those systems "perfect".  In practice, they can never
be.  Machines always break.  Beucause of this, there will always be a non
zero probabilty of a duplicate message-id being used.  And since we are
forced to live in that world anyway, you are free to switch to a system
which uses nothing but "random number" to create whatever level of
uniqueness you want.

> You are thinking of the momentary problems of using other domains than
> allowed.

No, I'm thinking of the fact that things never work as planed and with
Usenet, you can't ignore the "problems" and pretend they don't exist like
you are trying to do.

> [Postings not posted/only partly]
> > "accident"?  These numbers are very high.  Thousands per day.
>
> I don't think so. Or those postings have generally problems with RFC,
> like too long headerlines (References!) or so. Problems with distributing
> RFC-Valid messages should be relativly small, like 1 per month.

Yes, they are mostly problems with all the software on usenet not following
the same "standards".  But it's far beyond RFC compliance becuase 1)
nothing follows the RFCs, 2) we don't have RFCs written to the level that
could even make it work if we wanted to.

> >    <u72Kekf0kDjmfZ>
>
> > If my very off-the-cuff calculations are correct, the above is more
> > than enough to "guarantee uniqueness to an accpetable level" on Usenet.
> > But yet, the typical message ID looks like this:
>
> ATM! But think of 6 Billion users in Usenet generating 2 Postings a day.
> Then the above one won't be unique.

The above is 80 random bits.  The odds of a collsion anywhere in the set
picking an 80 bit number randomly 12 billion times is what? I'm not sure
how to calcuate it, but 12 billion is 10^10 or 2^33 which is still a good
bit less than half the bits which is where I think the odds hit 50%.

I think this puts the odds of a Messsage-Id collision for that size
Message-ID for that posting volume still way less than once a year.

> Only to show that with randomness
> there is *forever* a final border where you can't generate anymore.

Well, I think your example was still many orders of magnatude away from
where the problems happen.  But, what you fail to see, is that when we
start to see not 2^33 put more like 2^40 messages posted per day (10,000,
000 posts per every person on the planet per day), the number of collsions
per day does come significant.  But what is still more significant is the
fact that millions of articles per day are still lost for other reaons
first so the fact that 1 article per day is being dropped because of
message-id collsions is not important when 10,000,000 articles are lost
every day for other reasons.

> >    <ilRU9.11573$WT3.4155@news.bellsouth.net>
>
> > Which is 2 to 3 times longer than they probably should be and which
> > might include less random bits than is really needed.
>
> I don't think so.
> The LHS should be generated in Date/Time, but am not sure with that MID.
> So there is NO need of random bits, because it will forever be unique.
> Even after death of univers.

Time is not a universial constant. It's a machine generating unquie numbers
which can break (bet set back 5 minutes) and cause dups.  And that's
assuming you use the same clock for all Message-IDs within the same domain
(same RHS), which just isn't true anyhow.

> 14 Bytes (in your example)
>
> 10^28 Possibilities
> After 10^27 MIDs you get dupes 1:1

The birthday paradox puts dups much sooner than that because it's any
message-id duping with any other message-id in the entire set. You get
significant dups at 10^14.

> This is of course too high...
>
> Let us say the SHOULD is 1:2047 of chance, so there it needs
> around 10^17 MIDs be generated to make it.

Where does 10^17 come from?

I think to get the odds of a collison anywhere in the set you would have to
generate more like only 10^10 Message-Ids.

> 33 * 10^13 per day. (for ten year-unique)
>
> This would be of course enough per day, but a chance of even
> 1:10000000 is very less, look at lotto. There is everytime
> one who wins.

What you are missing is that in that same 10 year period, Usenet would drop
1,000,000 more articles for other reasons than hash collsions so it's not
imporant that these few were dropped because of a hash collsion.

> That would be around 2^23.
> A chance of 2^11 needs 10^17 MIDs
> A chance of 2^23 needs 10^5 MIDs
> So there need only 10^5 MIDs be generated at all, to get a *chance* of
> dupes by randomly. (and you know Murphy? ;-))

You aren't dealing correctly with the birthday paridox which results from
the fact that any MID in the set can collide with any other MID in the set
to cause a problem.  You only only thinking about the probability of on MID
being generated colliding with all the others that had already been
generated.

> ONLY 100.000 MIDs have to be generated, if I didn't make a mistake.

Generationg only two creates odds more like 1 in 10^12 of a collsion I
believe when working with a hash size of 80 bits (10^24)

> With a domain-based system the unique *can* *perhaps* be guarenteed by a
> host. With random-only this is of course not possible anymore.

The *perhaps* is where the logic fails.  It can never be guaranteed with a
domain and time based system.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030114220738.208$sD@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!cyclone.bc.net!newsfeed.telusplanet.net!rip!news.webusenet.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <b02cai.bg.1@Heiko.Studt.dialin.t-online.de>

Show Full Headers
Complete Article Headers
Message-ID: <20030114220738.208$sD@newsreader.com>
Subject: Re: Is this a valid Message-ID?
Date: Wed, 15 Jan 2003 03:07:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <4o6cfxfd2.ln2@thune.mrc-home.org> <1rvg0sbd7t.fsf@vingodur.ifi.uio.no> <8dqRqDeocDD@3247.org> <20030114132134.418$09@newsreader.com> <yld6mz8s6f.fsf@windlord.stanford.edu> <20030114171106.956$rG@newsreader.com> <b02cai.bg.1@Heiko.Studt.dialin.t-online.de>
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!cyclone.bc.net!newsfeed.telusplanet.net!rip!news.webusenet.com!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com x+g9TOYk3gmo1FVo/d2Jr9ug5k7nXlkDsDw_XO5DCFC3UBnsta
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: 251