218
Configuring HDLC compression
The STAC-LZ compression compresses the payload of packets on an HDLC link. Because it does
not rely on history packet information, it can achieve a smaller compression ratio. The STAC-LZ
compression increases data transmission efficiency on low-speed links, saves network bandwidth,
and reduces network load.
To configure HDLC compression:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable HDLC encapsulation
on the interface.
link-protocol
hdlc
PPP by default.
4. Enable HDLC compression.
hdlc compression stac
By default, HDLC links do not
support compression.
Displaying and maintaining HDLC
Task Command Remarks
Display the HDLC compression
statistics.
display hdlc compression
stac
[
interface
interface-type
interface-number ] [
|
{
begin
|
exclude
|
include
}
regular-expression ]
Available in any view.
Clear the HDLC compression
statistics.
reset hdlc compression stac
[
interface
interface-type
interface-number ]
Available in user view.
Use the display interface command to display the configuration result.
Use the reset counters interface command to clear the traffic statistics of an HDLC interface and
restart traffic statistics collecting on the HDLC interface.
HDLC configuration examples
Basic HDLC configuration example
Network requirements
As shown in Figure 73, Router A and Router B are connected by POS interfaces.
Run HDLC on the link between them.
Figure 73 Network diagram
Router A Router B
POS5/0
12.1.1.2/24
POS5/0
12.1.1.1/24