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.
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.
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.
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...
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.
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.
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.
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...
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.
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.
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.
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.
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.
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...
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.
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.
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.
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...
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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...
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.
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...
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.
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...
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...
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.
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.
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.
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.
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.
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.
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.
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.
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>...
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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 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.
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 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.