πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87248

Re: About compression ratio

#87248
From: D. Stussy
Date: Fri, 20 Nov 2015 04:34
41 lines
3249 bytes
"Julien Γ‰LIE"  wrote in message news:n2d9ha$41r$1@news.trigofacile.com...
I've just tested various compression levels for a set of NNTP commands and 
answers.

In summary:
* 1-line commands and answers have a greater size when compressed;
* the RFC should not recommend level 0 when no compression is desired but 
level 1;
* for articles having base64 attachments, the compression ratio is 75% so it 
is still desirable to compress them;
* answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, 
NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and 
NEWNEWS commands are worth compressing.

Here are the numbers:  ....
==============================

Although you proved it empirically, you've noted that short communications 
(less than 30 bytes) do not benefit from compression and should be sent 
uncompressed.  Multiline "commands" (e.g. POST) and responses (e.g. article 
or list retrieval) do benefit.  Therefore, what makes sense is to have some 
sort of result mechanism indicating that the result is compressed or that 
the input to be accepted may be compressed.  For responses, this could be 
done with a different response code.  For commands, command parameters shall 
indicate.

At the TCP level, I note that there appear to be 4 reserved bits remaining. 
Perhaps someone (...) should write an RFC that steals one of these bits 
which will indicate that a packet is either uncompressed (0) or compressed 
at the application level (1), that the network transmitter can be signaled 
so to skip IPSEC IPCOMP processing, since compressing an already compressed 
sequence often yields no significant additional benefit.  Of course, that is 
only an option when IKE processing indicates "use" and not "off" or 
"required" for IPCOMP.

This way, an application can switch between compressed and uncompressed 
(without having to use a "null compression" method flag) on the fly per 
response and/or per packet and signal that response to higher protocols. 


Technical Details
Message-ID: <n2m7sb$1bu$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <n2d9ha$41r$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <n2m7sb$1bu$1@snarked.org>
Subject: Re: About compression ratio
Date: Thu, 19 Nov 2015 20:34:18 -0800
From: "D. Stussy" <spam@spam.org>
References: <n2d9ha$41r$1@news.trigofacile.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.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Lines: 39
Reply-To: "D. Stussy" <newsgroups+replies@kd6lvw.ampr.org>
NNTP-Posting-Host: nv-184-1-12-86.dhcp.embarqhsd.net
Mime-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="UTF-8";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: snarked.org 1447994059 1406 184.1.12.86 (20 Nov 2015 04:34:19 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Fri, 20 Nov 2015 04:34:19 +0000 (UTC)
Importance: Normal
X-MSMail-Priority: Normal
X-No-Archive: Yes
X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513
X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513
In-Reply-To: <n2d9ha$41r$1@news.trigofacile.com>
X-Received-Body-CRC: 3770419040
X-Received-Bytes: 3216