Skip to Main Content
Cisco IOS in a Nutshell, 2nd Edition
book

Cisco IOS in a Nutshell, 2nd Edition

by James Boney
August 2005
Intermediate to advanced content levelIntermediate to advanced
798 pages
31h 12m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS in a Nutshell, 2nd Edition

Name

compress — interface

Synopsis

compress {predictor | stac}
no compress {predictor | stac}

Configures

Type of compression used across an interface

Default

None

Description

This command enables compression for the selected interface. Compression can be enabled only for PPP or HDLC encapsulation. Two types of compression are supported:

predictor

Can be used on PPP connections; consumes more of the router’s CPU and memory, but less bandwidth.

stac

Can be used on HDLC or PPP connections; consumes more bandwidth, but requires less CPU power.

Compression should not be activated on lines where link speeds are very high or most of the data is already compressed. If the data is already compressed, the router spends valuable CPU cycles for no reason.

When using compression, monitor the router’s CPU usage. If the CPU usage is consistently high (65%), compression might be hindering the router.

The same type of compression must be enabled on both ends of the link.

Example

The following commands enable stac compression for the serial1 interface, which uses HDLC encapsulation.

interface serial1
  encapsulation hdlc
  compress stac
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CISCO IOS in a Nutshell

CISCO IOS in a Nutshell

James Boney
Cisco IOS Cookbook, 2nd Edition

Cisco IOS Cookbook, 2nd Edition

Kevin Dooley, Ian Brown
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596008694Errata