573
Configuring QoS
Understanding QoS
You can optionally include keywords to evaluate these match commands by entering
class-map match-any
or
class-map match-all
. If you specify
match-any
, the traffic being evaluated must match
one
of the specified criteria.
If you specify
match-all
, the traffic being evaluated must match
all
of the specified criteria. A
match-all
class map
can contain only one match statement, but a
match-any
class map can contain multiple match statements.
If you do not enter
match-all
or
match-any
, the default is to match all.
You use the
match
class-map configuration commands to specify criteria for classifying packets. If a packet matches
the specified criteria, that packet is considered a member of the class and is forwarded according to the QoS
specifications set in the traffic policy. Packets that fail to meet any of the matching criteria are classified as members
of the default traffic class.
2.
Create a traffic policy to associate the traffic class with one or more QoS features.
You use the
policy-map
policy-map-name
global configuration command to create a traffic policy and to enter
policy-map configuration mode. A traffic policy defines the QoS features to associate with the specified traffic class. A
traffic policy contains three elements: a name, a traffic class (specified with the
class
policy-map configuration
command), and the QoS policies configured in the class.
You name the traffic policy in the
policy-map
command line to enter policy-map configuration mode.
In policy-map configuration mode, enter the name of the traffic class used to classify traffic to the specified policy,
and enter policy-map class configuration mode.
In policy-map class configuration mode, you can enter the QoS features to apply to the classified traffic. These
include using the
set
,
police
, or
police aggregate
commands for input policy maps or the
bandwidth
,
priority
,
queue-limit
or
shape average
commands for output policy maps.
Note:
A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic class in
the traffic policy, the first traffic class defined in the policy is used. To configure more than one match criterion for
packets, you can associate multiple traffic classes with a single traffic policy.
3.
Attach the traffic policy to an interface.
You use the
service-policy
interface configuration command to attach the policy map to an interface for packets entering
or leaving the interface. You must specify whether the traffic policy characteristics should be applied to incoming or
outgoing packets. For example, entering the
service-policy output class1
interface configuration command attaches
all the characteristics of the traffic policy named
class1
to the specified interface. All packets leaving the specified
interface are evaluated according to the criteria specified in the traffic policy named
class1
.
Input and Output Policies
Policy maps are either input policy maps or output policy maps, attached to packets as they enter or leave the switch by
service policies applied to interfaces. Input policy maps perform policing and marking on received traffic. Policed packets
can be dropped or reduced in priority (marked down) if they exceed the maximum permitted rates. Output policy maps
perform scheduling and queuing on traffic as it leaves the switch.
Input policies and output policies have the same basic structure; the difference is in the characteristics that they regulate.
shows the relationship of input and output policies.
You can configure a maximum of 256 policy maps.
The number of configurable policer profiles on the switch is 256. The number of supported policer instances on the
switch is 1024 minus 1 more than the number of interfaces on the switch. On a 24-port switch, the number of available
policer instances is 999. You can use a policer profile in multiple instances.
You can apply one input policy map and one output policy map to an interface.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...