Huawei AR2200 Series Configuration Manual

Huawei AR2200 Series Configuration Manual

Enterprise routers v200r002c01
Hide thumbs Also See for AR2200 Series:
Table of Contents

Advertisement

Huawei AR2200 Series Enterprise Routers
V200R002C01
Configuration Guide - QoS
Issue
01
Date
2012-04-20
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei AR2200 Series

  • Page 1 Huawei AR2200 Series Enterprise Routers V200R002C01 Configuration Guide - QoS Issue Date 2012-04-20 HUAWEI TECHNOLOGIES CO., LTD.
  • Page 2 All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope.
  • Page 3: About This Document

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS About This Document About This Document Intended Audience This document describes the concepts and configuration procedures of QoS features on the AR2200, and provides the configuration examples. This document provides guidance for configuring QoS features.
  • Page 4: Command Conventions

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS About This Document Command Conventions The command conventions that may be found in this document are defined as follows. Convention Description Boldface The keywords of a command line are in boldface.
  • Page 5: Table Of Contents

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS Contents Contents About This Document........................ii 1 QoS Configuration........................1 1.1 QoS Overview..............................3 1.2 QoS Features Supported by the AR2200......................3 1.3 Configuring Priority Mapping..........................12 1.3.1 Establishing the Configuration Task.......................12 1.3.2 Configuring the Packet Priority Trusted by an Interface.................13 1.3.3 Setting the Default 802.1p Priority of an Interface..................14...
  • Page 6 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS Contents 1.8 Configuring HQoS............................39 1.8.1 Establishing the Configuration Task.......................39 1.8.2 Configuring a Traffic Policy........................41 1.8.2.1 Configuring a Sub Traffic Policy....................41 1.8.2.2 Configuring a Traffic Policy......................41 1.8.2.3 Applying the Traffic Policy to an Interface..................43 1.8.3 (Optional) Configuring Traffic Policing on an Interface.................43...
  • Page 7 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS Contents 2.4.11 Configuring Traffic Statistics........................99 2.4.12 Checking the Configuration........................99 2.5 Configuring a Traffic Policy...........................100 2.6 Maintaining a Traffic Policy...........................101 2.6.1 Displaying the Flow-based Traffic Statistics..................101 2.6.2 Clearing the Flow-based Traffic Statistics....................101 2.7 Configuration Examples..........................102...
  • Page 8: Qos Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration QoS Configuration About This Chapter This chapter describes common QoS functions on interfaces of the AR2200: priority mapping, traffic policing, traffic shaping, congestion management, congestion avoidance, and Hierarchical Quality of Service (HQoS). It also provides configuration methods and examples.
  • Page 9 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 1.10 Configuration Examples This section provides several configuration examples of traffic policing, traffic shaping, congestion avoidance, and congestion management. Issue 01 (2012-04-20) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 10: Qos Overview

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 1.1 QoS Overview QoS is designed to provide differentiated services based on networking requirements. QoS evaluates the capabilities of the service supplied to meet customer requirements. On the Internet, QoS is used to evaluate capabilities of a network to transmit packets.
  • Page 11: Priority Mapping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Feature Implementation Traffic policing Interface-based traffic policing can be applied to inbound and outbound WAN-side interfaces, but can only be applied to inbound LAN-side interfaces. Flow-based traffic policing can be applied to inbound and outbound interfaces.
  • Page 12: Traffic Policing

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Table 1-2 Mappings between local priorities and queues Local Priority Queue Index Traffic Policing Traffic policing limits the traffic and resource usage by monitoring the rate limit. Traffic policing discards the excess traffic to limit traffic within a proper range and to protect network resources.
  • Page 13 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Figure 1-1 Measuring traffic using token buckets Put tokens into the bucket at the specified rate Packets sent by the interface Continue to send packets Packets that do...
  • Page 14: Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration – Flow-based traffic policing limits incoming or outgoing service traffic matching traffic classification rules. Traffic Shaping Traffic shaping also limits traffic and resource usage by monitoring the rate limit. It also uses the token bucket technology to measure traffic.
  • Page 15: Congestion Avoidance

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Shapes all the packets that pass through an interface or a sub-interface. – Adaptive traffic shaping on an interface or a sub-interface Shapes all the packets that pass through an interface or a sub-interface.
  • Page 16: Congestion Management

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration WRED WRED also discards packets randomly to prevent global TCP synchronization. WRED, however, generates random numbers of packets based on packet priorities. WRED discards packets based on packet priorities, so the drop probability of packets with higher priorities is low.
  • Page 17 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration setting WRR weight values. When the average packet length in each queue is variable, you cannot obtain the required bandwidth by setting WRR weight values. – Delay-sensitive services, such as voice services, cannot be scheduled in a timely manner.
  • Page 18 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration EF queues have packets, packets in EF queues are sent first. Packets in other queues are sent only after EF queues are empty or the maximum reservable bandwidth of EF queues is exceeded.
  • Page 19: Configuring Priority Mapping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration classifier associated with the traffic behavior. Then the packets are classified by the sub traffic policy and the traffic behavior in the sub traffic policy is taken for the classified packets.
  • Page 20: Configuring The Packet Priority Trusted By An Interface

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration When the AR2200 is configured to use the priority of an interface, it maps the priority of the interface to the local priority based on priority mapping, determines the queues that packets enter, and can re-mark packet priorities.
  • Page 21: Setting The Default 802.1P Priority Of An Interface

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number[.subinterface-number] The interface view or sub-interface view is displayed. Step 3 Run: trust { 8021p | dscp } [ override ] The packet priority trusted by the interface is configured.
  • Page 22: Configuring A Priority Mapping Table

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Interface Configuration Whether a Received Processing Method Packet Carries a VLAN trust 8021p override The AR2200 searches for the mapping table between 802.1p priorities and other priorities based on the...
  • Page 23: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: qos map-table { dot1p-dot1p | dot1p-dscp | dot1p-lp | dscp-dot1p | dscp-dscp | dscp- lp } The priority mapping table view is displayed.
  • Page 24: Configuring Traffic Policing On An Interface

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration NOTE You can use interface-based traffic policing to: l Limit all the service traffic on an interface. l Limit the service traffic matching a specified ACL rule. l Limit the service traffic whose source and destination IP addresses within a specified range.
  • Page 25: Configuring Flow-Based Traffic Policing

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number[.subinterface-number] The interface view or sub-interface view is displayed. Step 3 Run the following commands as required.
  • Page 26: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Context To limit the rate of incoming or outgoing traffic matching traffic classification rules, configure flow-based traffic policing. A traffic policy can be applied to multiple interfaces. When the traffic rate exceeds the rate limit, traffic is discarded.
  • Page 27: Configuring Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration number virtual-access va-number | dialer number } { inbound | outbound } command to check the statistics on forwarded and discarded packets on the interface. ----End 1.5 Configuring Traffic Shaping Traffic shaping enables outgoing traffic to be sent out at an even rate and reduces the number of discarded packets whose rate exceeds the rate limit.
  • Page 28 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Feature Characteristics View Shaping Range Flow-based adaptive Dynamically adjusts traffic shaping shaping parameters based on the NQA result and is for use on links with variable bandwidth. You can configure one or two types of traffic shaping on an interface, but cannot configure the...
  • Page 29: Configuring Interface-Based Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Data Interface to which traffic shaping is applied Adaptive traffic profile parameters: adaptive traffic profile name, traffic shaping rate, traffic shaping rate adaptation step, interval at which the traffic shaping rate increases,...
  • Page 30: Configuring Interface-Based Adaptive Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Context To limit all the outgoing traffic on an interface, configure traffic shaping on the interface. Traffic shaping buffers the packets whose rate is greater than the traffic shaping rate. When there are sufficient tokens in the token bucket, the buffered packets are forwarded at an even rate.
  • Page 31 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration – The NQA test instance detects that the packet loss ratio is smaller than the lower threshold in the adaptive traffic profile three consecutive times and no congestion occurs on the outbound interface of the upstream device.
  • Page 32: Configuring Queue-Based Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration interface interface-type interface-number[.subinterface-number] The interface or sub-interface view is displayed. Run: qos gts adaptation-profile adaptation-profile-name The adaptive traffic profile is applied to the interface. ----End 1.5.4 Configuring Queue-based Traffic Shaping This section describes how to configure a queue profile, set traffic shaping parameters, and apply a traffic shaping profile to an interface.
  • Page 33: Configuring Flow-Based Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Step 6 Run: interface interface-type interface-number[.subinterface-number] The interface view or sub-interface view is displayed. Step 7 Run: qos queue-profile queue-profile-name The queue profile is applied to the interface or sub-interface.
  • Page 34 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration queue is full, packets are discarded. Flow-based adaptive traffic shaping provides differentiate services using complex traffic classification. Associate an NQA test instance with an adaptive traffic profile so that the Router can dynamically...
  • Page 35: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration The interval at which the traffic shaping rate increases is set. Run: rate-adjust loss low-threshold low-threshold-percentage high-threshold high- threshold-percentage The packet loss ratio range is set. Run: track nqa admin-name test-name An NQA test instance is bound to the adaptive traffic profile.
  • Page 36: Configuring Congestion Management

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration – Run the display qos queue-profile [ queue-profile-name ] command to check the queue profile configuration. Check the traffic shaping configuration in the traffic behavior view. – Run the display traffic behavior { system-defined | user-defined } [ behavior- name ] command to check the traffic behavior configuration.
  • Page 37: Configuring Queue-Based Congestion Management

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Class-based congestion management: The AR2200 provides EF, AF, and BE queues and different scheduling modes for packets matching traffic classifiers so that differentiated services can be provided. NOTE Queue-based congestion management and class-based congestion management cannot be configured simultaneously.
  • Page 38 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Context After packets enter queues on an interface based on priority mapping, they are scheduled according to rules. Interfaces on the AR2200 support different scheduling modes. PQ queues are scheduled first, and multiple queues are scheduled in descending order of priorities.
  • Page 39: Configuring Class-Based Congestion Management

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration By default, the length of a queue using PQ, DRR, or WRR on the LAN side is 5120 bytes; the length of a queue using PQ on the WAN side is 40960 bytes; the length of a queue using WFQ on the WAN side is 131072 bytes.
  • Page 40: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration CBQ Configuration Whether the Queue Whether Traffic Shaping Profile Can Be Can Be Configured (qos Configured (qos queue- gts or qos gts adaptation- profile (interface view)) profile) Main interface...
  • Page 41: Configuring Congestion Avoidance

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration – Run the display traffic classifier { system-defined | user-defined } [ classifier- name ] command to check the traffic classifier configuration. – Run the display traffic policy user-defined [ policy-name [ classifier classifier- name ] ] command to check the traffic policy configuration.
  • Page 42: Configuring Queue-Based Wred

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Configuring congestion management Data Preparation To configure queue-based congestion avoidance, you need the following data. Data Drop profile name and WRED parameters Queue profile name Interface and queue to which congestion avoidance is applied To configure flow-based congestion avoidance, you need the following data.
  • Page 43 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration NOTE Drop profiles can be bound to only queues using WFQ on the AR2200 WAN interfaces. Assume that the EXP priority in MPLS packets is a. The AR2200 searches for the DSCP priority that equals the EXP priority multiplied by eight (a x 8) in the drop profile.
  • Page 44: Configuring Flow-Based Wred

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration queue { start-queue-index [ to end-queue-index ] } &<1-10> drop-profile drop- profile-name A drop profile is bound to a queue in a queue profile. By default, no queue is bound to a drop profile. All queues use tail drop.
  • Page 45: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Configuring a drop profile Run: system-view The system view is displayed. Run: drop-profile drop-profile-name A drop profile is created and the drop profile view is displayed.
  • Page 46: Configuring Hqos

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Prerequisites All the congestion avoidance configurations are complete. Procedure Checking the queue-based congestion avoidance configuration – Run the display this command in the interface view to check the queue profile bound to the interface.
  • Page 47 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration policy. Table 1-4 lists the traffic classifiers and traffic behaviors allowed in traffic policies when traffic policy nesting is used. Table 1-4 Traffic classifiers and traffic behaviors allowed in traffic policies...
  • Page 48: Configuring A Traffic Policy

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Data Names of the traffic classifier, traffic behavior, and sub traffic policy, and related parameters Interface to which the traffic policy is applied (Optional) Interface-based traffic policing and traffic shaping parameters 1.8.2 Configuring a Traffic Policy...
  • Page 49 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Context Traffic shaping (gts (traffic behavior view) or gts adaptation-profile) must have been configured in the traffic behavior of the traffic policy before you configure a sub traffic policy.
  • Page 50: Applying The Traffic Policy To An Interface

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 1.8.2.3 Applying the Traffic Policy to an Interface A traffic policy takes effect only after it is applied to an interface. Context NOTE Traffic policy nesting can only be configured for outgoing traffic on AR2200 WAN-side interfaces.
  • Page 51: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Context The AR2200 supports three levels of shapers, that is, flow queue shaper, subscriber queue shaper, and port queue shaper. The gts (traffic behavior view) or gts adaptation-profile command configured in a sub traffic policy limits the rate of traffic of flow queues.
  • Page 52: Maintaining Qos

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 1.9 Maintaining QoS This section describes how to maintain QoS. 1.9.1 Displaying the Queue-based Traffic Statistics The queue-based traffic statistics include the numbers of forwarded and discarded packets.
  • Page 53: Example For Configuring Priority Mapping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 1.10.1 Example for Configuring Priority Mapping After the packet priority trusted by an interface is set and the priority mapping table is configured, the AR2200 determines the queues that packets enter based on the specified priory and can modify packet priorities to provide differentiated services.
  • Page 54 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration VLAN 20 that the interface of RouterA connected to SwitchA belongs to, IP address 192.168.2.1/24 of VLANIF 20, and 802.1p priority trusted by interfaces VLAN 30 that the interface of RouterA connected to SwitchB belongs to, IP address 192.168.3.1/24 of VLANIF 30, and 802.1p priorities trusted by interfaces...
  • Page 55 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration # Configure priority mapping. [RouterA] qos map-table dot1p-dscp [RouterA-maptbl-dot1p-dscp] input 2 output 14 [RouterA-maptbl-dot1p-dscp] input 5 output 40 [RouterA-maptbl-dot1p-dscp] input 6 output 46 Step 3 Verify the configuration.
  • Page 56: Example For Configuring Traffic Policing

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration ip address 192.168.3.1 255.255.255.0 interface Ethernet2/0/0 port link-type trunk port trunk allow-pass vlan trust 8021p override interface Ethernet2/0/1 port link-type trunk port trunk allow-pass vlan trust 8021p override interface GigabitEthernet3/0/0 ip address 192.168.4.1...
  • Page 57 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Configuration Roadmap The configuration roadmap is as follows: Create VLANs and VLANIF interfaces and configure interfaces so that enterprise users can access the WAN-side network through RouterA. Configure traffic classifiers on RouterA to classify packets based on the VLAN ID.
  • Page 58 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration [RouterA-Ethernet2/0/0] port trunk allow-pass vlan 10 20 30 [RouterA-Ethernet2/0/0] quit NOTE # Configure the interface of Switch connected to RouterA as a trunk interface and allow packets from VLAN 10, VLAN 20, and VLAN 30 to pass through.
  • Page 59 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration [RouterA] traffic policy p1 [RouterA-trafficpolicy-p1] classifier c1 behavior b1 [RouterA-trafficpolicy-p1] classifier c2 behavior b2 [RouterA-trafficpolicy-p1] classifier c3 behavior b3 [RouterA-trafficpolicy-p1] quit [RouterA] interface ethernet 2/0/0 [RouterA-Ethernet2/0/0] traffic-policy p1 inbound Step 5 Configure interface-based traffic policing.
  • Page 60 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Yellow Action: pass Exceed Action: discard statistic: enable # View the traffic policy configuration. [RouterA] display traffic policy statistics interface ethernet 2/0/0 inbound Interface: Ethernet2/0/0 Traffic policy inbound: p1...
  • Page 61: Example For Configuring Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration enable traffic behavior car cir 4000 cbs 752000 pbs 1252000 green pass yellow pass red discard statistic enable traffic behavior car cir 2000 cbs 376000 pbs 626000 green pass yellow pass red...
  • Page 62 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration network through GE3/0/0, jitter may occur. To prevent jitter and ensure bandwidth of services, perform the following operations: Set the CIR value of the interface to 8000 kbit/s.
  • Page 63 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Create VLANs and configure interfaces. # Create VLAN 10 on RouterA. <Huawei> system-view [Huawei] sysname RouterA [RouterA] vlan 10 # Configure Eth2/0/0 as a trunk interface and add Eth2/0/0 to VLAN 10.
  • Page 64 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration [RouterA] interface gigabitethernet 3/0/0 [RouterA-GigabitEthernet3/0/0] qos queue-profile qp1 Step 5 Verify the configuration. # View the interface configuration on RouterA. [RouterA-GigabitEthernet3/0/0] display this interface GigabitEthernet3/0/0 ip address 192.168.4.1 255.255.255.0...
  • Page 65: Example For Configuring Adaptive Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration qos gts cir 8000 cbs 200000 return 1.10.4 Example for Configuring Adaptive Traffic Shaping When the bandwidth on the inbound interface of the downstream device is variable, configure flow-based adaptive traffic shaping on the outbound interface of the upstream device to control packet loss.
  • Page 66 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Configure an NQA test instance on RouterA and RouterB. Configure an adaptive traffic profile on RouterA. Configure a traffic policy on RouterA and apply the traffic policy to GE1/0/0.
  • Page 67 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration # Apply the traffic policy to GE1/0/0 on RouterA in the outbound direction. [RouterA] interface gigabitethernet1/0/0 [RouterA-GigabitEthernet1/0/0] traffic-policy p1 outbound [RouterA-GigabitEthernet1/0/0] quit Step 6 Verify the configuration. # View the record of the adaptive traffic profile gts1 on GigabitEthernet1/0/0 of RouterA.
  • Page 68: Example For Configuring Congestion Avoidance And Congestion Management

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration nqa test-instance admin jitter1 test-type jitter destination-address ipv4 192.168.2.2 destination-port 9000 return Configuration file of RouterB sysname RouterB interface Cellular0/0/0 ip address 192.168.2.2 255.255.255.0 nqa-server udpecho 192.168.2.2 9000 return 1.10.5 Example for Configuring Congestion Avoidance and...
  • Page 69 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Service DSCP Queue Scheduli Drop Method Type Priority Index ng Mode Data WRED: l DSCP=28 – Lower drop threshold (%): 50 – Upper drop threshold (%): 70 – Drop probability (%): 30 l DSCP=26 –...
  • Page 70 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Apply the queue profile to the outbound direction of the interface on RouterA connected to the WAN-side network to implement congestion avoidance and congestion management. Data Preparation To complete the configuration, you need the following data: VLAN 20 that the interface of RouterA connected to SwitchA belongs to, IP address 192.168.2.1/24 of VLANIF 20, and DSCP priority trusted by interfaces...
  • Page 71 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration NOTE Configure RouterB to ensure that there is a reachable route betweenRouterB and RouterA. The configuration details are not mentioned here. Step 2 Create drop profiles. # Create drop profiles data and video on RouterA.
  • Page 72 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration queue 3 drop-profile data queue 4 drop-profile video schedule wfq 3 to 4 pq 5 return # View the configuration of drop profiles. [RouterA-qos-queue-profile-queue-profile1] quit [RouterA] display drop-profile video...
  • Page 73 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration ----------------------------------------------------------------- [RouterA] display drop-profile data Drop-profile[1]: data DSCP Low-limit High-limit Discard-percentage ----------------------------------------------------------------- 0(default) 8(cs1) 10(af11) 12(af12) 14(af13) 16(cs2) 18(af21) 20(af22) 22(af23) 24(cs3) 26(af31) 28(af32) 30(af33) 32(cs4) 34(af41) 36(af42)
  • Page 74 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration ----------------------------------------------------------------- ----End Configuration Files Configuration file of RouterA sysname RouterA vlan batch 20 30 drop-profile data wred dscp dscp af31 low-limit 40 high-limit 60 discard-percentage dscp af32 low-limit 50 high-limit 70 discard-percentage...
  • Page 75: Example For Configuring Hqos

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration qos queue-profile queue-profile1 return 1.10.6 Example for Configuring HQoS By configuring HQoS, the AR2200 provides differentiated services for service packets with different priorities and users with different priorities, and ensures bandwidth for high-priority and low-delay services.
  • Page 76 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Configuration Roadmap The configuration roadmap is as follows: Create VLANs and VLANIF interfaces and configure interfaces so that enterprise users can access the WAN-side network through the Router.
  • Page 77 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Procedure Step 1 Create VLANs and configure interfaces. # Create VLAN 10 and VLAN 20 on the Router. <Huawei> system-view [Huawei] sysname Router [Router] vlan batch 10 20 # Configure Eth2/0/0 as a trunk interface and add Eth2/0/0 to VLAN 10.
  • Page 78 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Step 3 Configure traffic policies for VPNA and VPNB. # Create traffic classifiers data, video, and voice on the Router to classify different service flows from the enterprise based on DSCP priorities.
  • Page 79 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration # Create traffic behaviors vpna and vpnb on the Router to shape packets from different VLANs and bind them to sub traffic policies. [Router] traffic behavior vpna [Router-behavior-vpna] gts cir 20000 cbs 500000 queue-length 50...
  • Page 80 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Classifier: video Operator: OR Behavior: video Assured Forwarding: Bandwidth 60 (%) Drop Method: WRED Drop-profile: video Classifier: data Operator: OR Behavior: data Assured Forwarding: Bandwidth 30 (%) Drop Method: WRED...
  • Page 81 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 22(af23) 24(cs3) 26(af31) 28(af32) 30(af33) 32(cs4) 34(af41) 36(af42) 38(af43) 40(cs5) 46(ef) 48(cs6) 56(cs7) ----------------------------------------------------------------- [Router] display drop-profile data Drop-profile[2]: data DSCP Low-limit High-limit Discard-percentage ----------------------------------------------------------------- 0(default) 8(cs1) 10(af11)
  • Page 82 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration 22(af23) 24(cs3) 26(af31) 28(af32) 30(af33) 32(cs4) 34(af41) 36(af42) 38(af43) 40(cs5) 46(ef) 48(cs6) 56(cs7) ----------------------------------------------------------------- ----End Configuration Files Configuration file of the Router sysname Router vlan batch 10 drop-profile...
  • Page 83 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration traffic classifier video operator if-match dscp af21 traffic classifier vpnb operator if-match vlan-id traffic classifier data operator if-match dscp af11 traffic classifier voice operator if-match dscp traffic behavior...
  • Page 84 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 1 QoS Configuration Vlanif10 ip address 192.168.1.1 255.255.255.0 interface Vlanif20 ip address 192.168.2.1 255.255.255.0 interface Ethernet2/0/0 port link-type trunk port trunk allow-pass vlan trust dscp interface Ethernet2/0/1 port link-type trunk port trunk allow-pass vlan...
  • Page 85: Traffic Policy Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Traffic Policy Configuration About This Chapter This chapter describes the configuration of a traffic policy and the configurations of the traffic behavior and traffic classifier in the traffic policy. It also provides configuration examples.
  • Page 86: Traffic Policy Overview

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration 2.1 Traffic Policy Overview A traffic policy classifies user traffic and specifies a traffic behavior for each type of traffic. The traffic policy supported by the AR2200 provides modular configurations. Traffic classifiers and traffic behaviors are defined using templates, which simplify the configuration.
  • Page 87: Atm Pvc

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Table 2-1 Complex traffic classification rules Layer Traffic Classification Rule Layer 2 l VLAN ID in the outer tag of a VLAN packet l VLAN ID in the inner tag of a VLAN packet l 802.1p priority in the outer tag of a...
  • Page 88 This traffic control action copies the specified data packets to a specified destination to detect and troubleshoot faults on a network. For details, see Configuring Local Flow Mirroring in the Huawei AR2200 Series Enterprise Routers Configuration Guide - Device Management.
  • Page 89: Configuring A Traffic Classifier

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Traffic Policy You can bind a traffic classifier to a traffic behavior in a traffic policy and apply the traffic policy to an interface to implement QoS.A traffic policy can be applied to LAN-side interfaces, WAN- side interfaces, or WAN-side sub-interfaces.
  • Page 90: Establishing The Configuration Task

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration 2.3.1 Establishing the Configuration Task Before configuring a traffic classifier, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the data required for the configuration. This will help you complete the configuration task quickly and accurately.
  • Page 91: Optional) Configuring Sac

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration 2.3.2 (Optional) Configuring SAC SAC controls enterprise network traffic precisely to ensure bandwidth of key services and prevent bandwidth from being occupied by non-key services. 2.3.2.1 Configuring a Signature File To use the SAC feature, enable SAC and load the signature file.
  • Page 92: Configuring The Sac Statistics Function

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Prerequisites An SAC signature file has been loaded. Context A maximum of 32 SAC groups can be configured on the AR2200 and each SAC group contains a maximum of 32 application protocols.
  • Page 93: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration system-view The system view is displayed. Run: interface interface-type interface-number[.subinterface-number] The interface or sub-interface view is displayed. Run: sac protocol-statistic enable The SAC statistics function is enabled on the interface.
  • Page 94 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration To define a matching rule based on the SAC group, ensure that SAC has been enabled, the signature file has been loaded, and an SAC group has been created.
  • Page 95: Checking The Configuration

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration l To define a matching rule for traffic classification based on the EXP priority in MPLS packets, run the if-match mpls-exp exp-value &<1-8> command. l To define a matching rule for traffic classification based on the IP precedence in IP packets, run the if-match ip-precedence ip-precedence-value &<1-8>...
  • Page 96: Configuring A Traffic Behavior

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Procedure Step 1 Run the display traffic classifier { system-defined | user-defined } [ classifier-name ] command to check the traffic classifier configuration. ----End 2.4 Configuring a Traffic Behavior A traffic behavior is the action to be performed for packets matching the traffic classifier and is the prerequisite to configuring a traffic policy.
  • Page 97: Configuring A Permit Or Deny Action

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Pre-configuration Tasks Before configuring a traffic behavior, complete the following tasks: Configuring link layer attributes of interfaces to ensure that these interfaces work properly Configuring IP addresses and routing protocols for interfaces to ensure connectivity Data Preparation To configure a traffic behavior, you need the following data.
  • Page 98: Configuring Redirection

    The NQA test instance must be an ICMP type. For details, see Configuring the ICMP Test and Configuring Universal Parameters for the NQA Test Instance in NQA Configuration of the Huawei AR2200 Series Enterprise Routers Configuration Guide - Network Management.
  • Page 99: Configuring Traffic Policing

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Context After the re-marking action is configured, the router still processes outgoing packets based on the original priority but the downstream device processes the packets based on the re-marked priority.
  • Page 100: Configuring Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Context The AR2200 performs traffic policing for packets matching traffic classification rules, and discards the excess packets or re-marks the colors or CoS of the excess packets.
  • Page 101: Configuring Adaptive Traffic Shaping

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration The system view is displayed. Step 2 Run: traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed. Step 3 Run: gts cir cir-value [ cbs cbs-value [ queue-length queue-length ] ] Traffic shaping is configured.
  • Page 102 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Context The AR2200 provides the following queues for data packets matching traffic classification rules: AF: ensures low drop probability of packets when the rate of outgoing service traffic does not exceed the minimum bandwidth.
  • Page 103 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Interface Bandwidth User Configuration BE queues: The default traffic classifier is associated with BE queues. By default, the system allocates 10% of the interface's available bandwidth. The system first allocates bandwidth to EF queues. AF queues and BE queues share the...
  • Page 104: Configuring Congestion Avoidance

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration 2.4.9 Configuring Congestion Avoidance This section describes how to configure flow-based congestion avoidance, and set the upper drop threshold, lower drop threshold, and maximum drop probability of the WRED drop profile for packets of different priorities.
  • Page 105 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration The AR2200 supports two layers of traffic policies. A sub traffic policy cannot be nested by another traffic policy. Table 2-4 lists traffic classifiers and traffic behaviors allowed in traffic policies when traffic policy nesting is used.
  • Page 106: Configuring Traffic Statistics

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration NOTE The traffic shaping action gts (traffic behavior view) or gts adaptation-profile must have been configured in the traffic behavior. Step 3 Run: traffic-policy policy-name A sub traffic policy is bound to a traffic behavior.
  • Page 107: Configuring A Traffic Policy

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Procedure Run the display traffic behavior { system-defined | user-defined } [ behavior-name ] command to check the traffic behavior configuration. ----End 2.5 Configuring a Traffic Policy After a traffic classifier and a traffic behavior are configured, bind the traffic classifier and the traffic behavior to a traffic policy and apply the traffic policy to an interface.
  • Page 108: Maintaining A Traffic Policy

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration traffic-policy policy-name { inbound | outbound } A traffic policy is applied to the interface or sub-interface in the inbound or outbound direction. ----End Checking the Configuration Run the display traffic policy user-defined [ policy-name [ classifier classifier-name ] ] command to check the traffic policy configuration.
  • Page 109: Configuration Examples

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration CAUTION The cleared flow-based traffic statistics cannot be restored. Exercise caution when you run the command. Procedure Step 1 Run the reset traffic policy statisticsreset traffic policy statistics interface interface-type...
  • Page 110 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Figure 2-2 Networking diagram of re-marking configurations Video 802.1p=5 Data 802.1p=2 SwitchA Voice GE3/0/0 Eth2/0/0 802.1p=6 Eth2/0/1 Video SwitchB RouterA RouterB 802.1p=5 Data 802.1p=2 Voice 802.1p=6 Configuration Roadmap...
  • Page 111 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration <Huawei> system-view [Huawei] sysname RouterA [RouterA] vlan batch 20 30 # Configure Eth2/0/0 and Eth2/0/1 as trunk interfaces, and add Eth2/0/0 to VLAN 20 and Eth2/0/1 to VLAN 30.
  • Page 112 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Step 4 # Create a traffic policy p1 on RouterA, bind the configured traffic behaviors and traffic classifiers to the traffic policy, and apply the traffic policy to Eth2/0/0 and Eth2/0/1 in the inbound direction.
  • Page 113: Example For Configuring Traffic Statistics

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration vlan batch 20 30 traffic classifier c3 operator or if-match 8021p 6 traffic classifier c2 operator or if-match 8021p 5 traffic classifier c1 operator or if-match 8021p 2...
  • Page 114 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Figure 2-3 Networking diagram of traffic statistics based on complex traffic classification Eth2/0/0 VLAN 20 Switch Router MAC:0000-0000-0003 Configuration Roadmap The configuration roadmap is as follows: Configure interfaces so that the Router can be connected to the switch and PC1.
  • Page 115 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration NOTE Configure the interface connecting the switch and the Router as a trunk interface and add it to VLAN 20. Configure the interface connecting the switch and PC1 as an access interface and add it to VLAN 20.
  • Page 116 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration <Router> display traffic policy statistics interface Ethernet 2/0/0 inbound Interface: Ethernet2/0/0 Traffic policy inbound: Rule number: 1 Current status: OK! Item Sum(Packets/Bytes) Rate(pps/bps) ------------------------------------------------------------------------------- Matched +--Passed +--Dropped...
  • Page 117: Example For Configuring Association Between Nqa And Redirection

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration 2.7.3 Example for Configuring Association Between NQA and Redirection After association between NQA and redirection is configured, when the NQA test instance detects that links are running properly, packets from different departments reach the WAN-side network through different links;...
  • Page 118 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Configure a NQA test instance to detect whether the links RouterA→RouterB→RouterD and RouterA→RouterC→RouterD are running properly. Configure traffic classifiers to match incoming packets. Configure traffic behaviors in which redirection is associated with the NQA test instance.
  • Page 119 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration [RouterA] interface gigabitethernet 1/0/0 [RouterA-GigabitEthernet1/0/0] ip address 192.168.1.1 24 [RouterA-GigabitEthernet1/0/0] quit NOTE The configurations of other interfaces are similar to the configuration of GE1/0/0, and are not mentioned here.
  • Page 120 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration [RouterA-trafficpolicy-vlan20] classifier vlan20 behavior vlan20 [RouterA-trafficpolicy-vlan20] quit # Apply the traffic policy vlan10 to incoming packets on GE1/0/0 and the traffic policy vlan20 to incoming packets on GE2/0/0.
  • Page 121: Example For Preventing Bt Download

    Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration if-match inbound-interface GigabitEthernet2/0/0 traffic behavior vlan10 redirect ip-nexthop 192.168.3.1 track nqa admin vlan10 traffic behavior vlan20 redirect ip-nexthop 192.168.4.1 track nqa admin vlan20 traffic policy vlan10 classifier vlan10 behavior...
  • Page 122 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Figure 2-5 Networking diagram for preventing BT download Eth2/0/0 GE0/0/1 Enterprise Switch RouterA RouterB BT Server users Configuration Roadmap The configuration roadmap is as follows: Configure interfaces so that enterprise users can access the WAN through RouterA.
  • Page 123 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration NOTE Configure the interface of the switch connected to RouterA as a trunk interface and add it to VLAN 20. # Create VLANIF 20 and assign IP address 192.168.2.1/24 to VLANIF 20.
  • Page 124 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration [RouterA-GigabitEthernet0/0/1] quit [RouterA] interface vlanif 20 [RouterA-Vlanif20] traffic-policy p1 inbound [RouterA-Vlanif20] quit Step 6 Verify the configuration. # View the interface configuration on RouterA. [RouterA] interface ethernet 2/0/0...
  • Page 125 Huawei AR2200 Series Enterprise Routers Configuration Guide - QoS 2 Traffic Policy Configuration Configuration Files Configuration file of RouterA sysname RouterA vlan batch sac enable signature flash:/ sacrule.dat traffic classifier c1 operator if-match app-protocol bittorrent traffic behavior deny traffic policy...

This manual is also suitable for:

Ar1200-s series

Table of Contents