Chapter 24 Configuring QoS

Understanding QoS

 

 

Router(config-cmap)# match

ip dscp 23

 

 

Router(config-cmap)# exit

 

 

 

Router(config)# class-map match-any dscp-63 voice

 

 

Router(config-cmap)# match

ip dscp-63

 

 

Router(config-cmap)# exit

 

 

 

Router(config)# policy-map

customer-1-ingress

 

 

Router(config-pmap)# class

class-default

 

 

Router(config-pmap-c)#service-policy child_policy-1

 

 

 

Note

You can also enter the match criteria as match vlan 100 200 300 in the child-level policy-map.

 

 

 

 

 

 

Router(config)# policy-map

child policy-1

 

 

Router(config-pmap)# class

dscp-63 voice

 

 

Router(config-pmap-c)#police cir 10000000 bc 50000

 

 

Router(config-pmap-c)#conform-action set-cos-transmit 5

 

 

Router(config-pmap-c)# exceed-action drop

 

 

Router(config-pmap-c)# exit

 

 

 

Router(config-pmap)# class

dscp-1 data

 

 

Router(config-pmap-c)# set

cos 0

 

 

Router(config-pmap-c)# exit

 

 

 

Router(config-pmap)# class

dscp-23 video

 

 

Router(config-pmap-c)# set

cos 4

 

 

Router(config-pmap-c)# set

ip precedence 4

 

 

Router(config-pmap-c)# exit

 

 

 

Router(config)# interface gigabitethernet0/1

 

 

Router(config-if)# service

instance 100 ethernet

 

 

Router(config-if)#encapsulation dot1q 100

 

 

Router(config-if)#service-policy input customer-1-ingress

 

 

Router(config-if)# rewrite

ingress tag pop 1 symmetric

Router(config-if)# bridge-domain 100

Table Maps

You can use table maps to manage a large number of traffic flows with a single command. You can specify table maps in set commands and use them as mark-down mapping for the policers. You can also use table maps to map an incoming QoS marking to a replacement marking without having to configure a large number of explicit matches and sets. Table maps are used only in input policy maps.

Table maps can be used to:

Correlate specific CoS, DSCP, or IP precedence values to specific CoS, DSCP, or IP precedence values

Mark down a CoS, DSCP, or IP precedence value

Assign defaults for unmapped values

This example creates a table to map specific CoS values to DSCP values. The unspecified values are all mapped to a to-value of 0.

Router(config)# table-map cos-dscp-tablemap

Router(config-tablemap)# map from 5 to 46

Router(config-tablemap)# map from 6 to 56

Router(config-tablemap)# map from 7 to 57

Router(config-tablemap)# exit

The Cisco ASR 901 router supports a maximum of 32 unique table maps. You can enter up to 64 different map fromtoentries in a table map. These table maps are supported on the router:

 

 

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

 

 

 

 

 

 

OL-23826-09

 

 

24-13

 

 

 

 

 

Page 449
Image 449
Cisco Systems A9014CFD manual Table Maps, 24-13