Article View: news.software.nntp
Article #63147Re: Is this a valid Message-ID?
From: Russ Allbery
Date: Wed, 15 Jan 2003 01:17
Date: Wed, 15 Jan 2003 01:17
57 lines
3758 bytes
3758 bytes
Curt Welch <curt@kcwc.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> INN does not and never has used random numbers to generate message IDs.
> How does it work?
The INN message ID consists of three components: the current time to
second resolution, the process ID, and a counter that increases by one
with each generated message ID. That's a pretty standard way to generate
unique IDs on Unix.
> And if you run two INN servers on the same box or configued with the
> same RHS domain name, how do they prevent dups with each other?
Different process IDs.
> How does it prevent dups when the sys admin sets the clock 5 minutes
> back?
It is possible but very unlikely to generate a duplicate under that
situation. The same nnrpd process cannot generate a duplicate, since it
uses a counter, so nnrpd would have to exit, the system would have to
either randomly assign process IDs or cycle through the entire process ID
space, another nnrpd process would have to obtain the same process ID, and
someone would have to post at the exact same internal clock second as the
previous post and with the same sequence number.
In general, it's hard to guarantee message ID uniqueness if people are
going to be screwing with the clock (on my systems, I run ntpd, which
doesn't have that problem since it skews the clock instead), but even
given that degree of system trouble, it's extremely unlikely that a
message ID would be regenerated.
Now, if a client uses the server name as its base for message ID
generation, that could cause problems. I don't believe that any clients
are using message ID generation algorithms that make a collision with an
INN message ID possible (the dollar signs are useful), but that's a good
point. I could use something other than the advertised server name as the
base for message ID generation (like the path host).
>> Yes, this was the argument that I lost on both USEFOR and with RFC
>> 2822.
> It's lonely sometimes being the only one that "gets it" isn't it? :)
I don't think it was as much that other people didn't get it as that it
was late enough in the process (for RFC 2822) that no one considered it
worth changing, and then USEFOR wanted to just copy RFC 2822 and not think
about it further.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylu1gb8b5f.fsf@windlord.stanford.edu>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!shelby.stanford.edu!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> <yld6mzb7r0.fsf@windlord.stanford.edu> <20030114200245.757$8h@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <ylu1gb8b5f.fsf@windlord.stanford.edu> Subject: Re: Is this a valid Message-ID? Date: Tue, 14 Jan 2003 17:17:00 -0800 From: Russ Allbery <rra@stanford.edu> 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> <yld6mzb7r0.fsf@windlord.stanford.edu> <20030114200245.757$8h@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!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 56 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1042593420 9898 171.64.13.23 (15 Jan 2003 01:17:00 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:k6T8QaeIXl3jdGp9/QOfGRFIHzM=