🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11227

ANTP Specification

#11227
From: The Gentleman
Date: Sun, 29 Sep 1996 00:00
380 lines
17444 bytes
NOTE:  This should be considered a pre-RFC specification.  An RFC should
be written after completion of the proof-of-concept demo.  The RFC
process has become too formalized (IMHO) and lengthy for a serious
working document.  However, I have written it in my closest
approximation of RFC format, to simplify things at that point.  The loss
of indentation is due to it's being written in Word 6.0, I will find a
way to export it with proper indentation eventually.


Accelerated News Transport Protocol

A Proposed Standard for Batch-Based
News Transmission by Users


1.  Introduction

The current Usenet news system, as defined by RFC 977 and RFC 1036,
has been in operation for many years, and as shown itself to be
generally a efficient and effective method of transporting network
news.  However, certain shortcomings have come to light in the face
of unprecedented network demand and news participation.  ANTP
addresses those with a minimum-impact, newsgroup level, user-
directed adjunct to the normal transport mechanism.

1.1.   A Functional Description of the News Transport System

The original news transport system defined by RFC 977 was designed
for maximum efficiency in resource use, not in speed or completeness
of message availability.  A network of news hosts, overlaying parts
of the Internet and other networks, transfers news on a flooding
mechanism.

1.1.1.  A Network for Everything, and Everything has a Network

For the purposes of an individual message, Usenet consists of those
hosts which carry one or more of the groups that message is
addressed to.  Hosts which do not will never receive it, for them
that article does not exist.  Each message can at a maximum reach
this subset of the network.  Hosts do not carry any of that
message's groups are considered inactive for the purposes of that
message.

1.1.2.   Nominal Functioning of the News Transport Mechanism

Under normal circumstances the transport system works by a flooding
algorithm, with news peers exchanging articles, and never
transporting the same article across the same link twice.  No effort
is made to accelerate any articles (with the sometimes exception of
the control pseudogroup) and what host is a peer of another host is
determined by the administrators of those systems.  Articles are
only exchanged in those groups which are carried by both peers.

1.2.   Problems with the News Transport Mechanism

Unlike IP packet routing, no general effort is made to identify or
correct problems in the news transport mechanism.  Although subject
to many of the same problems to even stronger degrees, the sheer
number and complexity of potential problems, along with a lower
priority for attention, means that an individual group which is no
longer being properly received at a site will rarely see any active
corrective measures.  Groups which are more universally carried
therefore have more potential paths between two distant sites, and
will tend to travel more quickly.  

Groups which are carried by fewer sites will tend to travel more
slowly, and may never complete transfer between distant sites. 
These problems fall into two general groups, 'lagging' and
'barriers'.

1.2.1.   Lagging

Lag is defined as the delay between the posting of a message and its
reception at a particular site (not the originating site).  The lag
of a message may be measured in minutes or in days.  Occasionally, a
message that is weeks old will surface, having been shunted from one
high-lag path to another.  

In general, the average lag for a group is determined by the number
of hosts that carry that group, but the non-homogenous nature of
group carriage means that the average lag for a group at one site
may be radically different than for another.  Because news
conversations tend to have a daily turnaround when possible, a
reader of a group who is suffering high lag in that group at his
site will tend to find participation difficult.

1.2.2.   Barriers

A barrier is combination of propagation paths which blocks the
transmission of an article to a site that would otherwise receive
that article.  This may be caused by there being no possible path
between that site and the origin of the message, or by sufficiently
high lag between them that the article is removed from transport
before being exchanged.  Barriers may be full or partial.

A full barrier is one that articles for a particular group will not
cross if posted only to that group.  A partial barrier is usually
the result of high lag, and some articles may cross the barrier,
although usually considerably after they were originated.

1.3.   Users as Agents for a Solution

Any solution to these problems must be compatible with the existing
news transport system, and must not require personal attention by
the administrative personnel of a large number of sites.  The first
may be accomplished by a 'high-level' approach, incorporating all
aspects of existing systems.  An obvious avenue for the second is to
enable the readers of a group to make the improvements themselves,
as they are the most likely to notice a problem, and the most
motivated to address it.

2.   Functional Overview of ANTP

ANTP will bypass the NNTP transport structure through the use of
HTTP and FTP to transfer articles to and from any arbitrary site. 
These articles will then be injected into the news-stream using
NNTP's IHAVE or POST commands.  Articles will be held in a central
'Clearing House' on a server that is both HTTP and FTP capable.

2.1.   Transparent One Group Newsfeed

ANTP will transparently implement a one-group newsfeed.  Client
applications will receive a listing of currently available articles
from the 'Clearing House' (CH), compare that against a history file
and against those articles currently held in that group by a NNTP
server.  They will then transfer articles from the CH to the NNTP
server that were not previously present on that server, and articles
from the NNTP server not present in the CH will be transferred to
the CH.  Any number of clients may use the same CH, but each CH
should be for one group only.

2.2   The Central 'Clearing House'

The 'Clearing House' (CH) will be a FTP/HTTP capable server which
will be designated as the location for transfer of articles in a
particular group.  Articles will be sent to the CH via FTP upload,
and received from it by HTTP.  The CH will have certain mandatory
configuration properties, and certain voluntary ones.  There will be
two general classes of CH, Open and Secure.

2.2.1.   Mandatory Configuration

The CH 'transfer' directory will be required to be 'world readable'
via HTTP.  If an open CH, the transfer directory must be also world
writeable via anonymous FTP.  If a secure CH, it must be writeable
by a site-selected username created for the purpose.  The name of
the transfer directory is not set, but must be known to the client. 
If the FTP and HTTP directories are not identical, this must also be
known to the client.

The articles will be placed in the CH by the clients, and must be
given filenames that are identical to the message ID's assigned to
that article per RFC 822 and RFC 1036.  This means that no article
may be transferred via ANTP with a message ID longer than 255
characters.  Some systems may require a shorter file name, the
system limit will then become the maximum usable.  No architecture
allowing less than 240 character filenames should be used for a CH.

The CH must be capable of handling 'collision' between two clients
attempting to upload the same article simultaneously by generating
an error and refusing the duplicate article.

2.2.2.   Optional Configuration

To reduce system load from excessively large directory listings a
rolling one-week window is suggested.  Articles should be 'retired'
from the transfer directory on a regular basis.  Some retirement
mechanism is required, exact details are subject to local option.

Secure CH's may be used for moderated groups.  In this case, only
the moderator would have write access to the transfer directory. 
Clients should be written to accommodate this, and not attempt
uploads to a secure CH for a moderated group.

Mirroring of the CH is possible, however such mirroring should be
done on a frequent basis, at least 4 full exchanges per day. 
Mirroring should take place in both directions.

2.3.   The ANTP Client

ANTP requires 'Smart Clients'.  Most of the activity will be
initiated by the clients, and most error-protection will be the
responsibility of the client.  The client must be capable of
maintaining a history of handled files, retrieving a list of
articles available on the NNTP server and in the CH, and comparing
these three lists to determine files to be transferred.  It must
also be capable actually transferring these files.  All this should
be done in accordance with RFC's governing the protocols used.

2.3.1.   Determining Articles to be Transferred

Upon being started, the ANTP client should retrieve a list of
absolute message ID's for articles received since the last session
from the NNTP server.  Either NOV commands or NNTP commands may be
used for this purpose, other news database commands may be used as
well.  The absolute message ID must be recovered, although a local
article reference may also be used for streamlining the process.

The client should also recover a FTP directory listing of the CH
transfer directory.  Any articles present in the history file should
be eliminated from both lists, and any articles present on both
lists should be eliminated from both lists and added to the history
file.  The client will then have two lists, one with articles
available on the NNTP server not present in the CH, and another of
articles present in the CH not available on the NNTP server.

2.3.2.   Transfer of Articles

At this point, the client should begin transferring articles from
the server and the CH to local storage.  Reception from the NNTP
server may be by either NNTP or news database commands such as the
NOV set.  Reception from the CH will be via HTTP to minimize network
loading.  The sequence used for this is not significant.  

After completion of these transfers, uploading of articles should
begin.  Transfer to the CH will be via FTP, transfer to the NNTP
server will be via the IHAVE command by preference.  However, as
most NNTP servers accept IHAVE only from designated news peers, POST
may be used if certain header information can be preserved.  When
uploading articles to the NNTP server or the CH, the client must be
able to deal with error messages caused by collision.  After
transfer is complete, or an error message has been noted, the
absolute message ID for that article should be added to the history
file.

2.3.3.   Collision

Collision will take one of two forms, CH or NNTP.  CH collision will
be caused by another client having uploaded the article after the
client has received the directory listing, but before the client has
initiated its own upload.  NNTP collision will be caused by the
article arriving by traditional transfer prior to the uploading, or
by the article being canceled.  Other events may also cause
collision.

The client must be capable of dealing with collision, and of noting
these collisions and adding the associated article to the history,
to avoid looping.  NNTP servers or CH's that will not generate
errors in case of collision should not be used with a ANTP client. 
The client must be capable of testing the NNTP server and CH to
ensure that collision will not lead to article duplication.  This
testing should be done at least once per installation, and repeated
as necessary.

