🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69741

Re: Rejecting bad Message-IDs

#69741
From: Curt Welch
Date: Fri, 13 Aug 2004 20:55
57 lines
3820 bytes
Frank wrote:
> On Fri, 13 Aug 2004 11:52:17 -0000, Andrew - Supernews
> <andrew+nonews@supernews.com> wrote:
>
> >On 2004-08-13, Juergen Helbing <archiver+nsn@i3w.com> wrote:
> >> THX for this detailled info.
> >> Would you be so kind and post some example msg-ids?
> >> I believe that most of them would be <....@127.0.0.1>
> >
> >Nope.
> >
> >99%+ of them are <md5hash@domain> where "domain" is any of the
> >NNTPServer resellers or hosted sites. i.e. teranews, 1usenet,
> >meganetnews etc. It seems there is only one person in the industry who
> >thinks that this is a good idea.
>
> Can you explain why <md5hash@domain> are more prone to be duplicated,
> and is this not the default way Agent generates Message IDs (with a
> far more common domain)?
>
> If so, is it then right to assume it's how NNTPServer generates the
> hash that's the problem, rather than the <md5hash@domain> format
> itself?

Using a hash is not bad.  Using a hash based only on the body of the
message is bad.  And that is what they are doing.  If you hashed the body
and the headers and used that value, it would be ok.  If you could throw
in some more entropy bits from a local source like a microsecond clock or
the bits from the configuration file of the newsreader, or header data from
the group you were posting to, that would be even better.

128 bits however is overkill.  I think the number needed for todays size
Usenet is closer to 40 (what it would take to get articles dropped by
accidential dup ids below the noise floor of all the other reaons
articles get dropped these days).  You need to add about 2 bits per year so
128 bits is about what you might need around the year 2046 if usenet
continues to grow at the current pace.

And hex encoding only puts 4 bits per character which is poor.  It's trival
to get 6 per character reducing the Message-Id to only 7 characters.

So instead of this:

   <fd3f59d344b09c7e398f7d260bff49a0@news.meganetnews.com>

You could use message-ids like this (ignoring the syntax compatibilty
problem):

   <dI8Khj0>

And usenet would still work as well as it works today.  For safety and
growth however, it would be easy to justify more bits, but 128 bits is
around 3 times the number you need for todays usenet.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20040813165517.862$eI@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-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <20040813165517.862$eI@newsreader.com>
Subject: Re: Rejecting bad Message-IDs
Date: Fri, 13 Aug 2004 20:55:17 +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>
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 ,NOEHJ6eVJ2wV@5M_oQ0_PJJ.uAV4-RC8jzMsxSEMgHaN8e
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: 57