- ·上一篇文章:WAN的配置资料
- ·下一篇文章:Cisco路由器的基本配置
QoS 配置基础
All other IP traffic is assigned to the normal-priority queue.
All other traffic is assigned to the low-priority queue (as default)
Below is the configuration:
priority-list 2 protocol ip high tcp 23
priority-list 2 protocol ip high list 1
priority-list 2 protocol interface ethernet 0 medium
priority-list 2 protocol ip normal
priority-list 2 queue-limit 15 20 20 30
!
access-list 1 permit 131.108.0.0 0.0.255.255
!
interface serial 0
priority-group 2
You can change the default number of packets in each queue by using the
following command:
Priority-list list-number queue-limit high-limit medium-limit normal-
limit low-limit
This is not recommended!!!!!
Custom Queuing (CQ)
CQ provides the same type of classification of packets as PQ with 16
queues instead of four. In addition, CQ allows the number of bytes to
be specified for forwarding each time the queue is serviced. The queues
are serviced in a round-robin fashion. By servicing each queue in a
round-robin fashion, CQ ensures that no application receives more than
a predetermined amount of overall bandwidth. Let's say you want to do
the following for traffic being forwarded out interface serial 0.
Traffic from E0 is assigned to queue 1.
IP traffic is sent to queue 2.
IPX traffic goes to queue 3.
AppleTalk traffic goes to queue 4
Queue 5 is the default queue. Traffic that is not from E0 or is not
IP-, IPX- or AppleTalk-based is sent to this queue.
The configuration would be as follows:
queue-list 1 interface E0 1
queue-list 1 protocol ip 2
queue-list 1 protocol ipx 3
queue-list 1 protocol appletalk 4
queue-list 1 default 5
!
Interface serial 0
custom-queue-list 1
CQ allows for granularity on the number of packets in any queue and the
number of bytes delivered from a queue. This is done by using the
following commands:
queue-list 1 queue 10 limit 40 (limit number of packets)
queue-list 1 queue 10 byte-count 1400 (set byte count)
In addition, access lists can be used to identify what applications are
serviced by each queue. Instead of just configuring IP in queue 2 you
could add a protocol number or access list to the queue list command.
For example:
queue-list 1 protocol ip 2 TCP 23 (TCP) OR
queue-list 1 protocol ip 2 list 10 (where 10 is an access list defining
certain traffic types)
More Congestion Management Techniques
The last three types of congestion management techniques are presented
separately as they utilize enhancements and combinations of the
previous queuing techniques. The following queuing techniques are used
primarily in IP telephony environments as they have the ability to give
more granular prioritization to voice traffic.
Class Based Weighted Fair Queuing (CBWFQ)
CBWFQ extends WFQ to provide user-defined classes using match criteria.
Queues are reserved for each class, and characteristics are assigned to
each queue. The characteristics include bandwidth, weight and queue
All other traffic is assigned to the low-priority queue (as default)
Below is the configuration:
priority-list 2 protocol ip high tcp 23
priority-list 2 protocol ip high list 1
priority-list 2 protocol interface ethernet 0 medium
priority-list 2 protocol ip normal
priority-list 2 queue-limit 15 20 20 30
!
access-list 1 permit 131.108.0.0 0.0.255.255
!
interface serial 0
priority-group 2
You can change the default number of packets in each queue by using the
following command:
Priority-list list-number queue-limit high-limit medium-limit normal-
limit low-limit
This is not recommended!!!!!
Custom Queuing (CQ)
CQ provides the same type of classification of packets as PQ with 16
queues instead of four. In addition, CQ allows the number of bytes to
be specified for forwarding each time the queue is serviced. The queues
are serviced in a round-robin fashion. By servicing each queue in a
round-robin fashion, CQ ensures that no application receives more than
a predetermined amount of overall bandwidth. Let's say you want to do
the following for traffic being forwarded out interface serial 0.
Traffic from E0 is assigned to queue 1.
IP traffic is sent to queue 2.
IPX traffic goes to queue 3.
AppleTalk traffic goes to queue 4
Queue 5 is the default queue. Traffic that is not from E0 or is not
IP-, IPX- or AppleTalk-based is sent to this queue.
The configuration would be as follows:
queue-list 1 interface E0 1
queue-list 1 protocol ip 2
queue-list 1 protocol ipx 3
queue-list 1 protocol appletalk 4
queue-list 1 default 5
!
Interface serial 0
custom-queue-list 1
CQ allows for granularity on the number of packets in any queue and the
number of bytes delivered from a queue. This is done by using the
following commands:
queue-list 1 queue 10 limit 40 (limit number of packets)
queue-list 1 queue 10 byte-count 1400 (set byte count)
In addition, access lists can be used to identify what applications are
serviced by each queue. Instead of just configuring IP in queue 2 you
could add a protocol number or access list to the queue list command.
For example:
queue-list 1 protocol ip 2 TCP 23 (TCP) OR
queue-list 1 protocol ip 2 list 10 (where 10 is an access list defining
certain traffic types)
More Congestion Management Techniques
The last three types of congestion management techniques are presented
separately as they utilize enhancements and combinations of the
previous queuing techniques. The following queuing techniques are used
primarily in IP telephony environments as they have the ability to give
more granular prioritization to voice traffic.
Class Based Weighted Fair Queuing (CBWFQ)
CBWFQ extends WFQ to provide user-defined classes using match criteria.
Queues are reserved for each class, and characteristics are assigned to
each queue. The characteristics include bandwidth, weight and queue

