Thread View: news.software.nntp
15 messages
15 total messages
Started by Bas Ruiter
Tue, 27 May 2003 19:47
How are Article Numbers assigned?
Author: Bas Ruiter
Date: Tue, 27 May 2003 19:47
Date: Tue, 27 May 2003 19:47
49 lines
2098 bytes
2098 bytes
I've been wondering about this for quite a while now - how are article numbers assigned? From what I inderstand there's a finite number of article numbers, the mimits of which we won't see for another 50 years or so, at which stage iit'll "wrap around" and start at 0 again. And that articles numbers are always incremental. So, let's say I have three newsgroups: news.group.one news.group.two news.group.three Assuming all groups are equally busy, do new articles get article-numbers like so: news.group.one Article#: 1, Article#: 4, Article#: 7, ... news.group.two Article#: 2, Article#: 5, Article#: 8, ... news.group.three Article#: 3, Article#: 6, Article#: 9, ... Or like so: news.group.one Article#: 1, Article#: 2, Article#: 3, ... news.group.two Article#: 51, Article#: 52, Article#: 53, ... news.group.three Article#: 101, Article#: 102, Article#: 103, ... -- Bas Ruiter e-Mail: lordsnow@home.nl www: http://members.home.nl/lordsnow
Re: How are Article Numbers assigned?
Author: Russ Allbery
Date: Tue, 27 May 2003 19:49
Date: Tue, 27 May 2003 19:49
36 lines
2191 bytes
2191 bytes
Bas Ruiter <lordsnow@home.nl> writes:
> I've been wondering about this for quite a while now - how are article
> numbers assigned?
> From what I inderstand there's a finite number of article numbers, the
> mimits of which we won't see for another 50 years or so, at which stage
> iit'll "wrap around" and start at 0 again. And that articles numbers are
> always incremental.
Almost. Actually, there are a finiate number of article numbers, the
limits of which we won't see for another 50 years or so, at which stage
all the computers on the planet will spontaneously explode and the world
will end.
There is no provision in the protocol for ever wrapping the numbers.
> Or like so:
> news.group.one
> Article#: 1, Article#: 2, Article#: 3, ...
> news.group.two
> Article#: 51, Article#: 52, Article#: 53, ...
> news.group.three
> Article#: 101, Article#: 102, Article#: 103, ...
Like that. Article numbers are per-newsgroup.
--
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: How are Article Numbers assigned?
Author: Bas Ruiter
Date: Tue, 27 May 2003 22:32
Date: Tue, 27 May 2003 22:32
48 lines
2746 bytes
2746 bytes
> Almost. Actually, there are a finiate number of article numbers, the > limits of which we won't see for another 50 years or so, at which stage > all the computers on the planet will spontaneously explode and the world > will end. > > There is no provision in the protocol for ever wrapping the numbers. Ah yes, I remember. There was a discussion about this a few days/weeks ago. I think someone mentioned the possibility of implementing the wrap-around, and that stuck in my head. > Like that. Article numbers are per-newsgroup. That's what I figured. But that implies that every newsgroup has a defined finite range of (future) article numbers, as higher article numbers somewhere will (have been) used in another newsgroup. No? How are these ranges determined? Are they equally large for all newsgroups, no matter how busy they are? Let's take the numbers from the ealier discussion - the biggest article number is 2^31, and a busy newsgroup has 100,000 posts a day. Let's also assume that a server has 25,000 newsgroups. If we assume all article numbers are equally divided, then each group has a max of 85899 possible articles. This takes less than a day to go through on the busy newsgroup. This just can't be right. Where's the quirk in my logic? *click* light goes on! The article numbers aren't unique, are they?! The same article number may appear in multiple groups. It's just that IN COMBINATION with a group that u will get a unique pointer. *doh* OK, I better sit down before I hurt myself... -- Bas Ruiter e-Mail: lordsnow@home.nl www: http://members.home.nl/lordsnow
Re: How are Article Numbers assigned?
Author: Russ Allbery
Date: Tue, 27 May 2003 22:48
Date: Tue, 27 May 2003 22:48
15 lines
1608 bytes
1608 bytes
Bas Ruiter <lordsnow@home.nl> writes:
> The article numbers aren't unique, are they?! The same article number
> may appear in multiple groups. It's just that IN COMBINATION with a
> group that u will get a unique pointer. *doh* OK, I better sit down
> before I hurt myself...
Yup, you got it. :)
--
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: How are Article Numbers assigned?
Author: Bas Ruiter
Date: Tue, 27 May 2003 23:23
Date: Tue, 27 May 2003 23:23
19 lines
1755 bytes
1755 bytes
> > The article numbers aren't unique, are they?! The same article number > > may appear in multiple groups. It's just that IN COMBINATION with a > > group that u will get a unique pointer. *doh* OK, I better sit down > > before I hurt myself... > Yup, you got it. :) I wouldn't mind, but *embarrased look* I actually been walking around wondering about this for aaaages. And I only clued in now. Hahahaha, oh boy... -- Bas Ruiter e-Mail: lordsnow@home.nl www: http://members.home.nl/lordsnow
Re: How are Article Numbers assigned?
Author: Curt Welch
Date: Tue, 27 May 2003 23:58
Date: Tue, 27 May 2003 23:58
27 lines
2391 bytes
2391 bytes
Bas Ruiter <lordsnow@home.nl> wrote: > > > The article numbers aren't unique, are they?! The same article number > > > may appear in multiple groups. It's just that IN COMBINATION with a > > > group that u will get a unique pointer. *doh* OK, I better sit down > > > before I hurt myself... > > > Yup, you got it. :) > > I wouldn't mind, but *embarrased look* I actually been walking around > wondering about this for aaaages. And I only clued in now. Hahahaha, oh > boy... Yeah, with the NNTP protocol, you can use "ARTICLE <mid>" by itself to get any article because the message-id is unique. But to retrieve by article number, you must specify the group first to define the context: GROUP news-group ARTICLE art-num So even though there is no command that allows you to specify the group and article number together as arguments, all the commands that use article numbers are doing it based on the concept of the currently selected group. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: How are Article Numbers assigned?
Author: Bas Ruiter
Date: Wed, 28 May 2003 01:39
Date: Wed, 28 May 2003 01:39
27 lines
2185 bytes
2185 bytes
> So even though there is no command that allows you to specify the group and > article number together as arguments, all the commands that use article > numbers are doing it based on the concept of the currently selected group. Yes, I know. That's why I don't understand why why I didn't cop on sooner. It's just this ... uhm .. image I had, of how an NNTP server worked - it has a big pool of article numbers, and numbers for articles in ALL newsgroups are drawn from this one pool. Messing with NNTP (downloading headers and stuff) I saw that articles in a group not only had incremental numbers, but also close (succesive) incremental numbers, so I had it all worked out that each newsgroup must have an assigned range of article-numbers to draw from... It's obvious now that that is... not how it works. -- Bas Ruiter e-Mail: lordsnow@home.nl www: http://members.home.nl/lordsnow
Re: How are Article Numbers assigned?
Author: J.B. Moreno
Date: Wed, 28 May 2003 04:45
Date: Wed, 28 May 2003 04:45
14 lines
1791 bytes
1791 bytes
In article <1748dv433d4aspig86r0svaonc1dn707ru@4ax.com>, Bas Ruiter <lordsnow@home.nl> wrote: > It's just this ... uhm .. image I had, of how an NNTP server worked - > it has a big pool of article numbers, and numbers for articles in ALL > newsgroups are drawn from this one pool. Take heart, you aren't the first: whoever wrote the lousy O'Reily webboard/nntp server made the same mistake (it /really/, /really/, and I *do* mean /really/ sucks). -- J.B. Moreno
Re: How are Article Numbers assigned?
Author: Goran Larsson
Date: Wed, 28 May 2003 08:37
Date: Wed, 28 May 2003 08:37
23 lines
1945 bytes
1945 bytes
In article <2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com>, Bas Ruiter <lordsnow@home.nl> wrote: > The article numbers aren't unique, are they?! The same article number > may appear in multiple groups. It's just that IN COMBINATION with a > group that u will get a unique pointer. *doh* OK, I better sit down > before I hurt myself... No. The combinatione needs to be news server + newsgroup + article number --> unique number The article numbers are only unique within a single news server (or news server cluster in special load balancing configurations). Writing "see article number 39662" in a world wide newsgroup does not make sense. Your article, for example, has number 105589 on my news server, but its global unique identity (Message-ID) is "2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com". -- G�ran Larsson http://www.mitt-eget.com/
Re: How are Article Numbers assigned?
Author: Dr.Ruud
Date: Wed, 28 May 2003 10:16
Date: Wed, 28 May 2003 10:16
13 lines
1621 bytes
1621 bytes
Goran Larsson skribis: > its global unique identity (Message-ID) is > "2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com". Calling a @4ax.com Message-ID 'global unique', is that bold or blond? -- Affijn, Ruud
Re: How are Article Numbers assigned?
Author: Goran Larsson
Date: Wed, 28 May 2003 10:29
Date: Wed, 28 May 2003 10:29
13 lines
1552 bytes
1552 bytes
In article <bb29bu.198.1@news.isolution.nl>, Dr.Ruud <rvtol+news@hacktic.nl> wrote: > Calling a @4ax.com Message-ID 'global unique', > is that bold or blond? It must be unique as demanded by the RFC. If some news servers/clients cheat and use @4ax.com Message-IDs that are not unique then they should be corrected. -- G�ran Larsson http://www.mitt-eget.com/
Re: How are Article Numbers assigned?
Author: Russ Allbery
Date: Wed, 28 May 2003 16:26
Date: Wed, 28 May 2003 16:26
18 lines
1751 bytes
1751 bytes
Ruud <'t.leven.is.fijn@life.i$.great> writes:
> Goran Larsson skribis:
>> its global unique identity (Message-ID) is
>> "2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com".
> Calling a @4ax.com Message-ID 'global unique',
> is that bold or blond?
In the absence of software piracy, I believe that the @4ax.com message IDs
are about as globally unique as you're going to reasonably get.
--
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: How are Article Numbers assigned?
Author: Curt Welch
Date: Wed, 28 May 2003 19:37
Date: Wed, 28 May 2003 19:37
107 lines
6976 bytes
6976 bytes
hoh@invalid.invalid (Goran Larsson) wrote: > In article <bb29bu.198.1@news.isolution.nl>, > Dr.Ruud <rvtol+news@hacktic.nl> wrote: > > > Calling a @4ax.com Message-ID 'global unique', > > is that bold or blond? > > It must be unique as demanded by the RFC. If some news servers/clients > cheat and use @4ax.com Message-IDs that are not unique then they should > be corrected. He was referring to the fact that the algorithm used by Agent for the 4ax.com message-ids doesn't attempt to guarantee uniqueness as talked about in the RFC. It instead (seems to) use a hash which reduces the probability of a collision to a very low number. That technique may (and I suspect probably does) produce a lower probability of collision than most algorithms which "guarantee" uniqueness. It is in fact impossible to guarantee global uniqueness on Usenet as specified in the RFCs. This is because all the algorithms that produce unique message-ids are based on a few false assumptions. They assume the clock value is always accurate for example, and that no one else on Usenet will ever produce a message-id with the same RHS, and that there are no bugs in any message-id generating code anywhere on Usenet. Though these assumptions are safe to make in practice and produce fine Message-IDs, they do end up creating a small (but always greater than 0), probability that a collision will happen by accident. For example, someone may boot up a server with the date off by hours because the timezone is not configured correctly and when they realize the mistake and fix it, you could end up with hours of time overlap which could lead to a dup Message-ID. When setting up a new server, you may for a short period of time have two servers generating Message-IDs with the same RHS which could lead to an accidental dup. Some server software may have a default configuration which includes the RHS to use in generating message-ids which must be changed when the server is set up. But because people tend to start the server without changing this at times, you end up with multiple servers on Usenet using the same RHS to generate Message-Ids. And then there's the chance that some abuse software or spam posting software is intentially copying the Message-ID format from other servers in an attempt to hide the true source of the post and in doing so, causes dups by accident. There are tons of reasons like this that make "guaranteed uniqueness" of Message-IDs on Usenet impossible even if you have an algorithm that does guarantee uniqueness in what it produces. Because of this, generating a hash with enough bits may in fact reduce the probability of a collision to a lower value than any of the "guaranteed uniqueness" algorithms. It can produce very low probabilities of collisions even when intentially abused. It's hard to calculate the probability of collision due to these "errors", so it's hard to even estimate the probability of collision for these algorithms which "guarantee" unique Message-Ids. But you can try to do so. For example, if only one message a year gets generated on Usenet under one of the problems outlined above (like from a server with the date set wrong which caused a time overlap with the same server), and the probability of it causing a dup when it happens was one out of a million, and we have 3 million articles a day posted for a year, that means the probability of collsion is around 1 out of 10^6 x 365 x 3 x 10^6 or around 1 out of 10^15. i.e., 1 out of every 10^15 articles posted to usenet will have a dup Message-ID. An Agent Message-ID looks like this: <2eo7dvo53gon14b2ve97j98bd2bg2a6jhb@4ax.com> That seems to have 34 characters from something like a base 32 character set. Thats around 170 bits of hash (34*5). That's around 10^51 values. The probability of collision for this type of system is based on the total number of articles with Message-IDs generated with the algorithm, so if you use the system long enough, you can guarantee a very high probability of collisions with something posted to usenet in the past. But how long is that to get to the same levels the happen today with the guaranteed unique algorithms (i.e. 1 out of 10^15 from above)? I'm not sure about the math, but I think the set size needed to produce a probability of collsion of 10^15 with a hash size of 10^51 is about 10^[(51-15)/2] which is 10^18 articles. If this math is valid, then this implies you have to generate about 10^18 articles with the 4ax algorithm before the probabilty of a collision reaches our estimate of what the guaranteed unique algorithms are already doing today. If every article posted to usenet used the 4ax algorithm, and there were a constant 3M articles posted per day, you would have around 10^9 articles posted every year. That means it would take (10^18 / 10^9) i.e., 10^9 years, i.e. 1 billion years, worth of articles before the probability of a collison in the set with the 4ax algorithm would be as bad as the current "guaranteed unique" algorithms are producing today. i.e., within an order of magnatude of the age of the oldest rock on earth. Now, because my math may be wrong, and my estimates are certainly numbers pulled out of my ass, you can't prove much from this. But it demonstrates the possibility that the 4ax message-id generating algorithm which doesn't attempt to generate unique ids could actually be doing a far better job of generating good message-ids and preventing accidental collisions than the current algorithms which claim to be generating "guaranteed" unique message-ids. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: How are Article Numbers assigned?
Author: Goran Larsson
Date: Wed, 28 May 2003 20:37
Date: Wed, 28 May 2003 20:37
19 lines
1805 bytes
1805 bytes
In article <20030528153719.532$6E@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: | hoh@invalid.invalid (Goran Larsson) wrote: | > It must be unique as demanded by the RFC. If some news servers/clients | > cheat and use @4ax.com Message-IDs that are not unique then they should | > be corrected. | He was referring to the fact that the algorithm used by Agent for the | 4ax.com message-ids doesn't attempt to guarantee uniqueness as talked about | in the RFC. It instead (seems to) use a hash which reduces the probability | of a collision to a very low number. This is what I meant by "cheat and use @4ax.com Message-IDs that are not unique". -- G�ran Larsson http://www.mitt-eget.com/
Re: How are Article Numbers assigned?
Author: Russell
Date: Fri, 06 Jun 2003 11:24
Date: Fri, 06 Jun 2003 11:24
2 lines
1039 bytes
1039 bytes
let me know when you find out please
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