🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
72 messages
72 total messages Page 2 of 2 Started by Mike Castle Tue, 14 Jan 2003 01:46
Page 2 of 2 • 72 total messages
Re: Is this a valid Message-ID?
#63176
Author: Russ Allbery
Date: Wed, 15 Jan 2003 21:08
16 lines
1952 bytes
Machinate <this.is@fake.com> writes:

> Well, you sort-of could, by writing a requirement into new RFCs that
> says you must include some exotic character on the LHS that is invalid
> in e-mail addresses.

The syntactic specification for message IDs is exactly the same as that
for e-mail addresses, so you can't do that without changing the format of
message IDs or e-mail addresses.

-- 
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.
Re: Is this a valid Message-ID?
#63179
Author: David Magda
Date: Wed, 15 Jan 2003 23:19
42 lines
3186 bytes
curt@kcwc.com (Curt Welch) writes:
[...]
> You aren't dealing correctly with the birthday paridox which results from
> the fact that any MID in the set can collide with any other MID in the set
> to cause a problem.  You only only thinking about the probability of on MID
> being generated colliding with all the others that had already been
> generated.
[...]

Doesn't the birthday paradox assume some sort of random/even
distribution. The chance of one person being born on a certain day,
is the same chance as anyone else.

We do not want random MIDs, we want unique. If proper practice would
be for NNTP servers to offer an MID, and clients to accept/use it
there would be better odds of having unique MIDs.

Failing that, having an alogrithm that would have the RHS as at least
the domain (or perhaps the the $NNTPSERVER hostname), and the LHS
being a combination of: data, time (to second/millisecond), PID
(where available), and the number of the article posted during the
duration of this program session. All these added, or hashed (SHA-1?),
would have some semblance of uniqueness. If you're hashing you may
want to add the first couple of bytes/lines from the message body.

Obviously malicious/incompetent things like clock/time changing can't
really be helped.

Even the silly day-light savings time can cause problems. But if the
same program is running (with the same PID) when the time is changed,
then the counting of messages would prevent that. If the DST occurs,
and the program is restarted then at least it will have a different
PID.

Of course does Windows have PIDs?

-- 
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well 
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Is this a valid Message-ID?
#63181
Author: Nick Suan
Date: Thu, 16 Jan 2003 04:43
7 lines
1553 bytes
David Magda wrote: 

> Of course does Windows have PIDs?

Processes that run on an NT-based version of windows have a PID, I assume 
that processes running under versions of win9x do as well.
Re: Is this a valid Message-ID?
#63182
Author: greg andruk
Date: Thu, 16 Jan 2003 05:38
17 lines
2410 bytes
Jøhnny Fävòrítê it means "Machinate" wrote:

> Russ Allbery wrote:
>> You can't address this without changing either the format of the
>> message ID or the format of an e-mail address, neither of which is at
>> all likely to happen.

> Well, you sort-of could, by writing a requirement into new RFCs that
> says you must include some exotic character on the LHS that is invalid
> in e-mail addresses.  That's the feeble test I use now to separate the
> two: message IDs almost always have more numbers, dollar signs, etc than
> e-mail addresses.

Just as effective, given that "the RFCs say so" doesn't tend to have much 
influence in what actually appears in newsreaders, would be to encourage 
people to use the mailto: and news: URL syntax in bodies.
Re: Is this a valid Message-ID?
#63183
Author: greg andruk
Date: Thu, 16 Jan 2003 05:41
10 lines
1935 bytes
Heiko Studt wrote:


> Those GUIDs are designed for 1 or perhaps 100 million or even 1 billion numbers.
> I don't think the algorithmic will generate unique 'good' MIDs with traffic like 
> nowaday's.

You only need to generate one GUID for each user profile, not every 
message.  Date-time information can take over from there.
Re: Is this a valid Message-ID?
#63184
Author: greg andruk
Date: Thu, 16 Jan 2003 05:46
11 lines
1905 bytes
Nick Suan wrote:

> David Magda wrote: 

>> Of course does Windows have PIDs?

> Processes that run on an NT-based version of windows have a PID, I assume 
> that processes running under versions of win9x do as well.

Yes, they do.  Both systems also have IDs for individual threads.
Re: Is this a valid Message-ID?
#63185
Author: Heiko Studt
Date: Thu, 16 Jan 2003 06:32
13 lines
1524 bytes
David Magda made me laugh on 16.01.2003 00:19:03:

