background image
526 Chapter 8: WAN Protocols and Design
Compression
Compression can be performed on LAPB, HDLC, and PPP point-to-point serial links. The goal
of compression is to reduce the number of bytes sent across the link. However, there is a price
to pay for compression--CPU cycles and possibly increased latency for the packets. The
following list summarizes the trade-offs when considering whether to use compression:
·
More processing is required on the router to compress each frame, as compared with no
compression.
·
Latency per frame will increase because of the processing required.
·
Latency per frame will decrease in cases when the uncompressed packets have waited in
the output queue due to link congestion. With the compressed frames, however, the queue
is shorter.
·
Link utilization will decrease.
So, in cases in which the leased lines are expensive or a faster line cannot be justified, then
compression can be desirable. However, care must be taken to avoid excessive CPU utilization.
Cisco recommends avoiding sustained CPU utilization exceeding between 40 and 65 percent,
depending on the platform.
Compression can be performed in software or in hardware. Any IOS router can perform LAPB,
HDLC, and PPP link compression in software; when software compression is used, CPU
utilization is impacted. For hardware compression, either a VIP2 card or a Compression Service
Adapter (CSA) on a 72xx or 75xx series router is required. When hardware compression is
performed, the CPU is not affected.
Several compression algorithms are available in the IOS to perform PPP compression: the
STAC, Predictor, and Microsoft Point-to-Point Compression algorithm (MPPC). The details of
the algorithms are beyond the scope of the CCNA exam. However, the MPPC algorithm and
protocols can be used between a router and a PC on a dial connection when compression is
desired.
HDLC supports compression only with the STAC algorithm. LAPB supports STAC and
Predictor algorithms. Only PPP supports the MPPC algorithm. Table 8-7 summarizes the
support for each type.
Table 8-7
Compression Types for Serial Encapsulations
Encapsulation Type
Type of Compression Supported in IOS
PPP
STAC, Predictor, MPPC
LAPB
STAC, Predictor
HDLC
STAC
ch08.fm Page 526 Monday, March 20, 2000 5:17 PM