当前位置:中国易下载软件教材中心文章中心网络技术路由交换 → QoS 配置基础

QoS 配置基础

减小字体 增大字体 作者:佚名  来源:不详  发布时间:2007-12-14 2:08:32
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
喜欢这些内容嘛,请告诉你身边的朋友,易下载中心-QQ资源-itnetcn.com一起享受这份乐趣,本站内容来源互联网
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Configuration of QoS Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  In last month's newsletter I discussed the mechanisms QoS provides for Y3E海岸线网络安全资讯站
  delivering traffic with different priorities and assurances. This month Y3E海岸线网络安全资讯站
  we are going to look at the specific configurations for enabling the Y3E海岸线网络安全资讯站
  QoS assurances. Configuration of QoS is somewhat confusing as there are Y3E海岸线网络安全资讯站
  many types of QoS "knobs" that can be configured on a router or a Y3E海岸线网络安全资讯站
  switch. Hopefully this newsletter will provide the necessary Y3E海岸线网络安全资讯站
  instruction for getting through some of the complexities of QoS Y3E海岸线网络安全资讯站
  configurations. This newsletter focuses on the QoS configurations Y3E海岸线网络安全资讯站
  relevant to Cisco IOS not CatOS. Layer2 QoS is another topic entirely Y3E海岸线网络安全资讯站
  and will be reserved for future newsletters. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  To refresh our memory from last month, let's review QoS briefly. QoS is Y3E海岸线网络安全资讯站
  a set of tools, or "knobs" as they are sometimes called, that are Y3E海岸线网络安全资讯站
  configured on network elements (usually routers and switches) to Y3E海岸线网络安全资讯站
  enforce traffic delivery policies for certain types of traffic. QoS can Y3E海岸线网络安全资讯站
  be broken down into three levels or models to provide end-to-end levels Y3E海岸线网络安全资讯站
  of service to traffic delivered over the network infrastructure. These Y3E海岸线网络安全资讯站
  models are called best-effort service, integrated service and Y3E海岸线网络安全资讯站
  differentiated service. Within these models, QoS defines different Y3E海岸线网络安全资讯站
  techniques to handle traffic. These techniques are congestion Y3E海岸线网络安全资讯站
  avoidance, congestion management, policing and traffic shaping. We will Y3E海岸线网络安全资讯站
  focus on the configuration of the congestion management techniques in Y3E海岸线网络安全资讯站
  this newsletter. Congestion avoidance, policing and traffic shaping Y3E海岸线网络安全资讯站
  techniques will be discussed next month. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Congestion Management Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Congestion management techniques control the prioritization of traffic Y3E海岸线网络安全资讯站
  as it leaves the queues, it does not minimize congestion. Cisco Y3E海岸线网络安全资讯站
  provides several different techniques for providing congestion Y3E海岸线网络安全资讯站
  management. The mechanisms include First In First Out Queuing (FIFO), Y3E海岸线网络安全资讯站
  Weighted Fair Queuing (WFQ), Priority Queuing and Custom Queuing. In Y3E海岸线网络安全资讯站
  addition, there is Class Based Weighted Fair Queuing (CBWFQ), IP RTP Y3E海岸线网络安全资讯站
  Priority (or Priority Queue WFQ) and Low Latency Queuing (LLC). Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  First in First Out Queuing (FIFO) Y3E海岸线网络安全资讯站
  FIFO has no concept of priority or classes of traffic and does not Y3E海岸线网络安全资讯站
  provide any prioritization of packets Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Weighted Fair Queueing (WFQ) Y3E海岸线网络安全资讯站
  WFQ provides allocation of bandwidth to network conversations. Weights Y3E海岸线网络安全资讯站
  are assigned based on source and destination patterns. WFQ Y3E海岸线网络安全资讯站
  automatically gives precedence for low-volume traffic such as telnet Y3E海岸线网络安全资讯站
  and HTTP over high volume traffic such as FTP. WFQ is enabled by Y3E海岸线网络安全资讯站
  default on interfaces that run below E1 speeds (2.048 Mbps). Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Priority Queuing (PQ) Y3E海岸线网络安全资讯站
  PQ allows you to define four queues for traffic prioritization. Traffic Y3E海岸线网络安全资讯站
  is matched using match criteria such as IP address, port numbers and Y3E海岸线网络安全资讯站
  interfaces. The four priorities are defined as high, medium, normal and Y3E海岸线网络安全资讯站
  low. The queues are served in a preferential manner. The router will Y3E海岸线网络安全资讯站
  not service the lower-priority queues until all packets from the Y3E海岸线网络安全资讯站
  higher-priority queues have been delivered. This can be detrimental if Y3E海岸线网络安全资讯站
  not configured properly as all of the bandwidth can be consumed by the Y3E海岸线网络安全资讯站
  higher-priority queues, not allowing the router to transmit data out of Y3E海岸线网络安全资讯站
  the other queues. Let's say you want to do the following for traffic Y3E海岸线网络安全资讯站
  being forwarded out interface serial 0. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Telnet (TCP port 23) traffic is assigned to the high-priority queue. Y3E海岸线网络安全资讯站
  AppleTalk and IPX are given the medium-priority queue. Y3E海岸线网络安全资讯站
  All other IP traffic is assigned to the normal-priority queue. Y3E海岸线网络安全资讯站
  All other traffic is assigned to the low-priority queue (as default) Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Below is the configuration: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  priority-list 2 protocol ip high tcp 23 Y3E海岸线网络安全资讯站
  priority-list 2 protocol ip high list 1 Y3E海岸线网络安全资讯站
  priority-list 2 protocol interface ethernet 0 medium Y3E海岸线网络安全资讯站
  priority-list 2 protocol ip normal Y3E海岸线网络安全资讯站
  priority-list 2 queue-limit 15 20 20 30 Y3E海岸线网络安全资讯站
  ! Y3E海岸线网络安全资讯站
  access-list 1 permit 131.108.0.0 0.0.255.255 Y3E海岸线网络安全资讯站
  ! Y3E海岸线网络安全资讯站
  interface serial 0 Y3E海岸线网络安全资讯站
  priority-group 2 Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  You can change the default number of packets in each queue by using the Y3E海岸线网络安全资讯站
  following command: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Priority-list list-number queue-limit high-limit medium-limit normal- Y3E海岸线网络安全资讯站
  limit low-limit Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  This is not recommended!!!!! Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Custom Queuing (CQ) Y3E海岸线网络安全资讯站
  CQ provides the same type of classification of packets as PQ with 16 Y3E海岸线网络安全资讯站
  queues instead of four. In addition, CQ allows the number of bytes to Y3E海岸线网络安全资讯站
  be specified for forwarding each time the queue is serviced. The queues Y3E海岸线网络安全资讯站
  are serviced in a round-robin fashion. By servicing each queue in a Y3E海岸线网络安全资讯站
  round-robin fashion, CQ ensures that no application receives more than Y3E海岸线网络安全资讯站
  a predetermined amount of overall bandwidth. Let's say you want to do Y3E海岸线网络安全资讯站
  the following for traffic being forwarded out interface serial 0. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Traffic from E0 is assigned to queue 1. Y3E海岸线网络安全资讯站
  IP traffic is sent to queue 2. Y3E海岸线网络安全资讯站
  IPX traffic goes to queue 3. Y3E海岸线网络安全资讯站
  AppleTalk traffic goes to queue 4 Y3E海岸线网络安全资讯站
  Queue 5 is the default queue. Traffic that is not from E0 or is not Y3E海岸线网络安全资讯站
  IP-, IPX- or AppleTalk-based is sent to this queue. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  The configuration would be as follows: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  queue-list 1 interface E0 1 Y3E海岸线网络安全资讯站
  queue-list 1 protocol ip 2 Y3E海岸线网络安全资讯站
  queue-list 1 protocol ipx 3 Y3E海岸线网络安全资讯站
  queue-list 1 protocol appletalk 4 Y3E海岸线网络安全资讯站
  queue-list 1 default 5 Y3E海岸线网络安全资讯站
  ! Y3E海岸线网络安全资讯站
  Interface serial 0 Y3E海岸线网络安全资讯站
  custom-queue-list 1 Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  CQ allows for granularity on the number of packets in any queue and the Y3E海岸线网络安全资讯站
  number of bytes delivered from a queue. This is done by using the Y3E海岸线网络安全资讯站
  following commands: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  queue-list 1 queue 10 limit 40 (limit number of packets) Y3E海岸线网络安全资讯站
  queue-list 1 queue 10 byte-count 1400 (set byte count) Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  In addition, access lists can be used to identify what applications are Y3E海岸线网络安全资讯站
  serviced by each queue. Instead of just configuring IP in queue 2 you Y3E海岸线网络安全资讯站
  could add a protocol number or access list to the queue list command. Y3E海岸线网络安全资讯站
  For example: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  queue-list 1 protocol ip 2 TCP 23 (TCP) OR Y3E海岸线网络安全资讯站
  queue-list 1 protocol ip 2 list 10 (where 10 is an access list defining Y3E海岸线网络安全资讯站
  certain traffic types) Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  More Congestion Management Techniques Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  The last three types of congestion management techniques are presented Y3E海岸线网络安全资讯站
  separately as they utilize enhancements and combinations of the Y3E海岸线网络安全资讯站
  previous queuing techniques. The following queuing techniques are used Y3E海岸线网络安全资讯站
  primarily in IP telephony environments as they have the ability to give Y3E海岸线网络安全资讯站
  more granular prioritization to voice traffic. Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  Class Based Weighted Fair Queuing (CBWFQ) Y3E海岸线网络安全资讯站
  CBWFQ extends WFQ to provide user-defined classes using match criteria. Y3E海岸线网络安全资讯站
  Queues are reserved for each class, and characteristics are assigned to Y3E海岸线网络安全资讯站
  each queue. The characteristics include bandwidth, weight and queue Y3E海岸线网络安全资讯站
  limit. The way CBWFQ works is as follows: Match criteria filters and Y3E海岸线网络安全资讯站
  classify packets first and then each packet is assigned a weight. The Y3E海岸线网络安全资讯站
  weight is derived from the bandwidth you assigned to the class. Y3E海岸线网络安全资讯站
  Finally, each packet is placed in the appropriate queue and serviced Y3E海岸线网络安全资讯站
  according to the weights. In order to configure this on a Cisco router, Y3E海岸线网络安全资讯站
  you must perform the following three processes: Y3E海岸线网络安全资讯站
  Y3E海岸线网络安全资讯站
  * Class Map Process: Define the traffic classes (i.e., what packets Y3E海岸线网络安全资讯站
  are going to be matched and by what criteria). Y3E海岸线网络安全资讯站
  * Class Policy Process: Specify the policies for each class