🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8844

Re: Let's put compression into NNTP -- I am willing to pay

#8844
From: Mark Hittinger
Date: Thu, 27 Jun 1996 00:00
60 lines
3594 bytes
brad@clarinet.com (Brad Templeton) writes:
>So I want to investigate getting compression into NNTP, and the hard part,
>getting it into lots of people's copies of INN and NNTPD.
>I see several ways to do this:
>The quick and dirty way is to put in quick transmit compression to sending
>programs and INN and NNTPD.  Combined with streaming, compress batches
>(which gives you 3 to 1 or better on text articles) and send, decompress
>on arrival.   The disadvantage is lots of CPU for compression.

I've experimented with this at Netcom and its probably worth tossing what
I learned on the table.  I run a large master/slave configuration with 
lots of slaves in two distant locations.  The feeds to the slaves need to be
consistent and hot so that everything is synchronized correctly.  It is
attractive to consider compression in that scenario because xreplic does
not have streaming.

With a number of streaming feeds you find that response to ihave/sendme 
feeds suffer and response to reader connects suffer.  Unoff4 and two later
patches partially address this problem, however, adding a decompression
step here makes this worse.

I played with a "cxreplic" (compressed xreplic) variant for the slaves but 
they had a similar problem of poor response to reader connects.  I use
two feeds to each slave, and the one cxreplic feed would cause the response to
cxreplic on the other feed to suffer.

I've heard rumors that people are working on making innd connect over
a different port for feeds - so that nnrpd can be invoked via inetd.  This
would solve the reader connect problem.  

What we probably need to do to solve the streaming/compression response
problem is break innd up into some pieces.  I am thinking I need a wrapper
that binds to port 119 and forks off nnrpd's fast - but also forks off
"feed listeners".  Seperate feed listeners would solve the ihave/sendme
response time problem and we could place the decompression step there.
The "feed listeners" prep the incoming feeds for final delivery to an
innd.  (I realize we'd have some history file problems here guys - but
thats another deal :-) ).

This also fixes the window where you can't do anything because of expire
or because of a renumber.  Readers can't connect, you can't post, you
can't accept articles from a feed and queue them, etc.

For now I've modified nnrpd to drop rejected posts into in.coming ala UUCP
days, and then rnews can come in later to clean things up.  Theoretically
I should still be able to accept articles from a feed into a 'holding area'
on my turf while these renumbers are going on.

I'd like to hear comments from anybody that is thinking about the "feed
listener" idea and find out the achilles heel in it.  I know work is
in progress on innfeed (the outgoing side of the house), but the incoming
side of the house probably needs to be addressed as well.

Regards,

Mark Hittinger
Netcom/Dallas
bugs@freebsd.netcom.com

Technical Details
Message-ID: <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com>
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
References: <4qs8mb$abu@fugue.clari.net>

Show Full Headers
Complete Article Headers
Message-ID: <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com>
Subject: Re: Let's put compression into NNTP -- I am willing to pay
Date: Thu, 27 Jun 1996 00:00:00 +0000
From: bugs@freebsd.netcom.com (Mark Hittinger)
References: <4qs8mb$abu@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.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 162317379
Organization: Netcom
X-netcom-date: Thu Jun 27 12:53:07 AM CDT 1996
Newsgroups: news.software.nntp