🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53494

Re: Header compression - necessary, useful, senseless ?

#53494
From: The Archiver
Date: Fri, 27 Jul 2001 08:09
116 lines
5308 bytes
curt@kcwc.com (Curt Welch) wrote:

>> The general question is if it makes sense to compress headers.
>
>Something we didn't talk about much over there was the fact that
>if it makes sense to compress headers, then shouldn't it also
>make sense to compress everything?  

Well, I believe this would be the job of a "compressed tunnel"
rather than modifying all news-software on all functions ;-)

> Or at least the ARTICLE command?

Compression of headers can result in savings up to 70-80%.
On binary encoded articles just up to 33% might be possible.
I'm not sure about the compression rate for text articles.
So I would propose to focus on header compression first.

I'm not sure what way would be better: 
Having _true_ binary transport, using a better encoding 
or compressing a bad encoding.

>XOVER will compress better than an uuencoded mp3, but compression
>is a simple way to get 8-bit efficency for binaires without having
>to make people post in a new 8-bit format.  

I'm not sure what path is more promising.
All ways require software changes.
Actually we are 6 people discussing this topic.
Perhaps we should wait for comments from others ?

>If the server supported
>both compressed and uncompresed downloads (which of course is how
>you would do it), then anyone using the new download tools would
>get the advantage for all the articles.

Yes, this would allow a smooth transition.

>On the CPU issue.  The problem there is more complex than just the
>cost of the CPU.  The big news servers these days are already using
>the fastest processors available.  

The CPU is the bottleneck today ?   WOW !

Then the information about the CPU load for transmitting only
25% of data but compressing it efficiently becomes topic #1.

>There isn't anything larger to
>upgrade too most the time.  If you give the CPU more to do, it just
>means the server will be able to support less people.  And the cost
>of that ends up being far more complex than a new $1K CPU.

One day we will have server farms where two servers are only 
delivering headers. (Of course my own project is prepared - 
and already offers this ;-)

I originally thought that compression would be a _wonderful_ job for
a multiprocessor system. One CPU could compress all the time.

>There's also the issue that the low-speed modem users who you would
>think need this the most won't be able to see the advantage because
>the modems are already doing the compression.  

The advantage is then on the providers side - and the backbone.
However there is no 'must' to use compressed headers.
A modem user could easily use the 'standard mode'.

>But the compression
>we are talking about is probably better than what the modems are using
>so there's a chance they could still see some improvement.  Testing
>is required to see how it really works out.

My own experience is that a precompressed stream cannot be 
compressed as good as the original text stream.
Double compression makes sense in very rare cases only.

>For the higher speed users, many of the news servers are already too
>overloaded to really fill up the pipe for them as it is.  

100% CPU load ?
100% network load ?
100% harddisk load ?

I must admit that I dont run huge workstations.
My poor Windows-Systems lack of performance.
So I'm just speculating here.

>Like I said "over there".  Testing is needed.  As to how to do it with
>NNTP I think that's simple -- at least in terms of a prototyping phase.
>Just add a compressed xover command (XCOVER) which sends back a somewhat
>normal response line followed by raw 8 bit data which is the XOVER
>data compressed.

I see no bigger obstacles for implementation - but work.
Thanks for your comprehensive first proposal.

>[...]
>Modifying the compression algorthm so it would never produce the CR LF DOT
>sequence might an option as well.

I myself would prefer true 8 bit streams.
Compression and 8bit data are so closely related that I would use
the chance to go ahead with both ideas.
(Two eggs and three chickens roasted simultanously ;-)

>NNTP Cache or one of those servers used to do a compressed feed option.  Is
>that seeing any use these days?  How did tha work?  What were the issues
>there?

Good questions. 
Such a project and its experiences could help us a lot.

-- 
Juergen, [The Archiver]

Technical Details
Message-ID: <3909a.r71200@archiver.winews.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!nycmny1-snh1.gtei.net!news.gtei.net!news-xfer.mccc.edu!news.lightlink.com!news.alt.net!archiver.winews.net!not-for-mail
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <3909a.r71200@archiver.winews.net>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Fri, 27 Jul 2001 08:09:39 +0000
From: archiver@i3w.com (The Archiver)
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!nycmny1-snh1.gtei.net!news.gtei.net!news-xfer.mccc.edu!news.lightlink.com!news.alt.net!archiver.winews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 115
X-Newsreader: MyNews