37-38
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service
Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE
A flow is defined as a five-tuple (IP source address, IP destination address, IP head protocol field, Layer
4 source, and destination ports). Flow-based policers enable you to police traffic on a per-flow basis.
Because flows are dynamic, they require distinguishing values in the class map.
When you specify the match flow command with the source-address keyword, each flow with a unique
source address is considered a new flow. When you specify the match flow command with the
destination-address keyword, each flow with a unique destination address is considered a new flow. If
the class map used by the policy map has any flow options configured, it is considered a flow-based
policy map. When you specify the match flow command with the
ip destination-address ip protocol L4 source-address L4 destination-address keyword, each flow
with unique IP source, destination, protocol, and Layer 4 source and destination address is considered a
new flow.
Note Microflow is only supported on Supervisor Engine V-10GE.
To configure the flow-based class maps and policy maps, perform this task:
Examples
Example 1
This example shows how to create a flow-based class map associated with a source address:
Switch(config)# class-map match-all c1
Switch(config-cmap)# match flow ip {source-address [ip destination_address ip protocol L4
source-address L4 destination address]}
Switch(config-cmap)# end
Switch#
Switch# show class-map c1
Class Map match-all c1 (id 2)
Match flow ip source-address
Example 2
This example shows how to create a flow-based class map associated with a destination address:
Switch(config)# class-map match-all c1
Switch(config-cmap)# match flow ip destination-address
Switch(config-cmap)# end
Switch#
Switch# show class-map c1
Class Map match-all c1 (id 2)
Match flow ip destination-address
Command Purpose
Step 1 Switch(config)# class-map match-all class_name Creates a named class map.
Step 2 Switch(config-cmap)# match flow ip {source-address | ip
destination-address ip protocol L4 source-address L4
destination-address | destination-address}
Specifies the key fields of the flow.
Step 3 Switch(config-cmap)# end Exits class-map configuration mode.
Step 4 Switch# show class-map class-name Verifies the configuration.