- QoS CLI Index
- New and Changed Content for QoS CLI Config Guide
- Preface
- Overview
- Using Modular QoS CLI
- Configuring Classification
- Configuring Marking
- Configuring Mutation Mapping
- Configuring Policing
- Configuring Queuing and Scheduling
- Network QoS Policy Configuration
- Configuring Queuing and Scheduling on F1 Modules
- Configuring Priority Control
- Monitoring QoS Statistics
- Limits Appendix
- Additional References Appendix
Configuring Mutation Mapping
This chapter describes how to configure the mutation of packet values used to define traffic classes on the Cisco NX-OS device. This chapter includes the following sections:
Information About Mutation Mapping
Mutation mapping is a method of modifying a quality of service (QoS) field in all packets on an interface. On ingress, mutation mapping occurs before traffic classification and all other actions. On egress, mutation mapping occurs after traffic classification and before the other actions. You can apply mutation mapping to the class of service (CoS), Differentiated Service Code Point (DSCP), or IP precedence packet fields, or to the internal field discard class.
You cannot configure system-defined mutation maps. You can only configure those maps that modify the same source and destination variable.
You use a hierarchical policy map to configure mutation mapping. In the mutation mapping policy map, you specify the field to mutate and the policy map to apply with the mutation.
Note The device supports hierarchical policies only for mutation mapping.
The sequence of QoS actions on ingress traffic is as follows:
The sequencing of QoS actions on egress traffic is as follows:
Note Mutation occurs much closer to the beginning of the traffic actions on the ingress packets, and any further classification and policing is based on the changed QoS values. Mutation occurs at the end of the traffic actions on the egress packets, right before queuing and scheduling.
Licensing Requirements for Mutation Mapping
The following table shows the licensing requirements for this feature:
However, using virtual device contexts (VDCs) requires an Advanced Services license.
Prerequisites for Mutation Mapping
Mutation mapping has the following prerequisites:
- You must be familiar with Chapter3, “Using Modular QoS CLI”
- You are logged on to the switch.
- You are in the VDC. A VDC is a logical representation of a set of system resources. You can use the switchto vdc command with a VDC number.
Guidelines and Limitations
Mutation mapping has the following configuration guidelines and limitations:
- You use a hierarchical policy for mutation mapping. Hierarchical policies are not supported for any other use.
- The device supports only one level of hierarchy.
- You can configure up to 14 table maps for use in ingress interfaces and up to 15 table maps for use in egress interfaces.
- Before you delete a referenced policy map, you must first remove all references to that policy map.
- You can use only like parameters (for example, cos-cos) when you create a mutation map. Mutation maps with dissimilar types (for example, cos-dscp) are not supported.
Configuring Mutation Mapping
To configure mutation mapping, you create a hierarchical policy map that uses the class-default traffic class to capture all packets and apply mutation mapping to them. You use the service-policy command to specify the policy map to apply with mutation mapping.
Note You can set only similar values when you create a mutation map. For example, you can set cos-cos or dscp-dscp; you cannot set cos-dscp or dscp-precedence.
To configure mutation mapping, follow these steps:
Step 1 Create the policy map to apply in the mutation mapping hierarchical policy. For information about configuring policy maps, see Chapter 6, “Configuring Policing” or Chapter7, “Configuring Queuing and Scheduling”
Step 2 Create the table map to use in the mutation mapping hierarchical policy. For information about configuring table maps, see the “Configuring Marking Using Table Maps” section.
Step 3 Configure the mutation mapping hierarchical policy as described in this section.
Step 4 Apply the service policy to the interface. For information about attaching policies to interfaces, see Chapter3, “Using Modular QoS CLI”
SUMMARY STEPS
2. policy-map [ type qos ] [ match-first ] { qos-policy-map-name | qos-dynamic }
4. set { cos | discard-class | dscp | precedence } { cos | discard-class | dscp | precedence } table table-map-name
5. service-policy [ type qos ] { policy-map-name | qos-dynamic } [ no-stats ]
6. (Optional) show policy-map [ type { qos | queuing }] [ policy-map-name | qos-dynamic]
DETAILED STEPS
Verifying the Mutation Mapping Configuration
To display the mutation mapping configuration information, perform the following tasks:
show policy-map [ type { qos | queuing }] [ policy-map-name | qos-dynamic ] |
Displays information about all configured policy maps or the specified policy map. |
For detailed information about the fields in the output from these commands, see the Cisco Nexus 7000 Series NX-OS Quality of Service Command Reference, Release 5.x .
Configuration Examples for Mutation Mapping
The following example shows a mutation configuration:
Note If the child service policy (in this example, child_qos_policy) is not configured in the parent policy map (in this example, parent_policy_for_mutation), all packets will be changed according to the mutation map.
Feedback