Article View: news.software.nntp
Article #63137Re: Is this a valid Message-ID?
From: Heiko Studt
Date: Wed, 15 Jan 2003 00:08
Date: Wed, 15 Jan 2003 00:08
282 lines
13144 bytes
13144 bytes
Curt Welch made me laugh on 14.01.2003 23:11:06: This posting is not my best, I think I had repeated me sometimes. If I did so, pls excuse me. The big math is at the end... > concept years ago. Besides, the "one generator" concept proved to cause > more collisions than using a few good random numbers anyway. How? If there is *one* generator, this generator can provide a list with *all* MIDs ever created. Now while creating an older one *can't* be created twice. > > The average > > programmer has no idea how to generate a random number with more than > > about 32 bits of randomness, > Why not give them some help? Give help to one Million (or so) people? In every language you can get? Only if it would be RFC it would be helpfull. > You are forced to use them with Message-IDs > now. We seem to be stuck in a world of people denying that random numbers > are how message-IDs are generated today. AFAIK there are today more than one part in LHS of MIDs. If I remember correctly 'normally' MIDs are generated with time/date. > MD5 of the message being posted is a good way to get 128 bits. Not everyone has a libary to use MD5 and not everyone want to use that libary. BTW: This will change relativly fast after the AUTHINFO MD5 (;-)) will come. Hurry up. ;-P > Throw in more local data (like the last Message-ID generated or anything > else the application can get it's hands on), and it only gets better. How long would those numbers be unique? ;-) random numbers have a random time of comming again. If it would be REAL random you have the chance that the SAME number comes at the same time immidiatelly, it can come one hour later, one day, one year, or never. But you don't have guaranteed this, you only tried to make it more seldom. > > And because of the birthday paradox, you need > > more randomness than people expect. > Only twice as much. But this is my point. The RFC shouldn't say "they > must be unique", they should say something like "it must have N bits of > randomness" and give people some help with understanding the "quality" of > the random bits they use and suggest ideas of how to get good random bits > on an OS which doesn't give you /dev/random. But it MUST be unique... ;-) BTW: In Delphi if you use the RANDOM-function it's not real random, as the helpfile describes itself. And it would make the RFC more complicated than using a simpler method than randomise. > > I still think a better way to tackle this problem is to provide the user > > a standardized way of requesting a message ID from the server in those > > cases where the news reader actually cares about what message ID is used. > Yeah, it would be easier to get the servers to "do it right" than to get > all the clients to do it right. And news servers have access to a very > high volume noise source for helping to generate good random numbers. But > you still have the general problem that people writing servers still need > to know what's needed. The problem is, *which* is the server making the MID? Also some features of clients showing the follow-ups of own postings in a different color/group wouldn't be able to work. There is more than the old 'client'/'server' and 'server'/'server' modell. > > It seems to me that it's doing more than that. You're analysis seems to > > assume a completely hostile network where everyone is using everyone > > else's domain names at random, which isn't actually the case. > But, no, I don't think I'm as far off as you assume. But I haven't really > done an analysis to find out what the truth is. 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. > Not at all. Many news clients which make up message IDs use either the > NNTP server's domain name or the users e-mail address domain name. And > they all end up completing with each other on the LHS. And all they have > to work with for the LHS is the date and random numbers. Using domain > names on the RHS doesn't solve the problem, it only divides the problem > space into multiple smaller problems. Then these newsclients have to be defined as broken in next RFC. > If everyone 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. But the problem is that not everyone doing in this way. And you can't make them doing so if they don't crash with a RFC. > were to generate a 10 bit random number and put it as the RHS, > then you would have a divided the problem space into 1024 somewhat equal > sized domains. If every copy of one of the most popular newsreaders puts > @4ax.com on the RHS, then it has carved out a very large part of the > problem space which now needs to be solved by what is put on the LHS. 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. > 158 4ax.com Agent. It is guaranteed to be unique, cause it's one algorithmic. > 158 reader13.wxs.nl > 174 dreader6.news.xs4all.nl > 197 dreader5.news.xs4all.nl > 287 post-02.news.easynews.com > 312 post-03.news.easynews.com > 369 news4.srv.hcvlny.cv.net Those should be 'internal' names of servers, so they generated the MIDs themselves (client didn't). This is unique too. > 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. > 225 news.wanadoo.nl > 309 news.teranews.com > 369 giganews.com > 1062 news.easynews.com Theese *can* also be MIDs generated by the server, but also by clients. Those clients should be defined as 'broken' by RFC. These MIDs are in complete around 2000 postings which *may* be non-guarenteed dupes. 8.000 MIDs are unique. And even this is parted in 4 different domain-names, so it's near impossible to get a dupe. > But none the less, I think this distribution is typical anyway even though > the sample may be too small and too biased to give accurate numbers for > each domain shown above. And it shows that 1 out of every 10 posts ends > with "news.easynews.com". You are getting binaries? Or are there *so* many ones using easynews with a broken client? > So the problem of generating Messages-IDs for > easynews is the same as the probelm of generating unique messgae-IDs for > 1/10 of all of Usenet. And though a lot might be generated by the easynews > servers, a lot are also probably generated by news clients. These clients are broken by design, ack. > 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. > 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. > do now with the use of domain names and other crap (like Flipper or "fe02") > in the RHS. How to prevent "kid"s using their love-number or love-name as 'RHS' in your system? You can't prevent them, because 'Flipper' can also be a random number as well. Even 'news.easynews.com' may be a random... > 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. > And within each RHS domain-space, we have the same problem which > exists for all of Usenet on the LHS just on a slightly smaller scale. I'm > not aware of any message-id generation algorithm in use today that even > trys to coorditate it's work even with itself. i.e,. every message-id > generated is totally independent of every other one generated. Do any > news-server based algorithms even bother to check for dups in their history > when they generate a message-ID? They should, or they should at least guarentee that they themselve don't use the same LHS again. > 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. You are thinking of the momentary problems of using other domains than allowed. You have to think of 'theoretical' best, as you do with your randomness. If any client would be ok, the momentary system would be ok too. [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. > <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. Only to show that with randomness there is *forever* a final border where you can't generate anymore. Same as IPv4. > <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. > <5kl72voe0ergmi4ejmj8jtc7icogdcakis@4ax.com> This one is generated by Agent, so it has to be unique for all Agent installations around the world. Therefor there are many informations used to generate it. So it became very big in size. But even with the some millions Agent-Users the programmers thought about THIS form (and huge). > I don't really think we should bother changing the RFCs, I just like to > point out that many people don't really understand the issues of what we > are dealing with here. And I'm no math expert, so some of my assuptions > are likely to be mis-guided as well. 14 Bytes (in your example) 10^28 Possibilities After 10^27 MIDs you get dupes 1:1 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. 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. 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? ;-)) ONLY 100.000 MIDs have to be generated, if I didn't make a mistake. With a domain-based system the unique *can* *perhaps* be guarenteed by a host. With random-only this is of course not possible anymore. MFG -- Heiko Studt
Technical Details
Message-ID:
<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!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!news.csl-gmbh.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.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>Show Full Headers
Complete Article Headers
Message-ID: <b02cai.bg.1@Heiko.Studt.dialin.t-online.de> Subject: Re: Is this a valid Message-ID? Date: Wed, 15 Jan 2003 01:08:33 +0100 From: Heiko Studt <UsenetBecky@goldpool.org> 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> 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!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!news.csl-gmbh.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Newsgroups: news.software.nntp Organization: HSR Lines: 281 Reply-To: Heiko.Studt@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1042589837 07 27981 Z2N-E1NGSqYsrp 030115 00:17:17 X-Complaints-To: abuse@t-online.com X-Sender: 0597171868-0001@t-dialin.net X-Mailer: Becky! ver. 2.05.06 with BkNews Plug-In ver. 2.0 User-Agent: Hamster-Pg/1.8