🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
68 messages
68 total messages Page 1 of 2 Started by The Archiver Thu, 26 Jul 2001 12:09
Page 1 of 2 • 68 total messages
Header compression - necessary, useful, senseless ?
#53478
Author: 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]

Re: Header compression - necessary, useful, senseless ?
#53481
Author: 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/
Re: Header compression - necessary, useful, senseless ?
#53482
Author: Terrance Richard Boyes
Date: Thu, 26 Jul 2001 17:32
25 lines
1937 bytes
The Archiver <archiver@i3w.com> wrote:

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

Well most modem and ISDN users are probably already using
compression. I don't know if any of the broadband solutions
use compression (mine doesn't as far as I can tell), but

IMO it would make more sense to get the compression done
at that level rather than try and add it to all the various
applications. 

[snip]

-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
I think my career is ruined!

Re: Header compression - necessary, useful, senseless ?
#53483
Author: Marco d'Itri
Date: Thu, 26 Jul 2001 18:23
26 lines
2160 bytes
curt@kcwc.com wrote:

>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.
Why? It would be easier to declare the lenght of the compressed data
before transmitting it unescaped.

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

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *

Re: Header compression - necessary, useful, senseless ?
#53485
Author: Kjetil Torgrim Homme
Date: Thu, 26 Jul 2001 20:04
28 lines
2319 bytes
[Curt Welch]

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

I tested a gzip module for HTTP, which was supposed to help out users
with slow modems.  It took _exactly_ the same time to transfer the
data compressed or uncompressed on my 33.6k modem...

Not sure if we should care about modem users, though.  In Norway, most
people are using ISDN, with an increasing amount of xDSL and cable.

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

I like this better than lots of new commands, although not quite.  I'd
like to be able to turn compression on and off on each command.
E.g. compress XOVER, LIST ACTIVE and ARTICLE, but leave GROUP alone.


Kjetil T.
Re: Header compression - necessary, useful, senseless ?
#53487
Author: Curt Welch
Date: Thu, 26 Jul 2001 21:58
45 lines
3164 bytes
Marco d'Itri <abuse@1.2.0.1.0.0.1.e.f.f.3.ip6.int> wrote:
> curt@kcwc.com wrote:
>
> >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.

> Why? It would be easier to declare the lenght of the compressed data
> before transmitting it unescaped.

It would only be a little bit easier on the receiving side and completely
unworkable on the sending side to do that.

For that to work you would have to pre-compress all the headers to
calculate the length before you could start sending the first byte - before
you could even send the response since the size would most likely be
included in the response line.  That would suck big time.  You need to
compress and send the headers as you read them.

Do you realize that from some of the large groups in the long retention
servers you are talking hundreds of MB of header data?  No way do you want
to compress that before starting to send the first header.

And a good server will be checking the status of the articles as it's
sending the XOVER data.  If an article expires (or is cancled) in the
middle of a 6 hour header download, the XOVER data shouldn't include the
article just because it was there yesterday when the download started.  So
you can't even get away with pre-compressing blocks and calculating the
size before you start the download.

Using a size count for xover data just wouldn't work.  Using it for
articles could work, but would still be wrong.

> GETSET.

I'll have to look into that.  I've seen it mentioned a few times now.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53491
Author: Curt Welch
Date: Thu, 26 Jul 2001 23:59
22 lines
1878 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> I like this better than lots of new commands, although not quite.  I'd
> like to be able to turn compression on and off on each command.
> E.g. compress XOVER, LIST ACTIVE and ARTICLE, but leave GROUP alone.

Maybe something like this would make sense:

   COMPRESS [algorithm] <NNTP COMMAND>

as in

COMPRESS LIST ACTIVE
200 GZIP LIST ACTIVE follows
ka9s!ydDfba=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9H2hy3rioh
=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9ka9s!ydDfba=idbF'KLdsfd7s8u+5K37
25bhdsv798y\h7wo4hbtr9H2hy3riohH2hy3rioh (etc.)
..

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53494
Author: 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]

Re: Header compression - necessary, useful, senseless ?
#53495
Author: The Archiver
Date: Fri, 27 Jul 2001 08:12
22 lines
1686 bytes
curt@kcwc.com (Curt Welch) wrote:

>> Why? It would be easier to declare the lenght of the compressed data
>> before transmitting it unescaped.
>
>For that to work you would have to pre-compress all the headers to
>calculate the length before you could start sending the first byte - before
>you could even send the response since the size would most likely be
>included in the response line.  That would suck big time.  You need to
>compress and send the headers as you read them.

Most compressing algortihms I've seen yet are based on a block of data.
So perhaps 4-64 kBytes are compressed - and then moved to the 
'out-queue'. Such a compressed block might be sent out with a length
byte.

This would satisfy both of you.

-- 
Juergen, [The Archiver]

Re: Header compression - necessary, useful, senseless ?
#53496
Author: The Archiver
Date: Fri, 27 Jul 2001 08:28
40 lines
2350 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

>I tested a gzip module for HTTP, which was supposed to help out users
>with slow modems.  It took _exactly_ the same time to transfer the
>data compressed or uncompressed on my 33.6k modem...

V42bis is a powerful compression ;-)
I'm still seeking for the sourcecode.

>Not sure if we should care about modem users, though.  In Norway, most
>people are using ISDN, with an increasing amount of xDSL and cable.

xDSL and cable modems are increasing also here.
At least in my home country most providers do not offer compression
on ISDN lines.

>>   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.
>
>I like this better than lots of new commands, although not quite.  I'd
>like to be able to turn compression on and off on each command.
>E.g. compress XOVER, LIST ACTIVE and ARTICLE, but leave GROUP alone.

I'm hoping for input from the NNTP task force for this decision.
A "step-by-step" approach would begin with a  C-XOVER command
and a C-ARTICLE command  (and C-LIST is also a good idea.
Downloading grouplists is a PITA today).

And I'm not sure if it makes sense to redesign half of NNTP right now.
But because the NNTP-taskforce is actually working on RFC977
it is a good time to discuss the entire thing.

-- 
Juergen, [The Archiver]



Re: Header compression - necessary, useful, senseless ?
#53497
Author: The Archiver
Date: Fri, 27 Jul 2001 08:33
31 lines
1781 bytes
tez@pierrot.co.uk (Terrance Richard Boyes) wrote:

>Well most modem and ISDN users are probably already using
>compression. 

I know a country where a few million users run ISDN without
compression.

>I don't know if any of the broadband solutions
>use compression (mine doesn't as far as I can tell), but

Most do not. The providers are already today having problems 
to deliver the bandwidth.

>IMO it would make more sense to get the compression done
>at that level rather than try and add it to all the various
>applications. 

I dont agree. This does not reduce the net-load for the news-server
and the bandwidth on the backbone. Just the connection
from the ISP to the user would benefit.

Of course changing "all the various applications" is hard to do.
But transporting highly compressible data on the internet should
not stay a usual thing - I'm already saving ressources whenever 
it is possible.

-- 
Juergen, [The Archiver]

Re: Header compression - necessary, useful, senseless ?
#53499
Author: Jan Ingvoldstad
Date: Fri, 27 Jul 2001 11:14
15 lines
1849 bytes
On 27 Jul 2001 10:28:06 +0200, archiver@i3w.com (The Archiver) said:

> And I'm not sure if it makes sense to redesign half of NNTP right now.
> But because the NNTP-taskforce is actually working on RFC977
> it is a good time to discuss the entire thing.

Oooh.  Maybe I can entice somebody into forcing news servers to
storing "reverse threads", too.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Header compression - necessary, useful, senseless ?
#53500
Author: Marco d'Itri
Date: Fri, 27 Jul 2001 12:01
16 lines
1750 bytes
archiver@i3w.com wrote:

>Most compressing algortihms I've seen yet are based on a block of data.
>So perhaps 4-64 kBytes are compressed - and then moved to the 
>'out-queue'. Such a compressed block might be sent out with a length
>byte.

>This would satisfy both of you.
No, it's pointless. Actually I was talking about ARTICLE data
compression, which could be done once when writing the spool.

-- 
ciao, |
Marco | * The Internet is full. Go away.  -- Joel Furr *

Re: Header compression - necessary, useful, senseless ?
#53502
Author: Miquel van Smoorenburg
Date: Fri, 27 Jul 2001 13:01
22 lines
1783 bytes
In article <20010726195901.422$qW@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>Maybe something like this would make sense:
>
>   COMPRESS [algorithm] <NNTP COMMAND>
>
>as in
>
>COMPRESS LIST ACTIVE
>200 GZIP LIST ACTIVE follows
>ka9s!ydDfba=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9H2hy3rioh
>=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9ka9s!ydDfba=idbF'KLdsfd7s8u+5K37
>25bhdsv798y\h7wo4hbtr9H2hy3riohH2hy3rioh (etc.)
>.

Compressing ascii only to base64 encode the result again? That's .. scary

Mike.
-- 
"dselect has a user interface which scares small children"
	-- Theodore Tso, on debian-devel
Re: Header compression - necessary, useful, senseless ?
#53503
Author: J.B. Moreno
Date: Fri, 27 Jul 2001 14:10
51 lines
2794 bytes
In article <3909a.r71200@archiver.winews.net>,
 The Archiver <archiver@i3w.com> wrote:

> 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 ;-)

That's what modem users get, and for everyone else, installing a proxy
server isn't that likely.

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

I just posted a test article using a 8bit scheme proposed by someone on
the USEFOR mailing list: use 8 bit with =,LF and CR escaped using
quoted-printable.

Newsgroups: alt.binaries.test
Message-ID: <jbm-20010727090949@newsreaders.com>
Subject:test binary - 1948 Tucker 4dr Sedan.jpg
bytes:376682
lines:736

Someone else had previously posted this picture as
Newsgroups: alt.binaries.automobile.pictures
Message-ID: <pOY77.2462$b_3.245998@news0.telusplanet.net>
Subject: 1948 Tucker 4dr Sedan-01=maxbarn=.jpg (1/1) 366597 bytes   
bytes:514133
lines:8153

Actual file size is 366597, my test post was 1.0275 times that, the
original posting was 1.4024 times that.

-- 
J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
#53505
Author: Curt Welch
Date: Fri, 27 Jul 2001 16:00
34 lines
2748 bytes
archiver@i3w.com (The Archiver) wrote:
> curt@kcwc.com (Curt Welch) wrote:
>
> >> Why? It would be easier to declare the lenght of the compressed data
> >> before transmitting it unescaped.
> >
> >For that to work you would have to pre-compress all the headers to
> >calculate the length before you could start sending the first byte -
> >before you could even send the response since the size would most likely
> >be included in the response line.  That would suck big time.  You need
> >to compress and send the headers as you read them.
>
> Most compressing algortihms I've seen yet are based on a block of data.
> So perhaps 4-64 kBytes are compressed - and then moved to the
> 'out-queue'. Such a compressed block might be sent out with a length
> byte.

You could also simply send the data in blocks with a block size included
before each block.  So the binary data stream starts with a two byte
block size, then N bytes of data, and keeps repeating like that until
done.  The last size will be a zero lengh byte to mark the end.

Id still rather just stick with the NNTP standard of CR LF DOT to mark
the end and DOT stuffing inside the stream.

Anyone that needs to read data from an NNTP stream allready has code
to do the above.  And if they were smart, it was writen to deal with
binary data already.  So there's no change required to read the
compressed data.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53506
Author: Curt Welch
Date: Fri, 27 Jul 2001 16:02
16 lines
1797 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> On 27 Jul 2001 10:28:06 +0200, archiver@i3w.com (The Archiver) said:
>
> > And I'm not sure if it makes sense to redesign half of NNTP right now.
> > But because the NNTP-taskforce is actually working on RFC977
> > it is a good time to discuss the entire thing.
>
> Oooh.  Maybe I can entice somebody into forcing news servers to
> storing "reverse threads", too.

What do you mean by that?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53507
Author: Curt Welch
Date: Fri, 27 Jul 2001 16:03
24 lines
2024 bytes
miquels@cistron-office.nl (Miquel van Smoorenburg) wrote:
> In article <20010726195901.422$qW@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >Maybe something like this would make sense:
> >
> >   COMPRESS [algorithm] <NNTP COMMAND>
> >
> >as in
> >
> >COMPRESS LIST ACTIVE
> >200 GZIP LIST ACTIVE follows
> >ka9s!ydDfba=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9H2hy3rioh
> >=idbF'KLdsfd7s8u+5K3725bhdsv798y\h7wo4hbtr9ka9s!ydDfba=idbF'KLdsfd7s8u+5
> >K37 25bhdsv798y\h7wo4hbtr9H2hy3riohH2hy3rioh (etc.)
> >.
>
> Compressing ascii only to base64 encode the result again? That's .. scary

No, my example mislead you.  The data in the output would really be 8bit.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53510
Author: Jan Ingvoldstad
Date: Fri, 27 Jul 2001 19:14
76 lines
4374 bytes
On 27 Jul 2001 16:02:47 GMT, curt@kcwc.com (Curt Welch) said:

> What do you mean by that?

Reverse threads, or more appropriately _real_ threads, would contain
the information about which articles are in a thread.

The References header only contains articles that are earlier in the
thread history, and not later articles or articles at the same level
in the thread tree.

For instance, this thread (as seen from the news server I'm reading
from) has the following articles in it (sorted on time):

  <3009e.q71214@archiver.winews.net>
    <20010726131654.725$7w@newsreader.com>
    <20010726.173242.9E9801DE.w6aa@pierrot.co.uk>
    <0t3b605fdfi155bn3e9%md@wonderland.linux.it>
    <1rk80ve9sx.fsf@fimm.ifi.uio.no>
    <20010726175821.025$Hd@newsreader.com>
    <20010726195901.422$qW@newsreader.com>
    <3909a.r71200@archiver.winews.net>
    <4112a.r71201@archiver.winews.net>
    <0628a.r71202@archiver.winews.net>
    <2333a.r71203@archiver.winews.net>
    <oaslmlaei9v.fsf@tyrfing.ifi.uio.no>
    <0t3b6157d1i728n3e9%md@wonderland.linux.it>
    <9jron8$pe2$1@ncc1701.cistron.net>
    <270720011010140353%planb@newsreaders.com>
    <jbm-20010727090949@newsreaders.com>
    <pOY77.2462$b_3.245998@news0.telusplanet.net>
    <20010727120040.184$4k@newsreader.com>
    <20010727120247.914$Bh@newsreader.com>
    <20010727120356.281$qz@newsreader.com>

However, the References header only has these (in my followup):

  <3009e.q71214@archiver.winews.net>
  <20010726131654.725$7w@newsreader.com>
  <1rk80ve9sx.fsf@fimm.ifi.uio.no>
  <0628a.r71202@archiver.winews.net>
  <oaslmlaei9v.fsf@tyrfing.ifi.uio.no>
  <20010727120247.914$Bh@newsreader.com>

So, a References header is basically a header that could be called
"In Thread".  I don't propose this "Thread" thing to be an additional
header.

If a real thread was stored in the news server, one could do some
pretty funky things with caching and prefetching (which is what one
half of my thesis is blabbering about), when combined with a
header-only feed.  I don't know exactly how much this would help,
though; I'll need to perform some live experiments to see that.

How it would work, is like this:

Whenever a news server receives an article, it check whether that
article has a References header.  If it does, it adds the incoming
article's Message-ID to a thread index, where the key is _every_
legal Message-ID mentioned in References.

So, for this entire thread, the key would be
<3009e.q71214@archiver.winews.net> and the data the rest of the
Message-IDs (those indented with 4 spaces instead of two above).  For
a subthread, such as my article and your response to it, key and data
would be:

  <oaslmlaei9v.fsf@tyrfing.ifi.uio.no>
    <20010727120247.914$Bh@newsreader.com>

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Header compression - necessary, useful, senseless ?
#53513
Author: Curt Welch
Date: Fri, 27 Jul 2001 22:00
63 lines
4184 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> So, a References header is basically a header that could be called
> "In Thread".  I don't propose this "Thread" thing to be an additional
> header.

The Reference: header is the path from the current article back to the
root of the tree.  Less stuff that had to be left out or was simply left
out because of a broken newsreader.

> If a real thread was stored in the news server, one could do some
> pretty funky things with caching and prefetching

Meaning the newsreader could do funky thing?  Like what?

> How it would work, is like this:
>
> Whenever a news server receives an article, it check whether that
> article has a References header.  If it does, it adds the incoming
> article's Message-ID to a thread index, where the key is _every_
> legal Message-ID mentioned in References.
>
> So, for this entire thread, the key would be
> <3009e.q71214@archiver.winews.net> and the data the rest of the
> Message-IDs (those indented with 4 spaces instead of two above).  For
> a subthread, such as my article and your response to it, key and data
> would be:
>
>   <oaslmlaei9v.fsf@tyrfing.ifi.uio.no>
>     <20010727120247.914$Bh@newsreader.com>

So the server could then tell the newsreader all articles which mentioned
a particular Message-ID in the References: header?  And what would be
the point of that?  How would that be useful?

Do you understand that when a newsreader threads articles it does a lot
of things that your above indexing won't help?

Reference: headers are constantly bogus.  Any message from AOL for example
will only have one Message-ID listed in the References: header.  The one
which the current article is a follow-up to.  It's just a link back to the
previous article in the tree instead of all the way back to the root.

And all newsreaders are forced to truncate the References: header when it
grows too long (the news server will reject the post if it's too long).
Most people agree that the correct way to truncate a Reference: head is to
remove headers starting with the second one so the first one will remain
the "root" of the tree.  But not everyone does that.  Some newsreaders
simply mangle References:, or put then in a text file and let the User:
edit them, and then the user mangles it.

Newsreaders have to look at all the References headers to do a good job of
reconstructing a thread tree.  And they also use subject to help figure out
what belongs where in the tree.  Many will also thread articles even though
they have no References: header just because the subjects are the same and
one of them contains a Re:.

News servers could attempt to build thread trees but I'm not too sure what
the point of that would be.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53515
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 06:19
52 lines
2999 bytes
In article <20010727120040.184$4k@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

-snip-
> Anyone that needs to read data from an NNTP stream allready has code
> to do the above.  And if they were smart, it was writen to deal with
> binary data already.  So there's no change required to read the
> compressed data.

I've been doing some tests for the last couple of days with binary
posts (using QP to escape CR LF and =) and it seems that some servers
can't handle this.

Here's an example, it was being posted to on server and read from
another, here's what it looked when it arrived:

====
Path:
afrodite.telenet-ops.be!ossa.telenet-ops.be!news-peer-uk.interpacket.net!
news-xfer.siscom.net!newsxfer.visi.net!cpk-news-hub1.bbnplanet.com!news.
gtei.net!sunqbc.risq.qc.ca!newsfeed.telusplanet.net!pln-e!extra.newsguy.
com!lotsanews.com!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.c
om!news2.newsreader.com!flame.newsreader.com
!not-for-mail
From: JB <planb@newsreaders.com>
Date: 27 Jul 2001 13:23:38 GMT
Newsgroups: alt.binaries.test
Subject: test binary - 1948 Tucker 4dr Sedan.jpg
Message-ID: <jbm-20010727092217@newsreaders.com>
MIME-Version: 1.0
Content-Type: application/octet-stream;file="1948 Tucker 4dr Sedan.jpg"
Content-Transfer-Encoding: Quoted-Printable
X-Trace: flame.newsreader.com
snVY@85VnaZX2_e1OuwpKK8_hB2zyaz80xCYMecB@Nt_Y
Lines: 736

begin 644 1948 Tucker 4dr Sedan.jpg
�����.
TAKETHIS <9jrq17$tkr$1@news.x-echo.com>
Path:
-snip-
====

Since there was a null at that point in the file, it looks like one of
the servers couldn't handle receiving a null in the data stream and
discarded everything after that until the end of the article and then
for some reason appended the next command/article as the body of my
test post.

-- 
J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
#53516
Author: Andrew Gierth
Date: Sat, 28 Jul 2001 06:30
13 lines
1646 bytes
>>>>> "J" == J B Moreno <planb@newsreaders.com> writes:

 J> I've been doing some tests for the last couple of days with binary
 J> posts (using QP to escape CR LF and =)

you do have to escape NUL as well, duh.

Inserting soft linebreaks at appropriate intervals is probably also a
good idea.

-- 
Andrew.
Re: Header compression - necessary, useful, senseless ?
#53517
Author: Curt Welch
Date: Sat, 28 Jul 2001 08:50
30 lines
2656 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> &#710;�&#710;�&#710;�&#710;�.
> TAKETHIS <9jrq17$tkr$1@news.x-echo.com>
> Path:
> -snip-
> ====
>
> Since there was a null at that point in the file, it looks like one of
> the servers couldn't handle receiving a null in the data stream and
> discarded everything after that until the end of the article and then
> for some reason appended the next command/article as the body of my
> test post.

Yeah, you can't send nulls.  Everybody knows that.  I think old versions
of INN used to truncate the article at the NULL.  Any server that's reading
lines with an fgets() type of function will make that mistake.  It will
simply ignore everything from the NULL to the end of the current buffer.
And if the CR LF DOT CR LF is in there, it won't see it and will simply
suck up whatever follows it in the stream.

And up sniped the output right at the interesting part.  The Path line in
the article you sniped when compared with the path line in your article
will tell you exactly which server had the problem.  It's the one receiving
the article at that point, so it's the server which was about to add it's
name to the Path: in the TAKETHIS article.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53518
Author: Jan Ingvoldstad
Date: Sat, 28 Jul 2001 09:00
47 lines
3327 bytes
On 27 Jul 2001 22:00:47 GMT, curt@kcwc.com (Curt Welch) said:

> The Reference: header is the path from the current article back to the
> root of the tree.  Less stuff that had to be left out or was simply left
> out because of a broken newsreader.

Yes.

>> If a real thread was stored in the news server, one could do some
>> pretty funky things with caching and prefetching

> Meaning the newsreader could do funky thing?  Like what?

No, not quite.  Note "caching and prefetching"; that would be at the
reading server level, or even further away.

If people to a large extent follow threads when they read articles, or
otherwise mostly read stand-alone articles, then the reading server
could be a prefetching, caching proxy that didn't get anything but a
header feed.  So far, nothing new, except the introduction of the word
"prefetching".  What the reading server then could do, when an article
in a thread is requested, would be to prefetch all articles in that
thread, so that these (and no more!) would be directly available on
the reading server.

This could be efficient and effective if there are a lot of articles
being fed to the reading server today that aren't read by people.  And
from what I understand, that is how things are, but that doesn't mean
that thread prefetching actually would improve things a lot.  Whether
it actually would, requires field testing.


I snipped the discussion of news readers using thread trees, as this
wasn't what I was thinking about.


> News servers could attempt to build thread trees but I'm not too sure what
> the point of that would be.

... and that is nearly half-way explained above.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Header compression - necessary, useful, senseless ?
#53522
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 19:13
21 lines
1891 bytes
In article <87wv4td0ql.fsf@erlenstar.demon.co.uk>,
 Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:

> >>>>> "J" == J B Moreno <planb@newsreaders.com> writes:
> 
>  J> I've been doing some tests for the last couple of days with binary
>  J> posts (using QP to escape CR LF and =)
> 
> you do have to escape NUL as well, duh.

It's not required by the NNTP protocol and although it may not
propagate as well, it does propagate.

> Inserting soft linebreaks at appropriate intervals is probably also a
> good idea.

Yeah, I'm breaking it up into "lines" of approximately 512 bytes.

-- 
J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
#53523
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 19:23
34 lines
2832 bytes
In article <20010728045011.114$bX@newsreader.com>, Curt Welch
<curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
-snip-
> > Since there was a null at that point in the file, it looks like one of
> > the servers couldn't handle receiving a null in the data stream and
> > discarded everything after that until the end of the article and then
> > for some reason appended the next command/article as the body of my
> > test post.
> 
> Yeah, you can't send nulls.  Everybody knows that.  I think old versions
> of INN used to truncate the article at the NULL.  Any server that's reading
> lines with an fgets() type of function will make that mistake.  It will
> simply ignore everything from the NULL to the end of the current buffer.
> And if the CR LF DOT CR LF is in there, it won't see it and will simply
> suck up whatever follows it in the stream.

OK.  I knew some servers would have problems with it, but 977 doesn't
forbid it, and escaping it increases the size by another 7% of the
original.  Not a huge amount, but possibly something to consider.

> And up sniped the output right at the interesting part.  The Path line in
> the article you sniped when compared with the path line in your article
> will tell you exactly which server had the problem.  It's the one receiving
> the article at that point, so it's the server which was about to add it's
> name to the Path: in the TAKETHIS article.

I'm working with someone else and that's where the snipped it, but I
should have thought of that -- I'll ask him.

-- 
J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
#53524
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 19:30
41 lines
2744 bytes
In article <280720011523053214%planb@newsreaders.com>, 
 J.B. Moreno <planb@newsreaders.com> wrote:

> In article <20010728045011.114$bX@newsreader.com>, 
>  Curt Welch <curt@kcwc.com> wrote:
> 
-snip problem with server not handling null-
> > And up sniped the output right at the interesting part.  The Path line in
> > the article you sniped when compared with the path line in your article
> > will tell you exactly which server had the problem.  It's the one receiving
> > the article at that point, so it's the server which was about to add it's
> > name to the Path: in the TAKETHIS article.
> 
> I'm working with someone else and that's where the snipped it, but I
> should have thought of that -- I'll ask him.

And he'd sent the info, just not where I had expected it... so:

Path:
afrodite.telenet-ops.be!ossa.telenet-ops.be!news-peer-uk.interpacket.net!
news-xfer.siscom.net!newsxfer.visi.net!cpk-news-hub1.bbnplanet.com!news.

gtei.net!sunqbc.risq.qc.ca!newsfeed.telusplanet.net!pln-e!extra.newsguy.

com!lotsanews.com!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.
c
om!news2.newsreader.com!flame.newsreader.com
!not-for-mail


TAKETHIS <9jrq17$tkr$1@news.x-echo.com>
Path:
pln-e!extra.newsguy.com!lotsanews.com!news.maxwell.syr.edu!newsfeed00.su
l.t-online.de!t-online.de!grolier!oleane.net!oleane!x-echo.com!not-for-m
ail

So it was newsfeed.telusplanet.net that had the problem.

-- 
J.B. Moreno
Re: Header compression - necessary, useful, senseless ?
#53528
Author: Andrew Gierth
Date: Sat, 28 Jul 2001 20:00
16 lines
1926 bytes
>>>>> "J" == J B Moreno <planb@newsreaders.com> writes:

 >> you do have to escape NUL as well, duh.

 J> It's not required by the NNTP protocol

RFC977 is silent on the issue, but it has been discussed in the NNTP
group, and it is known to break the majority of existing
implementations, often causing article corruption as you've
discovered. Even those implementations which have _attempted_ to
support NULs in article bodies have usually botched the job on at
least the first attempts.

-- 
Andrew.
Re: Header compression - necessary, useful, senseless ?
#53529
Author: Curt Welch
Date: Sat, 28 Jul 2001 21:39
40 lines
3418 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> If people to a large extent follow threads when they read articles, or
> otherwise mostly read stand-alone articles, then the reading server
> could be a prefetching, caching proxy that didn't get anything but a
> header feed.  So far, nothing new, except the introduction of the word
> "prefetching".  What the reading server then could do, when an article
> in a thread is requested, would be to prefetch all articles in that
> thread, so that these (and no more!) would be directly available on
> the reading server.

Ok, that's interesting.  I see what you are getting at now.

You started this by saying you would like to have servers keep
track of the threads.  If a front-end caching server is going to
try to pre-fetch based on threads, then that's fine, but it needs
to build that thread list on it's own using whatever algorthim
it thinks is correct.  It wouldn't then have any need to export
that informaiton to any other server or reader, and it wouldn't make
sense for the upstream site to do that either because it will be
based on the logic of that server only.  And if that server is
already getting a header only feed, then it has everything it needs
to do that for itself.

So there's no need to talk about NNTP changes for this.  If you want
want to write (or modify) a server to try pre-fetching threads, then
go for it.  If you want to see someone else do it, then you simply need
to talk to the news server authors, not the people debating changes
to the NNTP protocol.

There are multiple servers that already use header-only feeds
and play pre-fetch games based on usage of one form or another.  Dnews does
it but the "header-only" feed is in the form of a sucking feed, and the
"pre-fetch" is per newsgroup and not per-thread.  I'm sure some of the
other caching servers have options to prefetch based on usage.  But maybe
not.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53530
Author: Curt Welch
Date: Sat, 28 Jul 2001 21:44
30 lines
2794 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <87wv4td0ql.fsf@erlenstar.demon.co.uk>,
>  Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
>
> > >>>>> "J" == J B Moreno <planb@newsreaders.com> writes:
> >
> >  J> I've been doing some tests for the last couple of days with binary
> >  J> posts (using QP to escape CR LF and =)
> >
> > you do have to escape NUL as well, duh.
>
> It's not required by the NNTP protocol and although it may not
> propagate as well, it does propagate.
> it up into "lines" of approximately 512 bytes.

Yeah, but the effect that happens when it fails is a killer.  It rips the
article in half at sticks it on top of the one behind it.  Ugh.  Gross.
And then sends this 2 headed monster it created out into the world to
pollute spools left and right.

If the broken servers simply dropped the article and cause problems only
for itself, then you could ignore them. It's just their problem.  But
because these broken serers prevent eveyone downstream from getting a good
copy of your article, it's just the wrong thing to do.  Unless you are
trying to mount a compaign to clean those broken servers out of Usenet. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53531
Author: Jan Ingvoldstad
Date: Sat, 28 Jul 2001 21:49
40 lines
3024 bytes
On Sat, 28 Jul 2001 15:23:05 -0400, "J.B. Moreno"
<planb@newsreaders.com> said:

> OK.  I knew some servers would have problems with it, but 977 doesn't
> forbid it,

Not directly, no.  But RFC 977 considers articles text responses, and
it shouldn't surprise anyone that people would then treat text as a
string of characters, using standard libraries in one's favorite
programming language to do so.  And NUL is the character string
terminator in C, which is a pretty popular language to program things
in.

This is where the general rule of niceness comes into play:

  Be conservative in what you send, but liberal in what you accept.

For those designing news servers, this means that one should try to
accept even text thingies containing unexpected octets, if practically
possible.

But it also means that when we're encoding things, we're supposed to
be conservative, and not expect things to handle everything.

Okay, so a design decision is to scrap whatever is left of
US-ASCIIness for the transfer of binaries.  Should we also scrap those
that consider text in the same way as strlen() in C?


> and escaping it increases the size by another 7% of the
> original.  Not a huge amount, but possibly something to consider.

Yes, it definitely is.  7% is not a very small figure.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Header compression - necessary, useful, senseless ?
#53532
Author: Curt Welch
Date: Sat, 28 Jul 2001 22:01
81 lines
5029 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <280720011523053214%planb@newsreaders.com>,
>  J.B. Moreno <planb@newsreaders.com> wrote:
>
> > In article <20010728045011.114$bX@newsreader.com>,
> >  Curt Welch <curt@kcwc.com> wrote:
> >
> -snip problem with server not handling null-
> > > And up sniped the output right at the interesting part.  The Path
> > > line in the article you sniped when compared with the path line in
> > > your article will tell you exactly which server had the problem.
> > > It's the one receiving the article at that point, so it's the server
> > > which was about to add it's name to the Path: in the TAKETHIS
> > > article.
> >
> > I'm working with someone else and that's where the snipped it, but I
> > should have thought of that -- I'll ask him.
>
> And he'd sent the info, just not where I had expected it... so:
>
> Path:
> afrodite.telenet-ops.be!ossa.telenet-ops.be!news-peer-uk.interpacket.net!
> news-xfer.siscom.net!newsxfer.visi.net!cpk-news-hub1.bbnplanet.com!news.
>
> gtei.net!sunqbc.risq.qc.ca!newsfeed.telusplanet.net!pln-e!extra.newsguy.
>
> com!lotsanews.com!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.
> c
> om!news2.newsreader.com!flame.newsreader.com
> !not-for-mail
>
> TAKETHIS <9jrq17$tkr$1@news.x-echo.com>
> Path:
> pln-e!extra.newsguy.com!lotsanews.com!news.maxwell.syr.edu!newsfeed00.su
> l.t-online.de!t-online.de!grolier!oleane.net!oleane!x-echo.com!not-for-m
> ail
>
> So it was newsfeed.telusplanet.net that had the problem.

Well a quick telnet to newsfeed.telusplanet.net shows:

502 Permission Denied (Cyclone v1.4.2)

And Cyclone is not the problem. The onemain servers it went though before
that are cyclone as well.  Clclone was one of the first servers tobe 8
bit clean every written.  So it must have been the sending side that
botched it.  What would be pln-e.  I wonder what the fuck that is?

THe newsguy guys could tell us. It might be their stuff.  I wonder if some
of the old standard transmit stuff with INN did that?

You know, I bet if you did actually start sending these test articles on
a regular basis and checking around the net to see where they were broken
you could in the end track down most the broken servers/connections and
get them fixed.

My server is already looking for articles with NULLs in them and cross
filing them into a local.nulls group.  The group is curretnly showing 62,
000 some odd articles (in 25 days).  So there's already a lot of stuff
(99.99% crap I'm sure) floating around Usenet with nulls in it.  That
traffic could be used to track down the broken servers.

Hey, that's something.  Poeple complain about lost articles all the time.
If there's a lot of broken servers that are eating the article following
these articles with NULLs, that would be one more place where articles were
being lost.  So on that issue alone, you could justify fixing the broken
links to solve that problem.

For example, if the link above is an outgoing feed from newsguy, then every
time one of these articles with NULLs in it passes though their servers,
the article behind it will get lost in that link.  If the "lost" article
was something posted from newsguy, and that was the only path out of the
server for that article, then the article would be lost for all of Usenet.

This type of problem could motivate everyone to fix the broken servers (or
to stop feeding to them).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53533
Author: Jan Ingvoldstad
Date: Sat, 28 Jul 2001 22:33
68 lines
4344 bytes
On 28 Jul 2001 21:39:12 GMT, curt@kcwc.com (Curt Welch) said:

> Ok, that's interesting.  I see what you are getting at now.

> You started this by saying you would like to have servers keep
> track of the threads.  If a front-end caching server is going to
> try to pre-fetch based on threads, then that's fine, but it needs
> to build that thread list on it's own using whatever algorthim
> it thinks is correct.  It wouldn't then have any need to export
> that informaiton to any other server or reader, and it wouldn't make
> sense for the upstream site to do that either because it will be
> based on the logic of that server only.  And if that server is
> already getting a header only feed, then it has everything it needs
> to do that for itself.

*nods*


> So there's no need to talk about NNTP changes for this.

Well, that depends a bit on how far one wants to go.  :)

I was thinking about (but of course not mentioning it, duh; I'm a wee
bit distracted, although this is one of the things I'm writing most
about now) extending it a bit further, so that a server, client, or
whatever, could ask for an article with a new NNTP command, and the
server would respond with the article numbers or Message-IDs (or full
articles, if desirable) of articles belonging to the same thread.  For
prefetching/caching, that's not as much interesting, though.


> If you want
> want to write (or modify) a server to try pre-fetching threads, then
> go for it.  If you want to see someone else do it, then you simply need
> to talk to the news server authors, not the people debating changes
> to the NNTP protocol.

Yep, I know that.  I'm not trying to create a revolution just yet.  :)


> There are multiple servers that already use header-only feeds
> and play pre-fetch games based on usage of one form or another.  Dnews does
> it but the "header-only" feed is in the form of a sucking feed, and the
> "pre-fetch" is per newsgroup and not per-thread.

Ah, I'd actually missed the fact that DNEWS does prefetching per
newsgroup.  Leafnode does that too, though, but it doesn't scale at
all.  Inktomi's Traffic Server (2.0, at the very least) also does it,
and seems more successful at it than Leafnode.

Well, well, I'll have to add another section about DNEWS, then.
Embarassing hole ...  :(


> I'm sure some of the
> other caching servers have options to prefetch based on usage.  But maybe
> not.

Not as far as I've been able to figure out by searches in literature
and product pages, but that's how it goes; there's always something
escaping, such as DNEWS.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Header compression - necessary, useful, senseless ?
#53534
Author: Curt Welch
Date: Sat, 28 Jul 2001 22:42
33 lines
3027 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> Ah, I'd actually missed the fact that DNEWS does prefetching per
> newsgroup.  Leafnode does that too, though, but it doesn't scale at
> all.  Inktomi's Traffic Server (2.0, at the very least) also does it,
> and seems more successful at it than Leafnode.
>
> Well, well, I'll have to add another section about DNEWS, then.
> Embarassing hole ...  :(

My facts may be a bit confused about just how and what it does.

But I know there was a mode where it supports all groups, but most
groups have no articles in them.  Don't know if the headers show
up or not.  When you try to read an article from the group, I
think it sends back a response about "please wait, fetching
articles".  I'm not sure about this but I think it actaully puts
that type of message in the body of the article you tried
to read.  It then starts downloading (i.e. pre-fetching) the
entire group.  So the next time you come back, the group is available
for reading.  And the groupo remains on the pre-fetch list as long
as somebody keeps comming back to read it.

It's not the nice type of thing you were talking about where the
group always looks and acts like it's there, but it simply speeds
up because of the pre-fetches when somebody has been reading it.

Someday I really should try out Dnews just to learn what it's all
about. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53536
Author: Jan Ingvoldstad
Date: Sat, 28 Jul 2001 23:54
71 lines
4049 bytes
On 28 Jul 2001 22:42:24 GMT, curt@kcwc.com (Curt Welch) said:

> My facts may be a bit confused about just how and what it does.

Well, one needs the product manual to understand exactly how it
operates.


> But I know there was a mode where it supports all groups, but most
> groups have no articles in them.

That's about right; the group list is fetched from its upstream peer
periodically, and presented to the users when they request a group
list.  It seems like it's able to do that from several peers, too,
though I can't really be sure without trying.


> Don't know if the headers show
> up or not.

I don't think they do.


> When you try to read an article from the group, I
> think it sends back a response about "please wait, fetching
> articles".

Interesting ...


> I'm not sure about this but I think it actaully puts
> that type of message in the body of the article you tried
> to read.

Ick, ew.  I didn't see anything about that in online product briefs,
though.  I may also be too tired to do that properly.


> It then starts downloading (i.e. pre-fetching) the
> entire group.  So the next time you come back, the group is available
> for reading.  And the groupo remains on the pre-fetch list as long
> as somebody keeps comming back to read it.

Sounds right.


> It's not the nice type of thing you were talking about where the
> group always looks and acts like it's there, but it simply speeds
> up because of the pre-fetches when somebody has been reading it.

No, I think we'll have to separate between read-through and other
schemes for actually providing the data.  I don't know of any proper
terms for something like this in caching theory.  I mean, the answer
you get is basically "No, I don't have this, but I'll have it _soon_,
alongwith a bunch of other articles", instead of "Yeah, sure, here it
is (and without you knowing it, I'll get the rest of the articles
within better latency for you)".


> Someday I really should try out Dnews just to learn what it's all
> about. :)

Well, it would be pretty interesting to check out, since there are so
many sites, ranging from "normal" size to large scale sites using it.

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53535
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 23:56
86 lines
4931 bytes
In article <20010728180145.585$RV@newsreader.com>, Curt Welch
<curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
-snip server chocking on null in article-
> > Path:
> > afrodite.telenet-ops.be!ossa.telenet-ops.be!news-peer-uk.interpacket.net!
> > news-xfer.siscom.net!newsxfer.visi.net!cpk-news-hub1.bbnplanet.com!news.
> > gtei.net!sunqbc.risq.qc.ca!newsfeed.telusplanet.net!pln-e!extra.newsguy.
> > com!lotsanews.com!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.
> > com!news2.newsreader.com!flame.newsreader.com
> > !not-for-mail
> >
> > TAKETHIS <9jrq17$tkr$1@news.x-echo.com>
> > Path:
> > pln-e!extra.newsguy.com!lotsanews.com!news.maxwell.syr.edu!newsfeed00.su
> > l.t-online.de!t-online.de!grolier!oleane.net!oleane!x-echo.com!
> > not-for-mail
> >
> > So it was newsfeed.telusplanet.net that had the problem.
> 
> Well a quick telnet to newsfeed.telusplanet.net shows:
> 
> 502 Permission Denied (Cyclone v1.4.2)
> 
> And Cyclone is not the problem. The onemain servers it went though before
> that are cyclone as well.  Clclone was one of the first servers tobe 8
> bit clean every written.  

Well, that's something.

> So it must have been the sending side that botched it.  What would be
> pln-e.  I wonder what the fuck that is?

Haven't a clue, a quick web search doesn't come up with anything
definite.

> THe newsguy guys could tell us. It might be their stuff.  I wonder if some
> of the old standard transmit stuff with INN did that?

Telneting into news.newsguy.com shows:

200 enews4.newsguy.com NNRP server INN 1.90.02 15-May-01 ready (posting
ok).

> You know, I bet if you did actually start sending these test articles on
> a regular basis and checking around the net to see where they were broken
> you could in the end track down most the broken servers/connections and
> get them fixed.

Probably, particularly if they are mostly using old version of
currently supported software and not something they hacked up
themselves (although if they've done a lot of customization it might
not be so easy).

> My server is already looking for articles with NULLs in them and cross
> filing them into a local.nulls group.  The group is curretnly showing 62,
> 000 some odd articles (in 25 days).  So there's already a lot of stuff
> (99.99% crap I'm sure) floating around Usenet with nulls in it.  That
> traffic could be used to track down the broken servers.

Yeah, that's what made me think it'd probably be OK...

> Hey, that's something.  Poeple complain about lost articles all the time.
> If there's a lot of broken servers that are eating the article following
> these articles with NULLs, that would be one more place where articles were
> being lost.  So on that issue alone, you could justify fixing the broken
> links to solve that problem.

And the 62,000 articles shows that there are a lot of them floating
around.

> For example, if the link above is an outgoing feed from newsguy, then every
> time one of these articles with NULLs in it passes though their servers,
> the article behind it will get lost in that link.  If the "lost" article
> was something posted from newsguy, and that was the only path out of the
> server for that article, then the article would be lost for all of Usenet.
> 
> This type of problem could motivate everyone to fix the broken servers (or
> to stop feeding to them).

I wonder how you'd go about figuring out which would be easier...

-- 
J.B. Moreno
Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53537
Author: J.B. Moreno
Date: Sat, 28 Jul 2001 23:59
26 lines
2206 bytes
In article <87d76kako1.fsf@erlenstar.demon.co.uk>,
 Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:

> >>>>> "J" == J B Moreno <planb@newsreaders.com> writes:
> 
>  >> you do have to escape NUL as well, duh.
> 
>  J> It's not required by the NNTP protocol
> 
> RFC977 is silent on the issue, 

I don't agree -- it does mention 8bit transport.  To me, that implies
that it should be 8 bit clean.

> but it has been discussed in the NNTP group, and it is known to break
> the majority of existing implementations, often causing article
> corruption as you've discovered. Even those implementations which
> have _attempted_ to support NULs in article bodies have usually
> botched the job on at least the first attempts.

Curt says Cyclone handles it, and I thought INN did, which servers are
known to break?

-- 
J.B. Moreno
Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53538
Author: J.B. Moreno
Date: Sun, 29 Jul 2001 00:08
43 lines
3210 bytes
In article <20010728174427.170$ri@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
> > In article <87wv4td0ql.fsf@erlenstar.demon.co.uk>,
> >  Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> >
> > > >>>>> "J" == J B Moreno <planb@newsreaders.com> writes:
> > >
> > >  J> I've been doing some tests for the last couple of days with binary
> > >  J> posts (using QP to escape CR LF and =)
> > >
> > > you do have to escape NUL as well, duh.
> >
> > It's not required by the NNTP protocol and although it may not
> > propagate as well, it does propagate.
> > it up into "lines" of approximately 512 bytes.
> 
> Yeah, but the effect that happens when it fails is a killer.  It rips the
> article in half at sticks it on top of the one behind it.  Ugh.  Gross.
> And then sends this 2 headed monster it created out into the world to
> pollute spools left and right.

Right, those servers then act like poison pills -- anywhere they beat
the "correct" article they replace it (plus the simple fact that
there's "two" articles floating around with the same message-id).

> If the broken servers simply dropped the article and cause problems
> only for itself, then you could ignore them. It's just their problem. 
> But because these broken serers prevent eveyone downstream from
> getting a good copy of your article, it's just the wrong thing to do. 
> Unless you are trying to mount a compaign to clean those broken
> servers out of Usenet. :)

Well, I think it's the right thing to do -- it's happening now so
regardless of any new encoding format bad things are happening and
those servers should be fixed.  But I don't think I have the
time/energy to tackle it (although I might be able to do it by
increasing the number of such articles...).

-- 
J.B. Moreno
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53539
Author: Jan Ingvoldstad
Date: Sun, 29 Jul 2001 00:19
44 lines
3123 bytes
On Sat, 28 Jul 2001 19:59:56 -0400, "J.B. Moreno"
<planb@newsreaders.com> said:

> I don't agree -- it does mention 8bit transport.  To me, that implies
> that it should be 8 bit clean.

I take it you mean the following?

2.2.  Character Codes

   Commands and replies are composed of characters from the ASCII
   character set.  When the transport service provides an 8-bit byte
   (octet) transmission channel, each 7-bit character is transmitted
   right justified in an octet with the high order bit cleared to zero.

The use of ASCII implies 7-bit format commands and replies, while this
section tells people how to work things out with an 8-bit transport.
 

> Curt says Cyclone handles it, and I thought INN did, which servers are
> known to break?

A small test reading from INN 1.7.2 and INN 2.2 shows that the null
character indeed terminates the string, but only for the current
line.

I've just posted an article to misc.test, with the following
Message-ID:

  <oasofq48u86.fsf@tyrfing.ifi.uio.no>

The body before the signature contains the following, when read with
INN 1.7.2 or INN 2.2 (I don't know whether that's the way it is stored
in the spool, of course):

  The character '
  ("The character '\0' may or may not terminate this line prematurely.")

-- 
In the beginning was the Bit, and the Bit was Zero.  Then Someone
said, Let there be One, and there was One.  And Someone blessed them,
and Someone said unto them, Be fruitful, and multiply, and replenish
the Word and subdue it: and have dominion over every thing that is.
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53540
Author: Andrew Gierth
Date: Sun, 29 Jul 2001 02:14
32 lines
2794 bytes
>>>>> "J" == J B Moreno <planb@newsreaders.com> writes:

 J> I don't agree -- it does mention 8bit transport.  To me, that
 J> implies that it should be 8 bit clean.

"8 bit clean" means something completely different to "allows binaries".

The reference implementation has never worked with NUL characters.

 >> but it has been discussed in the NNTP group, and it is known to
 >> break the majority of existing implementations, often causing
 >> article corruption as you've discovered. Even those
 >> implementations which have _attempted_ to support NULs in article
 >> bodies have usually botched the job on at least the first
 >> attempts.

 J> Curt says Cyclone handles it, and I thought INN did, which servers
 J> are known to break?

Cyclone is about the only one that handles it. INN up to 2.2.x
truncates the article in some way; at least some more recent versions
explicitly reject the article instead. Diablo has an option (-Z) to
reject articles with NUL characters in, which you definitely want to
enable because the external filter code refuses to handle such
articles. I don't know about NNTPRelay.

So, I don't anticipate dropping the check for NUL characters in posts
on my server any time in the forseeable future.

-- 
Andrew.
Re: Header compression - necessary, useful, senseless ?
#53541
Author: Andrew Gierth
Date: Sun, 29 Jul 2001 02:50
16 lines
2150 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:

 Curt> My server is already looking for articles with NULLs in them
 Curt> and cross filing them into a local.nulls group.  The group is
 Curt> curretnly showing 62, 000 some odd articles (in 25 days).  So
 Curt> there's already a lot of stuff (99.99% crap I'm sure) floating
 Curt> around Usenet with nulls in it.

Virtually all the traffic with nulls in seems to be spam. One
particular spamware package puts a bunch of nulls at the end of the
article; I don't know whether this is simply sloppy programming or a
deliberate (and mostly successful) attempt to avoid filtering.

-- 
Andrew.
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53542
Author: Russ Allbery
Date: Sun, 29 Jul 2001 03:56
15 lines
1923 bytes
J B Moreno <planb@newsreaders.com> writes:

> Curt says Cyclone handles it, and I thought INN did, which servers are
> known to break?

INN does not and never has handled unescaped NUL characters properly.
Prior to recent versions, it can cause silent corruption of the message;
in the current version, the message is just rejected.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53543
Author: Russ Allbery
Date: Sun, 29 Jul 2001 03:57
18 lines
2148 bytes
J B Moreno <planb@newsreaders.com> writes:

> Well, I think it's the right thing to do -- it's happening now so
> regardless of any new encoding format bad things are happening and those
> servers should be fixed.  But I don't think I have the time/energy to
> tackle it (although I might be able to do it by increasing the number of
> such articles...).

Almost all articles currently containing NUL characters, the last time I
looked, were either misencoded binaries or spam.  Both of those types of
articles I'd filter out even if INN did handle NULs.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Header compression - necessary, useful, senseless ?
#53544
Author: Russ Allbery
Date: Sun, 29 Jul 2001 04:07
32 lines
2429 bytes
Curt Welch <curt@kcwc.com> writes:

> So it must have been the sending side that botched it.  What would be
> pln-e.  I wonder what the fuck that is?

Newsguy.

> THe newsguy guys could tell us. It might be their stuff.  I wonder if
> some of the old standard transmit stuff with INN did that?

Yup, it did.

> My server is already looking for articles with NULLs in them and cross
> filing them into a local.nulls group.

Incidentally, for the pedants, NULL is something completely different and
refers to pointers.  The character is NUL or nul (or sometimes null, but I
find that confusing).

> This type of problem could motivate everyone to fix the broken servers
> (or to stop feeding to them).

It's a pain in the ass if the server always assumed C-style strings.  I'd
love to see it fixed in INN, though, and it's probably most of the way
there.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53545
Author: Curt Welch
Date: Sun, 29 Jul 2001 06:50
34 lines
2930 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> A small test reading from INN 1.7.2 and INN 2.2 shows that the null
> character indeed terminates the string, but only for the current
> line.

My understanding of INN was that innd was "fixed" around the 2.0 timeframe
to be 8-bit clean.  But last I checked, nnrpd was still doing all
IO to the user with an fgets() type of routine which means it think the
line ends when it sees the null.  This means that you can not POST or
READ articles though nnrpd with nulls in them.  But yet the innd program
could recieve them, store them, and pass then along to peers just fine.

> I've just posted an article to misc.test, with the following
> Message-ID:
>
>   <oasofq48u86.fsf@tyrfing.ifi.uio.no>
>
> The body before the signature contains the following, when read with
> INN 1.7.2 or INN 2.2 (I don't know whether that's the way it is stored
> in the spool, of course):
>
>   The character '
>   ("The character '\0' may or may not terminate this line prematurely.")

On my server, it's stored like your example above (with no null in it).

And that's probably because nnrpd saw the null when you tried to post it
and assumed it was the end of the line.  So it got messed up at post time
is my guess.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53547
Author: Curt Welch
Date: Sun, 29 Jul 2001 07:04
30 lines
2962 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
>
>  Curt> My server is already looking for articles with NULLs in them
>  Curt> and cross filing them into a local.nulls group.  The group is
>  Curt> curretnly showing 62, 000 some odd articles (in 25 days).  So
>  Curt> there's already a lot of stuff (99.99% crap I'm sure) floating
>  Curt> around Usenet with nulls in it.
>
> Virtually all the traffic with nulls in seems to be spam. One
> particular spamware package puts a bunch of nulls at the end of the
> article; I don't know whether this is simply sloppy programming or a
> deliberate (and mostly successful) attempt to avoid filtering.

Yeah, I just checked it out as well and EVERY one was spam.  I used
to see pictures posted in a mime 8-bit mode that would show up there
and sometimes stuff in various strange character sets with nulls. But
just now, everything I saw was spam.  And the one I checked started
with a large block of random letters, then there was a uuencoded htm
file, and after the "end" lines, was a line with 29 nulls, then one
more blank line after that.

That looks like very deliberate coding to me since it's a normal line which
simply has those 29 extra nulls and since there's another blank line after
that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53548
Author: Russ Allbery
Date: Sun, 29 Jul 2001 07:27
13 lines
1805 bytes
Curt Welch <curt@kcwc.com> writes:

> My understanding of INN was that innd was "fixed" around the 2.0
> timeframe to be 8-bit clean.

Nope.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Header compression - necessary, useful, senseless ?
#53550
Author: J.B. Moreno
Date: Sun, 29 Jul 2001 10:26
31 lines
2309 bytes
In article <ylzo9ol6oc.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> Curt Welch <curt@kcwc.com> writes:
> 
> > So it must have been the sending side that botched it.  What would
> > be pln-e.  I wonder what the fuck that is?
> 
> Newsguy.
> 
> > THe newsguy guys could tell us. It might be their stuff.  I wonder if
> > some of the old standard transmit stuff with INN did that?
> 
> Yup, it did.

The newer transit stuff doesn't do this anymore?  If so maybe they'll
upgrade.

-snip-
> > This type of problem could motivate everyone to fix the broken servers
> > (or to stop feeding to them).
> 
> It's a pain in the ass if the server always assumed C-style strings.  I'd
> love to see it fixed in INN, though, and it's probably most of the way
> there.

Which means it's not yet and I was wrong -- what's the world coming to?

-- 
J.B. Moreno
Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
#53551
Author: Curt Welch
Date: Sun, 29 Jul 2001 18:38
17 lines
2243 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > My understanding of INN was that innd was "fixed" around the 2.0
> > timeframe to be 8-bit clean.
>
> Nope.

So who was it that told me they worked hard to make it that way a few
years back?  Was it you?  Was some of it fixed but then something
missed?  What's the story, do you know?  Do I need to get a new
copy of INN and check for myself to find the answer to this?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Header compression - necessary, useful, senseless ?
#53555
Author: The Archiver
Date: Mon, 30 Jul 2001 08:15
83 lines
4293 bytes
curt@kcwc.com (Curt Welch) wrote:

>> Most compressing algortihms I've seen yet are based on a block of data.
>> So perhaps 4-64 kBytes are compressed - and then moved to the
>> 'out-queue'. Such a compressed block might be sent out with a length
>> byte.
>
>You could also simply send the data in blocks with a block size included
>before each block.  So the binary data stream starts with a two byte
>block size, then N bytes of data, and keeps repeating like that until
>done.  The last size will be a zero lengh byte to mark the end.

Yes, this seems to be a good way.

>Id still rather just stick with the NNTP standard of CR LF DOT to mark
>the end and DOT stuffing inside the stream.

Sorry, but I definitely do not agree with you:
Modifying compression algortihms to fit into such a scheme is a hard
work. It is no longer possible to take an algorithm "out of the box"
- apply it to the data and then send it out.

I see no chance to modify algorithms - and get acceptance anywhere
for modifed routines. This applies especially if 2-5 different methods
would be supported.

Whoever wants to support compressed headers (server would do this
only for sending) has to modify the code anyway. Why adding complexity
to the conversions when the CRLF-DOT is completely out of date for
binary transports? _All_ 8 bit transports are working with a length indicator.

Do you believe that it is really necessary to use the 'standard receive
routines' to read the incoming data?
I assume that your server-soft (or others) have a default input routine
as 'Read Block Until CRLF.CRLF' which is called once after an
XOVER command (for sucking downloads). 
I'm sure that it would be programming work to make another routine
which is "Read Binary Block".

But if we want to compress also other commands - and articles
then we would have to adapt everything to CRLF.CRLF

Perhaps new binary extensions should use length based transport.
Perhaps I'm completely wrong - and the implementation would be 
very hard.
But for _servers_ I see far less work if we simply use this structure:

   CXOVER 300-500
### List of compressed headers follows
[Algorithm-Identifier] CRLF
[*Length word]   [8-bit-data-block]
[*Length word]   [8-bit-data-block]
...
[*0] CRLF
 CRLF

>Anyone that needs to read data from an NNTP stream allready has code
>to do the above.  And if they were smart, it was writen to deal with
>binary data already.  So there's no change required to read the
>compressed data.

Yes, but as well as on servers side you would have to use a modified
decompressor. 

I know very well that the CRLF.CRLF method is absolute transport standard
for text. But for binaries it would add complexity forever. If we define
something and it gets accepted, then this 'semi binary transport' might
live for the next 20 years - and cause additional work for ALL future
extensions.

True binary transport allows compressed headers, compressed articles,
true binary bodies, unicode, and, and, and......


If someone believes that I want to introduce 'true binary transport'
through this 'backdoor' with compression: Yes - this is my intention.
I really want to roast multiple eggs and chickens on one fire.
And it makes sense (from my point of view).

-- 
Juergen, [The Archiver]

Re: Header compression - necessary, useful, senseless ?
#53556
Author: The Archiver
Date: Mon, 30 Jul 2001 08:23
21 lines
1510 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>I just posted a test article using a 8bit scheme proposed by someone on
>the USEFOR mailing list: use 8 bit with =,LF and CR escaped using
>quoted-printable.
>[...]
>Actual file size is 366597, my test post was 1.0275 times that, the
>original posting was 1.4024 times that.

A better 8 bit encoding results in 1.4x ?
UUencoding would have added just 33%.
Must have been a pretty bad 8 bit encoding !

Or do I misunderstand something seriously here.
If a better encoding results in 1.4x then we can stop all
plans to intoduce it immediately.

-- 
Juergen, [The Archiver]

Page 1 of 2 • 68 total messages
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