Modular QoS Deployment Scenarios on Cisco ASR 9000 Series Routers
IP Header Compression QoS
QC-167
Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide
OL-23108-02
class-map match-any premium_g1
match precedence 2
end-class-map
!
class-map match-any premium_g2
match precedence 3
end-class-map
!
class-map match-any best-effort
match precedence 4
end-class-map
!
IP Header Compression QoS
An IP Header Compression (IPHC) profile can be enabled on an interface so that the IPHC profile
applies only to packets that match a QoS service policy. In this case, the QoS service-policy class
attributes determine which packets are compressed. This allows users to fine tune IPHC with greater
granularity.
Policy maps are attached to an interface using the service-policy command. IPHC action applies only to
output service policies. IPHC is not supported on input service policies. (IPHC is supported in the input
direction but there is no use case to configure IPHC in an input policy.)
You can configure IPHC using QoS as follows:
• Create a QoS policy with the compress header ip action.
• Attach the IPHC profile to the interface using the ipv4 iphc profile profile_name mode
service-policy command.
• Attach the QoS policy with compress header ip action using the service-policy output command.
You can also display IPHC statistics using the show policy-map interface command, as shown in the
following example:
show policy-map interface Serial0/0/3/0/3:0 output
show policy-map int Serial0/0/3/0/3:0 output
Mon May 18 22:06:14.698 UTC
Serial0/0/3/0/3:0 output: p1
Class class-default
Classification statistics (packets/bytes) (rate - kbps)
Matched : 0/0 0
Transmitted : 0/0 0
Total Dropped : 0/0 0
Queueing statistics
Queue ID : 0
High watermark (Unknown) : 0
Inst-queue-len (packets) : 0
Avg-queue-len (packets) : 0
Taildropped(packets/bytes) : 0/0
Compression Statistics
Header ip rtp
Sent Total (packets) : 880
Sent Compressed (packets) : 877
Sent full header (packets) : 342
Saved (bytes) : 31570
Sent (bytes) : 24750
Efficiency improvement factor : 2.27