🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #421

An interesting hack for nntp feeds

#421
From: Dan Kolkowitz
Date: Tue, 19 Dec 1989 15:31
29 lines
2130 bytes


The news configuration at Stanford has a master host feeding several
other hosts, which don't have any other news feeds.  For most of these
hosts we send article batches with rcp, for speed and efficient use of
the network.  We'd like to switch to NNTP both for reasons of security
and more importantly to avoid holding the batches on the master host,
when one of the others is down.

An interesting compromise of the two methods occurred to us: we can
create batches but use NNTP to transmit an entire batch as if it is a
single article.  As long as the message-id is chosen so that there is
no possibility that the batch is rejected, it will be fed to rnews,
and then the batch will be unpacked.  This saves the IHAVE/SENDME
overhead of the protocol and likewise reduces the rnews overhead by
the number of execs of rnews that would have occurred.

The testing that I have done seems to indicate that on a local
Ethernet for an average batch of articles (~200k) it saves about 30% in 
elapsed time over sending it through an
unmodified nntpxmit.  (Our nntpxmit is changed to use a given
message-id instead of one taken from the first article.)  Slower links
should benefit even more from the reduction in protocol overhead.  The
key point is that none of the articles in the batch ever get rejected,
since the server is the sole news source for the recipient machine.
It would not pay if articles were rejected.  I'm just modifying our
shell scripts now to use this method.  If there is interest I'll post
the C code and shell script changes.
Technical Details
Message-ID: <1081@shelby.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!decwrl!shelby!kolk

Show Full Headers
Complete Article Headers
Message-ID: <1081@shelby.Stanford.EDU>
Subject: An interesting hack for nntp feeds
Date: Tue, 19 Dec 1989 15:31:15 +0000
From: kolk@shelby.Stanford.EDU (Dan Kolkowitz)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!decwrl!shelby!kolk
Newsgroups: news.software.nntp
Reply-To: kolk@shelby.stanford.edu (Dan Kolkowitz)
Organization: Stanford University
Lines: 28