![]() |
Cisco IOS Quality of Service Solutions Command Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mls qos (global configuration mode) through mpls experimental
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contents
mls qos global configuration mode through mpls experimentalmls qos (global configuration mode)To enable the quality of service (QoS) functionality globally, use the mlsqoscommand in global configuration mode. To disable the QoS functionality globally, use the no form of this command. Usage GuidelinesIf you enable QoS globally, QoS is enabled on all interfaces with the exception of the interfaces where you disabled QoS. If you disable QoS globally, all traffic is passed in QoS pass-through mode. In port-queueing mode, Policy Feature Card (PFC) QoS (marking and policing) is disabled, and packet type of service (ToS) and class of service (CoS) are not changed by the PFC. All queueing on rcv and xmt is based on a QoS tag in the incoming packet, which is based on the incoming CoS. For 802.1Q or Inter-Switch Link (ISL)-encapsulated port links, queueing is based on the packet 802.1Q or ISL CoS. For the router main interfaces or access ports, queueing is based on the configured per-port CoS (the default CoS is 0). This command enables or disables ternary content addressable memory (TCAM) QoS on all interfaces that are set in the OFF state. mls qos (interface configuration mode)To enable the quality of service (QoS) functionality on an interface, use the mlsqoscommand in interface configuration command mode. To disable QoS functionality on an interface, use the no form of this command. Usage GuidelinesThis command is deprecated on Cisco 7600 series routers that are configured with a Supervisor Engine 2. Although the CLI allows you to configure PFC-based QoS on the WAN ports on the OC-12 ATM OSMs and on the WAN ports on the channelized OSMs, PFC-based QoS is not supported on the WAN ports on these OSMs. If you disable QoS globally, it is also disabled on all interfaces. This command enables or disables TCAM QoS (classification, marking, and policing) for the interface. mls qos 10g-onlyTo enable quality of service (QoS) in 10g-only mode, in which only the supervisor engine's 10-Gigabit Ethernet uplink ports are used, use the mls qos 10g-only command in global configuration mode. To allow the use of all uplink ports, including the 1-Gigabit Ethernet ports, use the no form of this command. Usage GuidelinesWhen you enter the mls qos 10g-only command, a supervisor engine with both 1-Gigabit and 10-Gigabit Ethernet uplink ports reallocates the interface queue capacity to improve the performance of its 10-Gigabit Ethernet ports. The reallocation is possible only in 10g-only mode, in which the supervisor engine's 1-Gigabit Ethernet ports are not used. In the normal mode, when all supervisor engine ports are active, the queue structure is 2q4t on receive and 1p3q4t on transmit. In 10g-only mode, the queue structure is 8q4t on receive and 1p7q4t on transmit.
When you switch between normal and 10g-only modes, any existing QoS configuration on the uplink ports is lost, and you must reconfigure QoS. In addition, service will be temporarily lost on the ports during the transition. You must shut down the 1-Gigabit Ethernet ports before entering the mls qos 10g-only command. If you do not shut down the ports, the mode change will not occur. When you switch from 10g-only mode to normal mode, you must enter the no shutdown command on each of the 1-Gigabit Ethernet ports to resume QoS service on those ports. With CSCty37687, when you switch from 10g-only mode to normal mode, you must remove the trust state and the default class of service (CoS) value on the 1-Gigabit supervisor engine uplink ports. In 10g-only mode, the 1-Gigabit Ethernet ports are visible, but they remain in an administratively down state. The mls qos 10g-only command affects only active and standby supervisors, but if you have four supervisors, you must apply it to the in-chassis standby supervisors. mls qos aggregate-policerTo define a named aggregate policer for use in policy maps, use the mlsqosaggregate-policercommand in global configuration mode. To delete a named aggregate policer, use the no form of this command.
mls
qos
aggregate-policer
name
rate-bps
[normal-burst-bytes [maximum-burst-bytes | pir peak-rate-bps | action-type action]]
no
mls
qos
aggregate-policer
name
Syntax DescriptionCommand History
Usage GuidelinesThis policer can be shared by different policy map classes and on different interfaces. The Cisco 7600 series routers supports up to 1023 aggregates and 1023 policing rules. The mlsqosaggregate-policer command allows you to configure an aggregate flow and a policing rule for that aggregate. When you enter the rate and burst parameters, the range for the average rate is 32 kbps to 10 Gbps (entered as 32000 and 10000000000) and the range for the burst size is 1 KB (entered as 1000) to 31.25 MB (entered as 31250000). Modifying an existing aggregate rate limit entry causes that entry to be modified in NVRAM and in the Cisco 7600 series routers if that entry is currently being used.
Modifying an existing microflow or aggregate rate limit modifies that entry in NVRAM as well as in the Cisco 7600 series routers if it is currently being used. When you enter the aggregate policer name, follow these naming conventions:
Aggregate policing works independently on each DFC-equipped switching module and independently on the PFC2, which supports any non-DFC-equipped switching modules. Aggregate policing does not combine flow statistics from different DFC-equipped switching modules. You can display aggregate policing statistics for each DFC-equipped switching module, PFC2, and any non-DFC-equipped switching modules that are supported by the PFC2 by entering the showmlsqosaggregatepolicer command. ExamplesThe following example shows how to configure a QoS aggregate policer to allow a maximum of 100000 bits per second with a normal burst byte size of 10000, to set DSCP to 48 when these rates are not exceeded, and to drop packets when these rates are exceeded:
Router(config)# mls qos aggregate-policer micro-one 100000 10000 conform-action set-dscp-transmit 48 exceed-action drop
Related Commands
mls qos bridgedTo enable the microflow policing for bridged traffic on Layer 3 LAN interfaces, use the mlsqosbridgedcommand in interface configuration mode. To disable microflow policing for bridged traffic, use the no form of this command. Usage GuidelinesThis command is supported on SVIs only. On Cisco 7600 series routers that are configured with a Supervisor Engine 2, you must enable the mlsqosbridged command on an SVI for the microflow policing of IPv4 multicast packets if the user policy is attached to an SVI. mls qos channel-consistencymls qos cosTo define the default multilayer switching (MLS) class of service (CoS) value of a port or to assign the default CoS value to all incoming packets on the port, use the mlsqoscos command in interface configuration mode. To return to the default CoS setting, use the no form of this command. Cisco 3660, 3845, 6500, 7200, 7400, and 7500 Series Routers
mls
qos
cos
{cos-value | override}
no
mls
qos
cos
{cos-value | override}
Cisco 7600 Series Routers
mls
qos
cos
cos-value
no
mls
qos
cos
cos-value
Syntax Description
Command History
Usage GuidelinesCisco 3660, 3845, 6500, 7200, 7400, and 7500 Series Routers You can assign the default CoS and differentiated services code point (DSCP) value to all packets entering a port if the port has been configured by use of the override keyword. Use the override keyword when all incoming packets on certain ports deserve a higher or lower priority than packets the enter from other ports. Even if a port was previously set to trust DSCP or CoS, this command overrides that trust state, and all the CoS values on the incoming packets are changed to the default CoS value that is configured with the mlsqoscoscommand. If an incoming packet is tagged, the CoS value of the packet is modified at the ingress port. It is changed to the default CoS of that port. Use the showmlsqosinterfaceprivileged EXEC command to verify your settings. Cisco 7600 Series Routers CoS values are configurable on physical LAN ports only. On Cisco 7600 series routers that are configured with a Supervisor Engine 2, the following restrictions apply: ExamplesCisco 3660, 3845, 6500, 7200, 7400, and 7500 Series Routers The following example shows how to assign 4 as the default port CoS:
Router(config)# interface gigabitethernet
0/1
Router(config-if)# mls qos trust cos
Router(config-if)# mls qos cos 4
The following example shows how to assign 4 as the default port CoS value for all packets the enter the port:
Router(config)# interface gigabitethernet
0/1
Router(config-if)# mls qos cos 4
Router(config-if)# mls qos cos override
Cisco 7600 Series RoutersThe following example shows how to configure the default QoS CoS value as 6: Router(config)# interface gigabitethernet 0/1 Router(config-if)# mls qos cos 6 mls qos cos-mutationTo attach an ingress-class-of-service (CoS) mutation map to the interface, use the mlsqoscos-mutationcommand in interface configuration mode. To remove the ingress-CoS mutation map from the interface, use the no form of this command. Usage GuidelinesThis command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. mls qos dscp-mutationTo attach an egress-differentiated-services-code-point (DSCP) mutation map to the interface, use the mlsqosdscp-mutationcommand in interface configuration mode. To remove the egress-DSCP mutation map from the interface, use the no form of this command. Usage GuidelinesThis command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. mls qos exp-mutationTo attach an egress-EXP mutation map to the interface in the interface configuration command mode, use the mlsqosexp-mutationcommand. Use the no form of this command to remove the egress-EXP mutation map from the interface. Usage GuidelinesThis command is supported in PFC3BXL or PFC3B mode only. This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. mls qos loopbackTo remove a router port from the Switched Virtual Interface (SVI) flood for VLANs that are carried through by the loopback cable, use themlsqosloopback command in interface configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesWith mlsqosloopback applied at the interface, the packets are not forwarded to the destination. Before you enter the mlsqosloopback command, you must specify a MAC address for the Optical Services Modules (OSM) interface. The MAC address must be different from the LAN router MAC address that is used in PFC2 hardware switching. mls qos mapTo define the multilayer switching (MLS) class of service (CoS)-to-differentiated services code point (DSCP) map or DSCP-to-CoS map, use the mlsqosmap command in global configuration mode. To return to the default map, use the no form of this command.
mls
qos
map
{cos-dscp dscp1...dscp8 | dscp-cos dscp-list to cos}
no
mls
qos
map
{cos-dscp | dscp-cos}
Syntax Description
Command DefaultThe table below shows the default CoS-to-DSCP map. The table below shows the default DSCP-to-CoS map. Command History
Usage GuidelinesAll of the CoS-to-DSCP and DSCP-to-CoS maps are globally defined. You apply all maps to all ports. If you enter the mlsqostrustcoscommand, the default CoS-to-DSCP map is applied. If you enter the mlsqostrustdscp command, the default DSCP-to-CoS map is applied. After a default map is applied, you can define the CoS-to-DSCP or DSCP-to-CoS map by entering consecutive mlsqosmap commands. If the mlsqostrustdscpcommand is entered and a packet with an untrusted DSCP value is at an ingress port, the packet CoS value is set to 0. Use the showmlsqosmapsprivileged EXEC command to verify your settings. ExamplesThe following example shows how to define the DSCP-to-CoS map. DSCP values 16, 18, 24, and 26 are mapped to CoS 1. DSCP values 0, 8, and 10 are mapped to CoS 0. Router# configure terminal Router(config)# mls qos map dscp-cos 16 18 24 26 to 1 Router(config)# mls qos map dscp-cos 0 8 10 to 0 The following example shows how to define the CoS-to-DSCP map. CoS values 0 to 7 are mapped to DSCP values 8, 8, 8, 8, 24, 32, 56, and 56. R outer# configure terminal Router(config)# mls qos map cos-dscp 8 8 8 8 24 32 56 56 mls qos map cos-dscpTo define the ingress Class of Service (CoS)-to-differentiated services code point (DSCP) map for trusted interfaces, use the mlsqosmapcos-dscpcommand in global configuration mode. Use the no form of this command to remove a prior entry. Command History
Usage GuidelinesAll of the CoS-to-DSCP and DSCP-to-CoS maps are globally defined. You apply all maps to all ports. If you enter the mlsqostrustcoscommand, the default CoS-to-DSCP map is applied. If you enter the mlsqostrustdscp command, the default DSCP-to-CoS map is applied. After a default map is applied, you can define the CoS-to-DSCP or DSCP-to-CoS map by entering consecutive mlsqosmap commands. If the mlsqostrustdscpcommand is entered and a packet with an untrusted DSCP value is at an ingress port, the packet CoS value is set to 0. Use the showmlsqosmapsprivileged EXEC command to verify your settings. ExamplesThe following example shows how to define the CoS-to-DSCP map. CoS values 0 to 7 are mapped to DSCP values 8, 8, 8, 8, 24, 32, 56, and 56. Router# configure terminal Router(config)# mls qos map cos-dscp 8 8 8 8 24 32 56 56 Related Commands
mls qos map cos-mutationTo map a class of service (CoS) value to a new CoS value for a packet, use the mlsqosmapcos-mutationcommand in the global configuration mode. To remove the map, use the no form of this command
mls
qos
map
cos-mutation
name
mutated-cos1
mutated-cos2
mutated-cos3
mutated-cos4
mutated-cos5
mutated-cos6
mutated-cos7
mutated-cos8
no
mls
qos
map
cos-mutation
name
Command DefaultIf the CoS-to-CoS mutation map is not configured, the default CoS-to-CoS mutation mapping is listed in the table below. Command History
Usage GuidelinesThis command is not supported on the Catalyst 6500 series switches and the Cisco 7600 series routers that are configured with a Supervisor Engine 2. This command is supported on the Catalyst 6500 series switches and the Cisco 7600 series routers that are configured with the following modules only: CoS mutation is not supported on non-802.1Q tunnel ports. When you enter the mlsqosmapcos-mutationcommand, you are configuring the mutated-CoS values map to sequential ingress-CoS numbers. For example, by entering the mlsqosmapcos-mutation23456701 command, you configure this map: Separate the eight CoS values by a space. After you define the map in global configuration mode, you can attach the map to a port. If QoS is disabled, the port is not in a trust CoS mode, and the port is not in 802.1Q tunneling mode. The changes appear once you put the port into trust CoS mode and the port is configured as an 802.1Q tunnel port. Release 12.2(17b)SXA and later releases support ingress-CoS mutation on 802.1Q tunnel ports and is on a per-port group basis only. To avoid ingress-CoS mutation configuration failures, only create EtherChannels where all member ports support ingress-CoS mutation or where no member ports support ingress-CoS mutation. Do not create EtherChannels with mixed support for ingress-CoS mutation. If you configure ingress-CoS mutation on a port that is a member of an EtherChannel, the ingress-CoS mutation is applied to the port-channel interface. You can configure ingress-CoS mutation on port-channel interfaces. mls qos map dscp-cosTo define an egress differentiated services code point (DSCP)-to-class of service (CoS) map, use the mlsqosmapdscp-cos command in global configuration mode. To remove a prior entry, use the no form of this command. Syntax Description
Command History
Usage GuidelinesThe DSCP-to-CoS map is used to map the final DSCP classification to a final CoS. This final map determines the output queue and threshold to which the packet is assigned. The CoS map is written into the Inter-Switch Link (ISL) header or 802.1Q tag of the transmitted packet on trunk interfaces and contains a table of 64 DSCP values and the corresponding CoS values. The Catalyst 6500 series switch and the Cisco 7600 series router have one map. All of the CoS-to-DSCP and DSCP-to-CoS maps are globally defined. You apply all maps to all ports. If you enter the mlsqostrustcoscommand, the default CoS-to-DSCP map is applied. If you enter the mlsqostrustdscp command, the default DSCP-to-CoS map is applied. After a default map is applied, you can define the CoS-to-DSCP or DSCP-to-CoS map by entering consecutive mlsqosmap commands. If the mlsqostrustdscpcommand is entered and a packet with an untrusted DSCP value is at an ingress port, the packet CoS value is set to 0. Use the showmlsqosmapsprivileged EXEC command to verify your settings. mls qos map dscp-expTo map the final differentiated services code point (DSCP) value to the final experimental (EXP) value, use the mlsqosmapdscp-exp command in global configuration mode. To remove a prior entry, use the no form of this command. Command History
Usage GuidelinesThis command is supported in PFC3BXL or PFC3B mode only. The DSCP-to-EXP map is used to map the final DSCP value to a final EXP value. This final map determines the output queue and threshold to which the packet is assigned. The EXP map contains a table of 64 DSCP values and the corresponding EXP values. The Catalyst 6500 series switch and the Cisco 7600 series router have one map. You can enter up to eight DSCP values separated by a space. You can enter up to eight EXP values separated by a space. mls qos map dscp-mutationTo define a named differentiated services code point (DSCP) mutation map, use the mlsqosmapdscp-mutation command in global configuration mode. To return to the default mapping, use the no form of this command.
mls
qos
map
dscp-mutation
map-name
input-dscp1
[input-dscp2 [input-dscp3 [i nput-dscp4 [input-dscp5 [input-dscp6 [input-dscp7 [input-dscp8] ]]]]]]
to
output-dscp
no
mls
qos
map
dscp-mutation
map-name
Command History
Usage GuidelinesThis command is not supported on the Catalyst 6500 series switches and the Cisco 7600 series routers that are configured with a Supervisor Engine 2. When configuring a named DSCP mutation map, note the following:
You can configure 15 egress-DSCP mutation maps to mutate the internal DSCP value before it is written as the egress-DSCP value. You can attach egress-DSCP mutation maps to any interface that Policy Feature Card (PFC) QoS supports. PFC QoS derives the egress-class-of-service (CoS) value from the internal DSCP value. If you configure egress-DSCP mutation, PFC QoS does not derive the egress-CoS value from the mutated DSCP value. mls qos map exp-dscpTo define the ingress Experimental (EXP) value to the internal differentiated services code point (DSCP) map, use the mlsqosmapexp-dscp command in global configuration mode. To return to the default mapping, use the no form of this command. Command History
Usage GuidelinesThis command is supported in PFC3BXL or PFC3B mode only. The DSCP in these maps refers to the internal DSCP, not the packet DSCP. The EXP-to-DSCP map is used to map the received EXP value to the internal DSCP map. This final map determines the output queue and threshold to which the packet is assigned. The EXP map contains a table of 64 DSCP values and the corresponding EXP values. The Catalyst 6500 series switch and the Cisco 7600 series router have one map. You can enter up to eight DSCP values separated by a space. mls qos map exp-mutationTo map the Experimental (EXP) value of a packet to a new EXP value, use the mlsqosmapexp-mutation command in global configuration mode. To return to the default mapping, use the no form of this command.
mls
qos
map
exp-mutation
map-name
mutated-exp1
mutated-exp2
mutated-exp3
mutated-exp4
mutated-exp5
mutated-exp6
mutated-exp7
mutated-exp8
no
mls
qos
map
exp-mutation
map-name
Command DefaultIf the EXP-to-EXP mutation map is not configured, the default EXP-to-EXP mutation mapping is listed in the table below. Command History
Usage GuidelinesThis command is not supported on the Catalyst 6500 series switch and the Cisco 7600 series router that are configured with a Supervisor Engine 2. This command is supported in PFC3BXL or PFC3B mode only. When you enter themlsqosmapexp-mutationcommand, you are configuring the mutated EXP values map to the sequential EXP numbers. For example, by entering the mlsqosmapexp-mutation23456701 command, you configure the map as shown in the table below:
Separate the eight EXP values by a space. After you define the map in global configuration mode, you can attach the map to a port. You can configure 15 ingress-EXP mutation maps to mutate the internal EXP value before it is written as the ingress-EXP value. You can attach ingress-EXP mutation maps to any interface that Policy Feature Card (PFC) quality of service (QoS) supports. The PFC QoS derives the egress EXP value from the internal differentiated services code point (DSCP) value. If you configure ingress-EXP mutation, PFC QoS does not derive the ingress-EXP value from the mutated EXP value. mls qos map ip-prec-dscpTo define an ingress-IP precedence-to-differentiated-services-code-point (DSCP) map for trusted interfaces, use the mlsqosmapip-prec-dscpcommand in global configuration mode. To remove a prior entry, use the no form of this command. Command History
Usage GuidelinesUse the mlsqosmapip-prec-dscp command to map the IP precedence of IP packets arriving on trusted interfaces (or flows) to a DSCP when the trust type is trust-ipprec. You can enter up to eight DSCP values separated by a space. This map is a table of eight precedence values (0 through 7) and their corresponding DSCP values. The Catalyst 6500 series switch and the Cisco 7600 series router have one map. The IP precedence values are as follows: ExamplesThis example shows how to configure the ingress-IP precedence-to-DSCP mapping for trusted interfaces: Router(config)# mls qos map ip-prec-dscp 20 30 1 43 63 12 13 8 Related Commands
mls qos map policed-dscpTo set the mapping of policed differentiated services code point (DSCP) values to marked-down DSCP values, use the mlsqosmappoliced-dscpcommand in global configuration mode. To remove a prior entry, use the no form of this command.
mls
qos
map
policed-dscp
dscp-list
to
policed-dscp
no
mls
qos
map
policed-dscp
Catalyst 6500 Series Switches and Cisco 7600 Series Routers
mls
qos
map
policed-dscp
{normal-burst | max-burst}
dscp1
[dscp2 [dscp3 [dscp4 [dscp5 [dscp6 [dscp7 [dscp8] ]]]]]]
to
policed-dscp
no
mls
qos
map
policed-dscp
Syntax Description
Command History
Usage GuidelinesThe DSCP-to-policed-DSCP map determines the marked-down DSCP value that is applied to out-of-profile flows. The Catalyst 6500 series switch and the Cisco 7600 series router have one map. You can enter up to eight DSCP values separated by a space. You can enter up to eight policed DSCP values separated by a space.
ExamplesThis example shows how to map multiple DSCPs to a single policed-DSCP value: Router(config)# mls qos map policed-dscp 20 25 43 to 4 mls qos marking ignore port-trustTo mark packets even if the interface is trusted, use the mlsqosmarkingignoreport-trustcommand in global configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesUse the mlsqosmarkingignoreport-trustcommand to mark packets even if the interface is trusted. mls qos marking statisticsTo disable allocation of the policer-traffic class identification with set actions, use the mlsqosmarkingstatistics command in global configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesThis command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. Use the showpolicy-mapinterface command to display policy-map statistics. ExamplesThis example shows how to disable allocation of the policer-traffic class identification with set actions:
Router(config)# mls qos marking statistics
This example shows how to allow allocation of the policer-traffic class identification with set actions:
Router(config)# no mls qos marking statistics
mls qos mpls trust experimentalTo set the trusted state of Multiprotocol Label Switching (MPLS) packets only, use the mlsqosmplstrustexperimental command in interface configuration mode. To set the trusted state of MPLS packets to untrusted, use the no form of this command. Command DefaultWith the trusted state enabled, the defaults are as follows:
With the trusted state disabled, the defaults are as follows:
Usage GuidelinesYou can enter the mlsqosmplstrustexperimentalcommand to treat MPLS packets as other Layer 2 packets for class of service (CoS) and egress queueing purposes (for example, to apply port or policy trust). All trusted cases (trust CoS/IP/Differentiated Services Code Point (DSCP)) are treated as trust-cos. Class of Service (CoS) refers to three bits in either an ISL header or an 802.1Q header that are used to indicate the priority of the Ethernet frame as it passes through a switched network. The CoS bits in the 802.1Q header are commonly referred to as the 802.1p bits. To maintain QoS when a packet traverses both Layer 2 and Layer 3 domain, the ToS and CoS values can be mapped to each other. mls qos police redirectedTo turn on access control list (ACL)-redirected packet policing, use the mlsqospoliceredirectedcommand in global configuration mode. To turn off ACL-redirected packet policing, use the no form of this command. Usage GuidelinesThis command is supported on PFC3BXL or PFC3B mode only. With Release 12.2(17b)SXA, enter the showplatformearl-mode command to display the PFC3 mode. This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. Use the nomlsqospoliceredirected command whenever you require NetFlow Data Export (NDE) accuracy (if you do not require QoS-redirected packets). mls qos police serialTo enable serial mode for ingress and egress policers on the PFC3C or PFC3CXL, use the mlsqospoliceserial command in global configuration mode. To reset the policing mode to parallel, use the no form of the command. Usage GuidelinesYou can use the mlsqospoliceserial command to configure the PFC3C or PFC3CXL ingress and egress policers to operate independently of each other (in serial mode ). Normally, ingress and egress policers operate in parallel mode, where action by one policer causes a corresponding action in the other. For example, if the egress policer drops a packet, the ingress policer does not count the packet either. In serial mode, however, action by one policer does not cause a corresponding action in the other.
mls qos protocolTo define routing-protocol packet policing, use the mls qos protocol command in global configuration mode. To return to the default settings, use the no form of this command.
mls
qos
protocol
protocol-name
{pass-through | police rate [burst] | precedence value [police rate [burst] ]}
no
mls
qos
protocol
protocol-name
Syntax DescriptionCommand DefaultThe defaults are as follows:
Command HistoryUsage GuidelinesThis command does not support ARP, ISIS, or EIGRP on Cisco 7600 series routers that are configured with a Supervisor Engine 2. If you enter the precedencevaluekeyword and arguments without entering the policerateburstkeyword and arguments, only the packets from an untrusted port are marked. You can make the protocol packets avoid the per-interface policy maps by entering the policerate, pass-through, or precedencevalue keywords and arguments. The mlsqosprotocol command allows you to define the routing-protocol packet policing as follows:
You can make the protocol packets avoid policing completely if you choose the pass-through mode. If the police mode is chosen, the committed information rate (CIR) specified is the rate that is used to police all the specified protocol's packets, both entering or leaving the Cisco 7600 series router. To protect the system by ARP broadcast, you can enter the mlsqosprotocolarppolicebps command. ExamplesThis example shows how to define the routing-protocol packet policing:
Router(config)# mls qos protocol arp police 43000
This example shows how to avoid policing completely:
Router(config)# mls qos protocol arp pass-through
This example shows how to define the IP-precedence value of the protocol packets to rewrite:
Router(config)# mls qos protocol bgp precedence 4
This example shows how to define the IP-precedence value of the protocol packets to rewrite and police the DSCP value:
Router(config)# mls qos protocol bgp precedence 4 police 32000 1200
mls qos queueing-onlyTo enable port-queueing mode, use the mlsqosqueueing-only command in global configuration mode. To disable the port-queueing mode, use the no form of this command. Usage GuidelinesIn port-queueing mode, Policy Feature Card (PFC) QoS (marking and policing) is disabled, and packet type of service (ToS) and class of service (CoS) are not changed by the PFC. All queueing on rcv and xmt is based on a QoS tag in the incoming packet, which is based on the incoming CoS. For 802.1Q or Inter-Link Switch (ISL)-encapsulated port links, queueing is based on the packet 802.1Q or ISL CoS. For router main interfaces or access ports, queueing is based on the configured per-port CoS (the default CoS is 0). mls qos queue-mode mode-dscpTo set the queuing mode to Differentiated Services Code Point (DSCP) on an interface, use the mlsqosqueue-modemode-dscp command in interface configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesThis command is supported on 10-Gigabit Ethernet ports only. You should configure ports to trust DSCP only if they receive traffic that carries valid Layer 3 DSCP. In Release 12.2(18)SXF5 and later releases, you can enable DSCP-based ingress queues and thresholds on WS-X6708-10GE ports to provide congestion avoidance. In releases earlier than Release 12.2(18)SXF5, the ingress port queues and thresholds use only Layer 2 Class of Service (CoS), and Policy Feature Card (PFC) QoS does not implement ingress port congestion avoidance on ports configured to trust DSCP. For traffic from trust DSCP ports, Policy Feature Card (PFC) QoS uses the received DSCP value as the initial internal DSCP value. PFC QoS does not mark any traffic on ingress ports configured to trust received DSCP. mls qos rewrite ip dscpTo enable type of service (ToS)-to-differentiated services code point (DSCP) rewrite, use the mlsqosrewriteipdscp command in global configuration mode. To disable ToS-to-DSCP rewrite, use the no form of this command.
mls
qos
rewrite
ip
dscp
[slot slot1 slot2 slot3...]
no
mls
qos
rewrite
ip
dscp
[slot slot1 slot2 slot3...]
Usage GuidelinesThis command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2. If you disable ToS-to-DSCP rewrite, and QoS is enabled globally, the following occurs:
The nomlsqosrewriteipdscp command is incompatible with Multiprotocol Label Switching (MPLS). The default mlsqosrewriteipdscp command must remain enabled in order for the PFC3BXL or PFC3B to assign the correct MPLS Experimental (EXP) value for the labels that it imposes. This restriction does not apply to PFC3C or PFC3CXL forward. The mlsqosrewriteipdscpslot command can be used for disabling ToS-to-DSCP rewrite on supervisors or DFC linecards. Although the command will be accepted for non-DFC linecard slots, it does not come into effect unless a DFC linecard is inserted into that slot. To disable rewrite on packets that are coming in on non-DFC linecards, disable the rewrite on the supervisor slots. Note that this disables the rewrite on packets that are coming in on all non-DFC linecards on the system. mls qos statistics-export (global configuration)To enable quality of service (QoS)-statistics data export globally, use the mlsqosstatistics-exportcommand in global configuration mode. To disable QoS-statistics data export globally, use the no form of this command. Usage GuidelinesYou must enable data export globally to set up data export on your Cisco 7600 series routers. QoS-statistics data export is not supported on OSM interfaces. For QoS-statistics data export to perform correctly, you should set the export-destination hostname or IP address and the User Datagram Port (UDP) number. mls qos statistics-export (interface configuration)To enable per-port quality of service (QoS)-statistics data export, use the mlsqosstatistics-exportcommand in interface configuration mode. To disable per-port QoS-statistics data export, use the no form of this command. Usage GuidelinesQoS-statistics data export is not supported on OSM interfaces. You must enable data export on the port and globally to set up data export on your Cisco 7600 series routers. For QoS-statistics data export to perform correctly, you should set the export-destination hostname or IP address and the User Datagram Port (UDP) number. QoS-statistics data is exported using delimiter-separated fields. You can set the delimiter by entering the mlsqosstatistics-exportdelimitercommand. Port statistics are exported; port QoS statistics are not exported. For each data export-enabled port, the following information is exported:
For example, if you have QoS-statistics data export that is enabled on FastEthernet4/5, the exported records could be (in this example, the delimiter is a | [pipe]) as follows: |1|4/5|123|80|12500|6800|982361894| mls qos statistics-export aggregate-policerTo enable quality of service (QoS)-statistics data export on the named aggregate policer, use the mlsqosstatistics-exportaggregate-policer command in global configuration mode. To disable QoS-statistics data export on the named aggregate policer, use the no form of this command.
mls
qos
statistics-export
aggregate-policer
policer-name
no
mls
qos
statistics-export
aggregate-policer
policer-name
Usage GuidelinesQoS-statistics data export is not supported on Optical Services Modules (OSM) interfaces. You must enable data export on the shared aggregate policer and globally to set up data export on your Cisco 7600 series routers. QoS-statistics data is exported using delimiter-separated fields. You can set the delimiter by entering the mlsqosstatistics-exportdelimiter command. For each data export-enabled shared aggregate or named policer, statistics data per policer per EARL is exported. For each data export-enabled shared aggregate or named policer, the following information is exported:
If a shared aggregate policer is attached to policies in both directions, two records are exported (one in each direction). Each record will contain the same counter values for accepted packets, exceeded normal packet rates, and exceeded excess packet rates. For example, if you have the following configuration:
the exported records could be (note that in this example, the delimiter is a | [pipe]) as follows: |3|agg_1|in|1|45543|2345|982361894| |3|agg_1|in|3|45543|2345|982361894| mls qos statistics-export class-mapTo enable quality of service (QoS)-statistics data export for a class map, use the mlsqosstatistics-exportclass-map command in global configuration mode. To disable QoS-statistics data export for a class map, use the no form of this command.
mls
qos
statistics-export
class-map
classmap-name
no
mls
qos
statistics-export
class-map
classmap-nam
e
Usage GuidelinesQoS-statistics data export is not supported on OSM interfaces. You must enable data export on the class map and globally to set up data export on your Cisco 7600 series routers. QoS-statistics data is exported using delimiter-separated fields. You can set the delimiter by entering the mlsqosstatistics-exportdelimitercommand. For each data export-enabled class map, statistics data per policer per interface is exported. If the interface is a physical interface, the following information is exported:
If the interface is a Cisco 7600 series router VLAN, the following information is exported:
If the interface is a Cisco 7600 series router port channel, the following information is exported:
For example, if you have the following configuration:
The exported records could be (in this example, the delimiter is a | [pipe]) as follows: |4|class_1|in|4/5|45543|2345|2345|982361894| |5|class_1|in|1|100|44000|3554|36678|982361894| |5|class_1|in|3|100|30234|1575|1575|982361894| mls qos statistics-export delimiterTo set the quality of service (QoS)-statistics data-export field delimiter, use the mlsqosstatistics-exportdelimiter command in global configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesQoS-statistics data export is not supported on Optical Service Module (OSM) interfaces. You must enable data export globally to set up data export on your Cisco 7600 series routers. mls qos statistics-export destinationTo configure the quality of service (QoS)-statistics data-export destination host and User Datagram Protocol (UDP) port number, use the mlsqosstatistics-exportdestination command in global configuration mode. To return to the default settings, use the no form of this command.
mls
qos
statistics-export
destination
{host-name | host-ip-address}
{port port-number | syslog}
[facility facility-name]
[severity severity-value]
Syntax Description
Command DefaultThe default is none unless syslog is specified. If syslog is specified, the defaults are as follows: Usage GuidelinesQoS-statistics data export is not supported on Optical Service Module (OSM) interfaces. Valid facilityvalues are as follows:
Valid severity levels are as follows: mls qos statistics-export intervalTo specify how often a port and/or aggregate-policer quality of service (QoS)-statistics data is read and exported, use the mlsqosstatistics-exportinterval command in global configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesQoS-statistics data export is not supported on Optical Services Module (OSM) interfaces. The interval needs to be short enough to avoid counter wraparound with the activity in your configuration.
mls qos supervisor 10g-onlyTo configure the Cisco 7600 RSP720-10GE to run QoS only on the 10GE uplink ports, use the mlsqossupervisor10g-only command in global configuration mode. Use the no form of the command to reconfigure the RSP to run QoS on all the uplink ports (10GE and 1GE). Usage GuidelinesThe RSP720-10GE has both 10GE and 1GE uplink ports. You can configure the RSP720-10GE to run QoS features on all uplink ports (mixed mode) or on 10GE ports only. The number of queues available for QoS depends on which mode is used: The QoS port architecture for fixed mode for 1GE ports is (Rx/Tx): 2q8t/1p3q8t. The QoS port architecture for 10GE only mode is as follows (Rx/Tx): When you switch between mixed-mode QoS and 10GE only mode, service is temporarily lost on the RSP720-10GE uplinks. In addition, when you switch between modes, any existing QoS configuration on the uplinks is lost. You must reconfigure QoS. When you switch from 10GE only to mixed-mode QoS, you must issue the noshutdown command on each of the three 1GE ports to resume QoS service on those ports. In 10GE only mode, the 1GE ports are visible but they remain in an administratively down state.
ExamplesThe following example shows how to configure the RSP720-10GE to run QoS on 10GE ports only:
Router(config)# mls qos supervisor 10g-only
The following ports will be shut to enable 10g-only mode:
Gix/1 Gix/2 Gix/3
The following example shows how in a redundant setup (High Availability), the 1GE uplink ports on both supervisors are shut down even though the redundant links are not used:
Router(config)# mls qos supervisor 10g-only
The following ports will be shut to enable 10g-only mode:
Gi6/1 Gi6/2 Gi6/3 Gi5/1 Gi5/2 Gi5/3
mls qos trustTo configure the quality of service (QoS) port trust state and to classify traffic by examining the class of service (CoS) or differentiated services code point (DSCP) value, use the mlsqostrust command in interface configuration mode. To return a port to its untrusted state, use the no form of this command. Syntax DescriptionCommand History
Usage GuidelinesPackets that enter a QoS domain are classified at its edge. Because the packets are classified at the edge, the switch port within the QoS domain can be configured to a trusted state. It is not necessary to classify the packets at every switch within the domain. Use the mlsqostrust command to set the trusted state of an interface and to indicate which fields of the packet are used to classify traffic. When a port is configured with trust DSCP or trust IP precedence and the incoming packet is a non-IP packet, the CoS-to-DSCP map is used to derive the corresponding DSCP value from the CoS value. The CoS can be the packet CoS for trunk ports or the port default CoS for nontrunk ports. If the DSCP is trusted, the DSCP field of the IP packet is not modified. However, it is still possible that the CoS value of the packet is modified (according to DSCP-to-CoS map). If the CoS is trusted, the CoS field of the packet is not modified, but the DSCP can be modified (according to CoS-to-DSCP map) if the packet is an IP packet. The trusted boundary with Cisco device verification feature, implemented with the devicecisco-phone keywords, prevents security problems if users connect a non-phone device to a switch port that is configured to support a Cisco IP phone. You must globally enable CDP on the switch and on the port connected to the IP phone. If a Cisco IP phone is not detected, QoS does not apply any configured nondefault trust setting, which prevents misuse of a high-priority queue. If you configure the trust setting for DSCP or IP precedence, the DSCP or IP precedence values in the incoming packets are trusted. If you configure the mlsqoscosoverride interface configuration command on the switch port connected to the IP phone, the switch overrides the CoS of the incoming voice and data packets and assigns the default CoS value to them. For an inter-QoS domain boundary, you can configure the port to the DSCP-trusted state and apply the DSCP-to-DSCP-mutation map if the DSCP values are different between the QoS domains. Classification using a port trust state (for example, mls qos trust [cos | dscp | ip-precedence] and a policy map (for example, service-policyinputpolicy-map-name) are mutually exclusive. The last one configured overwrites the previous configuration. The following conditions apply to the mlsqostrust command running on the Catalyst 6500 series switches or the Cisco 7600 series routers:
mls qos trust extendTo configure the trust mode of the phone, use the mlsqostrustextend command in interface configuration mode. To return to the default settings, use the no form of this command. Usage GuidelinesThis command is not supported on WAN modules. If you set the phone to trusted mode, all the packets from the PC are sent untouched directly through the phone to the Cisco 7600 series router. If you set the phone to untrusted mode, all the traffic coming from the PC are remarked with the configured CoS value before being sent to the Cisco 7600 series router. Each time that you enter the mlsqostrustextend command, the mode is changed. For example, if the mode was previously set to trusted, if you enter the command, the mode changes to untrusted. Enter the showqueueinginterface command to display the current trust mode. ExamplesThis example shows how to set the phone that is attached to the switch port in trust mode: Router(config-if)# interface fastethernet5/1 Router(config-if)# mls qos trust extend This example shows how to change the mode to untrusted and set the remark CoS value to 3: Router(config-if)# interface fastethernet5/1 Router(config-if)# mls qos trust extend cos 3 This example shows how to set the configuration to the default mode: Router(config-if)# interface fastethernet5/1 Router(config-if)# no mls qos trust extend mls qos tunnel gre input uniform-modeTo enable the original quality of service (QoS) marking of ingress packets to be copied into the differentiated services code point (DSCP) field of the ingress packet and the Generic Routing Encapsulation (GRE) header, use the mlsqostunnelgreinputuniform-mode command in interface configuration mode. To disable the copying operation, use the no form of this command. Usage GuidelinesThis command is supported only in PFC3C mode or PFC3CXL mode. Enter the showmlsqos command to verify the configuration. mls qos vlan-basedTo enable per-VLAN quality of service (QoS) for a Layer 2 interface, use the mlsqosvlan-basedcommand in interface configuration mode. To disable per-VLAN QoS for a Layer 2 interface, use the no form of this command. Usage GuidelinesThis command is supported on switch-port and port-channel interfaces only. In VLAN-based mode, the policy map that is attached to the Layer 2 interface is ignored, and QoS is driven by the policy map that is attached to the corresponding VLAN interface. You can configure per-VLAN QoS only on Layer 2 interfaces.
monitor pidsTo configure the program identifiers (PIDs) to be monitored in the Media Delivery Index (MDI) flow, use the monitorpids command in the monitor metric mdi mode. To auto-learn the PIDs, use the no form of this command. Usage GuidelinesUse themonitorpidscommand to configure the PIDs to monitor in a MDI flow. By default, the first five PIDs in a new MDI flow stream are logged for monitoring. These PIDs can be video, audio or caption PIDs. However, monitoring PIDs for audio or caption data is not a priority for a customer implementing inline video monitoring, and is optional. mpls experimentalTo configure Multiprotocol Label Switching (MPLS) experimental (EXP) levels for a virtual circuit (VC) class that can be assigned to a VC bundle and thus applied to all VC members of that bundle, use the mplsexperimentalcommand in VC-class configuration mode. To remove the MPLS EXP levels from the VC class, use the no form of this command. To configure the MPLS EXP levels for a VC member of a bundle, use the mplsexperimentalcommand in bundle-vc configuration mode. To remove the MPLS EXP levels from the VC, use the no form of this command. Command DefaultDefaults to other, that is, any MPLS EXP levels in the range from 0 to 7 that are not explicitly configured. Command Modes
Command History
Usage GuidelinesAssignment of MPLS EXP levels to VC bundle members allows you to create differentiated service because you can distribute the MPLS EXP levels over the different VC bundle members. You can map a single level or a range of levels to each discrete VC in the bundle, thereby enabling VCs in the bundle to carry packets marked with different levels. Alternatively, you can configure a VC with the mplsexperimentalother command to indicate that it can carry traffic marked with levels not specifically configured for it. Only one VC in the bundle can be configured with the mplsexperimentalother command to carry all levels not specified. This VC is considered the default one. To use this command in VC-class configuration mode, enter the vc-classatm global configuration command before you enter this command. This command has no effect if the VC class that contains the command is attached to a standalone VC, that is, if the VC is not a bundle member. To use this command to configure an individual bundle member in bundle-VC configuration mode, first enter the bundle command to enact bundle configuration mode for the bundle to which you want to add or modify the VC member to be configured. Then use the pvc-bundle command to specify the VC to be created or modified and enter bundle-VC configuration mode. VCs in a VC bundle are subject to the following configuration inheritance guidelines (listed in order of next highest MPLS EXP level):
ExamplesThe following example configures a class named control-class that includes an mplsexperimentalcommand that, when applied to a bundle, configures all VC members of that bundle to carry MPLS EXP level 7 traffic. Note that VC members of that bundle can be individually configured with the mplsexperimentalcommand at the bundle-vc level, which would supervene. vc-class atm control-class mpls experimental 7 The following example configures a permanent virtual circuit (PVC) 401, named control-class, to carry traffic with MPLS EXP levels in the range of 4 to 2, overriding the level mapping set for the VC through VC-class configuration: pvc-bundle control-class 401 mpls experimental 4-2 Related Commands
© 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|