Configuring Quality of Service Acl
Configuring Quality of Service Acl
With QoS enabled, an Ethernet switching device uses Ethernet QoS technology to provide different levels of
QoS guarantees to support traffic flows that have higher delay and jitter requirements.
Access control list (ACL) contains an ordered list of access control entries (ACEs). Each ACE specifies permit
or deny and a set of conditions that a packet must meet in order to match the ACEs. When an interface receives
a packet, the device tests the packet against the conditions in the ACL. The first match decides whether the
device accepts or rejects the packet. The device stops testing after the first match.
Combining QoS and ACL associates traffic rules with traffic operations that use ACL. You can perform QoS
functions, such as, packet filtering, commit access rate, traffic mirroring, traffic redirection, and so on, by
referencing an ACL.
0 000 Spare
1 001 Background
5 101 Video
6 110 Voice
0 000 Routine
1 001 Priority
2 010 Immediate
3 011 Flash
5 101 Critical
6 110 Internet
7 111 Network
Differentiated Services, which is defined in RFC 2474, increases the number of definable priority levels. The
Differenciated Services field in a packet makes per-hop behavior decisions about packet classification and
traffic conditioning functions, such as metering, marking, shaping, and policing.
In a Differenciated Services field, the first six bits (0 to 5) of a ToS field represent DSCP. The Differentiated
Services network defines the following four types of traffic:
• Expedited Forwarding (EF) class, which is applicable to low-delay, low-loss, low-jitter, and
bandwidth-priority services (such as virtual leased lines), regardless of whether other traffic share its
link.
• Assured Forwarding (AF) class, which is divided into four subcategories (AF1, AF2, AF3, AF4). Each
AF class is divided into three drop precedence, which is used to classify the AF business. An AF class
has a lower QoS level than an EF class.
• Class Selector (CS) evolves from the IP ToS field, which has a total of eight categories.
• Best Effort (BE) is a special category of CS, and there is no guarantee. An AF class is downgraded to
BE class after overrun. The existing IP network traffic is also defaulted to this category.
0 000000 BE
46 101110 EF
10 001010 AF1
18 010010 AF2
26 011010 AF3
34 100010 AF4
8 001000 CS1
16 010000 CS2
24 011000 CS3
32 100000 CS4
40 101000 CS5
48 110000 CS6
56 111000 CS7
Procedure
Step 2 rate-limit input {[ip-group { num | name } (Optional) Sets the traffic rate limit. Some
[subitem subitem] ] [ link-group { num | devices support traffic only in the inbound
name } [ subitem subitem ] ] } target-rate direction. Some other devices support both
inbound and outbound traffic.
Example:
Device(config)# rate-limit input ip-group
4 100
Step 2 traffic-redirect {[ ip-group { num | name }[ (Optional) Sets an instruction to forward the
subitem subitem] ] [ link-group{ num | messages to an egress port.
name } [ subitem subitem ]] } { [ interface
interface-num | cpu ] }
Example:
Device(config)# traffic-redirect
link-group link1 interface ethenet0/1
Procedure
Step 2 traffic-copy-to-cpu {[ ip-group { num | Copies the packets that match an ACL rule to
name} [ subitem subitem ] ][ link-group a CPU.
{ num| name } [subitem subitem] ] }
Example:
Device(config)# traffic-copy-to-cpu
ip-group 3
Procedure
Step 2 traffic-statistic { [ ip-group { num | name (Optional) Configures the device to collect
}[subitem subitem] ][link-group { num| traffic statistics. This command displays a
name } [ subitem subitem] ] } cumulative value of the count of the number of
packets that match the ACL rule.
Example:
Step 3 clear traffic-statistic { [all |[ ip-group { (Optional) Clears the traffic statistics
num | name }[subitem subitem] information.
][link-group { num| name } [ subitem
subitem] ] ] }
Example:
Device# clear traffic-statistic all
Command Operation
show qos-info all Displays all parameters of QoS that are set for a device.
show qos-info statistic Displays the total number of rules that are configured for each QoS
parameter.
show qos-info traffic-copy-to-cpu Displays the parameter settings for copying the messages to a CPU.
show qos-info mirrored-to Displays the ports to which the messages are copied.
show qos-info traffic-priority Displays the parameters that are configured for priority marking of the
packets that match an ACL rule.
show qos-info traffic-redirect Displays the parameters that are configured for redirecting the packets
that match an ACL rule.
show qos-info traffic-statistic Displays the statistics for the QoS traffic.
show qos-interface rate-limit Displays the rate-limit configuration information of all ports.
show qos-interface statistic Displays all the rules for rate limit that are set on a device.
The following example shows how you can redirect traffic through port e1/1 using HTTP to access internet
through e1/2:
Device# configure terminal
Device(config)# time-range a
Device(config-timerange-a)# periodic weekdays daily 08:30:00 to 18:00:00
Device(config-timerange-a)# exit
Device(config)# time-range b
Device(config-timerange-b)# periodic weekdays 00:00:00 to 08:30:00
Device(config-timerange-b)# periodic weekend 00:00:00 to 23:59:00
Device(config-timerange-b)# exit
The following example shows to configure an ACL to access the internet using HTTP message classification
at different time periods: