Article View: news.software.nntp
Article #63204Re: Is this a valid Message-ID?
From: Curt Welch
Date: Thu, 16 Jan 2003 22:14
Date: Thu, 16 Jan 2003 22:14
84 lines
5664 bytes
5664 bytes
David Magda <dmagda+usenet@ee.ryerson.ca> wrote: > curt@kcwc.com (Curt Welch) writes: > [...] > > 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. > [...] > > Doesn't the birthday paradox assume some sort of random/even > distribution. The chance of one person being born on a certain day, > is the same chance as anyone else. Yes. But the that's not the important factor there. The thing that makes it deceptive is the fact that a collision between any two in the set is what you are looking for instead of a collision between one specific birydayt and any other. i.e., the odds of someone else in the room having your birthday is what you can understand, but the odds of any two people in the room having the same birthday is much higher and that is what creates the birthday paradox. That difference exists even if the odds are not evenenly distributed. > We do not want random MIDs, we want unique. Yes, that's true. My point is just that it's impossible to create guaranteed uniquess so even though we can use algorithms that are 100% guranteed to be unique, that does not make the odds of a collision 0. We are forced to play the "random chance of failure game" by the very nature of the problem. Once you are forced to play that game, then you can solve the problem with random message-ids just as well (and better) than you can solve it with 100% unique algorithms. Some 100% unique algorithams add random information as well for that very reason. > If proper practice would > be for NNTP servers to offer an MID, and clients to accept/use it > there would be better odds of having unique MIDs. Actually, I wonder if that's really true. Since there is a small number of different server software in the world, is it better to have all Usenet Message-IDs generated by only that small handful of algorithms instead of having them generated by hundreds or thousands of different client algorithms? The fact there there are many different algorithms at work might actually help to reduce the total number of problems on Usenet? The more algortihms you have at work, the higher chance that one or more is fundimentally broken, but the less impact it is likely to have if it is??? > Failing that, having an alogrithm that would have the RHS as at least > the domain (or perhaps the the $NNTPSERVER hostname), and the LHS > being a combination of: data, time (to second/millisecond), PID > (where available), and the number of the article posted during the > duration of this program session. All these added, or hashed (SHA-1?), > would have some semblance of uniqueness. If you're hashing you may > want to add the first couple of bytes/lines from the message body. If you hash, then you have moved the uniqueness problem from the realm of "uniquness" into "randomness". And once you do that, you want to make sure the numbers are actually random. And when you have done that, you want to limit the number of random bits used in the Message-ID to something resonable instead of using 4 times as much "just for safety". If you hash a lot of "stuff", like the domain name, and the PID, and the clock, you need to figure out how many "real" random bits that represents and make sure it's greater than the number of bits in the hash function (probably make sure it's more than 2 or 3 times greater). Then you can take only as many bits of the hash as you need instead of using all 120. > Obviously malicious/incompetent things like clock/time changing can't > really be helped. The nice thing about using random bits is that incompetent configuration and administration can be mostly taken out of the equation leaving only incompetent coding problems. > Even the silly day-light savings time can cause problems. Not as likely on Unix systems which correctly keeps it clock in GMT/UTC time, but probably a potential issue on other platforms. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030116171457.403$D6@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!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<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> <20030114220738.208$sD@newsreader.com> <86wul6m26w.fsf@number6.magda.ca>Show Full Headers
Complete Article Headers
Message-ID: <20030116171457.403$D6@newsreader.com>
Subject: Re: Is this a valid Message-ID?
Date: Thu, 16 Jan 2003 22:14:57 +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> <20030114220738.208$sD@newsreader.com> <86wul6m26w.fsf@number6.magda.ca>
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!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com p7K=aJ/NhM7ocoKwgtLW+Y0wZLtiIaDcFvvY9Z9fM53P1Mc4c
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: 83