Guest

Cisco IOS Software Releases 12.0 T

Data Compression AIM for the Cisco 2600 Series Routers

Table Of Contents

Data Compression AIM for the Cisco 2600 Series Routers

Feature Summary

Benefits

List of Terms

Restrictions

Platform

Prerequisites

Supported MIBs and RFCs

Functional Description

Configuration Tasks

Configuring PPP Compression

Configure

Verify

Configuring Frame-relay Map Compression

Configure

Verify

Configuring Frame-relay payload-compression

Configure

Verify

Configuring Diagnostics

Configure

Verify

Configuration Example

Command Reference

clear aim

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

compress mppc

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

compress stac caim

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

frame-relay map payload-compression frf9 stac caim

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

frame-relay payload-compression frf9 stac

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

show pci aim

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

show pas caim

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Related Commands

test aim eeprom

Syntax Description

Default

Command Mode

Usage Guidelines

Example

Debug Commands

debug compress

Syntax Description

Default

Usage Guidelines

Sample Display

Related Commands

What to Do Next


Data Compression AIM for the Cisco 2600 Series Routers


The following sections are provided:

Feature Summary

Platform

Supported MIBs and RFCs

Functional Description

Configuration Tasks

Command Reference

What to Do Next

Feature Summary

This document describes how to configure, verify, and troubleshoot the data compression features of the Advanced Interface Module (AIM) on the Cisco 2600 series router. The data compression AIM provides hardware-based compression and decompression of packet data transmitted and received on the serial network interfaces of the Cisco 2600 series router without occupying the Port Module Slot which might otherwise be used for additional customer network ports. Supported are the industry standard Limpel Zif Stac (LZS) and Microsoft point-to-point compression (MPPC) compression algorithms over point-to-point protocol (PPP) or frame relay. High-level Data Link Control (HDLC) is not supported. The Data Compression AIM requires Cisco IOS Release 12.0(1)T, or later.

Benefits

The data compression AIM provides a cost effective hardware based compression which yields a higher level of performance than available from the main chassis CPU running the Cisco IOS compression feature. The data compression AIM series cards provide enhanced versatility, network peripheral integration, and performance for the Cisco 2600 series routers. The data compression AIM delivers higher levels of WAN bandwidth optimization by supporting compression ratios of up to 4:1 with 8 Mbps throughput.

List of Terms

AIM—Advanced Interface Module; a hardware module which is designed to plug directly into a header on the Cisco 2600 series router motherboard.

Compression AIM—(CAIM) A hardware module containing a data compression coprocessor device that serves as a compact Compression Port Module similar to those used in larger routers, but is more compact, and does not require a Port Module slot.

CAIM Element—A hardware component such as a HiFn 9711 Compression Coprocessor, which is designed to compress and decompress data.

Context—The history of a session where data is either compressed or decompressed. The session that provides compression is distinct from the session that provides decompression. The history of either session is stored long enough to reference the context so that data is handled correctly.

IDPROM—A PROM mounted on the CAIM daughter-board that provides identification for the system. Often referred to as EEPROM since it uses an electrically erasable PROM.

LZS—Limpel, Zif, and Stac compression algorithm. A widely used, patented compression algorithm, often referred to as STAC.

PPP—Point-to-Point Protocol for WANs. See RFC-1331 for more information.

STAC—The algorithm that includes the Limpel and Zif compression algorithms widely used for data compression.

MPPC—Microsoft Point-to-Point Compression (PPC) compression algorithm, used to exchange compressed information with a Microsoft NT remote access server.

WIC—Wide Area Network Interface Card placed in the network module slot.

Restrictions

The following restrictions apply:

Install the data compression AIM board in your Cisco 2600.

Cisco IOS 12.0(1)T must be installed.

Upgraded the programmable logic device (PLD).

Platform

This feature is supported on these platforms:

Cisco 2610

Cisco 2611

Cisco 2612

Cisco 2613

Cisco 2620

Cisco 2621

Prerequisites

You must have installed the data compression AIM board in your Cisco 2600, and upgraded the programmable logic device (PLD) before you enter any other data compression AIM related commands. See "Data Compression AIM Configuration Note" P/N 78-5531-01 for more information about the steps required for the upgrade procedure.

Supported MIBs and RFCs

The required MIB and RFC support is as follows:

Cisco Chassis MIB

Cisco Compression MIB

This feature supports the following SNMP version 1 MIBs:

RFC1213-MIB.my

RFC1231-MIB.my

BRIDGE-MIB.my

ETHERLIKE-MIB.my

IF-MIB.my

For descriptions of supported MIBs and how to use MIBs, see Cisco's MIB website on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.

The compression service adapters can be monitored with the Cisco Compression Service Adapter (CSA) MIB (CISCO-COMPRESSION-SERVICE-ADAPTER-MIB.my). For information on accessing Cisco MIB files, refer to the Cisco MIB User Quick Reference.

This feature supports the following RFCs:

RFC 1967: LZS-DCP Compression Protocol, Internet Engineering Task Force.

RFC 2118: Microsoft Point-to-Point (mppc) Protocol IETF, March 1997.

FRF.9: Data Compression Over Frame Relay Implementation Agreement, Frame Relay Forum Technical Committee, January 22, 1996.

Functional Description

The data compression AIM is a daughter-card assembly which attaches directly to the Cisco 2600 motherboard leaving the single network module slot available for other purposes. The data compression AIM supports only serial interfaces using PPP encapsulation with STAC or MPPC compression, or Frame Relay encapsulation with STAC compression. No routing, bridging, or switching performance is impacted by this feature. The data compression AIM module contains a high-performance data compression coprocessor which implements the LZS and MPPC data compression algorithms. The module provides compression support for up to 2 E1 lines. The module contains a PCI Target/Initiator system bus interface for access into Host system memory with minimal Host processor intervention.

Configuration Tasks

To configure the data compression AIM daughter-card assembly, follow the steps provided in the "data compression AIM Configuration Note" P/N: 78-5531-xx, as follows:

Configuring PPP Compression

Configuring Frame-relay Map Compression

Configuring Frame-relay payload-compression

Configuring Diagnostics

Configuring PPP Compression

Configure your Cisco 2600 access server to use PPP compression. Specify the following information for each serial interface: encapsulation type, compression algorithm, designate the CAIM daughtercard as the source of this algorithm, and the port. Begin in global configuration mode.

Configure

To configure the PPP form of compression, use the following commands, beginning in global configuration mode:

Step
Command
Purpose

1

Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Enter global configuration mode.

2

Router(config)# interface serial slot/port

Enter interface configuration mode to configure serial interface 0 on port 0. If you have installed more than one WAN Interface Card (WIC), you have interfaces 0 and 1. Each WIC has a pair of ports, 0 and 1.

3

Router(config-if)# encapsulation ppp

Enter the encapsulation type which is ppp.1

4

Router(config-if)# compress {mppc stac} caim
                   
element-number

Enter the compress command to use one of the algorithms (mppc, predictor, or stac) on the caim card for port 0.2

5

Router(config-if)# no fair-queue

Enter the no form of fair-queue to ensure correct compression.

6

Router(config-if)# no shutdown

Enter the no form of the shutdown command to bring up this interface.

7

Router(config-if)# ^Z

Enter ^Z to return you to EXEC mode.

1 You also have the option of configuring encapsulation for frame-relay, which is the next example.

2 You could also have configured compression for another serial port or another CAIM card, depending upon your configuration.


Verify

Use the show interface serial slot/port command. to check that the interface is activated. Focus on Encapsulation PPP, CCP Open (if two routers have successfully negotiated compression), output queue, and input queue.

Router# show interface serial 0/0
Serial0/0 is up, line protocol is up
  Hardware is PowerQUICC Serial
  Internet address is 1.1.1.2/24
  MTU 1500 bytes, BW 2000 Kbit, DLY 20000 usec,
     reliablility 255/255, txload 3/255, rxload 50/255
  Encapsulation PPP, loopback not set, keepalive not set
  LCP Open
  Open: IPCP, CCP
  Last input 00:00:04, output 00:00:00, output hang never
  Last clearing of "show interface" counters 1w1d
  Queueing strategy: fifo
  Output queue 0/40, 80 drops; input queue 0/75, 0 drops
  30 second input rate 397000 bits/sec, 40 packets/sec
  30 second output rate 30000 bits/sec, 40 packets/sec
     27859655 packets input, 4176659739 bytes, 0 no buffer
     Received 175145 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     55309592 packets output, 1044865717 bytes, 0 underruns
     0 output errors, 0 collisions, 12 interface resets
     0 output buffer failures, 0 output buffers swapped out
     36 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

To indicate if compression is active use the show compress command:

Focus on locating compression bytes send and compression bytes recvd:

Router# show compress
 Serial0/0
     Hardware compression enabled
     CSA in slot 0 in use
     Compressed bytes sent:  317862131 bytes   61 Kbits/sec  ratio: 12.870
     Compressed bytes recv:  221975672 bytes   43 Kbits/sec  ratio: 9.194
     restarts: 1
     last clearing of counters: 41252 seconds

Tips

The interface must report being up.

No errors should be reported.

Check this interface again after you are sure traffic is getting to the Cisco 2600 series router to note changes in Compressed bytes recv.

Configuring Frame-relay Map Compression

Configure frame-relay to map compression on this Data-Link Connection Identifier (DLCI) to use the specified AIM hardware compression on the Cisco 2600 access server. You must specify the following information for each serial interface: protocol, protocol-address, DLCI, encapsulation type, the frf.9 stac compression algorithm, designate the CAIM daughtercard as a source of this algorithm, and the CAIM element number.

Configure

To configure the frame-relay map compression command for operation, use the following commands beginning in global configuration mode:

Step
Command
Purpose

1

Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Enter global configuration mode.

2

Router(config)# interface serial slot/port

Enter interface configuration mode to configure serial interface. If you have installed more than one WAN Interface Card (WIC), you have interfaces 0 and 1. Each WIC has a pair of ports, 0 and 1.

3

Router(config-if)# encapsulation frame-relay

Enter the encapsulation type which is frame-relay.1

4

Router(config-if)# frame-relay map ip ip-address dlci-number
                  broadcast payload-compression frf9 stac
                   caim
element-number

Enter the compress stac command that will use the stac algorithm on the CAIM card for port 0.2

5

Router(config-controller)# no shutdown

Enter the no form of the shutdown command bring up this interface.

6

Router(config-if)# ^Z

Enter ^Z to return you to EXEC mode.

1 You also have the option of configuring PPP.

2 You could also have configured compression for another serial port or another CAIM card, depending upon your configuration.



Note   The compress ppp command applied to the PPP compression configuration example above has no equivalent for compression under frame-relay.


Verify

Use the show interface serial slot/port command. to check that the interface is activated with proper compression and encapsulation

Focus on the serial interface which has Encapsulation FRAME-RELAY, serial 0/1, output queue and input queue.

Router# Show interface serial 0/1
Serial0/1 is up, line protocol is up
  Hardware is PowerQUICC Serial
  Internet address is 1.1.1.2/24
  MTU 1500 bytes, BW 2000 Kbit, DLY 20000 usec,
     reliablility 255/255, txload 1/255, rxload 1/255
  Encapsulation FRAME-RELAY, loopback not set, keepalive not set
  FR SVC disabled, LAPF state down
  Broadcast queue 0/64, broadcasts sent/dropped 2743/0, interface broadcasts 2742
  Last input 03:05:57, output 00:00:03, output hang never
  Last clearing of "show interface" counters 1w1d
  Queueing strategy: fifo
  Output queue 0/40, 80 drops; input queue 0/75, 0 drops
  30 second input rate 0 bits/sec, 0 packets/sec
  30 second output rate 0 bits/sec, 0 packets/sec
     30800054 packets input, 3488155802 bytes, 0 no buffer
     Received 199567 broadcasts, 0 runts, 0 giants, 0 throttles
     2 input errors, 0 CRC, 2 frame, 0 overrun, 0 ignored, 0 abort
     58246738 packets output, 1325052697 bytes, 0 underruns
     0 output errors, 0 collisions, 15 interface resets
     0 output buffer failures, 0 output buffers swapped out
     36 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

To indicate if compression is active use the show controller serial 1/0 command:

Focus on locating Using Compression AIM 0:

Router# show controller serial1/0
CD2430 Slot 1, Port 0, Controller 0, Channel 0, Revision 14
Channel mode is synchronous serial 
idb 0x811082E8, buffer size 1524, X.21 DTE cable
Global registers
  rpilr 0x2, rir 0x0, risr 0x0, rfoc 0x0, rdr 0x30
  tpilr 0x1, tir 0x0, tisr 0x60, tftc 0x0, tdr 0x41
  mpilr 0x3, mir 0x2, misr 0x60
  bercnt 0xFF, stk 0x0
Per-channel registers for channel 0
  Option registers
  0x02 0x00 0x42 0xE7 0xE0 0x00 0x00
  Command and status registers
  cmr 0xC0, ccr 0x00, csr 0xAC, msvr-rts 0xF1, msvr-dtr 0xF1
  Clock option registers
  rcor 0x06, rbpr 0x01, tcor 0xC8, tbpr 0x01
  Interrupt registers
  ier 0x89, livr 0x00, licr 0x00
  DMA buffer status 0x27
  DMA receive registers
  arbaddr 0x2549D44, arbcnt 1548, arbsts 0x1
  brbaddr 0x2548344, brbcnt 1548, brbsts 0x1
  rcbaddr 0x2549D94
  DMA transmit registers
  atbaddr 0x257F93E, atbcnt 104, atbsts 0x43
  btbaddr 0x25B25C2, btbcnt 1490, btbsts 0x43
  tcbaddr 0x25B25D2
  Special character registers
  schr1 0x00, schr2 0x00, schr3 0x00, schr4 0x00
  scrl 0x0, scrh 0x0, lnxt 0xF1
Driver context information
  Context structure 0x8110D830, Register table 0x40800400
  Serial Interface Control 5:1 Register (0x40800802) is 0x0
  Adaptor Flags 0x0
  Serial Modem Control Register (0x40800804) is 0x18
  Receive static buffer 0x810E1274
  Receive particle buffers 0x8110DE00, 0x8110DDC0
  Transmit DMA buffers 0x8113E240, 0x810F2808, 0x810D4C00, 0x810EA0DC
  Transmit packet with particles 0x0, first word is 0x0
  Interrupt rates (per second) transmit 25, receive 139, modem 0
  True fast-switched packets    41
  Semi fast-switched packets    13449573
  Transmitter hang count        0
  Residual indication count     0
  Bus error count       0
  Aborted short frames count    0
  CRC short frames count        0
Error counters
  CTS deassertion failures      0
  Nested interrupt errors transmit 0, receive 0, modem 0
Using Compression AIM 0
CompressionAim0
    ds:0x8113FC04 idb:0x8113A6CC
       5005867 uncomp paks in -->      5005867 comp paks out
      38397501 comp paks in   -->     38397502 uncomp paks out
    2882277146 uncomp bytes in-->    497476655 comp bytes out
    3500965085 comp bytes in  -->   1211331227 uncomp bytes out
            72 uncomp paks/sec in-->        72 comp paks/sec out
           557 comp paks/sec in  -->       557 uncomp paks/sec out
        334959 uncomp bits/sec in-->     57812 comp bits/sec out
        406855 comp bits/sec in  -->    140827 uncomp bits/sec out
    68841 seconds since last clear
    holdq:0  hw_enable:1  src_limited:0  num cnxts:8
    no data:0  drops:0  nobuffers:0  enc adj errs:0  fallbacks:
5322165
    no Replace:0  num seq errs:0  num desc errs:0  cmds complete:
43403738
    Bad reqs:0  Dead cnxts:0  No Paks:0  enq errs:0
    rx pkt drops:0  tx pkt drops:0  dequeues:0  requeues:0
    drops disabled:0  clears:0  ints:41973007  purges:203200
    no cnxts:0  bad algos:0  no crams:0  bad paks:0
    # opens:0  # closes:4  # hangs:0
    # 9711 fatal:0  # poison pkts:0  cmd/res ovruns:0
    # dma fatal:0
    Jupiter DMA Controller Registers:(0x40200000
        Cmd Ring:0x025BAE60  Src Ring:0x025BBB60
        Res Ring:0x025BB4E8  Dst Ring:0x025BBDA8
        Status/Cntl:present:0x8080989C  last int:0x9898989C
        Inten:0x30302021  config:0x00080003
        Num DMA ints:41973355
    Hifn9711 Data Compression Coprocessor Registers (0x40201000):
        Config:0x000051D4  Inten:0x00000E00
        Status:0x00004000  FIFO status:0x00004000
        FIFO config:0x00000101

Tips

The interface must report being up.

No errors should be reported.

Check this interface again after you are sure traffic is getting to the Cisco 2600 series router to note changes in Compressed bytes recv.

Configuring Frame-relay payload-compression

Configure frame-relay frf.9 stac payload-compression on a specified port for the Cisco  2600 access server. You must specify the following information for each serial interface: payload-compression, encapsulation type, compression algorithm, designate the CAIM daughtercard as a source of this algorithm, and the specific port.

Configure

To configure the frame-relay to map for compression, use the following commands beginning in global configuration mode:

Step
Command
Purpose

1

Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Enter global configuration mode.

2

Router(config)# interface serial slot/port

Enter the interface configuration mode to configure serial interface 0 on port 0.

3

Router(config-if)# encapsulation frame-relay

Enter the encapsulation type which is ppp.1

4

Router(config-if)# frame-relay payload-compression frf9 stac caim
                   
element-number

Enter the compress stac command that will use the stac algorithm on the CAIM card for port 0.2

5

Router(config-controller)# no shutdown

Enter the no form of the shutdown command bring up this interface.

6

Router(config-if)# ^Z

Enter ^Z to return you to EXEC mode.

1 You also have the option of configuring

2 You could also have configured compression for another serial port or another CAIM card, depending upon your configuration.


Verify

Use the show interface serial slot/port command. to check that the interface is activated with proper compression and encapsulation

Focus on the serial interface which has Encapsulation frame-relay, serial 0/0, output queue and input queue.

Router# Show interface serial 0/0
Serial0/0 is up, line protocol is up
  Hardware is PowerQUICC Serial
  Internet address is 1.1.1.2/24
  MTU 1500 bytes, BW 2000 Kbit, DLY 20000 usec,
     reliablility 255/255, txload 1/255, rxload 1/255
  Encapsulation FRAME-RELAY, loopback not set, keepalive not set
  FR SVC disabled, LAPF state down
  Broadcast queue 0/64, broadcasts sent/dropped 2743/0, interface broadcasts 2742
  Last input 03:05:57, output 00:00:03, output hang never
  Last clearing of "show interface" counters 1w1d
  Queueing strategy: fifo
  Output queue 0/40, 80 drops; input queue 0/75, 0 drops
  30 second input rate 0 bits/sec, 0 packets/sec
  30 second output rate 0 bits/sec, 0 packets/sec
     30800054 packets input, 3488155802 bytes, 0 no buffer
     Received 199567 broadcasts, 0 runts, 0 giants, 0 throttles
     2 input errors, 0 CRC, 2 frame, 0 overrun, 0 ignored, 0 abort
     58246738 packets output, 1325052697 bytes, 0 underruns
     0 output errors, 0 collisions, 15 interface resets
     0 output buffer failures, 0 output buffers swapped out
     36 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

Warning   Frame-relay is not displayed using show compress. Use the debug compress command.


Tips

The interface must report being up.

No errors should be reported.

Configuring Diagnostics

Configure the AIM daughtercard to provide compression for the Cisco 2600 series router. You must specify the following information for each daughtercard installed.

Configure

To configure the ppp for compression, use the following commands beginning in global configuration mode:

Step
Command
Purpose

1

Router> enable

Enter global configuration mode.

1

Router# show pas caim stats element-number

Enter the global configuration command that displays compression statistics for your CAIM.

2

Router# show compress

Enter the global configuration mode command that displays the current configuration for compression on your Cisco 2600.

3

Router# clear compress

Enter the global configuration command that clears all the counters and resets the CAIM hardware.

4

Router# show pas caim stats element-number

Enter the global configuration command that displays compression statistics for your CAIM.

5

Router(config-if)# ^Z

Enter ^Z to return you to EXEC mode.


Verify

Use the show pas caim element-number command. to check that the data compression Advanced Interface Module (AIM) is collecting statistics that represent proper compression:

Router# Show pas caim stats 0 
CompressionAim0
      ds:0x80F56A44 idb:0x80F50DB8
          422074 uncomp paks in -->       422076 comp paks out
          422071 comp paks in   -->       422075 uncomp paks out
       633912308 uncomp bytes in-->     22791798 comp bytes out
        27433911 comp bytes in  -->    633911762 uncomp bytes out
             974 uncomp paks/sec in-->       974 comp paks/sec out
             974 comp paks/sec in  -->       974 uncomp paks/sec out
        11739116 uncomp bits/sec in-->    422070 comp bits/sec out
          508035 comp bits/sec in  -->  11739106 uncomp bits/sec out
      433 seconds since last clear
      holdq: 0  hw_enable: 1  src_limited: 0  num cnxts: 4
      no data: 0  drops: 0  nobuffers: 0  enc adj errs: 0  fallbacks: 0
      no Replace: 0  num seq errs: 0  num desc errs: 0  cmds complete: 844151
      Bad reqs: 0  Dead cnxts: 0  No Paks: 0  enq errs: 0
      rx pkt drops: 0  tx pkt drops: 0  dequeues: 0  requeues: 0
      drops disabled: 0  clears: 0  ints: 844314  purges: 0
      no cnxts: 0  bad algos: 0  no crams: 0  bad paks: 0
      # opens: 0  # closes: 0 # hangs: 0

Use the show compress command to identify compression characteristics for each port:

Router# show compress
 Serial0/0
     Hardware compression enabled
     CSA in slot 0 in use
     Compressed bytes sent:  317862131 bytes   61 Kbits/sec  ratio: 12.870
     Compressed bytes recv:  221975672 bytes   43 Kbits/sec  ratio: 9.194
     restarts: 1
     last clearing of counters: 41252 seconds
 Serial0/1
     Hardware compression enabled
     CSA in slot 0 in use
     Compressed bytes sent:    249720 bytes   0 Kbits/sec  ratio: 5.923
     Compressed bytes recv:  465843659 bytes   43 Kbits/sec  ratio: 9.128
     restarts: 1
     last clearing of counters: 85525 seconds

Use the clear compress command to reset the CAIM hardware to 0. (There is no output for this command, instead check show compress to see what took place):

Serial0/0
     Hardware compression enabled
     CSA in slot 0 in use
     Compressed bytes sent:  0 bytes   61 Kbits/sec  ratio: 0
     Compressed bytes recv:  0 bytes   43 Kbits/sec  ratio: 0
     restarts: 0
     last clearing of counters: 0 seconds

Tips

The interface must report being up.

No errors should be reported.

Configuration Example

Configuring your Cisco 2600 series router for compression over serial interfaces involves specifying many steps, regardless of your choice of compression algorithm, whether the compression you specify is software or hardware based, or whether you are configuring for just one port or to interface with a network protocol address associated with a Data-Link Connection Identifier (DLCI). The choices of functionality allow you to configure for frame-relay over a wide area network using a wide area network interface card (WIC) in your Cisco 2600 series router or for point-to-point protocol (even the Microsoft PPC compression algorithm for Microsoft NT networks) including the Stacker (LZS) compression algorithm that can be used on LAPB, HDLC, and PPP encapsulations. An entire configuration for ppp includes the following steps:

Step
Command
Purpose

1

Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Enter global configuration mode.

2

Router(config)# interface serial slot/port

Enter interface configuration mode to configure serial interface 0 on port 0.

3

Router(config-if)# ip address ip-address

Enter the IP address of this interface if one is desired.

4

Router(config-if)# encapsulation ppp

Enter the encapsulation type which is ppp.

5

Router(config-if)# compress mppc caim element-number

Enter the compress command to use the mppc algorithm on the caim card for port 0.

6

Router(config-if)# no fair-queue

Enter the no form of fair-queue to ensure correct compression.

7

Router(config-if)# no shutdown

Enter the no form of the shutdown command bring up this interface.

8

Router(config-if)# ^Z

Enter ^Z to return you to EXEC mode.


Use the show run command to display information about the configuration on your Cisco 2600. Your information should be displayed as follows:

Router# show run

----cut----
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
!
----cut----
!
interface Serial0/1
 ip address 1.1.1.1 255.255.255.0
 no ip directed-broadcast
 encapsulation ppp
 no ip mroute-cache
 load-interval 30
 no keepalive
 no fair-queue
 clockrate 2000000
 compress stac
 no cdp enable
!
----cut----

Use a show compress command to display information about compression

Router# show compress
 Serial0/0
     Hardware compression enabled
     CSA in slot 0 in use
     Compressed bytes sent:  317862131 bytes   61 Kbits/sec  ratio: 12.870
     Compressed bytes recv:  221975672 bytes   43 Kbits/sec  ratio: 9.194
     restarts: 1
     last clearing of counters: 41252 seconds
----cut----

Use the show pas caim stats command to display statistics of traffic as it is handled by the CAIM hardware algorithm:

Router# show pas caim stats 0
CompressionAim0
    ds:0x81110644 idb:0x8110B190
      34734673 uncomp paks in -->     34734673 comp paks out
      34733339 comp paks in   -->     34733339 uncomp paks out
    4075117517 uncomp bytes in-->   3117657645 comp bytes out
     168220657 comp bytes in  -->   4073901654 uncomp bytes out
            80 uncomp paks/sec in-->        80 comp paks/sec out
            80 comp paks/sec in  -->        80 uncomp paks/sec out
         75509 uncomp bits/sec in-->     57768 comp bits/sec out
          3117 comp bits/sec in  -->     75487 uncomp bits/sec out
    431744 seconds since last clear
    holdq: 0  hw_enable: 1  src_limited: 0  num cnxts: 4
    no data: 0  drops: 0  nobuffers: 0  enc adj errs: 0  fallbacks: 0
    no Replace: 0  num seq errs: 0  num desc errs: 0  cmds complete: 69468106
    Bad reqs: 0  Dead cnxts: 0  No Paks: 0  enq errs: 0
    rx pkt drops: 0  tx pkt drops: 0  dequeues: 0  requeues: 0
    drops disabled: 0  clears: 0  ints: 70566468  purges: 4
    no cnxts: 0  bad algos: 0  no crams: 0  bad paks: 0
    # opens: 4  # closes: 4  # hangs: 0
    # 9711 fatal: 0  # poison pkts: 0  cmd/res ovruns: 0
    # dma fatal: 0
----cut----

Command Reference

This section defines new and modified Cisco IOS commands that support the data compression AIM daughter-board when it is installed in the Cisco 2600 series router. These commands configure and debug CAIM operation. Some commands support PPP STAC configuration, while others support frame-relay on a per port basis. A few additional commands (where noted) already exist in the Cisco IOS command reference, but are modified to display CAIM related information, or to include configuration characteristics unique to the CAIM. Such commands have similar syntax to commands already described in the Cisco IOS command reference, and are only referenced as useful for CAIM operation. All other commands used with the CAIM feature are documented by the Cisco IOS Release 12.0 command references.

clear aim

compress mppc

compress stac caim

frame-relay map payload-compression frf9 stac caim

frame-relay payload-compression frf9 stac caim

show pas caim

show pas caim stats

show pci aim

test aim eeprom

clear aim

To clear data compression AIM daughter-board registers and reset the hardware, enter the clear aim interface configuration command.

clear aim element-number

Syntax Description

element-number

Enables compression for this AIM slot. AIM slots begin with 0.


Default

Disabled

Command Mode

Interface configuration mode

Usage Guidelines

This command first appeared in Cisco I OS Release 12.0(1)T.

The clear aim command is used to reset the data compression AIM hardware. This command is used if the CAIM hardware becomes "stuck" or hangs for some reason. The CAIM registers are cleared, and the hardware is reset upon execution. All compression history is lost when the CAM is reset.

Example

The following example shows how to use the interface configuration mode clear aim command. This command will reset the hardware, flushing the buffers and history for all compression tasks currently under operation:

Router# clear aim 0
Router#
1w0d: %CAIM-6-SHUTDOWN: CompressionAim0 shutting down
1w0d: %CAIM-6-STARTUP: CompressionAim0 starting up

Related Commands

debug compress
show controller
show pci aim
test aim eeprom

compress mppc

To configure compression using the mppc compression algorithm on your data compression Advanced Interface Module (AIM) for the Cisco 2600 series router, enter the compress mppc interface configuration mode command. The Microsoft PPC compression algorithm (mppc) is used to exchange compressed information with a Microsoft NT remote access server.

compress mppc
no compress

Syntax Description

mppc

The Microsoft PPC compression algorithm (mppc) is used to exchange compressed information with a Microsoft NT remote access server.


Default

Disabled.

Command Mode

Interface configuration mode.

Usage Guidelines

This command first appeared in Cisco IOS Release 12.0(1)T.

When configuring point-to-point protocol (PPP) on a serial interface, you can use hardware compression on the data compression AIM daughtercard for mppc is one is installed, otherwise you can use software compression.

Example

The following example shows how to configure the data compression AIM daughtercard for mppc:

Router(config-if)# encapsulate ppp
Router(config-if)# compress mppc

Related Commands

compress stac caim
clear aim
debug compress
encapsulation ppp
show pas caim stats
show compress
show processes

compress stac caim

To specify the exact hardware compression resource preferred, enter the compress stac caim interface configuration mode command.

compress stac caim element-number
no compress stac element-number

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 Advanced Interface Module installed in the router.

element-number

Enables compression for this interface. AIM interfaces begin with 0.


Default

Disabled

Command Mode

Interface configuration mode

Usage Guidelines

This command first appeared in Cisco IOS Release 12.0(1)T.

Specifying the compress stac command with no options causes the router to use the fastest available compression method:

If the router contains a data compression Advanced Interface Module (CAIM), compression is performed in the CAIM hardware (hardware compression).

If the CAIM is not available, compression is performed in the is performed in the router's main processor (software compression).

Using hardware compression in the AIM frees the router's main processor for other tasks. You can also configure the router to use the Compression Port Module to perform compression by using the distributed option, or to use the router's main processor by using the software option. If the Compression Port Module is compression is performed in the router's main processor.

When compression is performed in software installed in the router's main memory, it might significantly affect system performance. It is recommended that you disable compression in the router's main processor if the router CPU load exceeds 40 percent. To display the CPU load, use the show process cpu EXEC command.

Specifying the compress stac command with no options causes the router to use the fastest available compression method.

Example

The following example specifies that hardware compression should be activated for CAIM element 0:

Router(config-if)# encapsulation ppp  
Router(config-if)# compress stac caim 0
Router(config)# ^Z 
Router# show compress

	interface serial 3/1
 encapsulate ppp
 compress stac
----cut----

Related Commands

encapsulation ppp
compress stac came
clear aim
debug compress
show pas caim stats
show compress
show processes

frame-relay map payload-compression frf9 stac caim

To enable frame-relay compression on a DLC basis, enter the frame-relay interface configuration command. Enter the no form of this command to deactivate frame-relay compression.

frame-relay map {protocol protocol-address dlci} payload-compression frf9 stac caim element-number
no frame-relay map

Syntax Description

map

Define mapping between a destination protocol address and the DLCI used to connect to the destination address.

protocol

Supported protocol, bridging, or logical link control keywords: appletalk, decnet, dlsw, ip, ipx, llc2, rsrb, vines and xns.

protocol-address

Destination protocol address.

dlci

DLCI number used to connect to the specified protocol address on the interface.

payload-compression

Packet-by-packet payload compression, using the Stacker method.

frf9

data compression over Frame-relay.

stac

Specifies that a Stacker (LZS) compression algorithm will be used on LAPB, HDLC, and PPP encapsulation. Compression is implemented in the hardware Advanced Interface Module installed in the router.

caim

Enable the data compression AIM hardware compression daughtercard to do compression.

element-number

(Optional) The compression element number, beginning with 0 and including all possible elements.


Default

Disabled

Command Mode

Interface configuration mode

Usage Guidelines

This command first appeared in Cisco IOS Release 12.0(2)T.

Many DLCIs known by an access server can be used to send data to many different places, but they are all multiplexed over one physical link. The Frame Relay map tells the Cisco IOS software how to get from a specific protocol and address pair to the correct DLCI.


Note   Although you did not specified the IETF keyword during configuration, the map inherits the attributes set with the encapsulation frame-relay command so that all interfaces use IETF encapsulation.


Use the frame-relay map command to enable or disable payload compression on multipoint interfaces. Use the frame-relay payload-compress packet-by-packet command to enable or disable payload compression on point-to-point interfaces.

The broadcast keyword provides two functions: It forwards broadcasts when multicasting is not enabled, and it simplifies the configuration of OSPF for nonbroadcast networks that will use Frame Relay.

The broadcast keyword might also be required for some routing protocols--for example, AppleTalk--that depend on regular routing table updates, especially when the router at the remote site is waiting for a routing update packet to arrive before adding the route. Network broadcasts are necessary if you intend to use routing protocols such as RIP or OSPF running across the frame relay link.

The payload-compression FRF9 stac caim 0 enables compression on the frame relay link, but requires the caim 0 portion of the command.


Warning   Frame-relay output is not displayed using show compress. Use the show controller serial 0/0 command.


Example

The following example shows configuration of frame-relay map payload-compression using the data compression AIM daughtercard for compression mapping the destination address 1.1.1.2 to DLCI 16:

Router(config-if)# frame-relay map ip 1.1.1.2 16 broadcast payload-compression  
                   frf9 stac caim 0

Related Commands

debug compress
encapsulation frame-relay
compress frame-relay
frame-relay payload-compress packet-by-packet
frame-relay interface-dlci

frame-relay payload-compression frf9 stac

To configure frame-relay payload-compression for each frame-relay port, enter the frame-relay payload-compression interface configuration command. Enter the no form of this command to terminate this form of payload-compression over frame relay.

frame-relay payload-compression frf9 stac caim element-number
no frame-relay payload-compression

Syntax Description

payload-compression

Packet-by-packet payload compression, using the Stacker method.

frf9 stac

Enables FRF.9 compression using the Stacker method.

If the router contains a data compression Advanced Interface Module (AIM) for the Cisco 2600 series router, compression is performed in the hardware (hardware compression).

If the CAIM is not available, compression is performed in the software installed on the router's main processor (software compression).

software

Perform compression from software running in Cisco IOS.

caim element-number

(Optional) Enable the data compression AIM hardware compression daughtercard to do compression, at the element numbered beginning with 0 and incrementing to include all possible elements.


Default

Disabled

Command Mode

Interface configuration mode

Usage Guidelines

The frame-relay payload-compress command first appeared in Cisco IOS Release 11.0. The packet-by-packet keyword first appeared in Cisco IOS Release 11.2. The frf9 stac keyword first appeared in Cisco IOS Release 11.3. The frame-relay payload-compression frf9 stac caim command first appeared in Cisco IOS Release 12.0(2)T.

Use the frame-relay payload-compress command to enable or disable payload compression on a point-to-point interface or subinterface. Use the frame-relay map command to enable or disable payload compression on a multipoint interface or subinterface.


Note   Shut down the interface prior to changing encapsulation types. Although this is not required, shutting down the interface ensures the interface is reset for the new encapsulation.


Example

The following example shows configuration of frame-relay payload-compression using the data compression AIM daughtercard for compression:

Router(config-if)# frame-relay payload-compression frf9 stac caim 0

Using this command, frame relay has been configured to use payload-compression with the frf9 stac algorithm for CAIM hardware compression using the installed data compression Advanced Interface Module (AIM) as the source.

Related Commands

debug compress
encapsulation frame-relay
compress frame-relay
show compress
frame-relay interface-dlci

show pci aim

To show the IDPROM contents for each AIM board in the Cisco 2600, enter the show pic aim global configuration command.

show pci aim

Syntax Description

There are no optional or required keywords or variables for this command.

Default

Disabled

Command Mode

Global configuration mode

Usage Guidelines

This command first appeared in Cisco IOS Release 12.0(1)T.

This command shows the IDPROM contents for each AIM board present in the system, by AIM slot number (currently 0, since that is the only daughter board installed for version 12.0(1)T). The IDPROM is a small PROM built into the AIM board used to identify it to the system. It is sometimes referred to as an EEPROM because it is implemented using electrically erasable PROM.

Example

The following example shows the IDPROM output for the installed AIM daughtercard:

Router# show pic aim 0
AIM Slot 0: ID 0x012D
        Hardware Revision        : 1.0
        EEPROM format version 4
        EEPROM contents (hex):
          0x00: 04 FF 40 01 2D 41 01 00 FF FF FF FF FF FF FF FF
          0x10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
          0x20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
          0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
          0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
          0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
          0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF