🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by tommy Sun, 27 Sep 2009 13:33
Which header compression implementation?
#81937
Author: tommy
Date: Sun, 27 Sep 2009 13:33
22 lines
1642 bytes
Hey,

I was wondering which header compression implementation to support for a 
newly build nntp server.

There seem to be 3 variants around.

1) The Astraweb implementation, using yEnc to encapsulate compressed data.

2) The Diablo method, not encapsulating but sending compressed "\r\n.\r
\n" markers.

3) The giganews XFEATURE method, which no one really don't know much 
about?

So which one to choose for a most compatible reader implementation? I 
think i go with the astraweb implementation since that one seems the most 
clean. Diablo is doing things differently, but it seems to work for a lot 
of readers. What about the response code? 221 224 225?

Thanks,
Tommy
Re: Which header compression implementation?
#82003
Author: Julien ÉLIE
Date: Thu, 15 Oct 2009 18:19
56 lines
3528 bytes
Hi Tommy,

> I was wondering which header compression implementation to support for a
> newly build nntp server.
>
> 3) The giganews XFEATURE method, which no one really don't know much
> about?

Maybe something like that:

http://www.giganews.com/accelerator.html
http://www.giganews.com/blog/2008/07/why-you-should-be-using-giganews.html

"Compresses headers for up to 10 times faster header downloads"

%%%
Compression Technology

The Giganews Accelerator sets itself apart from other Usenet compression
technologies because the Accelerator's compression is done at the protocol
level rather than the network level. By compressing at the protocol level,
we can selectively compress the parts of the data stream where compression
makes sense, and leave alone parts that do not benefit from compression.

Most binary article data is already compressed when it's uploaded,
so compressing it for download doesn't actually save users any network
traffic. Similarly, very small content, such as response messages, also get
very little benefit out of compression because of their already small size.

Compression also requires CPU and time. CPU time is required on the server
end to compress the data and on the client end, to decompress the data.

By selectively compressing only the compressible content, a user's CPU can be
used for downloading instead of needless decompression work.

Other Usenet compression technologies essentially compress the entire network
stream, using software like Stunnel, which compresses all data in and out.
With that method, every bit of traffic requires more CPU to decompress,
CPU that could be better spent on getting more traffic or decoding
already downloaded data.
%%%


> So which one to choose for a most compatible reader implementation? I
> think i go with the astraweb implementation since that one seems the most
> clean. Diablo is doing things differently, but it seems to work for a lot
> of readers. What about the response code? 221 224 225?

The right move should be to "standardize" header compression and define
a new documented NNTP command...

-- 
Julien ÉLIE

« Ibi etsi uis te non esse sed es ibi. » 
Re: Which header compression implementation?
#82005
Author: Philip from Giganews
Date: Thu, 15 Oct 2009 18:55
78 lines
5112 bytes
Tommy and Julien,

If you'd like a copy of our internal RFC for the XFEATURE command set, 
e-mail me at philip@giganews.com and I can send it to you.

The XFEATURE command set does support overview compression as well as 
compression of other commands.  The difference between XFEATURE and 
other schemes is that with XFEATURE, the server decides when compressed 
transfers are used.  XFEATURE itself is a way for clients to inform 
servers of capabilities they can handle, so that the server (which has 
knowledge about what size and type of data will be coming down the pipe) 
can optimize the stream for the data.  It encompasses compression, but 
also other ideas.  We weren't happy with the way compression was being 
implemented as client-initiated sequence.

We've been working with some larger clients to test out some of these 
ideas and see what is helpful and what isn't.  If any of this stuff is 
fruitful, we'll release it for further discussion, but right now, we're 
just implementing some ideas and seeing what people who implement 
clients think about them.

Philip
Giganews

