inaitlab.com/configure/6419.html‘ title=‘文章标题:QoS 配置基础 作者:更新时间:2002-12-29 18:27:00‘ target=‘_sel
来源: 作者: 出处:巧巧读书 2006-09-05 进入讨论组Configuration of QoS
In last month's newsletter I discussed the mechanisms QoS provides for
delivering traffic with different priorities and assurances. This month
we are going to look at the specific configurations for enabling the
QoS assurances. Configuration of QoS is somewhat confusing as there are
many types of QoS "knobs" that can be configured on a router or a
switch. Hopefully this newsletter will provide the necessary
instruction for getting through some of the complexities of QoS
configurations. This newsletter focuses on the QoS configurations
relevant to Cisco IOS not CatOS. Layer2 QoS is another topic entirely
and will be reserved for future newsletters.
To refresh our memory from last month, let's review QoS briefly. QoS is
a set of tools, or "knobs" as they are sometimes called, that are
configured on network elements (usually routers and switches) to
enforce traffic delivery policies for certain types of traffic. QoS can
be broken down into three levels or models to provide end-to-end levels
of service to traffic delivered over the network infrastructure. These
models are called best-effort service, integrated service and
differentiated service. Within these models, QoS defines different
techniques to handle traffic. These techniques are congestion
avoidance, congestion management, policing and traffic shaping. We will
focus on the configuration of the congestion management techniques in
this newsletter. Congestion avoidance, policing and traffic shaping
techniques will be discussed next month.
Congestion Management
Congestion management techniques control the prioritization of traffic
as it leaves the queues, it does not minimize congestion. Cisco
provides several different techniques for providing congestion
management. The mechanisms include First In First Out Queuing (FIFO),
Weighted Fair Queuing (WFQ), Priority Queuing and Custom Queuing. In
addition, there is Class Based Weighted Fair Queuing (CBWFQ), IP RTP
Priority (or Priority Queue WFQ) and Low Latency Queuing (LLC).
First in First Out Queuing (FIFO)
FIFO has no concept of priority or classes of traffic and does not
provide any prioritization of packets
Weighted Fair Queueing (WFQ)
WFQ provides allocation of bandwidth to network conversations. Weights
are assigned based on source and destination patterns. WFQ
automatically gives precedence for low-volume traffic such as telnet
and HTTP over high volume traffic such as FTP. WFQ is enabled by
default on interfaces that run below E1 speeds (2.048 Mbps).
Priority Queuing (PQ)
PQ allows you to define four queues for traffic prioritization. Traffic
is matched using match criteria such as IP address, port numbers and
interfaces. The four priorities are defined as high, medium, normal and
low. The queues are served in a preferential manner. The router will
not service the lower-priority queues until all packets from the
higher-priority queues have been delivered. This can be detrimental if
not configured properly as all of the bandwidth can be consumed by the
higher-priority queues, not allowing the router to transmit data out of
the other queues. Let's say you want to do the following for traffic
being forwarded out interface serial 0.
Telnet (TCP port 23) traffic is assigned to the high-priority queue.
AppleTalk and IPX are given the medium-priority queue.
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
limit. The way CBWFQ works is as follows: Match criteria filters and
classify packets first and then each packet is assigned a weight. The
weight is derived from the bandwidth you assigned to the class.
Finally, each packet is placed in the appropriate queue and serviced
according to the weights. In order to configure this on a Cisco router,
you must perform the following three processes:
* Class Map Process: Define the traffic classes (i.e., what packets
are going to be matched and by what criteria).
* Class Policy Process: Specify the policies for each clas
较早的文章:CISCONAT的配置方法
较新的文章:inaitlab.com/configure/6435.html‘ title=‘文章标题:ISDN简单举例 作者:更新时间:2002-12-30 17:12:00‘ target=‘_sel
较新的文章:inaitlab.com/configure/6435.html‘ title=‘文章标题:ISDN简单举例 作者:更新时间:2002-12-30 17:12:00‘ target=‘_sel
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
·网管眼中的5款远程控制软件 (96573次浏览)
·ARP病毒解决办法 (32444次浏览)
·图解:网络Ghost克隆操作全程 (28128次浏览)
·网络管理中的11大绝招 (10890次浏览)
·针对ARP病毒攻击防制进阶经验谈 (8405次浏览)
·从网吧ARP欺骗看局域网的安全管理 (8327次浏览)
·常见路由器的设置方法 (8263次浏览)
·ARP病毒攻击技术分析与防御 (8210次浏览)
·网吧电影服务器解决方案完全指南(1) (7215次浏览)
·ARP病毒问题的处理 (6086次浏览)
·ARP病毒解决办法 (32444次浏览)
·图解:网络Ghost克隆操作全程 (28128次浏览)
·网络管理中的11大绝招 (10890次浏览)
·针对ARP病毒攻击防制进阶经验谈 (8405次浏览)
·从网吧ARP欺骗看局域网的安全管理 (8327次浏览)
·常见路由器的设置方法 (8263次浏览)
·ARP病毒攻击技术分析与防御 (8210次浏览)
·网吧电影服务器解决方案完全指南(1) (7215次浏览)
·ARP病毒问题的处理 (6086次浏览)
·丢包严重 恼人的接触不良 08-22
·10/100M自适应端口影响网络连接故障 08-20
·让远程桌面发挥效力 08-20
·Ubuntu 7.04下Virtualbox安装及网络桥接 08-20
·网络基础:特殊用途的IP地址介绍 08-17
·看看你是吗?七种最不安全的网络管理员 08-16
·局域网实现监听的基本原理 08-15
·优秀的系统集成工程师应具备的技能 08-15
·接错VLAN端口导致网络不通故障解决 08-14
·菜鸟宝典:局域网常见问题解答 08-14
·10/100M自适应端口影响网络连接故障 08-20
·让远程桌面发挥效力 08-20
·Ubuntu 7.04下Virtualbox安装及网络桥接 08-20
·网络基础:特殊用途的IP地址介绍 08-17
·看看你是吗?七种最不安全的网络管理员 08-16
·局域网实现监听的基本原理 08-15
·优秀的系统集成工程师应具备的技能 08-15
·接错VLAN端口导致网络不通故障解决 08-14
·菜鸟宝典:局域网常见问题解答 08-14
最新论坛文章
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
站内频道文章精选
百度推荐,商机无限
搜索您感兴趣的内容