> Of course does Windows have PIDs?

Thread-IDs. Yes.


MFG

-- 
Heiko Studt

Re: Is this a valid Message-ID?
#63193
Author: Claus Färber
Date: Thu, 16 Jan 2003 16:25
16 lines
1910 bytes
Russ Allbery <rra@stanford.edu> schrieb/wrote:
> 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.

Message-ID generation actually does not belong into RFC 2822 or USEFOR.  
There are many different IDs sharing the same format (Content-ID for  
example). The best solution would be to have a common specification for  
all of these.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Is this a valid Message-ID?
#63194
Author: Claus Färber
Date: Thu, 16 Jan 2003 16:34
15 lines
1802 bytes
Curt Welch <curt@kcwc.com> schrieb/wrote:
> I do the same.  I've got about 100 lines of hard-coded heuristics
> which attempts to identifiy what is an e-mail address and what is a
> Message-ID. It gets it right somewhere above 95% of the time.  But
> it's also an algorithm that needs constant adjustments over time to
> keep the percentage high.

Why not use a self-adjusting algorithm? You get enough pre-classified  
sample data with every message header.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Is this a valid Message-ID?
#63204
Author: Curt Welch
Date: Thu, 16 Jan 2003 22:14
84 lines
5664 bytes
David Magda <dmagda+usenet@ee.ryerson.ca> wrote:
> curt@kcwc.com (Curt Welch) writes:
> [...]
> > You aren't dealing correctly with the birthday paridox which results
> > from the fact that any MID in the set can collide with any other MID in
> > the set to cause a problem.  You only only thinking about the
> > probability of on MID being generated colliding with all the others
> > that had already been generated.
> [...]
>
> Doesn't the birthday paradox assume some sort of random/even
> distribution. The chance of one person being born on a certain day,
> is the same chance as anyone else.

Yes.  But the that's not the important factor there.  The thing that makes
it deceptive is the fact that a collision between any two in the set is
what you are looking for instead of a collision between one specific
birydayt and any other.

i.e., the odds of someone else in the room having your birthday is what you
can understand, but the odds of any two people in the room having the same
birthday is much higher and that is what creates the birthday paradox.
That difference exists even if the odds  are not evenenly distributed.

> We do not want random MIDs, we want unique.

Yes, that's true.  My point is just that it's impossible to create
guaranteed uniquess so even though we can use algorithms that are 100%
guranteed to be unique, that does not make the odds of a collision 0.  We
are forced to play the "random chance of failure game" by the very nature
of the problem.  Once you are forced to play that game, then you can solve
the problem with random message-ids just as well (and better) than you can
solve it with 100% unique algorithms.  Some 100% unique algorithams add
random information as well for that very reason.

> If proper practice would
> be for NNTP servers to offer an MID, and clients to accept/use it
> there would be better odds of having unique MIDs.

Actually, I wonder if that's really true.  Since there is a small number of
different server software in the world, is it better to have all Usenet
Message-IDs generated by only that small handful of algorithms instead of
having them generated by hundreds or thousands of different client
algorithms?  The fact there there are many different algorithms at work
might actually help to reduce the total number of problems on Usenet?  The
more algortihms you have at work, the higher chance that one or more is
fundimentally broken, but the less impact it is likely to have if it is???

> Failing that, having an alogrithm that would have the RHS as at least
> the domain (or perhaps the the $NNTPSERVER hostname), and the LHS
> being a combination of: data, time (to second/millisecond), PID
> (where available), and the number of the article posted during the
> duration of this program session. All these added, or hashed (SHA-1?),
> would have some semblance of uniqueness. If you're hashing you may
> want to add the first couple of bytes/lines from the message body.

If you hash, then you have moved the uniqueness problem from the realm of
"uniquness" into "randomness".  And once you do that, you want to make sure
the numbers are actually random.  And when you have done that, you want to
limit the number of random bits used in the Message-ID to something
resonable instead of using 4 times as much "just for safety".