Julien ÉLIE wrote:
> Hi Tommy,
> 
>> I was wondering which header compression implementation to support for a
>> newly build nntp server.
>>
>> 3) The giganews XFEATURE method, which no one really don't know much
>> about?
> 
> Maybe something like that:
> 
> http://www.giganews.com/accelerator.html
> http://www.giganews.com/blog/2008/07/why-you-should-be-using-giganews.html
> 
> "Compresses headers for up to 10 times faster header downloads"
> 
> %%%
> Compression Technology
> 
> The Giganews Accelerator sets itself apart from other Usenet compression
> technologies because the Accelerator's compression is done at the protocol
> level rather than the network level. By compressing at the protocol level,
> we can selectively compress the parts of the data stream where compression
> makes sense, and leave alone parts that do not benefit from compression.
> 
> Most binary article data is already compressed when it's uploaded,
> so compressing it for download doesn't actually save users any network
> traffic. Similarly, very small content, such as response messages, also get
> very little benefit out of compression because of their already small size.
> 
> Compression also requires CPU and time. CPU time is required on the server
> end to compress the data and on the client end, to decompress the data.
> 
> By selectively compressing only the compressible content, a user's CPU 
> can be
> used for downloading instead of needless decompression work.
> 
> Other Usenet compression technologies essentially compress the entire 
> network
> stream, using software like Stunnel, which compresses all data in and out.
> With that method, every bit of traffic requires more CPU to decompress,
> CPU that could be better spent on getting more traffic or decoding
> already downloaded data.
> %%%
> 
> 
>> So which one to choose for a most compatible reader implementation? I
>> think i go with the astraweb implementation since that one seems the most
>> clean. Diablo is doing things differently, but it seems to work for a lot
>> of readers. What about the response code? 221 224 225?
> 
> The right move should be to "standardize" header compression and define
> a new documented NNTP command...
> 
Re: Which header compression implementation?
#82007
Author: Urs Janßen
Date: Thu, 15 Oct 2009 22:15
19 lines
1822 bytes
In <c9f23$4abf6999$d468d01a$30930@nf16.news-service.com>, tommy wrote:
> 1) The Astraweb implementation, using yEnc to encapsulate compressed data.
> 
> 2) The Diablo method, not encapsulating but sending compressed "\r\n.\r
> \n" markers.
> 
> 3) The giganews XFEATURE method, which no one really don't know much 
> about?
> 
> So which one to choose for a most compatible reader implementation? I 

I have the Astraweb implementation on my todo-list for tin, it's
clean and documented.

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Re: Which header compression implementation?
#82008
Author: floffy
Date: Thu, 15 Oct 2009 23:41
43 lines
2905 bytes
On Thu, 15 Oct 2009 20:19:38 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Tommy,
>
>> I was wondering which header compression implementation to support for a
>> newly build nntp server.
>>
>> 3) The giganews XFEATURE method, which no one really don't know much
>> about?
>
>Maybe something like that:
>
>http://www.giganews.com/accelerator.html
>http://www.giganews.com/blog/2008/07/why-you-should-be-using-giganews.html
>
>"Compresses headers for up to 10 times faster header downloads"
>
>%%%
>Compression Technology
>
>The Giganews Accelerator sets itself apart from other Usenet compression
>technologies because the Accelerator's compression is done at the protocol
>level rather than the network level. By compressing at the protocol level,
>we can selectively compress the parts of the data stream where compression
>makes sense, and leave alone parts that do not benefit from compression.
>
>Most binary article data is already compressed when it's uploaded,
>so compressing it for download doesn't actually save users any network
>traffic. Similarly, very small content, such as response messages, also get
>very little benefit out of compression because of their already small size.

On my server it's use compression [mode compress] Stream, ihave,dfeed
with binairies files compress is more big +-4% 
otherwise with text it's very good compression
some of my peer ,we use 2 channels one for bin withour compression
other text with compression 

For headers compression it's a good ideal  !

Does exist a front end for server that not have this possibility ?

Re: Which header compression implementation?
#82015
Author: Julien ÉLIE
Date: Sun, 18 Oct 2009 13:06
24 lines
2572 bytes
Hi Philip,

> The XFEATURE command set does support overview compression as well as compression of other commands.  The difference between 
> XFEATURE and other schemes is that with XFEATURE, the server decides when compressed transfers are used.  XFEATURE itself is a way 
> for clients to inform servers of capabilities they can handle, so that the server (which has knowledge about what size and type of 
> data will be coming down the pipe) can optimize the stream for the data.

That's interesting!


> We've been working with some larger clients to test out some of these ideas and see what is helpful and what isn't.  If any of 
> this stuff is fruitful, we'll release it for further discussion, but right now, we're just implementing some ideas and seeing what 
> people who implement clients think about them.

Well, I hope it will be released for further discussion and implementation.
Have a nice week,

-- 
Julien ÉLIE

« Il y a un proverbe serbe qui dit ceci : « Notre passé est sinistre,
  notre présent est invivable, heureusement que nous n'avons pas d'avenir ! »
  (Philippe Geluck)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads