Thread View: news.software.nntp
18 messages
18 total messages
Started by Ken Murchison
Thu, 12 Nov 2015 14:56
draft-murchison-nntp-compress-02
Author: Ken Murchison
Date: Thu, 12 Nov 2015 14:56
Date: Thu, 12 Nov 2015 14:56
83 lines
4318 bytes
4318 bytes
This is a multi-part message in MIME format.
--------------000902070300060002010501
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
All,
I just posted an updated COMPRESS draft based on the recent feedback on
-01: https://tools.ietf.org/html/draft-murchison-nntp-compress-02
You can see the changes here:
https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-02.txt
A couple of things to note:
* I'm not real happy with the text regarding TLS, CRIME, etc. I will
gladly accept some wordsmithing help.
* The draft needs a Security Considerations section. I'm not a
security expert, so this may have to wait for a review by the
security folks.
* I noticed that some text in Section 3 regarding binary and
uncompressible attachments was removed between -00 and -01 and I
don't recall why. Those diffs can be seen here:
https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-01.txt
* If/when INN and flnews both have implementations (and hopefully
others), I will add an Implementation Status section per RFC 6982 to
show that we have demonstrated interoperability.
Any and all comments are welcome.
--
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
--------------000902070300060002010501
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
All,<br>
<br>
I just posted an updated COMPRESS draft based on the recent feedback
on -01: <a
href="https://tools.ietf.org/html/draft-murchison-nntp-compress-02">https://tools.ietf.org/html/draft-murchison-nntp-compress-02</a><br>
<br>
You can see the changes here: <a
href="https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-02.txt">https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-02.txt</a><br>
<br>
A couple of things to note:<br>
<ul>
<li>I'm not real happy with the text regarding TLS, CRIME, etc. I
will gladly accept some wordsmithing help.</li>
<li>The draft needs a Security Considerations section. I'm not a
security expert, so this may have to wait for a review by the
security folks.<br>
</li>
<li>I noticed that some text in Section 3 regarding binary and
uncompressible attachments was removed between -00 and -01 and I
don't recall why. Those diffs can be seen here: <a
href="https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-01.txt">https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-01.txt</a></li>
<li>If/when INN and flnews both have implementations (and
hopefully others), I will add an Implementation Status section
per RFC 6982 to show that we have demonstrated interoperability.</li>
</ul>
<p>Any and all comments are welcome.<br>
</p>
<pre class="moz-signature" cols="72">--
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University</pre>
</body>
</html>
--------------000902070300060002010501--
Re: draft-murchison-nntp-compress-02
Author: Joshua Cranmer 🐧
Date: Sun, 15 Nov 2015 03:16
Date: Sun, 15 Nov 2015 03:16
20 lines
2186 bytes
2186 bytes
On 11/12/2015 8:56 AM, Ken Murchison wrote: > * I noticed that some text in Section 3 regarding binary and > uncompressible attachments was removed between -00 and -01 and I > don't recall why. Those diffs can be seen here: > https://tools.ietf.org/rfcdiff?url2=draft-murchison-nntp-compress-01.txt Uuencode and base64 both convert (even compressed!) attachments into a form that only uses 6 instead of 8 bits, so the Huffman encoding should compress these to ~75% of their encoded size. One would expect that you end up with uuencode and base64 attachments returning to about their original size, although it's probable that the attachment will be included with the textual data of the body in terms of the compression dictionary. Since yEnc retains the full 8-bit spectrum, it's much more likely to be incompressible. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Wed, 18 Nov 2015 20:37
Date: Wed, 18 Nov 2015 20:37
62 lines
3281 bytes
3281 bytes
Hi Ken,
> I just posted an updated COMPRESS draft based on the recent feedback on
> -01: https://tools.ietf.org/html/draft-murchison-nntp-compress-02
Thanks for the new draft!
I still have not read it totally but be sure I'll tell you as soon as I
have.
- In the first example in Section 2.2.3, leading spaces are missing.
- Could a word be added about what to do when receiving invalid or
corrupted compressed data? I believe it is useless to try to
synchronize with the next flush point, and the client or the server
should just terminate the connection.
> * The draft needs a Security Considerations section. I'm not a
> security expert, so this may have to wait for a review by the
> security folks.
Who are they? Is it during the IESG process?
Couldn't we contact them now?
> * I noticed that some text in Section 3 regarding binary and
> uncompressible attachments was removed between -00 and -01 and I
> don't recall why.
Answered in another thread. So will you re-add that text finally?
(possibly reworded)
> * If/when INN and flnews both have implementations (and hopefully
> others), I will add an Implementation Status section per RFC 6982 to
> show that we have demonstrated interoperability.
Please note that RFC 6982 mentions:
* The scope of the intended experiment is all Internet-Drafts (I-Ds)
that contain implementable specifications, whether produced within
IETF working groups or outside working groups but intended for IETF
consensus. I-Ds published on the Independent Stream are explicitly
out of scope.
* Since this information is necessarily time dependent, it is
inappropriate for inclusion in a published RFC. The authors should
include a note to the RFC Editor requesting that the section be
removed before publication.
So maybe you could save some time by not formally adding that Section,
and just put a word to the RFC Editor when you contact him.
--
Julien ÉLIE
« Exegi monumentum aere perennius. » (Horace)
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sat, 28 Nov 2015 20:35
Date: Sat, 28 Nov 2015 20:35
20 lines
1811 bytes
1811 bytes
Hi Ken, > Any and all comments are welcome. I suggest to add that the news client and the news server MUST NOT reset their internal stream states for decompression during the whole NNTP session. (It is OK to reset the internal stream state for compression, though.) I came across an interoperability issue because of that (I did not always use the same zlib decompression object to decompress the data received in my Python testing script, which led to decompression failures with "invalid distance too far back"). -- Julien ÉLIE « Aequum est ut cuius participauit lucrum, participet et damnun. »
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Sun, 29 Nov 2015 09:35
Date: Sun, 29 Nov 2015 09:35
27 lines
2185 bytes
2185 bytes
Julien ÉLIE wrote: > > I suggest to add that the news client and the news server MUST NOT > reset their internal stream states for decompression during the whole > NNTP session. (It is OK to reset the internal stream state for > compression, though.) > > I came across an interoperability issue because of that (I did not > always use the same zlib decompression object to decompress the data > received in my Python testing script, which led to decompression > failures with "invalid distance too far back"). Shouldn't that be dependent on the flush method used by the compressor? Quoted from "zlib.h": | | If flush is set to Z_FULL_FLUSH, all output is flushed as with | Z_SYNC_FLUSH, and the compression state is reset so that decompression | can restart from this point if previous compressed data has been | damaged or if random access is desired. Using Z_FULL_FLUSH too often | can seriously degrade the compression. Looks like it should be possible (if we really want it), but in my tests the short commands are compressed best with Z_PARTIAL_FLUSH (in this case the decompressor must preserve its internal state).
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sun, 29 Nov 2015 18:32
Date: Sun, 29 Nov 2015 18:32
40 lines
2917 bytes
2917 bytes
Hi Michael, >> I came across an interoperability issue because of that (I did not >> always use the same zlib decompression object to decompress the >> data received in my Python testing script, which led to >> decompression failures with "invalid distance too far back"). > > Shouldn't that be dependent on the flush method used by the > compressor? I am speaking of an action like inflateReset on a compressor, or having two decompressors (they cannot separately decode consecutive compressed data that do not have a Z_FULL_FLUSH between). If Z_SYNC_FLUSH or Z_PARTIAL_FLUSH is used, the problem indeed exists. > Quoted from "zlib.h": > | > | If flush is set to Z_FULL_FLUSH, all output is flushed as with > | Z_SYNC_FLUSH, and the compression state is reset so that decompression > | can restart from this point if previous compressed data has been > | damaged or if random access is desired. Using Z_FULL_FLUSH too often > | can seriously degrade the compression. > > Looks like it should be possible (if we really want it), but in my tests > the short commands are compressed best with Z_PARTIAL_FLUSH (in this > case the decompressor must preserve its internal state). In the "20151128 prerelease" version of INN, the compression stream uses Z_NO_FLUSH and Z_SYNC_FLUSH (that also preserves its internal state). Do you think it would be better to only use Z_NO_FLUSH and Z_PARTIAL_FLUSH? I can switch to Z_PARTIAL_FLUSH if it happens to output fewer bytes than Z_SYNC_FLUSH. -- Julien ÉLIE « Aequum est ut cuius participauit lucrum, participet et damnun. »
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Sun, 29 Nov 2015 19:51
Date: Sun, 29 Nov 2015 19:51
49 lines
3609 bytes
3609 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > [...] > > Quoted from "zlib.h": > > | > > | If flush is set to Z_FULL_FLUSH, all output is flushed as with > > | Z_SYNC_FLUSH, and the compression state is reset so that decompression > > | can restart from this point if previous compressed data has been > > | damaged or if random access is desired. Using Z_FULL_FLUSH too often > > | can seriously degrade the compression. > > > > Looks like it should be possible (if we really want it), but in my tests > > the short commands are compressed best with Z_PARTIAL_FLUSH (in this > > case the decompressor must preserve its internal state). > > In the "20151128 prerelease" version of INN, the compression stream > uses Z_NO_FLUSH and Z_SYNC_FLUSH (that also preserves its internal > state). > Do you think it would be better to only use Z_NO_FLUSH and > Z_PARTIAL_FLUSH? I can switch to Z_PARTIAL_FLUSH if it happens to > output fewer bytes than Z_SYNC_FLUSH. I have tested both variants in flnews and Z_PARTIAL_FLUSH was better for small data blocks like commands. I have also looked into an older zlib (1.2.3) header file to compare the declarations: | | #define Z_NO_FLUSH 0 | #define Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */ | #define Z_SYNC_FLUSH 2 | #define Z_FULL_FLUSH 3 | #define Z_FINISH 4 | #define Z_BLOCK 5 Only the comment is removed (not Z_PARTIAL_FLUSH) in 1.2.8 now. I think this means they have revised their plan and it will stay available in the future. Viewed from the interoperability point, anything except Z_FULL_FLUSH will require some knowledge on the opposite side to work (please correct me if this is wrong). In this case Z_SYNC_FLUSH don't solve the problem (and always using Z_FULL_FLUSH would result in bad compression ratios). But because zlib is so ubiquitous (and NNTP don't require compression to work), IMHO it is acceptable to explicitly define a zlib flush method to be used for the DEFLATE algorithm.
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sun, 29 Nov 2015 20:41
Date: Sun, 29 Nov 2015 20:41
26 lines
2322 bytes
2322 bytes
Hi Michael, > I have tested both variants in flnews and Z_PARTIAL_FLUSH was better for > small data blocks like commands. [...] > Viewed from the interoperability point, anything except Z_FULL_FLUSH > will require some knowledge on the opposite side to work (please correct > me if this is wrong). In this case Z_SYNC_FLUSH don't solve the problem > (and always using Z_FULL_FLUSH would result in bad compression ratios). > But because zlib is so ubiquitous (and NNTP don't require compression to > work), IMHO it is acceptable to explicitly define a zlib flush method to > be used for the DEFLATE algorithm. Then let's explicitly require Z_PARTIAL_FLUSH to be used, as it saves a few bytes. Are we sure that implementations of DEFLATE (other than zlib) know partial flushes? RFC 1951 does not mention partial or sync flushes... -- Julien ÉLIE « Qui habet aures audiendi, audiat. » (Évangiles)
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Tue, 01 Dec 2015 20:48
Date: Tue, 01 Dec 2015 20:48
145 lines
6305 bytes
6305 bytes
Hi Ken,
> I just posted an updated COMPRESS draft based on the recent feedback on
> -01
> Any and all comments are welcome.
I've just finished to read the new version of the draft. Here are my
comments:
* In Section 1 "Introduction", this sentence could be worthwhile adding:
"This specification should be read in conjunction with the NNTP base
specification [RFC3977]. In the case of a conflict between these two
documents, [RFC3977] takes precedence."
* In Section 2.1 "Advertising the COMPRESS Extension", I suggest to add
the following sentence that we can also find in RFC 4642 or 4644 for
instance:
"However, this capability MUST NOT be advertised when a compression
layer is active (see Section 2.2.2) or after successful authentication
([RFC4643])."
* Also in Section 2.1, this sentence may be added:
"As the COMPRESS command is related to security because it can weaken
encryption, cached results of CAPABILITIES from a previous session MUST
NOT be relied on, as per Section 12.6 of [RFC3977]."
* In Section 2.2.2 "Description":
In order help mitigate leaking authentication credentials via a CRIME
attack [CRIME], a server SHOULD NOT return any arguments with the
AUTHINFO capability label in response to a CAPABILTIES command
received after a compression layer is active. In this case, a client
SHOULD NOT attempt to utilize any AUTHINFO commands.
=> Typo "In order", that should be written "In order to"?
=> Typo "CAPABILTIES".
=> Shouldn't it be said that TLS compression is not concerned by this
paragraph? Notably, if a TLS layer has been negotiated with TLS
compression, the behaviour of AUTHINFO defined in RFC 4643 is not affected.
* Also in Section 2.2.2, this sentence may be added:
Additionally, the client MUST NOT issue a MODE READER command after
activating a compression layer, and a server MUST NOT advertise the
MODE-READER capability.
* In Section 2.2.3 "Examples":
[S] LIST ACTIVE NEWSGROUPS
is mandatory to advertise when READER is (see Section 7.6.2 of RFC3977).
It should therefore be added in your examples advertising READER.
* Also in Section 2.2.3, shouldn't the example add another CAPABILITIES
between AUTHINFO PASS and COMPRESS? The advertised capabilities may
have changed after authentication.
* Still in Section 2.2.3:
Example of a server not advertising AUTHINFO mechanisms after
compression has been activated:
=> "AUTHINFO arguments" would be better than "AUTHINFO mechanisms". RFC
4643 uses "argument" in its terminology for the AUTHINFO capability
("mechanism" is for the SASL capability).
* In Section 3 "Compression Efficiency":
When attachments are retrieved in Base64 or UUencode form, these
encodings add another problem. 8-bit compression algorithms such as
DEFLATE work well on 8-bit file formats, however both Base64 and
UUencode transform a file into something resembling 6-bit bytes,
hiding most of the 8-bit file format from the compressor.
=> Shouldn't the 75% compression ratio be mentioned?
* In Section 4.3 "General Non-terminals":
algorithm = %s"DEFLATE" / 1*20alg-char ; case-sensitive
=> Why require the algorithms to be case-sensitive?
SASL mechanisms are not case-sensitive... ("AUTHINFO SASL Plain" is valid.)
I think we should not enforce case-sensitivity.
The reference to RFC 7405 can then be removed in Section 4.
* In Section 7.1.2 "Comments on Algorithm Registrations", should the
e-mail address of the ietf-nntp list on lists.eyrie.org explicitly
remain? Why not just ask to send an e-mail to the NNTP WG?
* In Section 7.1.3 "Change Control":
NNTP compression algorithm registrations may not be deleted;
algorithms that are no longer believed appropriate for use can be
declared OBSOLETE by a change to their "intended usage" field; such
algorithms will be clearly marked in the lists published by IANA.
=> "in the registry" instead of "in the lists"?
* In Section 7.3 "Registration of the NNTP COMPRESS Extension":
o Use of this extension does alter the capabilities list; once the
COMPRESS command has been used successfully, the COMPRESS
capability can no longer be advertised by CAPABILITIES.
Additionally, the STARTTLS and MODE-READER capabilities MUST NOT
be advertised after successful execution of the COMPRESS command.
=> As well as arguments to AUTHINFO (as a SHOULD according to the
previous statement in the draft).
o The STARTTLS command MUST NOT be used in the same session
following a successful execution of the COMPRESS command.
=> As well as AUTHINFO.
* In Appendix A "Acknowledgements", you can write my name in lowercase
(instead of uppercase), the same way the other two persons are mentioned.
* The issue in Appendix C "Issues to be addressed" has already been
addressed.
--
Julien ÉLIE
« Pour Rome, la direction importe peu, car tous les chemins y
mènent. » (Astérix)
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Tue, 01 Dec 2015 20:56
Date: Tue, 01 Dec 2015 20:56
40 lines
2547 bytes
2547 bytes
Hi Ken,
> * I'm not real happy with the text regarding TLS, CRIME, etc. I will
> gladly accept some wordsmithing help.
Do you speak of:
In order help mitigate leaking authentication credentials via a CRIME
attack [CRIME], a server SHOULD NOT return any arguments with the
AUTHINFO capability label in response to a CAPABILTIES command
received after a compression layer is active. In this case, a client
SHOULD NOT attempt to utilize any AUTHINFO commands.
Suggestion:
In order to help mitigate leaking authentication credentials via a
CRIME attack [CRIME], the server SHOULD NOT permit any authentication
commands after a compression layer is active, and the client SHOULD
NOT attempt to utilize any AUTHINFO commands.
If you want, you can also refer to the example in Section 2.2.3 below,
where the AUTHINFO capability is listed with no arguments.
Incidentally, I have a general question: how are SASL and TLS specific
exchanges supposed to be handled? I believe they are outside the scope
of NNTP compression, so it should be explicitly stated in the RFC. I
speak of stuff like TLS handshakes, renegotiations, etc. that can occur
after the use of COMPRESS.
--
Julien ÉLIE
« Pour Rome, la direction importe peu, car tous les chemins y
mènent. » (Astérix)
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Wed, 02 Dec 2015 11:38
Date: Wed, 02 Dec 2015 11:38
32 lines
2629 bytes
2629 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > I have tested both variants in flnews and Z_PARTIAL_FLUSH was better for > > small data blocks like commands. > [...] > > Viewed from the interoperability point, anything except Z_FULL_FLUSH > > will require some knowledge on the opposite side to work (please correct > > me if this is wrong). In this case Z_SYNC_FLUSH don't solve the problem > > (and always using Z_FULL_FLUSH would result in bad compression ratios). > > But because zlib is so ubiquitous (and NNTP don't require compression to > > work), IMHO it is acceptable to explicitly define a zlib flush method to > > be used for the DEFLATE algorithm. > > Then let's explicitly require Z_PARTIAL_FLUSH to be used, as it saves a > few bytes. > > Are we sure that implementations of DEFLATE (other than zlib) know > partial flushes? > RFC 1951 does not mention partial or sync flushes... Why not specify it the way it was done for SSH? <https://tools.ietf.org/html/rfc4253#section-6.2> (only the flush related stuff, not the zlib container) The other option to use Z_SYNC_FLUSH and manually strip (on TX) and append (on RX) the terminating "00 00 FF FF" sequence looks more complicated for me. Z_PARTIAL_FLUSH should be simpler and "good enough" for NNTP. If the data stream lost sync, the connection should be terminated.
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Wed, 02 Dec 2015 16:27
Date: Wed, 02 Dec 2015 16:27
53 lines
3129 bytes
3129 bytes
Michael Baeuerle wrote: > Julien ÉLIE wrote: > > > > [...] > > Then let's explicitly require Z_PARTIAL_FLUSH to be used, as it saves a > > few bytes. > > > > Are we sure that implementations of DEFLATE (other than zlib) know > > partial flushes? > > RFC 1951 does not mention partial or sync flushes... > > Why not specify it the way it was done for SSH? > <https://tools.ietf.org/html/rfc4253#section-6.2> > (only the flush related stuff, not the zlib container) > > The other option to use Z_SYNC_FLUSH and manually strip (on TX) and > append (on RX) the terminating "00 00 FF FF" sequence looks more > complicated for me. Z_PARTIAL_FLUSH should be simpler and "good enough" > for NNTP. If the data stream lost sync, the connection should be > terminated. Some statistics I had measured: ======================================================================== Some OVER and a LIST command: CMPR: --- Statistics ---------------- CMPR: Uncompressed TX bytes accepted: 293 CMPR: Uncompressed RX bytes provided: 286578 CMPR: TX compression ratio: 0.60 CMPR: RX compression ratio: 0.19 250 HEAD commands: CMPR: --- Statistics ---------------- CMPR: Uncompressed TX bytes accepted: 3247 CMPR: Uncompressed RX bytes provided: 285586 CMPR: TX compression ratio: 0.54 CMPR: RX compression ratio: 0.16 The same 250 HEAD commands pushed out with Z_SNYC_FLUSH instead of Z_PARTIAL_FLUSH: CMPR: --- Statistics ---------------- CMPR: Uncompressed TX bytes accepted: 3247 CMPR: Uncompressed RX bytes provided: 285586 CMPR: TX compression ratio: 0.83 CMPR: RX compression ratio: 0.16 ========================================================================
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Fri, 04 Dec 2015 19:17
Date: Fri, 04 Dec 2015 19:17
15 lines
1845 bytes
1845 bytes
Hi Michael, > The same 250 HEAD commands pushed out with Z_SYNC_FLUSH instead of > Z_PARTIAL_FLUSH I've just switched my server to use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH. Do you confirm everything still works fine? -- Julien ÉLIE « C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Sat, 05 Dec 2015 14:06
Date: Sat, 05 Dec 2015 14:06
39 lines
2866 bytes
2866 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > The same 250 HEAD commands pushed out with Z_SYNC_FLUSH instead of > > Z_PARTIAL_FLUSH > > I've just switched my server to use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH. > Do you confirm everything still works fine? Yes, it still works fine. I'm currently testing with this really old IBM workstation (single 120MHz CPU) that is connected to the Internet via ISDN (64kbit/s). Statistics from last session (I have quoted the INN FAQ to generate some more TX traffic): | | CMPR: --- Statistics ---------------- | CMPR: Uncompressed TX bytes accepted: 119071 | CMPR: Compressed TX bytes sent : 24713 | CMPR: Compressed RX bytes received : 157672 | CMPR: Uncompressed RX bytes provided: 1411818 | CMPR: TX compression ratio: 0.21 | CMPR: RX compression ratio: 0.11 And the dominant (for a newsreader) RX direction really feels 10 times faster. The delay for entering a group and get the overview for the last 250 articles is approx. 2s instead of 20s without compression. The CPU overhead for zlib is negligible even with this slow machine. Looks good. -- Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das wohl nicht mehr... [Eric Brücklmeier in dse]
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sat, 05 Dec 2015 14:20
Date: Sat, 05 Dec 2015 14:20
32 lines
2567 bytes
2567 bytes
Hi Michael, >> I've just switched my server to use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH. >> Do you confirm everything still works fine? > > Yes, it still works fine. Thanks for the confirmation. I'll then soon commit to STABLE the version I am running. > I'm currently testing with this really old IBM workstation (single > 120MHz CPU) that is connected to the Internet via ISDN (64kbit/s). [...] > And the dominant (for a newsreader) RX direction really feels 10 times > faster. The delay for entering a group and get the overview for the last > 250 articles is approx. 2s instead of 20s without compression. > > The CPU overhead for zlib is negligible even with this slow machine. That's great to know! I hope the COMPRESS extension will be implemented in more news readers and servers within the next years. -- Julien ÉLIE « C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
Re: draft-murchison-nntp-compress-02
Author: Michael Baeuerle
Date: Sat, 05 Dec 2015 14:51
Date: Sat, 05 Dec 2015 14:51
41 lines
3220 bytes
3220 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > Julien ÉLIE wrote: > > > > > > I've just switched my server to use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH. > > > Do you confirm everything still works fine? > > > > Yes, it still works fine. > > Thanks for the confirmation. > I'll then soon commit to STABLE the version I am running. And if Z_PARTIAL_FLUSH should create problems for implementations not based on zlib, the change would be a single line. > > I'm currently testing with this really old IBM workstation (single > > 120MHz CPU) that is connected to the Internet via ISDN (64kbit/s). > [...] > > And the dominant (for a newsreader) RX direction really feels 10 times > > faster. The delay for entering a group and get the overview for the last > > 250 articles is approx. 2s instead of 20s without compression. > > > > The CPU overhead for zlib is negligible even with this slow machine. > > That's great to know! > I hope the COMPRESS extension will be implemented in more news readers > and servers within the next years. I have also tested zlib 1.2.3 (10 years old) - the oldest version from the 1.2 branch without documented security vulnerabilities. No problems occured. It also provides both, Z_PARTIAL_FLUSH and Z_SYNC_FLUSH. So there should be no compatibility problems on older systems, regardless of which method the final RFC will specify. -- Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das wohl nicht mehr... [Eric Brücklmeier in dse]
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sat, 05 Dec 2015 18:42
Date: Sat, 05 Dec 2015 18:42
44 lines
3152 bytes
3152 bytes
Hi Michael,
>> I've just switched my server to use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH.
>> Do you confirm everything still works fine?
>
> And if Z_PARTIAL_FLUSH should create problems for implementations not
> based on zlib, the change would be a single line.
Sure.
Notwithstanding, if we already know that such implementations exist, we
should use Z_SYNC_FLUSH and explicitly prohibit Z_PARTIAL_FLUSH. I have
just sent a mail to the author of the compression part of zlib
(Jean-Loup Gailly) to ask him whether he has a clue about that.
> I have also tested zlib 1.2.3 (10 years old) - the oldest version from
> the 1.2 branch without documented security vulnerabilities. No problems
> occured.
> It also provides both, Z_PARTIAL_FLUSH and Z_SYNC_FLUSH. So there should
> be no compatibility problems on older systems, regardless of which
> method the final RFC will specify.
OK. I've looked at:
http://www.zlib.net/ChangeLog.txt
Changes in 1.2.3.4 (21 Dec 2009)
- Remove deprecation comment on Z_PARTIAL_FLUSH (it stays)
Changes in 0.5:
- do real compression in deflate.c. Z_PARTIAL_FLUSH is supported but
not yet Z_FULL_FLUSH.
There will be no problem to use Z_PARTIAL_FLUSH for INN (which already
requires zlib 1.x or higher for overview compression with Berkeley DB).
--
Julien ÉLIE
« C'est une forêt vierge où la main de l'homme n'a jamais mis le
pied. »
Re: draft-murchison-nntp-compress-02
Author: Julien ÉLIE
Date: Sun, 06 Dec 2015 20:34
Date: Sun, 06 Dec 2015 20:34
38 lines
3163 bytes
3163 bytes
Hi all, > Notwithstanding, if we already know that such implementations exist, we > should use Z_SYNC_FLUSH and explicitly prohibit Z_PARTIAL_FLUSH. I have > just sent a mail to the author of the compression part of zlib > (Jean-Loup Gailly) to ask him whether he has a clue about that. I've just received an answer from Mark Adler. He has very interesting remarks for our draft: About Z_FULL_FLUSH: "This will always result in compression that is less effective than or equal to doing a Z_SYNC_FLUSH. It will never improve compression over the other flushes. Having the 32K dictionary from previous data, no matter how unrelated, can only help. If there are no matching strings in there, then it is simply not referenced." About Z_PARTIAL_FLUSH: "If you are breaking things into packets that you want to be a little more self-contained, i.e. fully decodable upon receipt, then you would use Z_PARTIAL_FLUSH, or maybe Z_SYNC_FLUSH. All of these forms of flushing are done within the constraints of the deflate format, as defined in RFC-1951, so all compliant decompressors will be able to decompress any application of these flushes." So I think the response is pretty clear: we should use Z_PARTIAL_FLUSH in all cases when wanting to flush (no need for Z_SYNC_FLUSH or Z_FULL_FLUSH). -- Julien ÉLIE « Mieux vaut allumer une bougie que maudire les ténèbres. » (Lao Zi)
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