🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #12692

Re: "Good Net-Keeping Seal of Approval" for NNTP servers?

#12692
From: Brad Templeton
Date: Tue, 26 Nov 1996 00:00
106 lines
5707 bytes
In article <57es53$auc@tines.hsc.fr>, Vincent Archer <archer@hsc.fr> wrote:
>Brad Templeton (brad@clarinet.com) wrote:
>That broker service could be used for lots of things, besides using News,
>of course. Including, eventually, anonymous ftp load balancing, and those

Indeed, which is why not to build it in for news.  But consider the
cost of such a service.   It might be more expensive to find out who
is closest than to go to the site that is remote.  I am presuming
a distributed system so that caching this information is of limited
value.

Remember, it would be rare to fetch an article from its originating site
or NX mirror.  Normally you would fetch from your own local master hubs.

Originating sites would be used for low readership articles and expired
articles.

But a general "find closest mirror from these selections" would be good.

Now one way to do this would be to develop a way to represent the graph of
the net in small bitstrings, so mirroring sites could have a record
displaying their geometry.   Except geometry is dynamic. 

But you could give every major region of the net (ie. major ISP) a number
in a space, and make available region-to-region cost tables, so you could
know your region or sub-region and find the closest region to you.

But unless you have this table present it is again slower to do this
than just to fetch.

Imagine this.. Over 95% of USENET articles, perhaps more, will fit in
a UDP packet if compressed.   So you look at the header of the article
you are fetching (you have the header, remember, unless it's expired) and
you look at the size.  If it fits in a UDP packet, you send a UDP request
(single packet) to a site on the NX list.  If nothing comes back you try
the next site on the list and so on.  You may get it back twice but that's
rare enough that this is cheaper than TCP.

If the body won't fit in a single packet (or the header or msgid tells
you that UDP won't work) you open a TCP connection, possibly HTTP since
all the stuff is in place for that, and pull the body down that way.

Note the tremendous efficiency of the UDP method, which again will handle
almost all articles.  One short packet in, one long packet back, no
connection setup, etc.   And if it fails you can always try the HTTP
or TCP method.

And a fast efficient server is easy to write, it is effectively:

	do {
		wait for UDP request
		Look up message-id, check permissions
		non-blocking (or create thread to) write UDP packet with
			article body or error message.  (Error message
			can include "please use TCP for this message)

	}

This would be fast, fast, fast.  Firewalls I guess are the main problem,
particularly for the return packet.

>Then, a server could fetch the article from its master feed, fall back to
>the group archive servers, then fall back to the sender archive servers.

That's the idea, though I would consider group archive servers just another
level of master servers.  Particularly if we could ever get a UDP system
up (firewalls may stop that as I noted) then querying several servers
as to whether they have something can be very efficient.  (the daemon could
even keep a bitmap in ram so that it can quickly answer "no" in most
cases when it doesn't have the article without even going to disk.)
>
>NX should not be mandatory. If your originating site doesn't have NX records,
>your article will simply become unavailable very quickly. Too bad for you.

I'm debating that one.  While failing to serve up your articles means
people don't read your articles, it is a hassle for the reader, so I am
more inclined to say that the rule would be if you don't arrange for
somebody to serve up your articles, you can't post.   Is this a big burden?
I don't think so, so long as the system which makes the load go on
local hubs and not on main servers works right.

Note the valuable anti-spam aspects of this as well.  It doesn't forbid
anonymous remailers in any way, either.


>Hmmm, also include hierarchical NX. If I can't find the NX for tines.hsc.fr,
>you might check the NX for hsc.fr.

No need for that since every site can list an NX of such a higher level site
if they want to in the record.
>
>Hmmm, define packet size? Many firewalls these days wants to avoid fragmented
>IP packets, because fragmentation has become a way of bypassing the spoofing
>detection and/or filtering.

I haven't kept track on packet sizes.  Of the 87 articles in this group
in my spool, all but 10 have bodies that fit in 2K with compression.  But
I had thought the limit higher, I admit.

So maybe HTTP it is because it's installed and goes through all firewalls.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Technical Details
Message-ID: <57fom4$8i4@fugue.clari.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.net-abuse.misc.mbox.zip!not-for-mail
References: <trans-ya023180001911961144110001@ssbunews.ih.lucent.com> <vxk917vjr94.fsf@pocari-sweat.jprc.com> <572c8m$a1@fugue.clari.net> <57es53$auc@tines.hsc.fr>

Show Full Headers
Complete Article Headers
Message-ID: <57fom4$8i4@fugue.clari.net>
Subject: Re: "Good Net-Keeping Seal of Approval" for NNTP servers?
Date: Tue, 26 Nov 1996 00:00:00 +0000
From: brad@clarinet.com (Brad Templeton)
References: <trans-ya023180001911961144110001@ssbunews.ih.lucent.com> <vxk917vjr94.fsf@pocari-sweat.jprc.com> <572c8m$a1@fugue.clari.net> <57es53$auc@tines.hsc.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.net-abuse.misc.mbox.zip!not-for-mail
X-Deja-AN: 201221241
Sender: brad@clari.net
X-original-newsgroups: office.clip.brad
Organization: ClariNet Communications Corp.
Newsgroups: news.admin.net-abuse.misc,news.software.nntp