Article View: news.software.nntp
Article #69748Re: Rejecting bad Message-IDs
From: Curt Welch
Date: Sun, 15 Aug 2004 02:39
Date: Sun, 15 Aug 2004 02:39
54 lines
4495 bytes
4495 bytes
andrew@supernews.com wrote: > When it comes to hashes, overkill is good unless it pushes the cost up > too high. With only 40 bits, at least one hash collision per day is > almost inevitable (a million articles would give you a 40% chance of > collision and the feed size is more like 4 million per day). Worse, on a > server with a moderately long retention, let's say 64 days (ours is much > longer for everything except multipart binaries), then every individual > post would have about one chance in 4096 of being erroneously dropped as > a duplicate. Yeah, 40 bits is low for a full feed server with 64 days of retention. I agree that you would expect to see one out of 4096 articles lost to dups which is about 1000 per day and that's too high. But for a 16 day retention server, that number drops to 1 out of every 64K articles or about 64 articles per day. And that's a better article loss rate than I believe most Usenet servers run at. How many false positives do most sites which run spam filters for example get per day? This is why I was saying a 40 bit hash is all you need to make usenet work about as well as it currently works. You wouldn't want to use a hash that small, that's just around the absolute minimum you could get away with and still have Usenet work about as well as it normally works for most servers. This ignores the problems an archive like Google would face however if they didn't store articles with dup Message-IDs. But, like you said, depending on the cost of the resources being wasted, it's always possible to justify some overkill. To get the 64 day retention server down to the same article loss rate as the 16 day server, you only need to go to a 42 bit hash. To get google down to the same loss rate per day, you need something like a 47 bit hash (based on the guess that the number of articles posted to usenet has been doubling every two years - but since I'm using full feed article counts that's probably high for the case of Google since they only carry text). A 64 bit hash should be expected to produce a single collision for new articles added to Google about once every 2 years if all my math and estimates are correct. > When I built our current servers, I actually looked at whether 64 bits > would be enough for storing message-ids, and concluded that the space > saving over 128 bits wasn't worth the increased chance of an accidental > collision, even though the collision probability isn't actually all that > high. With 128 bits you don't have to worry about collisions at all, and > for my history file the size difference was only about 20%. I use the diablo 64 bit CRC. Increasing to 128 bits would increase my history file size by 50%. I suspect I care less about a few lost articles than you do. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20040814223942.630$4e@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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<20040809200002.772$KV@newsreader.com> <06047.b84200@liebchen.winews.net> <bill-B4CBB1.10463511082004@fireproof.scconsult.com> <20040811160137.822$iC@newsreader.com> <120820041846546295%planB@newsreaders.com> <slrnchnvj0.1bsd.andrew+nonews@trinity.supernews.net> <30346.d84200@liebchen.winews.net> <slrnchparh.1bsd.andrew+nonews@trinity.supernews.net> <411d1d7d$0$29165$c3e8da3@news.astraweb.com> <20040813165517.862$eI@newsreader.com> <411d5d87$0$39188$c3e8da3@news.astraweb.com> <slrnchrtp4.1bsd.andrew+nonews@trinity.supernews.net>Show Full Headers
Complete Article Headers
Message-ID: <20040814223942.630$4e@newsreader.com>
Subject: Re: Rejecting bad Message-IDs
Date: Sun, 15 Aug 2004 02:39:42 +0000
From: curt@kcwc.com (Curt Welch)
References: <20040809200002.772$KV@newsreader.com> <06047.b84200@liebchen.winews.net> <bill-B4CBB1.10463511082004@fireproof.scconsult.com> <20040811160137.822$iC@newsreader.com> <120820041846546295%planB@newsreaders.com> <slrnchnvj0.1bsd.andrew+nonews@trinity.supernews.net> <30346.d84200@liebchen.winews.net> <slrnchparh.1bsd.andrew+nonews@trinity.supernews.net> <411d1d7d$0$29165$c3e8da3@news.astraweb.com> <20040813165517.862$eI@newsreader.com> <411d5d87$0$39188$c3e8da3@news.astraweb.com> <slrnchrtp4.1bsd.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!newsh.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 6o6.E,Wq@n5HJb9=9,kO2YA570tB9itsTjEuxEKYqG9pTNR
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: 54