2.3.4.   Preservation of Absolute Message ID

As specified in RFC 822, each article must have a unique message ID. 
This ID is used by news transport systems to avoid duplication. 
ANTP clients must take any steps necessary to avoid duplicating
messages with new message ID's, and should not be used with NNTP
servers that will not allow this.

3.   ANTP and Article Headers

ANTP clients should preserve pre-existing header lines to the
maximum degree possible.  When using POST, special care will be
taken to preserve certain information.

3.1.   Format for ANTP Client-Added Headers

All header lines added by the ANTP client will follow a specified
format.  This format will take the form of:

X-ANTP-[Group-name]-[ANTP-client-ID]-[Header-name]:

'Group-name' will be the group for which the ANTP client is being
operated.  'ANTP-client-ID' will be a unique string identifying the
operator of the ANTP client, such as an email address.  'Header-
name' will be a descriptive identifier of the information contained
in that header line.  All headers must be compliant with RFC 822 and
RFC 1036.  These ANTP client-added headers will be referred to as
'X-headers' for the remainder of this document.

3.2.   Classes of Original Article Headers

Headers present in the article before handling by the ANTP client
will be classed in one of three ways; Inviolable, Preserved,
Disposable, and Normal.  Inviolable headers are not to be altered in
any way.  Preserved headers may be overwritten by the transfer
process, but their information will be preserved in an X-header. 
Disposable headers should be removed during the transport process. 
Normal Headers will be passed unaltered, and no special effort will
be made to protect them.

3.2.1.   Headers to be Classed as Inviolable

Certain headers are essential to proper message handling, and
therefore must be preserved unaltered.  These headers include, but
are not necessarily limited to:

From:
Sender:
Reply-To:
Subject:
Approved:
Newsgroups:
References:
Message-ID:
Supersedes:
X-No-Archive:

NNTP servers which will not allow the preservation of these lines
must not be used with an ANTP client.

3.2.2.   Headers to be Classed as Preserved

Certain headers contain information necessary for identifying the
source of an article, and may be overwritten by a POST action. 
These headers should be preserved in an X-header in the form:

[X-header]:[Original-Information]

In this manner, the original Path: header information for an article
in group 'alt.thing' posted to foo.com, transferred via NNTP to
bar.com, and then transferred to baz.com by an ANTP client operated
by <johndoe@baz.com> would be preserved in the following form:

X-ANTP-alt.thing-johndoe@baz.com-Path:news.bar.com!news.foo.com!user

Headers to be classed as Preserved shall include, but not
necessarily be limited to:

Path:
NNTP-Posting-Host:
Organization:

Preservation of these headers will be the responsibility of the ANTP
client that uploads them to the CH.

3.2.3.   Headers to be Classed as Disposable

Headers containing information of purely local interest, such as
local article database ID information, will be classed as disposable
and removed by the uploading ANTP client.  Each client must allow
these to be specified by the operating user.  Headers classed as
Inviolable may not be reclassed as Disposable.

3.2.4.   Headers to be Classed as Normal

Many other headers may be present in the article, these should be
passed unaltered to the CH and NNTP server.  No special effort needs
to be made to preserve them, as NNTP servers should also pass them
unaltered.

3.3.   ANTP Identifier Header

Each ANTP handled article uploaded to the CH will include one X-
header at the end of the header section of the article, which will
be used specifically for identifying the last ANTP client that
handled the article.  This will be a Break: X-header, and will
include any additional information that may be needed to identify
the operator of the ANTP client:

X-ANTP-alt.thing-johndoe@baz.com-Break:1-555-555-1212

This header will be followed by a newline, and then the symbols:

<BREAK>

This will be used by later ANTP clients to mark the break between
article headers and the article body.  The article body should
follow immediately after the <BREAK> line.

3.4.   Article Bodies

ANTP clients should not alter the body of articles in any way.  All
information, including whitespace, should be passed through ANTP
clients and the CH unaltered.


--
Nature abhors a hero.  For one thing, he violates the law of conservation of
energy.  For another, how can it be the survival of the fittest when the
fittest keeps putting himself in situations where he is most likely to be creamed?
	Solomon Short
//.sig created by Inscrutable V0.2a
//Please report any irregularities to elcabalero@aol.com

Technical Details
Message-ID: <52mm8p$54d@library.airnews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <52mm8p$54d@library.airnews.net>
Subject: ANTP Specification
Date: Sun, 29 Sep 1996 00:00:00 +0000
From: elcabalero@aol.com (The Gentleman)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 186097943
Organization: White Knight Consulting
Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp
X-us-congress: FUCK OFF!,