🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8857

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

#8857
From: Mark Delany
Date: Fri, 28 Jun 1996 00:00
85 lines
3751 bytes
bugs@freebsd.netcom.com (Mark Hittinger) writes:

>brad@clarinet.com (Brad Templeton) writes:
>>So I want to investigate getting compression into NNTP,

>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.  

If that is indeed the case, what outstanding problems do you see with
compressing transfers?

>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".

>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 see no need for "feed listerners" as you put it. After all, if you
already have a responsive mechanism for readers, who cares if your
server takes a minute or so to accept a connect from another server?

Also to the point, if innd isn't accepting connections from readers
and it isn't accepting connections from feeders, what exactly is it
doing?

Returning to Brad's original query about compressed NNTP. Well, I have
some bad news. Large articles tend not to offer great compression
rates using either compress or gzip.

To demonstrate this, do the following:

	find /var/news/alt/binaries -type f -print | grep '[0-9]' | 
		perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist

That is, select the first 100 articles that are greater than 30K bytes
in size.

Next, determine the compressability of the files:

	cat `cat /tmp/bin.flist` | wc -c

	cat `cat /tmp/bin.flist` | compress | wc -c

	cat `cat /tmp/bin.flist` | gzip | wc -c

The outputs I got were: 15.6M, 13.6M and 11.3M.

I tried this on a number of different samples and the ratios do vary a
bit so some caution is needed when interpreting the results.

In general though, these results show the maximal compression of
articles possible across an NNTP link (in reality, they won't do as
well as there are fixed protocol overheads etc).

In percentage terms, the above test shows around 13% reduction for
compress and about 28% for gzip.

That's the case for a stream of compressed data. If compression was
done on an article basis (say, uncompressed headers and compressed
body) the ratios diminish significantly for small articles but still
remain about the same for the large article sample above.

The question then is this.  Does this sort of saving justify a
reworking of NNTP and associated servers to deal with compressed
traffic/articles?

Would a specialized compressor help?


Regarding non-binary articles. I ran the above tests with non-binary
groups and the compression ratios are more encouraging, but obviously
of less net impact.

The other point about non-binary articles is that the header
consitutes around 30% of the total article size so an uncompressed
header and a compressed body is probably of marginal benefit in the
grand scheme of things.


Regards.

Technical Details
Message-ID: <4qvd4l$3d7$1@bushwire.mira.net.au>
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> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <4qvd4l$3d7$1@bushwire.mira.net.au>
Subject: Re: Let's put compression into NNTP -- I am willing to pay
Date: Fri, 28 Jun 1996 00:00:00 +0000
From: Mark Delany <markd@mira.net.au>
References: <4qs8mb$abu@fugue.clari.net> <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
X-Deja-AN: 162480064
Organization: Werple Internet, Melbourne
Newsgroups: news.software.nntp