RFC 1967
PPP LZS-DCP Compression Protocol (LZS-DCP)
PPP LZS-DCP Compression Protocol (LZS-DCP) ๐
Okay bestie, let's talk about RFC 1967 ๐ It's the PPP LZS-DCP Compression Protocol, written by K. Schneider of ADTRAN, Inc. and R. Friend of Stac Technology, and it was published in August 1996 under the Network Working Group. It's Informational ๐ธ, so the vibe is "here's some useful info," not "this is an official standard." The header doesn't list anything it obsoletes or updates โจ
Status of This Memo ๐ธ
This memo gives info to the Internet community. It does not specify an Internet standard of any kind, and distribution of it is unlimited ๐
Abstract ๐ฆ
The Point-to-Point Protocol (PPP) [1] gives us a standard way to send multi-protocol datagrams over point-to-point links ๐ฅ
The PPP Compression Control Protocol [2] is how you negotiate and use compression protocols on PPP encapsulated links ๐ซถ
This doc explains how to use the Stac LZS data compression algorithm to compress PPP encapsulated packets, using a DCP header [6]. It's an enhanced version of the non-DCP (Option 17) PPP Stac LZS compression protocol [5], and we're calling it the LZS-DCP Compression Protocol ๐
Table of Contents ๐ง
1. Introduction .......................................... 2
1.1 Licensing ....................................... 3
1.2 Specification of Requirements ................... 3
1.3 Terminology ..................................... 3
2. LZS-DCP Packets ....................................... 4
2.1 Example LZS-DCP Packets ......................... 5
2.2 Padding ......................................... 6
2.3 Reliabliity and Squencing ....................... 6
2.4 Data Expansion .................................. 6
2.5 Packet Format ................................... 7
2.5.1 PPP Protocol .................................... 7
2.5.2 DCP-Header ...................................... 8
2.5.3 History Number .................................. 9
2.5.4 Sequence Number ................................. 9
2.5.5 Data ............................................ 10
2.5.6 Longitudinal Check Byte ......................... 10
2.5.7 Compressed Data ................................. 11
3. Sending Compressed Datagrams ..................... 11
3.1 Transmitter Process ............................. 11
3.2 Receiver Process ................................ 12
3.3 History Maintenance ............................. 13
3.4 Anti-Expansion Mechanism ........................ 14
3.5 History Resynchronization Mechanism ............. 14
4. Configuration Option Format ........................... 15
SECURITY CONSIDERATIONS ...................................... 16
REFERENCES ................................................... 17
CHAIR'S ADDRESS .............................................. 17
AUTHORS' ADDRESSES ........................................... 18
1. Introduction ๐ฆ
Starting with a sliding window compression history, similar to LZ1 [3], Stac Electronics developed a compression algorithm called Stac LZS. A PPP Compression Protocol for that algorithm was developed and published [5]. That protocol became the basis for data compression work done in TIA for DSU/CSUs. During that standardization process, the idea of a portable Data Compression Protocol (DCP) was introduced [6]. The resulting (pending) TIA/EIA-655 standard uses this LZS-DCP protocol, which incorporates DCP into a PPP compression protocol for Stac LZS. A very similar protocol is currently out for ballot in the Frame Relay Forum. (It's identical except for the size of the history number field.) ๐
This publication of the LZS-DCP compression protocol is meant to give everyone a common compression protocol for Stac-LZS, and to add features the LZS compression protocol [5] doesn't have. Here are some of the differences between LZS-DCP and LZS (compression type 17) ๐
- LZS-DCP has an option that lets packets containing uncompressible data get transferred without clearing the compression history, which could allow a higher compression ratio. A bit in the DCP header says whether the packet holds compressed or uncompressed data ๐ง
- LZS-DCP puts reset request and acknowledgment bits in the DCP header on each packet, instead of using CCP's reset request and acknowledge packets. That may mean fewer discarded data packets during the REQ/ACK handshake ๐ซถ
- LZS-DCP lets you use sequence numbers and the LCB for compression error detection at the same time โจ
The Stac LZS compression algorithm supports both single and multiple compression histories. A single history takes the least memory to implement, but it may not compress as much as a multiple history implementation ๐
Lots of information streams are often interleaved over the same physical link. Each virtual connection transmits data that's independent of the others. Using multiple compression histories can improve a link's compression ratio, because each one gets its own history for its own virtual link ๐
1.1. Licensing ๐
Source and object licenses are available on a non-discriminatory basis. Hardware implementations are available too. For more info, contact Stac Electronics (hardware.sales@stac.com) ๐
1.2. Specification of Requirements ๐
This document uses a handful of words to signal the requirements of the spec. They're often capitalized, so here's how to read them ๐ฅ
MUST This word, or the adjective "required", means that the
definition is an absolute requirement of the specification.
MUST NOT This phrase means that the definition is an absolute
prohibition of the specification.
SHOULD This word, or the adjective "recommended", means that there
may exist valid reasons in particular circumstances to
ignore this item, but the full implications MUST be
understood and carefully weighed before choosing a
different course.
MAY This word, or the adjective "optional", means that this
item is one of an allowed set of alternatives. An
implementation which does not include this option MUST be
prepared to interoperate with another implementation which
does include the option.
1.3. Terminology ๐ง
This document keeps using these terms, so here's the lowdown ๐
datagram The unit of transmission in the network layer (such as IP).
A datagram may be encapsulated in one or more packets
passed to the data link layer.
frame The unit of transmission at the data link layer. A frame
may include a header and/or a trailer, along with some
number of units of data.
packet The basic unit of encapsulation, which is passed across the
interface between the network layer and the data link
layer. A packet is usually mapped to a frame; the
exceptions are when data link layer fragmentation is being
performed, or when multiple packets are incorporated into a
single frame.
peer The other end of the point-to-point link.
silently discard
This means the implementation discards the packet without
further processing. The implementation SHOULD provide the
capability of logging the error, including the contents of
the silently discarded packet, and SHOULD record the event
in a statistics counter.
2. LZS-DCP Packets ๐
Before any LZS-DCP packets get communicated, PPP MUST reach the Network-Layer Protocol phase, and the CCP Control Protocol MUST reach the Opened state ๐ธ
Exactly one LZS-DCP datagram goes in the PPP Information field. The PPP Protocol field shows either 00FD (compressed datagram) or 00FB (Individual link compressed datagram). 00FD is used when compression is negotiated over a single physical link, or over a single bundle made of multiple physical links. 00FB is used when compression is negotiated separately over individual physical links to the same destination. For more info, check out the PPP Compression Control Protocol ๐ง
The maximum length of an LZS-DCP datagram sent over a PPP link is the same as the maximum length of the Information field of a PPP encapsulated packet ๐
Before compression, the uncompressed data starts with the PPP Protocol ID Field. Protocol-Field-Compression MAY be used on this value, if it has been successfully negotiated for the link ๐ซถ
The PPP Protocol ID Field is followed by the original Information field. The length of the uncompressed data field is only limited by the allowed size of the compressed data field and the higher protocol layers ๐
PPP Link Control Protocol packets MUST NOT be sent within LZS-DCP packets ๐ซ PPP Network Control Protocol packets MUST NOT be sent within LZS-DCP packets either ๐ซ
2.1. Example LZS-DCP packets (shown using PPP in HDLC-like framing, using Address-and-Control-Field-Compression and Protocol-Field-Compression. - RFC 1662 ) ๐ฆ
Here's the compressed one first ๐
Compressed Packet:
PPP | | PPP
PID | HDR SEQ DATA LCB | FCS
+-----+-----+-----+---................---+-----+-----+
| F D | C 0 | n n | Compressed Data | y y | z z |
+-----+-----+-----+---................---+-----+-----+
/ \
/ Compression \
/ Transformation \
/ \
/PPP \
/ PID PPP Information Field \
+-----+----....................----+
| x x | upper layer protocol data |
+-----+----....................----+
And here's the uncompressed one ๐
Uncompressed Packet
PPP | | PPP
PID | HDR SEQ DATA | FCS
+-----+-----+-----+---................---+-----+
| F D | 8 0 | n n | Un-compressed Data | z z |
+-----+-----+-----+---................---+-----+
/ \
/ \
/ \
/ \
/PPP \
/ PID PPP Information Field \
+-----+----....................----+
| x x | upper layer protocol data |
+-----+----....................----+
where: C0 and 80 are representative LZS-DCP headers, and nn, xx, yy, and zz are values determined by the packet's context ๐ง
2.2. Padding ๐
Okay so, PPP padding is not allowed in an LZS-DCP packet ๐ However, on compressed packets, padding can be done by tacking zeros onto the end of the data field, right after the last compressed data octet (see Section 2.1.1). This is called LZS Padding ๐ง The LCB, if present, MUST be the octet right before the frame CRC ๐
2.3. Reliability and Sequencing ๐ฆ
When there's no Compression History kept, the algorithm doesn't need a reliable link, and packets don't have to show up in order ๐ Very relaxed energy. BUT per packet compression gives a lower compression ratio than you'd get on a stream ๐ฅฒ
Some reasons for clearing the history on a per packet basis include:
- The link has a high error rate.
- The resources of the transmitter or receiver limit the ability to maintain a compression history between packets.
When one or more compression Histories are negotiated, the packet sequence MUST be preserved within specific History Numbers. There's no sequence requirement between different History Numbers ๐
When using one or more compression histories, the implementation MUST rely on either a lower layer reliable link protocol (RFC 1663), use a technique to keep the compressor and decompressor histories in synchronization, or both. The LZS-DCP protocol provides the Request-Req and Request-Ack bits in the DCP header for this purpose. Since this synchronization happens on a per history basis, the history number fields are required to be the same size in both directions of the link. Any data in the packet gets processed after the signaling bits are processed โฐ
The transmitter MAY clear a Compression History at any time. ๐งน
The transmitter MUST clear a history after receiving a Reset-Request for a given History Number. ๐
2.4. Data Expansion ๐
The maximum expansion of Stac LZS is 12.5%. Yikes, but manageable!
A Maximum Receive Unit (MRU) MAY be negotiated that is 12.5% larger than the size of a normal packet. Then, packets can always be sent compressed regardless of expansion ๐
The transmitter MAY send an uncompressed LZS-DCP packet at any time, although the typical use of uncompressed LZS-DCP packets is as an anti-expansion mechanism ๐ก๏ธ
When the expansion plus compression header exceeds the size of the peer's MRU for the link, the data MUST be sent as an uncompressed LZS-DCP packet. Not optional, bestie ๐จ
An uncompressed LZS-DCP packet is transmitted according to the format shown in Section 2.1, with the C/U bit set to 0 (Uncompressed-Data). If the Configuration Option Field 'Process Mode', is set to a value of 1 (Process-Uncompressed), uncompressed LZS-DCP packets are processed by both the compressor and the decompressor, updating the histories of each. If the Process Mode Field is set to a value of 0 (None), and the compressor has modified its history before sending the uncompressed packet, the compressor history MUST be clear. Histories getting cleared, the whole vibe is cleansing โจ
2.5. Packet Format ๐ฆ
A summary of the LZS-DCP packet format is shown below. The fields are transmitted from left to right, so read it like a book ๐
0 1 2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PPP Protocol | DCP-Header |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| (History Number) | (Seq Num) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| (LCB) |
+-+-+-+-+-+-+-+-+
2.5.1. PPP Protocol ๐ธ
The PPP Protocol field is described in the Point-to-Point Protocol Encapsulation [1].
When the LZS-DCP compression protocol is successfully negotiated by the PPP Compression Control Protocol [2], the value is 00FD or 00FB hex. This value MAY be compressed when Protocol-Field-Compression is negotiated.
2.5.2. DCP-Header ๐งฉ
The DCP-Header is nominally one octet in length, but it can be extended using the extension bit.
The format of the DCP-Header is as follows:
0 1 2 3 4 5 6 7
+-----+-----+-----+-----+-----+-----+-----+-----+
| E | C/U | R-A | R-R | Res | Res | Res | C/D |
+-----+-----+-----+-----+-----+-----+-----+-----+
Here's the breakdown, one bit at a time:
E - Extension Bit ๐ The E bit is the extension bit. If set to 0, it indicates that another octet of the DCP-Header is present. Currently, this bit is always set to 1, since the DCP-Header field is only one octet long.
C/U - Compressed/Uncompressed Bit ๐๏ธ The C/U indicates whether the data field contains compressed or uncompressed data. A value of 1 indicates compressed data (often referred to as a compressed packet), and a value of 0 indicates uncompressed data (or an uncompressed packet).
R-A - Reset-Ack ๐ The R-A bit is used to inform the decompressing peer that the history buffer specified by the history number in the packet was in the cleared state just before the data contained in the packet was processed by the compression transformation (see section 3., Sending Compressed Datagrams). This bit MUST be set to a value of "1" to indicate a Reset-Ack, and to acknowledge a receive failure (R-R) (see section 3., Sending Compressed Datagrams). This bit is specific to the history number of the packet containing it. ๐ฏ
R-R - Reset-Request ๐ The R-R bit is used to request that the compressing peer clear the history buffer specified by the history number in the packet. This bit MUST be set to a value of "1" to indicate a Reset-Request, and to respond to a receive failure (R-R) (see section 3., Sending Compressed Datagrams). This bit is specific to the history number of the packet containing it.
Res - Reserved ๐คซ These bits are reserved and MUST be set to 0.
C/D - Control/Data ๐จ This bit is used by DCP to provide in-band negotiation in applications where out-of-band negotiation methods are not provided (i.e. Frame Relay). Since CCP provides an out of band negotiating mechanism, this feature is not used in this application. All packets MUST set this bit to a value of 0, which signifies that the packet is a data packet. (Packets containing only Reset-Requests are classified as data packets.)
2.5.3. History Number ๐ข
The number of the compression history which was used, ranging from 1 to the negotiated value in the History Count field.
If the negotiated History Count is less than 2, this field is removed. If the negotiated History Count is 2 or more, but less than 256, this field is 1 octet. If 256 or more histories are negotiated, this field is 2 octets, most significant octet first.
If multiple histories are used in one direction on a link, the history number field MUST be present on all packets in both directions, and sized according to the largest number of histories in either direction.
If multiple histories are used, this field MUST be present in uncompressed as well as compressed packets. No exceptions, the uncompressed ones get a history number too ๐ซถ
2.5.4. Sequence Number ๐
The sequence number field is one octet in length. When the check mode field is set to the "Sequence Number" or "Sequence Number + LCB" options, the sequence number field MUST be present in all data compression packets that contain a data field.
The value of the sequence number field (the sequence number of the packet) MUST begin with "1" and increment modulo 256 on successive packets that contain data fields. This number is relative to the history number used.
On receipt of a packet with the R-A bit set to "0", if the sequence number of the packet is any number other than (N+1) mod 256, where N is the sequence number of the last packet received for the same history, or an initial value of "0", a receive failure for that history has occurred. The receive failure MUST be handled according to the synchronization procedure in section 3.5. Uh-oh, time to resync ๐ญ
The sequence number MUST NOT be reset by the transmitter when a packet containing a Reset-Ack is sent. The decompressor MUST resynchronize its sequence number reference for the indicated history when a packet containing a Reset-Ack is received.
2.5.5. Data ๐
The data field MUST contain a single datagram in either compressed or uncompressed form, depending on the state of the C/U bit in the Header. The length of this field is always an integer number of octets. This field is required in all packets that do not have the R-R bit set to "1".
If the C/U bit is set to "0", the data field contains the uncompressed form of the datagram.
If the C/U bit is set to "1", the form of the data field is one block of compressed data as defined in 3.2 of X3.241-1994, with the following exceptions: 1) the end marker may be followed with additional octets containing only zeros; 2) if the final octet in the block of compressed data has a value of "0", then it MAY be removed from the data field.
There is only one end marker per block of compressed data.
2.5.6. Longitudinal Check Byte ๐งฎ
The LCB field is one octet in length, and if present MUST be the last octet in the data compression packet. When the check-mode field is set to "LCB" or "Sequence Number + LCB", this field MUST be present in all packets where the data field contains compressed data. This field MUST NOT be present in data compression packets where the data field contains uncompressed data. This field contains the result of the LCB calculation, in accordance with the following paragraph.
The LCB octet is the Exclusive-OR of FF(hex) and each octet of the uncompressed datagram (prior to the compression transformation). On receipt, the receiver computes the Exclusive-OR of FF(hex) and each octet of the decompressed packet. If this value does not match the received LCB, then a receive failure for that history has occurred. The receive failure is handled according to the history synchronization procedure in section 3.5. Check it, double-check it, ICONIC ๐
2.5.7. Compressed Data ๐๏ธ
The Stac LZS compression algorithm is defined in ANSI X3.241-1994 [7]. The format of the compressed data is repeated here for informational purposes ONLY, so the ANSI spec is still the one doing the defining ๐
<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 ...
3. Sending Compressed Datagrams โจ
The reliable and efficient transport of datagrams on the data link depends on the following processes. ๐
3.1. Transmitter Process ๐
okay so the compression step gives you either compressed or uncompressed data ๐. When a network datagram shows up, it gets assigned to one particular history buffer. Then it either gets processed according to ANSI X3.241-1994 to become compressed data, or it gets used as is to become uncompressed data. Before the compression operation even starts, if a Reset-Request is outstanding for the history buffer that's about to be used, that buffer gets cleared ๐งน. Now here's the drama: if the Process Mode field is set to the value None ("0"), the history MUST only be updated if the result is compressed data. If the Process Mode field is set to the value Process-Uncompressed ("1"), the history MUST be updated when either compressed data or uncompressed data is produced. Uncompressed data MAY be sent at any time ๐ธ. Uncompressed data MUST be sent if compression causes enough expansion to cause the data compression datagram size to exceed the Information field's MRU ๐.
If the Process Mode field is set to None ("0") and the compressor has modified the history buffer before sending an uncompressed datagram, the history buffer MUST be cleared before the next datagram is processed ๐.
The output of the compression operation goes into the Information field of the datagram โจ. The C/U bit gets set depending on whether the data field has compressed or uncompressed data. If the sequence number field is present (based on the value of the check mode field), the sequence number counter for the applicable history number MUST be incremented, and its value gets placed in the sequence number field ๐ข. And if the data field has compressed data and the Check Mode field is set accordingly, the LCB field is present, and its value gets computed as specified in section 2.2.6 ๐ซถ.
When a packet containing a Reset-Request comes in, the transmitting compressor MUST be cleared to an initial state, which includes clearing the history buffer ๐งผ. If that packet's data field has data in it, it gets delivered to the local receiver as a normal data packet ๐ฌ. On top of resetting the compressor, a packet MUST be transmitted with the Reset-Ack bit set to 1 ๐ฆ. The data field of this packet MUST be filled with data. If no data is ready for transmission, the transmitter MUST wait until data is ready before sending the Reset-Ack ๐ญ.
If the history buffer is in the clear state (meaning it contains no data bytes) before the compression operation, the resulting compressed or uncompressed packet MUST be sent with the R-A bit set to "1" ๐.
3.2. Receiver Process ๐
When a data compression datagram comes in from the peer, the R-R and R-A bits MUST be checked ๐. If the R-R bit is set, the local compression engine MUST be signaled that a Reset-Request has been received for the history specified by the history number field. If the R-A bit is set, any outstanding receive failure for the specified history MUST be cleared โ . If there's no receive failure outstanding and the sequence number field is present, its value gets checked. If a receive failure has occurred, it MUST be handled according to the history resynchronization mechanism described below, and the remainder of the datagram gets discarded ๐ . If no receive failure is detected, the data gets assigned to the indicated decompression history buffer and processed according to the process mode field and the C/U bit ๐ง .
If the C/U bit is set to "1", a single octet containing the value 0x00 MUST be appended to the data field, and the resulting compressed data block MUST be decompressed according to ANSI X3.241-1994. If the LCB field is present on the received datagram, an LCB for the uncompressed data MUST be computed and checked against the received LCB according to section 2.1. If a receive failure has occurred, it MUST be handled according to the History Resynchronization Mechanism described below ๐ค.
If the C/U bit is set to "0" and the process mode field is set to Process-Uncompressed ("1"), the specified decompression history buffer MUST be updated with the received uncompressed data ๐.
If the C/U bit is set to "0" and the process mode field is set to None ("0"), the specified decompression history buffer MUST NOT be modified ๐ .
If the R-A bit is set to "1", the receiving decompressor MAY be reset to an initial state. (However, due to the characteristics of the Stac LZS algorithm, a decompressor reset is not required.) After a reset, any compressed or uncompressed data contained in the packet is processed ๐ท.
On the occurrence of a receive failure, an implementation MUST transmit a packet with the R-R bit set to "1" (a Reset-Request) and with the history number matching the history that had the failure ๐จ. The data field may be present if data is waiting to be transported for that history, or the R-R bit may be set in a packet transmitted without sequence number, data, or LCB fields. Once a receive failure has occurred, the data in any subsequent packets received for that history MUST be discarded until a packet containing a Reset-Ack is received ๐๏ธ. It is the responsibility of the receiver to ensure the reliability of the reset request-acknowledge mechanism ๐ซก. This may require the transmission of an additional Reset-Request before a Reset-Ack will be received ๐.
3.3. History Maintenance ๐
The History Count field decides how many history buffers get maintained for the compression protocol ๐งฎ. For example, each history buffer could represent a separate logical connection between the data compression peers. When maintaining a history, the peers MUST use link error detection and signaling to make sure that both the compressor and decompressor copies of each history buffer are always identical ๐ช.
Setting the History Count field to "0" means compression is on a connectionless basis ๐ซ . In this case, a single history buffer is used, and it MUST be cleared at the beginning of every datagram. The compressing entity MUST set the R-A bit on all outgoing datagrams ๐ค.
When the History Count field is set to "1", a single history buffer is maintained by each of the data compression peers. (A single logical connection.) ๐ง
When the History Count field is set to a value greater than "1", the decompressing entity maintains separate history buffers, error detection states, and signaling states for each history. The compressing peer may transmit data on any number of separate histories, up to the value of the History Count field ๐ง.
3.4. Anti-Expansion Mechanism ๐
When one or more histories are negotiated and the Process Mode field is set to None ("0"), there are 2 options for handling packets that expand ๐ค:
- Send the expanded data and keep the history. This allows loss of current bandwidth but preserves future bandwidth on the link.
- Send the uncompressed data and clear the history. This conserves current bandwidth, but allows possible loss of future bandwidth on the link.
When 1 or more histories are negotiated and the Process Mode field is set to Process-Uncompressed ("1"), there is an additional option ๐ซ:
- Send the uncompressed data and do not clear the compression history. The decompressor will update its history, thus conserving the current bandwidth and future bandwidth on the link.
3.5. History Resynchronization Mechanism ๐
The DCP-Header includes R-R (Reset-Request) and R-A (Reset-Ack) bits, so it can indicate a receiver failure in one direction of a compressed link without messing with traffic in the other direction ๐. A receive failure is determined using the sequence number and/or LCB mechanism, depending on the value of the check mode field.
Reset-Requests and Reset-Acks are specific to the history number of the packet containing them ๐ท๏ธ.
Reset-Request/Reset-Ack history synchronization signaling is there to recover from a loss of synchronization between peers, especially over unreliable transport layers. As with all compression algorithms, the decompressor cannot recover from dropped, erroneous, or mis-ordered datagrams, and it will propagate errors catastrophically until both peers are reset to an initial state ๐ฅ.
The LZS-DCP protocol provides a means to detect these error conditions: LCB for erroneous datagrams, and sequence number for dropped or mis-ordered datagrams ๐. There's also a means for correcting a loss of synchronization: clear both the failing compression and decompression histories, and follow the transmitter and receiver processes in sections 3.1. and 3.2. ๐ ๏ธ
4. Configuration Option Format ๐
The LZS-DCP Configuration Option is how you negotiate LZS-DCP on the link ๐ค. By default, or if the two sides end up in ultimate disagreement, no compression is used. This Configuration Option is used in CCP, and it can be used in other negotiation mechanisms [2].
All implementations MUST support the default values ๐.
Here's a summary of the LZS-DCP Configuration Option format. The fields are transmitted from left to right ๐:
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | History Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Check Mode | Process Mode |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type ๐
The value is 23 โจ.
Length ๐
The value is 6 โจ.
History Count ๐
The History Count field is two octets, most significant octet first, and it specifies the maximum number of Compression Histories ๐ข.
The value 0 indicates that the implementation expects the peer to clear the Compression History at the beginning of every packet. If this value is selected, the transmitter MUST set the Reset-Ack bit of every packet that contains compressed data ๐งผ.
The value 1 is the default value, and it's used to indicate that only one history is maintained ๐.
Other valid values range from 2 to 65535. The peer is not required to send as many histories as the implementation indicates that it can accept. However, it should be noted that resources are allocated in each peer to support the number of negotiated histories in this field ๐ง .
Check Mode ๐
The Check Mode indicates support of LCB and/or Sequence checking. The use of check mode None (0) MUST NOT be used for history counts greater than zero ๐ซ.
0 None
1 LCB
2 Sequence Number
3 Sequence Number + LCB (default)
Process Mode ๐
The Process Mode specifies how uncompressed packets are handled. A value of None (0) indicates that uncompressed packets are not processed by the decompressor. A value of Process-Uncompressed (1) indicates that uncompressed packets are processed by the decompressor to update the history ๐ง.
0 None (default)
1 Process-Uncompressed
Security Considerations ๐
Okay, bestie, I'm not gonna sugarcoat this one ๐ญ Security issues are not discussed in this memo.
Acknowledgments ๐ซถ
okay so this doc is literally built on, and borrows a ton of its text from, [5] ๐ shoutout to that one for doing the heavy lifting ๐ธ
References ๐
- [1] Simpson, W., Editor, "The Point-to-Point Protocol (PPP)", STD 51, RFC 1661, Daydreamer, July 1994.
- [2] Rand, D., "The PPP Compression Control Protocol (CCP)", RFC 1962, June 1996.
- [3] Lempel, A., and J. Ziv, "A Universal Algorithm for Sequential Data Compression", IEEE Transactions On Information Theory, Vol. IT-23, No. 3, May 1977.
- [4] Rand, D., "PPP Reliable Transmission", RFC 1663, Novell, July 1994.
- [5] Friend, R., and W. Simpson, "PPP Stac LZS Compression Protocol", RFC 1974, August 1996.
- [6] Motorola Information Systems Group, "Data Compression Protocol (DCP) Proposal", TR-30.1 ad hoc contribution (email reflector), September 21, 1995.
- [7] ANSI X3.241-1994, "American National Standard Data Compression Method, Adaptive Coding with Sliding Window of Information Interchange".
Chair's Address ๐ฎ
if you need the working group, the current chair is the one to ping ๐
Karl Fox
Ascend Communications
3518 Riverside Drive, Suite 101
Columbus, Ohio 43221
EMail: karl@ascend.com
Authors' Addresses ๐
if you've got questions about this memo, you can also hit up these two ๐ง
Kevin Schneider
Adtran, Inc.
901 Explorer Blvd.
Huntsville, AL 25806
Phone: (205) 971-8024
EMail: kschneider@adtran.com
Robert Friend
Stac Technology
12636 High Bluff Drive
San Diego, CA 92130-2093
Phone: (619) 794-4542
EMail: rfriend@stac.com
๐ฆ where this page comes from
- ietf: rfc1967 1996-08
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms