🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87990

Re: Why should an RFC be so concerned with implementation details?

#87990
From: Russ Allbery
Date: Sun, 21 Jul 2019 04:52
55 lines
3538 bytes
"J.B. Nicholson" <jbn@forestfield.org> writes:
> news@zzo38computer.org wrote:

>> As far as I understand, the RFC requires that an article number is never
>> reused and that new articles have higher numbers than older articles
>> (according to the time the articles are first received on the server).

That's correct.  We talked about it in the working group but ran out of
steam before we came up with any good solution to running out of article
number space.

>> Section 6 requires 31-bit integers to be used for article numbers (and
>> zero is not a valid article number).

> Out of curiosity, why should an RFC be so concerned with implementation
> details that the RFC specifies how many bits to use for storing an
> article number?

I know we talked about this a great deal in the working group, but it's
been a long time, and I don't remember all the details.  My recollection
is that it's for compatibility; I think we did some experiments with
widely-used news software and found that interoperability starts to suffer
with articles larger than 2^31 due to the number of clients that used a
signed 32-bit int internally to represent the article number.  If the
server returns a larger number, clients may treat it as a negative number
and all sorts of weird things happen.

> Put differently, is there a practical problem of an RFC explicitly
> leaving it up to the implementor to decide how to go about using article
> numbers 1, 2, 3, and so on with no predetermined upper bound if
> possible?

The purpose of an RFC is to describe an interoperable protocol, which
inherently means that it tries to prevent the server from sending
something a client will not understand (and vice versa).

Obviously this is a crappy limit, and we were hoping to do something
better, but doing better probably requires defining a server extension
that warns that larger article numbers are in play, and then thinking hard
about what the backward-compatibility story looks like.  It's not a
trivial bit of protocol design.

> What if a server programmer decided to ignore this bit limit and use a
> bignum library for numbers exceeding whatever could be handled by the
> server's CPU natively?

You should expect standard clients to not work with your NNTP server.

-- 
Russ Allbery (eagle@eyrie.org)              <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: <87h87gdm5q.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <slrnqj7q9a.i4c.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <87h87gdm5q.fsf@hope.eyrie.org>
Subject: Re: Why should an RFC be so concerned with implementation details?
Date: Sat, 20 Jul 2019 21:52:33 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <5cd011d5$0$15174$426a74cc@news.free.fr> <1563663361.bystand@zzo38computer.org> <slrnqj7q9a.i4c.jbn@forestfield.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 53
NNTP-Posting-Host: hope.eyrie.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: usenet.stanford.edu 1563684754 11662 166.84.7.155 (21 Jul 2019 04:52:34 GMT)
X-Complaints-To: action@cs.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:1cU5A/u37bMgXeIL0IK5VPHY95Q=
X-Received-Bytes: 3533
X-Received-Body-CRC: 885714343