ietf-nntp New wording on article numbers

Clive D.W. Feather clive at demon.net
Sat Dec 28 12:54:04 PST 1996


Brian Kantor said:
> Since the article numbers are not transmitted in a binary form, I see
> no reason to artificially restrict the range of article numbers by
> specifying the size or length of the representation.  A specification
> that the numbers are DECIMAL and represent actual article counts should
> be sufficient.  (I.e., we should not force epochal resets of a newsgroup
> article count just because it won't fit in N digits.)

We need to specify the representation used in the protocol (decimal unsigned,
leading zeroes allowed).

If there is no upper limit on article numbers, all client software needs to
implement arbitrary-precision arithmetic "just in case". This is, to my
mind, unreasonable, and so we should put an upper bound.

All reasonable systems can handle unsigned integers of at least 32 bits
(the ISO C Standard requires them to). Therefore 4 294 967 295 (2^32-1)
seems a reasonable limit. [I know I said 999999999 before; I won't embarrass
myself by repeating my reasoning.] I'll address the issue of overflow in
another message.

-- 
Clive D.W. Feather    | Associate Director  | Director
Tel: +44 181 371 1138 | Demon Internet Ltd. | CityScape Internet Services Ltd.
Fax: +44 181 371 1150 | <clive at demon.net>   | <cdwf at cityscape.co.uk>



More information about the ietf-nntp mailing list