Article View: alt.free.newsservers
Article #124471Re: More microsoft usenet spam (another proposed filtering rule)
From: Matija Nalis
Date: Thu, 25 Feb 2010 17:17
Date: Thu, 25 Feb 2010 17:17
190 lines
11439 bytes
11439 bytes
On 2010-02-23, Whiskers <catwheezel@operamail.com> wrote: > There are two key points to this debate. One is that a MID is not required > to be unique *for* *all* *time*, only for as long as articles are likely > to be retained by conventional news-servers. The other is that a I would almost agree, but you'd have to drop "conventional" and "likely". Nowadays we have thing like google groups which (are supposed to) retain articles indefinitely. If we go by RFC1036 sec.2.1.5, it says "... The Message-ID may not be reused during the lifetime of any previous message with the same Message-ID." If google groups archive preserves posts without expiring them (as it at least currently looks like), than that would mean that message-ids MAY NOT be reused (ever). Of course there may be new RFCs and new rules with time (and even the usenet as such might eventually die *gasp*, rendering the point irrelevant :) > character string can be unique in its entirety, without uniqueness (or > limited occurence) being required of *every* *element* of that string; as > long as one element does not occur in any other character string, > uniqueness is achieved. If you're referring to Franks (obvious) statement that if "value" is unique, that it follows that "value@anything" is also unique, I (not anybody else who accepts logic principles) can disagree. I did not ever see that disputed. What was disputed (as I see it) is that if "value" has a collision (ie. is not unique all the time, but just majority of the time), than "value@same_string_for_many_hosts" will have more collisions than "value@different_string_for_each_host". Would you agree with that ? > Unfortunately, confusion seems to have arisen in the purely theoretical > discussion of "degrees of uniqueness"; is something that is unique within > the infinity of possible MIDs that end in @localhost, "less unique" than > something that is unique within the larger infinity of MIDs that have no > constraint upon what appears to the right of the @ sign? Yes, AFAIK it is not disputed by mathematicians that one infinite set (like that of real numbers) is a bigger than another infinite set (for example that of integer numbers only). But that issue is not only theoretical, but unimportant for this issue, as our sets for MID are not infinite at all (RFC 5536, section 3.1.3 for example limits the maximum number of combinations). What is the core issue in my opinion is the third issue, which is: reducing (and in the ideal case of all servers properly configured, totally eliminating) the possibility of collisions. Imagine 4 possible systems: situation (1): there is finite number of hosts 's', each completely independently generating the random numbers of fixed lengths of 'b' bits. The host does not keep the previous numbers generated (of which where are 'n', which grows with time). As time passes, if you look at all the numbers ever outputted, you will get more and more collisions, the chance being 1 : s*n*2^b, until at last all combinations are used up an collision rate will be 1:1. This is algorithm with each host generating random LHS, no history check, and no (or fixed) RHS. situation (2): there is finite number of hosts 's', each completely independently generating the random numbers of fixed lengths of 'b' bits. The each host does however keep the previous numbers IT has generated, and retries internally if it gets collision before outputting the number. As time passes, if you look at all the numbers ever outputted, you will still get more and more collisions - but much less of them that in (1), as you will avoid all collision inside each server (but not across them), until at last all combinations are used up an collision rate will be 1:1. There is a price however - as more and more values are outputted, the time to do internal retry will rise (at beginning there will be no retries, and nearer the end there will be billions of them before each value is outputted. This is CPU and time intensive, and while it can be improved, it has to be reckoned with. Also note that history will grow to extreme sizes) This is algorithm with each host generating random LHS, with history check (and no history pruning ever), and no (or same value for all hosts) RHS. This also seems to be the case you and Franck advocate (if I get it right) situation (3): there is finite number of hosts 's', each completely independently generating the random numbers of fixed lengths of 'b' bits. The each host does however keep the previous numbers IT has generated, and retries internally if it gets collision before outputting the number. Each host however has it's own unique value (RHS, in form of FQDN or similar), and it appends it to the number before outputting it. Now, as each host has unique value (RHS), and each host does internal history check, it is *guaranteed* that the MID (in form of "random_number@RHS") will be unique (that is collision will be 0 sharp) right up until the point the whole 2^b space is exhausted; at which point the collision chance will become 1. As it will never generate collisions (until there is no space for any article anyway as we've used *all* possible MID combinations), and has no negative effects compared to (2) (*except* need for central authority to guarantee unique RHS for each host), it is much preferred to (2). Its only disadvantage is that MID it itself is limited in length (and not just LHS), and RHS does not use all the values available (but only 's' of them), it will exhaust full MID space somewhat before (2) does. This is algorithm with each host generating random LHS, with history check (and no history pruning ever), and each host having guaranteed unique RHS. situation (4): there is finite number of hosts 's', each completely independently generating the random numbers of fixed lengths of 'b' bits. The hosts do NOT keep the previous numbers IT has generated, but it does employ the generator algorithm that guarantees generated number uniqueness (it could be as simple as monotonically incrementing number counter: 1,2,3... although usually it is more complex). Each host also has it's own unique value (RHS, in form of FQDN or similar), and it appends it to the number before outputting it. Now, as each host has unique value (RHS), and each has unique number (LHS), it is also *guaranteed* that the MID (in form of "number@RHS") will be unique (that is: collision will be 0 sharp) up until the point the whole 2^b space is exhausted; at which point the collision chance will be become 1. As it does not have expensive full-history checks it is much faster, easier and more optimized, and has no negative effects compared to (3), it is also preferred to (2). This is algorithm with each host generating random LHS, with smart LHS algorithm requiring no full-history, and each host having guaranteed unique RHS. This is the algorithm that D.Stussy wants to enforce (by too much IMHO). This is also the algorithm that *ALMOST* matches most news servers in nowadays reality. But only *ALMOST*. Now, I would argue that (4) is ideal, and that in this point D.Stussy is right. If *everybody* conforms to the RFC and use full domain name in RHS as prescribed, and you use one server per domain (or, if you have more of them, they have enough knowledge of each other to avoid duplication of LHS), you can actually mathematically *guarantee* that there will never be any posts dropped due to collisions anywhere in the world -- until you've used all of available LHS space (at which moment, the protocol will stop working anyway, as no new posts will be able to propagate anywhere) With (1) or (2) you cannot *guarantee* that there will NOT be collisions - there will be, and there is no way you can stop that (unless you again take some equivalent of per-site-RHS and encode it into LHS, which is just dancing around the words, and not changing the meaning what I'm talking about). But we do not live in ideal world, and people do not *always* use full domain names (or some other guaranteed unique per-server identifier) as RHS, or people maybe even have different hosts with same RHS but without shared LHS history (or shared LHS algorithm that avoids multi-host collisions), so todays situation, while very close to (4) it is not *actually* (4) -- and hence it still has some chance of collisions (for example for posts from multiple machines whose RHS is "@localhost" or "@4ax.com" or alike). But again, much less possible collisions that either (1) or (2). I would however also argue that *dropping* the posts because they did not use (4) is totally counter-productive, as he is not HELPING the articles NOT get dropped. It is IMO better to leave the article to some very small *chance* of being dropped as it's MID might not be unique, that to drop it *at once* and make that chance 100% -- and this is where i think D.Stussy is clearly wrong. >> http://www.spiderrobinson.com/melancholyelephants.html > Thanks for that link; looks like a good read - I'll get to it later :)) I'm sure you'll find it nicer read than this post of mine -- but I could not get it shorter without losing clarity (of which there has been shortage it seems, as I did not manage to propagate what I mean correctly in original posts). -- Opinions above are GNU-copylefted.
Technical Details
Message-ID:
<slrnhodc4g.5b5.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-mailReferences:
<4B781124.5D1CB4EB@Guy.com> <hlf65u$hb6$1@snarked.org> <slrnhnmd3v.7rj.catwheezel@ID-107770.user.individual.net> <7u2h89Fp4tU1@mid.individual.net> <hlhnfo$eq8$2@snarked.org> <7u392pF4prU1@mid.individual.net> <hlhskh$ga7$1@snarked.org> <7u52ogF2c7U1@mid.individual.net> <hlkga9$fhp$1@snarked.org> <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>Show Full Headers
Complete Article Headers
Message-ID: <slrnhodc4g.5b5.mnalis-news@bukavac.carpriv.carnet.hr> Subject: Re: More microsoft usenet spam (another proposed filtering rule) Date: Thu, 25 Feb 2010 17:17:04 +0000 From: Matija Nalis <mnalis-news@voyager.hr> References: <4B781124.5D1CB4EB@Guy.com> <hlf65u$hb6$1@snarked.org> <slrnhnmd3v.7rj.catwheezel@ID-107770.user.individual.net> <7u2h89Fp4tU1@mid.individual.net> <hlhnfo$eq8$2@snarked.org> <7u392pF4prU1@mid.individual.net> <hlhskh$ga7$1@snarked.org> <7u52ogF2c7U1@mid.individual.net> <hlkga9$fhp$1@snarked.org> <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> 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: 190 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 1267118224 30564 2001:b68:ff:12:21c:25ff:fe97:5f8c X-Complaints-To: abuse@CARNet.hr NNTP-Posting-Date: Thu, 25 Feb 2010 17:17:04 +0000 (UTC) User-Agent: slrn/pre0.9.9-111 (Linux) X-Original-Bytes: 11279