[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: modifications in draft-ietf-ippcp-protocol-02.txt



Hi All,

There's a companion document to Avrum's which defines the algorithm for
the IPPCP protocol.  It's called <draft-ietf-ippcp-lzs-02.txt>.

Following the recent IPPCP WG mailing-list discussions, I also modified
the
LZS Payload Compression Protocol document to include the requested
clarifications. The new document is titled
<draft-ietf-ippcp-lzs-02.txt>.

I realize the 11-21-97 date is tommorrow, however, any feedback would be
appreciated.  A text copy of the -02 document is below.

Looking forward to any comments,
_____________________________________________________________

Robert C. Friend              Hi/fn
Applications Engineering      5973 Avenida Encinas, Suite 110
voice: (760) 827-4542         Carlsbad, CA 92008
FAX:   (760) 827-4577         email: rfriend@hifn.com

I made the following changes to the draft-ietf-ippcp-lzs-01.txt (except
#8 below):

1) Abstract section: removed: 
This document describes a IP compression method based on the LZS
                          ^^
2) Section 1.2 Background of LZS Compression

Changed from:
Starting with a sliding window compression history, similar to [LZ1],
Hi/fn developed a new, enhanced compression algorithm identified as
LZS. The LZS algorithm is optimized to compress all file types as
                                                ^^^^^^^^^^^^^^
To:
The LZS algorithm is a general purpose lossless compression algorithm
for
use with a wide variety of data types. Its encoding method is very
efficient, providing compression for strings as short as two octets in
length.

3) Section 1.2 Background of LZS Compression

Replaced: 
A typical compression ratio is 2:1.

With a reference to the table in the appendix (Section 7.).

4) Section 2.2 Anti-expansion of Payload Data
Replaced:
If the size of a compressed IP datagram, including whatever overhead
                                                   ^^^^^^^^^^^^^^^^^
With:
If the size of a compressed IP datagram, including the Next Header,
Flags, and CPI fields, is not smaller than the size of the original IP
datagram,...."

5) Section 2.4 Compression Encoding Format

Added text to explicitly state that the compressed payload is prepended
with the IPComp header.

6) Section 2.5 Padding

Added the following statement to specify compliance with the
requirement:
"The size of a compressed payload MUST be in whole octet units."

7) Section 5. References

Removed the following references: DOI, ESP, ISAKMP, RFC-1700, RFC1883,
and Thayer

8) I did not modify Section 4. Security Considerations

_____________________________________________________________

Robert C. Friend              Hi/fn
Applications Engineering      5973 Avenida Encinas, Suite 110
voice: (760) 827-4542         Carlsbad, CA 92008
FAX:   (760) 827-4577         email: rfriend@hifn.com

>-----Original Message-----
>From:	Avram Shacham [SMTP:shacham@cisco.com]
>Sent:	Wednesday, November 19, 1997 12:52 AM
>To:	ipsec@tis.com
>Subject:	modifications in draft-ietf-ippcp-protocol-02.txt
>
>Following the recent IPPCP WG mailing-list discussions, I modified the IP
>Payload Compression Protocol document to include the requested
>clarifications. The new document is titled
><draft-ietf-ippcp-protocol-02.txt>.
>
>A summary of the changes is attached.  Please, e-mail me directly requests
>for the full text of the document. The plan is to submit the new draft prior
>to the 11-21 deadline.
>
>Looking forward to your prompt comments,
>avram
>
>Summary of the changes from <draft-ietf-ippcp-protocol-01.txt>:
>
>a) 2.1.  Compressed Payload
>Paragraph 4 - The compression algorithm is responsible to provide a
>compressed payload in whole octet units.
>Paragraph 5 - Refering to "The original content of the Next Header (IPv6) or
>protocol (IPv4) field...", instead of using only "Next Header field".
>
>b) 2.2.  Anti-Expansion Policy
>Paragraph 4 - The compressibility test is "algorithm dependent", a phrase
>more accurate than "implementation dependent."
>
>c) 3.1. IPv4 Header Modifications
>Explicit reference to Header Checksum.
>
>d) 3.3.  IPComp Header Structure
>Clarifications of CPI characteristics and usage:
>
>   Compression Parameter Index (CPI)
>
>        16-bit index.  The CPI is stored in network order.  The values
>        0-63 are defined by IANA and are used for manual setup, which
>        requires no additional information.  The values 64-61439 are
>        negotiated between the two nodes in definition of an IPComp
>        Association, as defined in section 4.  The values 61440-65535
>        are for private use among mutually consenting parties.  Both
>        nodes participating can select a CPI value independently of each
>        other and there is no relationships between the two separately
>        chosen CPIs.  The outbound IPComp header MUST use the CPI value
>        chosen by the decompressing node.  The CPI in combination with
>        the destination IP address uniquely identifies the compression
>        algorithm characteristics for the datagram.
>
>e) 5. Security Considerations
>Paragraph 1 - Modified "...transport header fields..." to "...transport
>layer header fields..."
>
>f) Several typos were corrected.
>
>=== end of summary ===
>
>
>Internet Draft                                               R. Friend
>Expires in six months                                       R. Monsour
>                                                           Hi/fn, Inc.
>                                                     November 18, 1997
>
>
>
>                    IP Payload Compression Using LZS
>                      <draft-ietf-ippcp-lzs-02.txt>
>
>
>
>Status of this Memo
>
>   This document is an Internet-Draft.  Internet Drafts are working
>   documents of the Internet Engineering Task Force (IETF), its areas,
>   and its working Groups. Note that other groups may also distribute
>   working documents as Internet Drafts.
>
>   Internet-Drafts draft documents are valid for a maximum of six
>   months and may be updated, replaced, or obsolete by other documents
>   at any time. It is inappropriate to use Internet-Drafts as reference
>   material or to cite them other than as "work in progress."
>
>   To learn the current status of any Internet-Draft, please check the
>   "1id-abstracts.txt" listing contained in the Internet-Drafts Shadow
>   Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
>   munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
>   ftp.isi.edu (US West Coast).
>
>   Distribution of this memo is unlimited.
>
>   It is intended that a future version of this draft be submitted to
>   the IESG for publication as an Informational RFC.
>
>Abstract
>
>   This document describes a compression method based on the LZS
>   compression algorithm. This document defines the application of the
>   LZS algorithm to the IP Payload Compression Protocol [IPCOMP].
>   [IPCOMP] defines a method for applying lossless compression to the
>   payloads of Internet Protocol datagrams.
>
>Acknowledgments
>
>   The LZS details presented here are similar to those in PPP LZS-DCP
>   Compression Protocol (LZS-DCP), [RFC-1967].
>
>   The author wishes to thank the participants of the IPPCP working
>   group mailing list whose discussion is currently active and is
>   working to generate the protocol specification for integrating
>   compression with IP.
>
>
>
>Friend, Monsour                                                  [Page 1]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>
>Table of Contents
>
>   1. Introduction...................................................2
>      1.1 General....................................................2
>      1.2 Background of LZS Compression..............................2
>      1.3 Licensing..................................................3
>      1.4 Specification of Requirements..............................3
>   2. Compression Process............................................3
>      2.1 Compression History........................................3
>      2.2 Anti-expansion of Payload Data.............................3
>      2.3 Format of Compressed Datagram Payload......................3
>      2.4 Compression Encoding Format................................4
>      2.5 Padding....................................................5
>   3. Decompression Process..........................................5
>   4. Security Considerations........................................5
>   5. References.....................................................5
>   6. Authors Addresses..............................................7
>   7. Appendix: Compression Efficiency versus Datagram Size..........7
>
>
>
>1. Introduction
>
>
>1.1 General
>
>   This document is a submission to the IETF IP Payload Compression
>   Protocol (IPPCP) Working Group. Comments are solicited and should be
>   addressed to the working group mailing list (ippcp@external.cisco.com)
>   or to the editor.
>
>   This document specifies the application of LZS compression, a lossless
>   compression algorithm, to IP datagram payloads. This document is to
>   be used in conjunction with the IP Payload Compression Protocol
>   [IPCOMP].  This specification assumes a thorough understanding of
>   the IPComp protocol.
>
>1.2 Background of LZS Compression
>
>   Starting with a sliding window compression history, similar to [LZ1],
>   Hi/fn developed a new, enhanced compression algorithm identified as
>   LZS. The LZS algorithm is a general purpose lossless compression
>   algorithm for use with a wide variety of data types.  Its encoding
>   method is very efficient, providing compression for strings as short
>   as two octets in length.
>
>   The LZS algorithm uses a sliding window of 2,048 bytes.  During
>   compression, redundant sequences of data are replaced with tokens that
>   represent those sequences. During decompression, the original
>   sequences are substituted for the tokens in such a way that the
>   original data is exactly recovered. LZS differs from lossy compression
>   algorithms, such as those often used for video compression, that do
>   not exactly reproduce the original data.
>
>Friend, Monsour                                                  [Page 2]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>
>   The details of LZS compression can be found in [ANSI94].
>
>   The efficiency of the LZS algorithm depends on the degree of
>   redundancy in the original data.  A table of compression ratios for
>   the [Calgary] Corpus file set is provided in the appendix in
>   Section 7.
>
>1.3 Licensing
>
>   Hi/fn, Inc. holds patents on the LZS algorithm. Licenses for a
>   reference implementation are available for use in IPPCP, IPSec, TLS
>   and PPP applications at no cost.  Source and object licenses are
>   available on a non-discriminatory basis. Hardware implementations are
>   also available.  For more information, contact Hi/fn at the address
>   listed with the authors' addresses.
>
>1.4 Specification of Requirements
>
>   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
>   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
>   document are to be interpreted as described in [RFC-2119].
>
>2. Compression Process
>
>
>2.1 Compression History
>
>   The sender MUST reset the compression history prior to processing each
>   datagram's payload. This ensures that each datagram's payload can be
>   decompressed independently of any other, as is needed when datagrams
>   are received out of order.
>
>   The sender MUST flush the compressor each time it transmits a
>   compressed datagram.  Flushing means that all data going into the
>   compressor is included in the output, i.e., no data is held back in
>   the hope of achieving better compression.  Flushing is necessary to
>   prevent a datagram's data from spilling over into a later datagram.
>
>2.2 Anti-expansion of Payload Data
>
>   The maximum expansion produced by the LZS algorithm is 12.5%.
>
>   If the size of a compressed IP datagram, including the Next Header,
>   Flags, and CPI fields, is not smaller than the size of the original
>   IP datagram, the IP datagram MUST be sent in the original non-
>   compressed form, as described in [IPCOMP].
>
>2.3 Format of Compressed Datagram Payload
>
>   The following is an example datagram that results when using LZS as
>   the compression algorithm for the IP Payload Control Protocol.  Note
>   that the IP header has been omitted for clarity.
>
>
>Friend, Monsour                                                  [Page 3]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>    0                   1                   2                   3
>    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   |  Next Header  |     Flags     | Compression Parameter Index   |
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   |                                                               |
>   ~                    Payload Data (variable)                    ~
>   |                                                               |
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>The Next Header, Flags, Compression Parameter Index fields are all described
>in [IPCOMP].
>
>2.4 Compression Encoding Format
>
>   The input to the payload compression algorithm is an IP datagram
>   payload. The output of the algorithm is a new (and hopefully smaller)
>   payload. The output payload contains the input payload's data in
>   either compressed or uncompressed format. The input and output
>   payloads are each an integral number of bytes in length.
>
>   If the uncompressed form is used, the output payload is identical to
>   the input payload and the IPComp header is omitted.  If the
>   compressed form is used, the output payload is prepended with the
>   IPComp header and encoded as defined in [ANSI94], which is repeated
>   here for informational purposes ONLY.
>    <Compressed Stream> := [<Compressed String>] <End Marker>
>   <Compressed String> := 0 <Raw Byte> | 1 <Compressed Bytes>
>   <Raw Byte> := <b><b><b><b><b><b><b><b>          (8-bit byte)
>   <Compressed Bytes> := <Offset> <Length>
>
>   <Offset> := 1 <b><b><b><b><b><b><b> |           (7-bit offset)
>               0 <b><b><b><b><b><b><b><b><b><b><b> (11-bit offset)
>   <End Marker> := 110000000
>
>   <b> := 1 | 0
>
>   <Length> :=
>   00        = 2     1111 0110      = 14
>   01        = 3     1111 0111      = 15
>   10        = 4     1111 1000      = 16
>   1100      = 5     1111 1001      = 17
>   1101      = 6     1111 1010      = 18
>   1110      = 7     1111 1011      = 19
>   1111 0000 = 8     1111 1100      = 20
>   1111 0001 = 9     1111 1101      = 21
>   1111 0010 = 10    1111 1110      = 22
>   1111 0011 = 11    1111 1111 0000 = 23
>   1111 0100 = 12    1111 1111 0001 = 24
>   1111 0101 = 13     ...
>
>
>
>
>Friend, Monsour                                                  [Page 4]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>
>2.5 Padding
>
>   A datagram payload compressed using LZS always ends with the last
>   compressed data byte (also known as the <end marker>), which is used
>   to disambiguate padding.  This allows trailing bits as well as bytes
>   to be considered padding.
>
>   The size of a compressed payload MUST be in whole octet units.
>
>3. Decompression Process
>
>   If the received datagram is compressed, the receiver MUST reset the
>   decompression history prior to processing the datagram. This ensures
>   that each datagram can be decompressed independently of any other, as
>   is needed when datagrams are received out of order. Following the
>   reset of the decompression history, the receiver decompresses the
>   Payload Data field according to the encoding specified in section 3.2
>   of [ANSI94].
>
>   If the received datagram is not compressed, the receiver needs to
>   perform no decompression processing and the Payload Data field of the
>   datagram is ready for processing by the next protocol layer.
>
>4. Security Considerations
>
>   IP payload compression potentially reduces the security of the
>   Internet, similar to the effects of IP encapsulation [RFC-2003].  For
>   example, IPComp makes it difficult for border routers to filter
>   datagrams based on header fields.  In particular, the original value
>   of the Protocol field in the IP header is not located in its normal
>   positions within the datagram, and any transport-layer header fields
>   within the datagram, such as port numbers, are neither located in
>   their normal positions within the datagram nor presented in their
>   original values after compression.  A filtering border router can
>   filter the datagram only if it shares the IPComp Association used for
>   the compression.  To allow this sort of compression in environments in
>   which all packets need to be filtered (or at least accounted for), a
>   mechanism must be in place for the receiving node to securely
>   communicate the IPComp Association to the border router.  This might,
>   more rarely, also apply to the IPComp Association used for outgoing
>   datagrams.
>
>   When IPComp is used in the context of IPSec, it is not believed to
>   have an effect on the underlying security functionality provide by
>   the IPSec protocol; i.e., the use of compression is not known to
>   degrade or alter the nature of the underlying security architecture
>   or the encryption technologies used to implement it.
>
>5. References
>
>   [AH]  Kent, S. and Atkinson, R., "IP Authentication Header", draft-
>
>
>
>Friend, Monsour                                                  [Page 5]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>
>   ietf-ipsec-auth-header-01.txt, Work in Progress, July 1997.
>   [ANSI94] American National Standards Institute, Inc., "Data
>   Compression Method for Information Systems," ANSI X3.241-1994, August
>   1994.
>
>   [Calgary]  Text Compression Corpus, University of Calgary, available
>   at ftp://ftp.cpsc.ucalgary.ca/pub/projects/text.compression.corpus.
>
>   [IPCOMP] Shacham, A., "IP Payload Compression Protocol (IPComp)",
>   draft-ietf-ippcp-protocol-01.txt, Work in Progress, October 1997.
>
>   [LZ1] Lempel, A. and Ziv, J., "A Universal Algorithm for Sequential
>   Data Compression", IEEE Transactions On Information Theory, Vol. IT-
>   23, No. 3, May 1977.
>
>   [RFC-1962] Rand, D., "The PPP Compression Control Protocol (CCP)",
>   RFC-1962, June 1996.
>
>   [RFC-1967] K. Schneider, R. Friend, "PPP LZS-DCP Compression Protocol
>   (LZS-DCP)", RFC-1967, August, 1996.
>
>   [RFC-2003] Perkins, C., "IP Encapsulation within IP", RFC 2003,
>   October 1996.
>
>   [RFC-2119] Bradner, S., "Key words for use in RFCs to Indicate
>   Requirement Levels", RFC 2119, March 1997.
>
>6. Authors Addresses
>
>   Robert Friend
>   Hi/fn Inc.
>   5973 Avenida Encinas
>   Suite 110
>   Carlsbad, CA  92008
>   Email: rfriend@hifn.com
>
>   Robert Monsour
>   Hi/fn Inc.
>   2105 Hamilton Avenue
>   Suite 230
>   San Jose, CA 95125
>   Email: rmonsour@hifn.com
>
>
>
>
>
>
>
>
>
>
>
>
>Friend, Monsour                                                  [Page 6]
>Internet Draft       draft-ietf-ippcp-lzs-01.txt        November 18, 1997
>
>
>7. Appendix: Compression Efficiency versus Datagram Size
>
>   The following table offers some guidance on the compression
>   efficiency that can be achieved as a function of datagram size.
>   Each entry in the table shows the compression ratio that was 
>   achieved when LZS was applied to a test file using datagrams of a
>   specified size.
>
>   The test file was the University of Calgary Text Compression Corpus
>   [Calgary].  The Calgary Corpus consists of 18 files with a total
>   size (all files) of 3.278MB.
>
>    Datagram size,|
>    bytes         |  64   128   256   512  1024  2048  4096  8192 16384
>    --------------|----------------------------------------------------
>    Compression   |1.18  1.28  1.43  1.58  1.74  1.91  2.04  2.11  2.14
>    ratio         |
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Friend, Monsour                                                  [Page 7]