If you hash a lot of "stuff", like the domain name, and the PID, and the
clock, you need to figure out how many "real" random bits that represents
and make sure it's greater than the number of bits in the hash function
(probably make sure it's more than 2 or 3 times greater).  Then you can
take only as many bits of the hash as you need instead of using all 120.

> Obviously malicious/incompetent things like clock/time changing can't
> really be helped.

The nice thing about using random bits is that incompetent configuration
and administration can be mostly taken out of the equation leaving only
incompetent coding problems.

> Even the silly day-light savings time can cause problems.

Not as likely on Unix systems which correctly keeps it clock in GMT/UTC
time, but probably a potential issue on other platforms.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Is this a valid Message-ID?
#63207
Author: Claus Färber
Date: Fri, 17 Jan 2003 00:29
32 lines
2582 bytes
greg andruk <gja@meowing.net> schrieb/wrote:
> The vast majority of systems (i.e., Windows) do have UuidCreate() and
> CoCreateGuid(), which MS guarantee will give globally unique tags (they
> don't say _how_ they guarantee this, but the mechanism should be plenty
> good enough for news).

It's documented in an (now long expired) Internet-Draft:
Paul J. Leach, Rich Salz, "UUIDs and GUIDs", Internet-Draft
<draft-leach-uuids-guids-01.txt>, Feb. 1998 (expired Aug. 1998).

Short overview:

 2 bits are a constant variant identifier
 4 bits are a constant version number
48 bits are the IEEE 802 MAC address /or/ 47 bits random data (the
   multicast bit is used to distiguish between real MAC addresses
   and randomly generated identifiers.)
14 bits are a "clock sequence" that should change if it can't be
   guaranteed that it did not have been set backwards (i.e. during a
   reboot). It might be stored on disc and just incremented or be just
   random data.
60 bits are a timestamp with a resolution of 100ns

So in the worst case, there is no truly random data. Two systems with
the same MAC address both having been booted for the n-th time with a
low clock resolution...

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: Is this a valid Message-ID?
#63209
Author: Curt Welch
Date: Fri, 17 Jan 2003 00:53
19 lines
2208 bytes
claus-usenet-20030116@faerber.muc.de (Claus_F�rber) wrote:
> Curt Welch <curt@kcwc.com> schrieb/wrote:
> > I do the same.  I've got about 100 lines of hard-coded heuristics
> > which attempts to identifiy what is an e-mail address and what is a
> > Message-ID. It gets it right somewhere above 95% of the time.  But
> > it's also an algorithm that needs constant adjustments over time to
> > keep the percentage high.
>
> Why not use a self-adjusting algorithm? You get enough pre-classified
> sample data with every message header.

It would be fun to try and do that.  It becomes an AI problem once you
approach it that way and I always find AI fun. :)  But it's seldom very
practical. :(

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Is this a valid Message-ID?
#63210
Author: Bill Cole
Date: Fri, 17 Jan 2003 01:42
102 lines
6376 bytes
In article <yld6mzb7r0.fsf@windlord.stanford.edu>,
 Russ Allbery <rra@stanford.edu> wrote:

>Curt Welch <curt@kcwc.com> writes:
>
>> I think Usenet swtiched to that faith about 10 years ago with the relase
>> of C-News.  Is that when the old numbering system when out the door?
>> It's not just a faith anymore, it's what everyone uses.  It's the only
>> way it can practically be done.
>
>INN does not and never has used random numbers to generate message IDs.
>If INN is the only message ID generator running with a specific RHS, or if
>all other message ID generators running with that same RHS use a different
>algorithm (and this is the common case and frequently can be guaranteed),
>INN message IDs are guaranteed unique forever.

Unless the different algorithm is one that can create an identical LHS. 
Like a random number generator. 

>For example, the only message ID generators running on my news server are
>INN and qmail.  Since they use two different algorithms, both of which are
>guaranteed unique forever, all message IDs generated by the only system
>authorized to use that RHS are, in fact, guaranteed unique forever.

Assuming that the domain name remains yours forever and that the LHS 
generation algorithms remain the same or guarantee non-collision with 
the existing ones. 

I actually rather like the odds of those failure modes over the failure 
modes of random number generators building both sides of the MID. 


[...]
>> 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.
>
>Oh, I agree.
>
>I'm just pointing out that the RHS is doing a lot more than just adding a
>few bytes of randomness.  For small sites, it pretty much resolves the
>problem entirely; if you've got a timestamp in the message ID and the
>correct RHS and you're at a small site, you're probably okay.  This
>obviously isn't sufficient for large sites that have thousands and
>thousands of users generating message IDs, and for those sites they have
>to do something more comprehensive, but the RHS is a great start and
>solves the problem for 95% of the sites out there (but a lower percentage
>of the users).

Or put another way: the RHS as a domain name  slices the uniqueness 
problem into thousands of much smaller and approachable problems. The 
Agent solution is unappealing to me for practical reasons (i.e. no 
pattern to a user's MID's) but it is perfect for 4ax.com: no one ccan 
legitimately and innocently generate collisions with a 4ax.com RHS 
because only Agent should ever be generating those. That perfectly 
handles one RHS. I can perfectly handle the fireproof.scconsult.com RHS 
for as long as I hold the domain, simply by having a very restricted 
user population. There's another one. Slicing the problem up by domain 
name changes the scope for any one site from unmanageable to workable in 
practice. No, there's no mathematical surety of uniqueness and casnnot 
be, but the problems for legitimate (or colorably legitimate) users of 
any one RHS can be addressed to assure uniqueness in practice. 

The worst potential problems live in generators like the one I will use 
in a few seconds: MT-NewsWatcher takes the news server FQDN as a RHS.

The saving feature of such cases is the use of big LHS's. Mine encode 
about 75 bits of information in 26 characters, and that makes collision 
a wispy target: no random number generator for LHS's will waste time on 
130 bits (26 characters) and other similar generators of human-parsable 
LHS's are unlikely to use methods that have any risk of collision. 

I realize that I'm speaking heresy to the other participants in this 
thread, but I think that largish human-parsable LHS's are a good 
solution to getting de facto MID uniqueness, because in addition to 
addressing that, they improve usability. For example, it is trivial for 
me to filter for all the replies to my posts (or for others tol killfile 
everything I post and all the responses...) , because my MID's have 
invariants that are unique to me. That is pretty meaningless to someone 
focused on overview size and server efficiencies, but that sort of 
feature makes newsreading easier for users. 

[...]
>> Using unique domain names on the RHS of a Message-ID in no way
>> guarantees uniqueness.
>
>Absolutely.  I never argued that.  You have to also have some knowledge of
>what the message ID generators with that RHS are doing (which means that
>in practice it's not nearly as useful if people also have e-mail addresses
>in that domain, due to the behavior of many clients).

Or if people use certain newsreaders pointed at a server with that RHS.

-- 
The answer is that no one has a right to press even 'good' ideas on an 
unwilling recipient. -- Chief Justice Berger, SCotUS

Bill Cole                                           bill@scconsult.com
Re: Is this a valid Message-ID?
#63212
Author: Curt Welch
Date: Fri, 17 Jan 2003 02:11
27 lines
2566 bytes
Bill Cole <bill@scconsult.com> wrote:
> I realize that I'm speaking heresy to the other participants in this
> thread, but I think that largish human-parsable LHS's are a good
> solution to getting de facto MID uniqueness, because in addition to
> addressing that, they improve usability.

Hell, I even did that.  The first version of my Message-ID generator for
newsreader.com packed the date into as few characters as possible using
some base-N encoding where N was something over 64 I think.  That of course
meant the date was not human readable.  I decided the extra characters it
would waste to make it human readbale was worth the cost.  So I ended up
using a human readable millisecond timestamp:

  <20030114132134.418$09@newsreader.com>

I also intentially used localtime to make it easier for me to "understand"
the date, which means I oppend the door to dups once a year when the clocks
get set back.

Though I have fun talking theory here, what I do for practical reasons is
quite often is very different from what people may think I would based on
my comments.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Is this a valid Message-ID?
#63215
Author: Heiko Studt
Date: Fri, 17 Jan 2003 07:57
30 lines
2277 bytes
Curt Welch made me laugh on 17.01.2003 03:11:23:

> using a human readable millisecond timestamp:

>   <20030114132134.418$09@newsreader.com>
     ^^^^^^^^ Date?
             ^^^^^^Time?
                    ^^^^^Milliseconds?
                        ^^Posting Number? (from 00 to 99? or FF?)

> I also intentially used localtime to make it easier for me to "understand"
> the date, which means I oppend the door to dups once a year when the clocks
> get set back.

NAK. After the year the Date/Year-Field would be changed. (in the MID you
showed above). Or is that MID not an example but an article you refferr to? ;-)

