🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53478

Header compression - necessary, useful, senseless ?

#53478
From: The Archiver
Date: Thu, 26 Jul 2001 12:09
77 lines
3559 bytes
We had a discussion about bandwidth and costs for header
retrieval started by a user question in alt.binaries.news-server-comparison.
The details are leaving that groups topic, so I think it is a good idea
to continue the discussion here.


The topic is:
User are downloading a lot of headers from newsgroups - just for
knowing what's going on - without retrieving all the articles.
Some users with multi-host-newsreaders are downloading 
headers from several servers.
Some providers are charging users for header-download-volume.

The general question is if it makes sense to compress headers.
This is actually independent from the question how NNTP would
support such an experimental feature (and what servers/readers
would use such a feature).

The advantage:
Headers (XOVER, XHDR) can be compressed very well.
The used bandwidth for header transmission is reduced.
The transmission time is reduced.
Perhaps headers could be even stored compressed
   (I know - it's hard to find good algorithms)

The disadvantage:
Header compression "on the fly" consumes CPU-time.


Some admins claim that the use of the CPU for compression
would be so huge that it would be senseless to compress
headers. Then the users would have to pay for CPU-time.

I've made a quick check on a binary.multimedia group.
60.000 headers (13.0 MB) can be compressed with PkZip
down to 1.8 MB (87% savings) within 5 seconds on an old
330 Mhz Pentium-2 (256 MB of mem, slow IDE-disk).

A faster and simple algorithm (the author Karl Haenen says 
it is the fastest he ever saw):  LZRW1/KH  was able to 
compress the same file to 4.3 MB (66% savings) 
within 2.6 seconds. (That algorithm is approx 114 lines 
of normal C code). 

So this faster algorithm would be able to compress approx 
5 MegaBytes of headers per second (on my slow CPU).


I admit that I have no idea about the CPU/workload for 'normal
header transfer' - compared to such a compressed transfer.
(And I'm sure that a huge workstation with fast disks would have
done the job far better :-)

Do you think that it makes sense to make further tests and specify
an X-compress-OVER command which delivers compressed 
headers ?
How expensive is bandwidth compared to CPU-cycles?
Would it even make sense to use the better, slower compression
algorithm to save bandwidth ?
Any statistics about amount of headers/transfer volume of headers 
per day together with CPU-usage for XOVER?


As some of you know I'm working on my own MyNews-Server project.
The private users are having tiny bandwidth but enormous spare
CPU power. So header transfer between them will be compressed
very soon (with a quick and dirty approach ;-). 
But what applies to private peering might be also interesting for 
providers. 


Your comments ?

-- 
Juergen, [The Archiver]

Technical Details
Message-ID: <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!news.alt.net!archiver.winews.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3009e.q71214@archiver.winews.net>
Subject: Header compression - necessary, useful, senseless ?
Date: Thu, 26 Jul 2001 12:09:30 +0000
From: archiver@i3w.com (The Archiver)
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!news.alt.net!archiver.winews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 76
X-Newsreader: MyNews