🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53481

Re: Header compression - necessary, useful, senseless ?

#53481
From: Curt Welch
Date: Thu, 26 Jul 2001 17:16
74 lines
4792 bytes
archiver@i3w.com (The Archiver) 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?  Or at least the ARTICLE
command?

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

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

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

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.  Depending
on how loaded the news server is, there will be some point on the
high end where compression will be a net loss for the user instead
of a net gain. -- but I guess if the download tool can try downloading
both ways, then the user could always pick the option that worked
best for them for a given server...

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 think the pre-compressed data (for xcover and carticle) should be
the data with CR LF at the end of the lines, but not dot-escaped, and with
no trailing DOT.

The 8-bit compressed data would then be dot stuffed as needed (CR LF DOT
would be replaced with CR LF DOT DOT).  And the final CR LF before the
trailing DOT would NOT be counted as part of the compressed data.

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

If the idea became a standard, you would want to add hooks to allow
upgrading to better compression algorthms in the future.  You would need
commands to allow the client to find out which algorithms the server
supported and allow it to pick the one it wanted to use.  The discovery
could probably be done through LIST EXTENSIONS and the selection of the
algorithm could be done either as an agument to the XCOVER command or in a
MODE (or MODE-like) command.

The other approach to this is to compress the entire NNTP stream.  Use a
MODE COMPRESS type of thing to turn it on and I guess you could use another
MODE to either turn it off or switch algorithms mid-stream. as well.

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?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <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!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mail
References: <3009e.q71214@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <20010726131654.725$7w@newsreader.com>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Thu, 26 Jul 2001 17:16:55 +0000
From: curt@kcwc.com (Curt Welch)
References: <3009e.q71214@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!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com mCL052/M@,FGTBliNLqTYTi4ziV/ynwRPXO5DOfD@jm/Gh
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 73