> Though I have fun talking theory here, what I do for practical reasons is
> quite often is very different from what people may think I would based on
> my comments.

LOL.


MFG

-- 
Heiko Studt

Re: Is this a valid Message-ID?
#63221
Author: Dr.Ruud
Date: Fri, 17 Jan 2003 11:14
17 lines
2035 bytes
J�hnny F�v�r�t� (it means "Machinate") skribis:

> I don't suppose it addresses the fact that message IDs are more or less
> indistinguishable from e-mail addresses?  It's a problem for us client
> authors because I have to parse message bodies looking for URLs, e-mail
> addresses, and message IDs so I can turn them into clickable links.

Once you are not sure, present the choice to the user. Some combobox
with both the values available:
 <URL:mailto:john44@test.com.invalid>
 <URL:news:<john44@test.com.invalid>>

-- 
Affijn, Ruud


Re: Is this a valid Message-ID?
#63233
Author: Curt Welch
Date: Fri, 17 Jan 2003 18:21
28 lines
2410 bytes
Heiko.Studt@gmx.de wrote:
> Curt Welch made me laugh on 17.01.2003 03:11:23:
>
> > using a human readable millisecond timestamp:
>
> >   <20030114132134.418$09@newsreader.com>
>      ^^^^^^^^ Date?
>              ^^^^^^Time?
>                     ^^^^^Milliseconds?
>                         ^^Posting Number? (from 00 to 99? or FF?)

Yeah, except the "Posting Number" is bascially a random number and I think
it's base64ish not hexish.  I'd have to check the code to be sure.

> > I also intentially used localtime to make it easier for me to
> > "understand" the date, which means I oppend the door to dups once a
> > year when the clocks get set back.
>
> NAK. After the year the Date/Year-Field would be changed. (in the MID you
> showed above). Or is that MID not an example but an article you refferr
> to? ;-)

It's a real Message-ID from this thread.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Is this a valid Message-ID?
#63238
Author: Heiko Studt
Date: Fri, 17 Jan 2003 22:21
18 lines
2014 bytes
Curt Welch made me laugh on 17.01.2003 19:21:53:

> > >   <20030114132134.418$09@newsreader.com>
> >                         ^^Posting Number? (from 00 to 99? or FF?)
> Yeah, except the "Posting Number" is bascially a random number and I think
> it's base64ish not hexish.  I'd have to check the code to be sure.

Not needed. It seems to be ok and nearly never be able to get dupes, except of
two of your servers on same machine with same hostname.
Perhaps a PID/Thread-ID should be included.


MFG

-- 
Heiko Studt

Re: Is this a valid Message-ID?
#63285
Author: David Magda
Date: Sat, 18 Jan 2003 16:00
77 lines
4696 bytes
curt@kcwc.com (Curt Welch) writes:

> Yes.  But the that's not the important factor there.  The thing that makes
[...]

Whatever. :> It's been too long since my probability-statistics
courses to remember all this, and even when I was taking it I wasn't
too enthusiastic about it. Looking it up would also be too much
work. :>

> Yes, that's true.  My point is just that it's impossible to create
> guaranteed uniquess so even though we can use algorithms that are 100%
> guranteed to be unique, that does not make the odds of a collision 0.  We
[...]

A probability of 0 would be perfect: which is nice if you're God, or
are willing to wait around for 4 billion years for evolution to find
a solution. Unfortunately none of us here are God, and we would like
a solution before 4 billion years from now. :>

[...]
> more algortihms you have at work, the higher chance that one or
> more is fundimentally broken, but the less impact it is likely to
> have if it is???

It sounds like an interesting topic for a USENIX papaer. :>

> If you hash, then you have moved the uniqueness problem from the realm of
> "uniquness" into "randomness".  And once you do that, you want to make sure
[...]

I don't believe hashing is a "chaotic"(?, I'm thinking of a
particular word, but it's not coming to me) function. Given fixed
initial conditions, there will be a fixed output. The hashing is
simply a suggestion. The MID could simply be of the form
"<date><time><pid><posting>". Example, for "Sat Jan 18 10:38:52 EST
2003", pid = 359, this is my third posting:

          <date><time><pid><post><FQDN>>
        200301181038520035900003@number6.magda.ca

(Watch now, I'll get spam addressed to that string. <g> ) I've made
the <pid> and <posting> strings five characters long, but that was an
arbitrary choice for the sake of this example.

I mentioned hashing because of my suggestiong of perhaps some bits
from the body of the posting. This though would probably increase the
chance of a collision because it adds "randomness" which may end up
"mapping" the hash onto a value that was already used.

Probably not a good idea now that I think about it. A deterministic
(that's the word!) way of getting the values is probably what is
desired. 

> The nice thing about using random bits is that incompetent
> configuration and administration can be mostly taken out of the
> equation leaving only incompetent coding problems.

"Randomness" is harder then most people think; just ask the people in
sci.crypt. :> 

I would suggest that the new RFC should have a statement saying that
when the newsreader issues a POST command, the server sends back an
OK (if appropriate) with an MID, and that the client "SHOULD" [1] use
this MID. The only problem arises then of "webnews"
providers. Perhaps describe a reasonable alogirthm that "SHOULD" be
used if a server provided one isn't available/possible?

[1] From RFC 2119: "Key words for use in RFCs to Indicate
    Requirements Levels".

-- 
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well 
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: Is this a valid Message-ID?
#63328
Author: Wolfgang Schelongowski
Date: Sun, 19 Jan 2003 16:43
16 lines
1881 bytes
In <ylsmvuiaol.fsf@windlord.stanford.edu>
 Russ Allbery <rra@stanford.edu> writes:

>One thing that would help this would be for this would be for clients to
>stop putting message IDs in the body as part of the attribution line and
>provide better facilities for accessing message IDs in the References
>header; I've never understood why client authors seem to want to duplicate
>the message ID all over the place.

I'm not a client author, but I've seen far too often badly broken
References header where the user agent had chopped off parts of the
Message-IDs. And that happened even in "the monastery".
-- 
"Some people are heroes. And some people jot down notes."
  -- Terry Pratchett, The Truth
Re: Is this a valid Message-ID?
#63686
Author: Heiko Studt
Date: Tue, 28 Jan 2003 19:46
73 lines
4837 bytes
Curt Welch did nothing on 15.01.2003 15:26:17:

> > NAK! *Mine* Message-ID is *100%* secure, as long as ...
> If it happens _once_, and the total number of messages posted using your
> techniqe is 10^10 then all you have managed to do is create a system with
> odds 1 out of 10^10 of a collsion.  I can do 1000 times better with a
> random base64 message ID 15 characters long:
>   <pWs80LjfmqfKk2p>

> Your system may be 100% secure, but the above is 1000 times more secure
> than your system.

No.
You only see the fact that the algorithm won't do any dupe. But the *chance*
to get a dupe in radom numbers is higher (1:randomness) than in mine example
of 1:near_never. You don't think it's near-never? It is, because *nobody* else
is *allowed* to use my domain-part, so the problem can only appear in my local
config. And there is, let us say normally, only one algorithm in same time.
BTW: If *I* would make a mistake, *I* would be responsible and *I* would get
an error message, and *I* must change my config. With your thing everyone can
circumstance to everybodies message-id. So I could theoretically generate the
same MID than you. So *I* would have problems *you*/your software made.

Perhaps it need to have a try.

Let your servers (or better as many servers as you can get) generate a MID in
the way random@doma.in where random is your algorithm(s) for random numbers
and doma.in a domain you can use and which is as small as possible.
Now count the dupe-production and then try to realize how many dupes there
would be if there is brainy-software with other algorithms generating
randomness (no random is 'true random' yet).

Only as an idea... *eg*

> > Mine Timestamp, together with the numbering 'per second' is completly
> > secure. Only my local Hamster generates MIDs in this way.

> You are confused about the difference between the ideal world which we use
> to define how a computer operates and the real world in which it actually
> runs.  Usenet is in the real world, not your ideal theroretical world.

No. 'heiko.studt.dialin.t-online.de' and '*.goldpool.org' as domain-part can
*not* used by anyone else than me. And I exspect Hamster to generate
guaranteed unique numbers, because of the kind I use it.
The same (or near the same) algorithm would work in a system with thausands of
users. As long as the FQDN of the server would be other than the
server-address. (And even that is only caused by brainy client-software)

> impossible to remove all the "noise" from the system.  It's only reasonable
> to talk about how low you can reduce the probability of a collsion, it's
> never valid to claim you have removed all probability of a collsion from
> the system as you are trying to do above.

Your server has to be *able* to handle a collision, but the collisions is more
often with random. I strictly believe it... :)

> pretend they are not there.  You can pretend they are not important, but
> that's just another way of saying "the probability is so low I can ignore
> it".

That counts exspecially for normal random-numbers as MIDs.

Perhaps we should stop discussion or go further per Mail, because I don't
think this theoretical way is real interesting for 1% of all here... :)
(And we both are very strict in our believings ;-))


MFG, F'up2: Poster

-- 
Heiko Studt

Page 2 of 2 • 72 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads