Command:

ip tcp header-compression


Mode:

Router(config-if)#

Syntax:

ip tcp header-compression [on | off | passive]

no ip tcp header-compression


Syntax Description:

on

(Optional) Turns header compression on.

off

(Optional) Turns header compression off.

passive

(Optional) On SLIP lines, prevents transmission of compressed packets until a compressed packet arrives from the asynchronous link, unless a user specifies SLIP on the command line. For PPP, this option functions the same as the on option.


Command Description:

To configure TCP header compression on the asynchronous link, use the ip tcp header-compression interface configuration command. To disable header compression, use the no form of this command.

Header compression data areas are initialized to handle up to 16 simultaneous TCP connections. Currently, you cannot change this number. You can only turn header compression on or off or use the passive keyword.

On lines configured for PPP encapsulation, the keywords passive and on cause the same behavior. Before attempting header compression, PPP automatically negotiates whether compression is available at each end of the connection.

There are two ways to implement header compression when the line is configured for ip tcp header-compression passive:

If a line is configured for passive header compression and you use the slip or ppp EXEC command to enter asynchronous mode, you will see the interface is set to match the compression status used by the host at the other end of the asynchronous line.

Router>slip 10.0.0.1
Password:
Entering SLIP mode.
Interface IP address is 10.0.0.1, MTU is 1500 bytes
Header compression will match your system.
 

The message "Header compression will match your system" indicates the interface is set to match the compression status used by the host at the other end of the asynchronous line. If the line was configured to have header compression on, this line would read "Header compression is On."


Example:

The following example enables Van Jacobson TCP header compression. The passive keyword prevents transmission of compressed packets until a compressed packet arrives from the IP link. Notice that asynchronous routing and dynamic addressing are also enabled.

Router(config)#interface async 6
Router(config-if)#async dynamic routing
Router(config-if)#async dynamic address
Router(config-if)#ip tcp header-compression passive

Misconceptions:
None

Related Commands:
None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)