cc/td/doc/product/software
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Compression Network Module for Cisco 3600 Series Routers

Description

Platforms

Configuration Task

Configuration Example

Command Reference

What to Do Next

Compression Network Module for Cisco 3600 Series Routers

Description

Cisco 3600 series routers now support a compression port module that provides high-performance, hardware-based data compression using simultaneous Stacker compression algorithms. Independent full-duplex compression and decompression capabilities are used on point-to-point (PPP) encapsulated packets.

A router's central processing unit is generally reserved for tasks such as creating and maintaining routing tables, not performing compression duties. When a hardware compression port module is used in a router, all compression activity is offloaded from the router's central processing unit. This kind of hardware configuration is needed for routers that require B-channel compression for multiple WAN connections, such as two ISDN PRI interfaces carrying 46 B channels. Signaling over the D channel is not compressed. One compression port module supports up to 128 WAN interfaces.

Benefits of Compression

WAN or serial connections have limited bandwidth and greatly benefit from compressed data. For example, a hardware compression card that achieves 2:1 compression can compress 500 bytes of data down to 250 bytes. Transmission time is reduced by 50 percent. A line that transmits at 56 kbps without compress transmits at 112 kbps with compression. An achieved compression ratio or rate is dependent on the type of file being compressed. Graphics files, sound files, and text files all have different compression requirements and results.

A hardware card can compress and decompress outgoing and incoming data. For negotiated compression configured between two routers, the incoming compressed data sent by the remote router is decompressed by the receiving or local compression card.

Platforms

This feature is supported on these platforms:

Configuration Task

You can configure point-to-point compression on interfaces that use PPP encapsulation. Compression reduces the size of a PPP frame via lossless data compression. PPP encapsulations support Stacker and Predictor compression algorithms, but the compression port module installed in Cisco 3600 series routers support only Stacker compression over PPP encapsulations.

If the majority of your traffic is already compressed files, do not use compression. A hardware compression card should be used if the router's main processor CPU load exceeds 40 percent. To display the CPU load, use the show process cpu EXEC command.

To configure compression over PPP, perform the following tasks in interface configuration mode:

Task Command
Step 1 Specify a serial interface. interface serial number
Step 2 Enable encapsulation of a single protocol on the serial line. encapsulation ppp
Step 3 Enable compression on a specified WAN interface. compress stac

Configuration Example

The following example enables hardware compression and PPP encapsulation on serial interface 3/1. Although the Serial interface in slot 3/1 is configured with the compress stac command, the actual data compression takes place in the hardware compression card inserted in a different slot.

router(config)# interface serial 3/1
router(config-if)# encapsulate ppp
router(config-if)# compress stac
router(config-if)# exit
router(config)#

Command Reference

This section documents new or modified commands. All other commands used with this feature are documented in the Cisco IOS Release 11.2 command references.

compress

To configure compression for Point-to-Point Protocol (PPP) encapsulation, use the compress interface configuration command.To disable compression, use the no form of this command.

compress stac
no compress
stac
Syntax Description
stac Specifies that a Stacker (LZS) compression algorithm will be used on LAPB, HDLC, and PPP encapsulation. Compression is implemented in the hardware compression port module installed in the router.
Default

Compression is disabled.

Command Mode

Interface configuration

Usage Guidelines

This command first appeared in Cisco IOS Release 10.0 (as compress predictor). The command compress stac first appeared in Cisco IOS Release 10.3.

The compress stac command determines the fastest compression method available on the router.

PPP encapsulations support Stacker and Predictor compression algorithms, but the compression port module installed in Cisco 3600 series routers support only Stacker compression over PPP encapsulations.

You can configure point-to-point software compression for PPP encapsulations. Compression reduces the size of frames via lossless data compression. PPP encapsulation supports Stacker compression algorithms.

If the majority of your traffic is already compressed files, we recommend that you not use compression. If the files are already compressed, the additional processing time spent in attempting unsuccessfully to compress them again will slow system performance.

Examples

The following example enables hardware compression and PPP encapsulation on serial interface 3/1:

interface serial 3/1
 encapsulate ppp
 compress stac
Related Commands

encapsulation lapb
encapsulation ppp

encapsulation x25
ppp compress
show compress
show processes

show compress

To display compression statistics, use the show compress EXEC command.

show compress
Syntax Description

This command has no arguments or keywords.

Command Mode

EXEC

Usage Guidelines

This command first appeared in Cisco IOS Release 10.0.

Sample Displays

The following is sample output from the show compress command when software compression is used on the router:

Router# show compress
Serial0
uncompressed bytes xmt/rcv 10710562/11376835
1  min avg ratio xmt/rcv 2.773/2.474
5  min avg ratio xmt/rcv 4.084/3.793
10 min avg ratio xmt/rcv 4.125/3.873
no bufs xmt 0 no bufs rcv 0
resets 0

Table 35 describes the fields shown in the display.


Table 35: Show Compress Field Descriptions--Software Compression
Field Description
Serial0 Name and number of the interface.
uncompressed bytes xmt/rcv Total number of uncompressed bytes sent and received.
1 min avg ratio xmt/rcv

5 min avg ratio xmt/rcv

10 min avg ratio xmt/rcv

Static compression ratio for bytes sent and received, averaged over 1, 5, and 10 minutes.
no bufs xmt Number of times buffers were not available to compress data being sent.
no bufs rcv Number of times buffers were not available to uncompress data being received.
resets Number of resets (for example, line errors could cause resets).

The following is sample output from the show compress command when hardware compression is enabled (that is, compression is implemented in the CSA hardware):

Router# show compress
Serial3/1
     Hardware compression enabled
     Compressed bytes sent:     402 bytes     0 Kbits/sec    ratio: 4.092
     Compressed bytes recv:     390 bytes     0 Kbits/sec    ratio: 3.476
     restarts:1
     last clearing of counters: 1278 seconds

Table 36 describes the fields shown in the display.


Table 36: Show Compress Field Descriptions--Hardware or Distributed Compression
Field Description
Serial3/1 Name and number of the interface.
Compressed bytes sent Total number of compressed bytes sent including the kilobits per second.
Compressed bytes recv Total number of compressed bytes received including the kilobits per second.
ratio Compression ratio for bytes sent and received since the link last came up or since the counters were last cleared.
restarts Number of times the compression process restarted or reset.
last clearing of counters Duration since the last time the counters were cleared with the clear counters command.
Related Command

compress

What to Do Next

For more information on the hardware compression card, refer to the publication Compression Network Module Configuration Note.

hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.