The match qos-group command is used on the ingress match to support QoS Policy Propagation using BGP
(QPPB). To use this command, you must first enter the class-map command to specify the name of the class
whose match criteria you want to establish. If you specify more than one match qos-group command in a
class map, the subsequent match statements are added to the first match qos-group command.
The QoS group value is used as a matching criterion only. The value has no mathematical significance. For
instance, the QoS group value 2 is not greater than 1. The value simply indicates that a packet marked with
the QoS group value of 2 should be treated differently than a packet marked with a QoS group value of 1.
The treatment of these different packets is defined using the service-policy command in policy map class
configuration mode.
The QoS group setting is limited in scope to the local router. Typically, the QoS group is set on the local
router and is used in conjunction with WRED or MDRR to give differing levels of service based on the group
identifier.
Task ID
OperationsTask ID
read, writeqos
Examples
The following example shows a service policy called policy1 attached to an interface. In this example, class
map qosgroup5 will evaluate all packets leaving GigabitEthernet 0/1/0/9 for a QoS group value of 5. If the
packet has been marked with the QoS group value of 5, the packet is queued to the class queue with the
bandwidth setting 300 kbps.
RP/0/RP0/CPU0:router(config)# class-map qosgroup5
RP/0/RP0/CPU0:router(config-cmap)# match qos-group 5
RP/0/RP0/CPU0:router(config-cmap)# exit
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class qosgroup5
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth 300
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/1/0/9
RP/0/RP0/CPU0:router(config-if)# service-policy output policy1
Related Commands
DescriptionCommand
Defines a traffic class and the associated rules that match packets to
the class.
class-map, on page 12
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
policy-map, on page 67
Sets the discard class and Quality of Service (QoS) group identifiers
on IP Version 4 (IPv4) or Multiprotocol Label Switching (MPLS)
packets.
set discard-class, on page 100
Sets the quality of service (QoS) group identifiers on packets.set qos-group, on page 108
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 57
Quality of Service Commands on the Cisco IOS XR Software
match qos-group