Article View: news.software.nntp
Article #65538Re: How are Article Numbers assigned?
From: Curt Welch
Date: Wed, 28 May 2003 19:37
Date: Wed, 28 May 2003 19:37
107 lines
6976 bytes
6976 bytes
hoh@invalid.invalid (Goran Larsson) wrote: > In article <bb29bu.198.1@news.isolution.nl>, > Dr.Ruud <rvtol+news@hacktic.nl> wrote: > > > Calling a @4ax.com Message-ID 'global unique', > > is that bold or blond? > > It must be unique as demanded by the RFC. If some news servers/clients > cheat and use @4ax.com Message-IDs that are not unique then they should > be corrected. He was referring to the fact that the algorithm used by Agent for the 4ax.com message-ids doesn't attempt to guarantee uniqueness as talked about in the RFC. It instead (seems to) use a hash which reduces the probability of a collision to a very low number. That technique may (and I suspect probably does) produce a lower probability of collision than most algorithms which "guarantee" uniqueness. It is in fact impossible to guarantee global uniqueness on Usenet as specified in the RFCs. This is because all the algorithms that produce unique message-ids are based on a few false assumptions. They assume the clock value is always accurate for example, and that no one else on Usenet will ever produce a message-id with the same RHS, and that there are no bugs in any message-id generating code anywhere on Usenet. Though these assumptions are safe to make in practice and produce fine Message-IDs, they do end up creating a small (but always greater than 0), probability that a collision will happen by accident. For example, someone may boot up a server with the date off by hours because the timezone is not configured correctly and when they realize the mistake and fix it, you could end up with hours of time overlap which could lead to a dup Message-ID. When setting up a new server, you may for a short period of time have two servers generating Message-IDs with the same RHS which could lead to an accidental dup. Some server software may have a default configuration which includes the RHS to use in generating message-ids which must be changed when the server is set up. But because people tend to start the server without changing this at times, you end up with multiple servers on Usenet using the same RHS to generate Message-Ids. And then there's the chance that some abuse software or spam posting software is intentially copying the Message-ID format from other servers in an attempt to hide the true source of the post and in doing so, causes dups by accident. There are tons of reasons like this that make "guaranteed uniqueness" of Message-IDs on Usenet impossible even if you have an algorithm that does guarantee uniqueness in what it produces. Because of this, generating a hash with enough bits may in fact reduce the probability of a collision to a lower value than any of the "guaranteed uniqueness" algorithms. It can produce very low probabilities of collisions even when intentially abused. It's hard to calculate the probability of collision due to these "errors", so it's hard to even estimate the probability of collision for these algorithms which "guarantee" unique Message-Ids. But you can try to do so. For example, if only one message a year gets generated on Usenet under one of the problems outlined above (like from a server with the date set wrong which caused a time overlap with the same server), and the probability of it causing a dup when it happens was one out of a million, and we have 3 million articles a day posted for a year, that means the probability of collsion is around 1 out of 10^6 x 365 x 3 x 10^6 or around 1 out of 10^15. i.e., 1 out of every 10^15 articles posted to usenet will have a dup Message-ID. An Agent Message-ID looks like this: <2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com> That seems to have 34 characters from something like a base 32 character set. Thats around 170 bits of hash (34*5). That's around 10^51 values. The probability of collision for this type of system is based on the total number of articles with Message-IDs generated with the algorithm, so if you use the system long enough, you can guarantee a very high probability of collisions with something posted to usenet in the past. But how long is that to get to the same levels the happen today with the guaranteed unique algorithms (i.e. 1 out of 10^15 from above)? I'm not sure about the math, but I think the set size needed to produce a probability of collsion of 10^15 with a hash size of 10^51 is about 10^[(51-15)/2] which is 10^18 articles. If this math is valid, then this implies you have to generate about 10^18 articles with the 4ax algorithm before the probabilty of a collision reaches our estimate of what the guaranteed unique algorithms are already doing today. If every article posted to usenet used the 4ax algorithm, and there were a constant 3M articles posted per day, you would have around 10^9 articles posted every year. That means it would take (10^18 / 10^9) i.e., 10^9 years, i.e. 1 billion years, worth of articles before the probability of a collison in the set with the 4ax algorithm would be as bad as the current "guaranteed unique" algorithms are producing today. i.e., within an order of magnatude of the age of the oldest rock on earth. Now, because my math may be wrong, and my estimates are certainly numbers pulled out of my ass, you can't prove much from this. But it demonstrates the possibility that the 4ax message-id generating algorithm which doesn't attempt to generate unique ids could actually be doing a far better job of generating good message-ids and preventing accidental collisions than the current algorithms which claim to be generating "guaranteed" unique message-ids. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030528153719.532$6E@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-mailReferences:
<4kf7dvg9je9msdmsngn402t6io4cfl345h@4ax.com> <2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com> <HFL9AB.80y@approve.se> <bb29bu.198.1@news.isolution.nl> <HFLEHC.9Dy@approve.se>Show Full Headers
Complete Article Headers
Message-ID: <20030528153719.532$6E@newsreader.com>
Subject: Re: How are Article Numbers assigned?
Date: Wed, 28 May 2003 19:37:19 +0000
From: curt@kcwc.com (Curt Welch)
References: <4kf7dvg9je9msdmsngn402t6io4cfl345h@4ax.com> <2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com> <HFL9AB.80y@approve.se> <bb29bu.198.1@news.isolution.nl> <HFLEHC.9Dy@approve.se>
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 BFjjQ5P,Y9=Llb0-+Y0vMW9JoizarWOqgWYgD.TXk9POsf9Y
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: 106