Huawei Quidway S9300 Configuration Manual

Huawei Quidway S9300 Configuration Manual

Terabit routing switch
Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
V100R001C02
Configuration Guide - QoS
Issue
03
Date
2009-08-20
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei Quidway S9300

  • Page 1 Quidway S9300 Terabit Routing Switch V100R001C02 Configuration Guide - QoS Issue Date 2009-08-20 Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 2 Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any assistance, please contact our local office or company headquarters. Huawei Technologies Co., Ltd. Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com...
  • Page 3: Table Of Contents

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS Contents Contents About This Document........................1 1 Class-based QoS Configuration....................1-1 1.1 Introduction to Class-based QoS........................1-2 1.2 Class-based QoS Features Supported by the S9300..................1-2 1.3 Configuring Priority Mapping Based on Simple Traffic Classification............1-5 1.3.1 Establishing the Configuration Task......................1-5...
  • Page 4 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - QoS 1.7.5 Example for Filtering Packets Based On Complex Traffic Classification...........1-38 2 Traffic Policing and Traffic Shaping Configuration............2-1 2.1 Overview of Traffic Policing and Traffic Shaping..................2-2 2.1.1 Traffic Policing............................2-2 2.1.2 Traffic Shaping............................2-4 2.2 Configuring QoS CAR............................2-5...
  • Page 5 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS Contents 3.3 Configuring Congestion Management......................3-7 3.3.1 Establishing the Configuration Task......................3-7 3.3.2 Setting the Scheduling Mode for an Interface Queue................3-8 3.3.3 (Optional) Configuring Traffic Shaping....................3-9 3.3.4 Checking the Configuration........................3-9 3.4 Maintaining Congestion Avoidance and Congestion Management..............3-9 3.4.1 Displaying the Queue-based Statistics....................3-9...
  • Page 7 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS Figures Figures Figure 1-1 Networking diagram for configuring priority mapping based on simple traffic classification..1-25 Figure 1-2 Networking diagram for re-marking the priorities based on complex traffic classification.....1-28 Figure 1-3 Networking diagram for redirecting packets based on complex traffic classification.....1-31 Figure 1-4 Networking diagram for configuring traffic statistics based on complex traffic classification..1-35...
  • Page 9 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS Tables Tables Table 1-1 Mapping between internal priorities and queues..................1-3 Table 2-1 Rules for making the color of a packet effective................2-10 Table 2-2 QoS provided by the S9300 for upstream traffic................2-23 Table 3-1 Congestion avoidance parameters......................3-11...
  • Page 11: About This Document

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS About This Document About This Document Purpose This document describes QoS features of the S9300 including class-based QoS, traffic policing, traffic shaping, congestion avoidance, and congestion management from function introduction, configuration methods, maintenance and configuration examples.
  • Page 12: General Conventions

    Quidway S9300 Terabit Routing Switch About This Document Configuration Guide - QoS Chapter Description 1 Class-based QoS Describes basic concepts of the traffic classifier, traffic Configuration behavior, traffic policy, DiffServ domain, and priority mapping, and provides configuration methods and configuration examples of the priority mapping based on simple traffic classification and the traffic policy based on complex traffic classification.
  • Page 13: Command Conventions

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS About This Document Convention Description Times New Roman Normal paragraphs are in Times New Roman. Boldface Names of files, directories, folders, and users are in boldface. For example, log in as user root.
  • Page 14: Keyboard Operations

    Quidway S9300 Terabit Routing Switch About This Document Configuration Guide - QoS Keyboard Operations The keyboard operations that may be found in this document are defined as follows. Format Description Press the key. For example, press Enter and press Tab.
  • Page 15 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS About This Document "Configuring Congestion Management" in 3 Congestion Avoidance and Congestion Management Configuration The following content is deleted: Configuration of the mirroring function Updates in Issue 01 (2009-02-28) Initial commercial release.
  • Page 17: Class-Based Qos Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Class-based QoS Configuration About This Chapter This chapter describes the basic concepts of the traffic classifier, traffic behavior, traffic policy, DiffServ domain, and priority mapping, and configuration methods and configuration examples of the traffic policy based on complex traffic classification and priority mapping based on simple traffic classification.
  • Page 18: Introduction To Class-Based Qos

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS 1.1 Introduction to Class-based QoS This section describes the basic concepts of the Class-based QoS. Class-based QoS is used to classify packets sharing common features into one class and provide the same QoS service for traffic of the same type by matching packets with certain rules.
  • Page 19: Table 1-1 Mapping Between Internal Priorities And Queues

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration DSCP priority of IP packets EXP priority of Multiprotocol Label Switching (MPLS) packets SYN Flag field in Transmission Control Protocol (TCP) packets Source MAC address Destination MAC address...
  • Page 20: Traffic Behavior

    Flow mirroring is used to copy the specified data packets to a specified destination to detect and troubleshoot faults on a network. For details about flow mirroring, see "Mirroring Configuration" in the Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management.
  • Page 21: Configuring Priority Mapping Based On Simple Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration 1.3 Configuring Priority Mapping Based on Simple Traffic Classification This section describes how to configure priority mapping based on simple traffic classification. 1.3.1 Establishing the Configuration Task 1.3.2 Creating a DiffServ Domain and Configuring Priority Mapping...
  • Page 22: Creating A Diffserv Domain And Configuring Priority Mapping

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Data 802.1p priorities of upstream or downstream packets in a VLAN, DSCP priorities, PHBs, and colors of upstream or downstream IP packets Type and number of the interface bound to a DiffServ domain 1.3.2 Creating a DiffServ Domain and Configuring Priority...
  • Page 23: Configuring An Interface To Trust The Priority Of Packets

    For details on the mapping from 802.1p priorities of packets to PHBs and colors, from PHBs and colors to 802.1p priorities, from DSCP priorities of packets to PHBs and colors, from PHBs and colors to DSCP priorities, see the Quidway S9300 Terabit Routing Switch Command Reference.
  • Page 24: Optional) Setting The Default 802.1P Priority Of An Interface

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS NOTE On the G24SA or G24CA board: If you run the trust 8021p inner command on the interface that receives the packets, the S9300 maps the 802.1p priorities in the outer VLAN tags to PHBs and colors.
  • Page 25: Applying A Diffserv Domain

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration rate of packets exceeds the CIR, certain devices set the DEI field of the packets to 1. That is, these packets have a high drop priority. If congestion occurs, subsequent devices first discard packets with the DEI field as 1.
  • Page 26: Checking The Configuration

    By default, an interface is not bound to a DiffServ domain. The S9300 uses the default priority mapping for incoming and outgoing packets on an interface. For details on the default priority mapping, see the Quidway S9300 Terabit Routing Switch Command Reference. ----End 1.3.7 Checking the Configuration...
  • Page 27: Creating A Traffic Classifier Based On Layer 2 Information

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Pre-configuration Tasks None Data Preparation To configure complex traffic classification, you need the following data. Data Name of the traffic classifier Data in a traffic classifier, including the ACL number, 802.1p priority in the inner or...
  • Page 28: Creating A Traffic Classifier Based On Layer 3 Information

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS if-match vlan-8021p { 8021p-value } & <1-8> To define matching rules based on the VLAN ID in the inner VLAN tag of QinQ packets, run: if-match cvlan-id cvlan-id...
  • Page 29: Creating A Traffic Classifier Based On An Acl

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration By default, the relation between rules in a traffic classifier is "OR". Step 3 Run the following command as required. To define matching rules based on the DSCP priority of IP packets, run: if-match dscp dscp-value &<1-8>...
  • Page 30 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS rule [ rule-id ] { deny | permit } [ fragment | source { source-address source-wildcard | any } | time-range time-name ] A basic ACLv4 rule is created.
  • Page 31 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration operator port | dscp | fragment | precedence precedence | source { source-address source-wildcard | any } | source-port operator port | time-range time-name | tos ] To define an advanced ACL for ICMP packets, run: –...
  • Page 32: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Run: traffic classifier classifier-name [ operator { and | or } ] [ precedence ] A traffic classifier is created and the traffic classifier view is displayed.
  • Page 33: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration 1.5.1 Establishing the Configuration Task Applicable Environment At the ingress of a network, the S9300 functions as a border node. To limit the incoming traffic on a network, the S9300 can provide differentiated services for various services according to the DSCP field, protocol type, IP address, port number, fragmentation type, and time range of packets.
  • Page 34 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Procedure Configuring the deny/permit action Run: system-view The system view is displayed. Run: traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed.
  • Page 35 The remark cvlan-id and remark vlan-id commands are used to implement the flow-based VLAN mapping function. For description and configuration of flow-based VLAN mapping, see the Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet. Configuring the redirection action Run: system-view The system view is displayed.
  • Page 36 A traffic behavior is created and the traffic behavior view is displayed. Run: ip urpf disable The URPF action is configured. NOTE For details on URPF, see the Quidway S9300 Terabit Routing Switch Configuration Guide - Security. Configuring the flow mirroring action Run: system-view The system view is displayed.
  • Page 37: Creating A Traffic Policy

    All the flows that match a traffic classifier are mirrored to the CPU of the LPU. NOTE For details about flow mirroring, see "Mirroring Configuration" in the Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management. Configuring the action of adding outer VLAN tags to packets...
  • Page 38: Applying A Traffic Policy

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS The system view is displayed. Step 2 Run: traffic policy traffic-policy-name A traffic policy is created and the traffic policy view is displayed. Step 3 Run: classifier classifier-name behavior behavior-name A traffic classifier is bound to a traffic behavior in the traffic policy.
  • Page 39: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration The system view is displayed. Run: traffic-policy policy-name global { inbound | outbound } [ slot slot-id ] A traffic policy is applied globally or in the inbound or outbound direction of the LPU.
  • Page 40: Maintaining Class-Based Qos

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Procedure Run the display traffic behavior { system-defined | user-defined } [ behavior-name ] command to check the configuration of the traffic behavior. Run the display traffic classifier { system-defined | user-defined } [ classifier-name ] command to check the configuration of the traffic classifier.
  • Page 41: Configuration Examples

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Procedure Run the reset traffic policy statistics { global [ slot slot-id ] | interface interface-type interface-number | vlan vlan-id } { inbound | outbound } command to clear the flow- based traffic statistics.
  • Page 42 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Configuration Roadmap The configuration roadmap is as follows: Create VLANs and configure interfaces so that enterprise and individual users can access the network through the S9300. Create DiffServ domains and map 802.1p priorities to PHBs and colors.
  • Page 43: Example For Re-Marking The Priorities Based On Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [S9300-dsdomain-ds1] quit [S9300] diffserv domain ds2 [S9300-dsdomain-ds2] 8021p-inbound 0 phb af2 green [S9300-dsdomain-ds2] quit Step 3 Bind DiffServ domains to interfaces. # Bind DiffServ domains ds1 and ds2 to GE 1/0/1 and GE 1/0/2 respectively.
  • Page 44 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS data packets from individual users is mapped to 2. In this manner, differentiated services are provided. Figure 1-2 Networking diagram for re-marking the priorities based on complex traffic...
  • Page 45 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration # Create VLANs 100, 200, and 300 on the S9300 and configure GE 1/0/1, GE 1/0/2, and GE 2/0/1 so that the S9300 adds the outer VLAN tag with the VLAN ID as 300 to the packets sent from GE 1/0/1 and GE 1/0/2 and GE 2/0/1 can forward packets in VLAN 300.
  • Page 46 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS # Check the configuration of traffic classifiers. <S9300> display traffic classifier user-defined User Defined Classifier Information: Classifier: c2 Precedence: 5 Operator: AND Rule(s) : if-match cvlan-id 200...
  • Page 47: Example For Redirecting Packets Based On Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration remark 8021p 2 traffic behavior b1 remark 8021p 4 traffic policy p1 classifier c1 behavior b1 classifier c2 behavior b2 interface Vlanif300 ip address 192.168.1.1 255.255.255.0 interface GigabitEthernet1/0/1...
  • Page 48 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Create traffic behaviors to redirect matching packets to 20.20.20.1/24 and 20.20.30.1/24. Create a traffic policy, bind traffic classifiers to traffic behaviors in the traffic policy, and apply the traffic policy to an interface.
  • Page 49 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [S9300-acl-adv-3001] rule permit ip precedence 2 [S9300-acl-adv-3001] rule permit ip precedence 3 [S9300-acl-adv-3001] quit [S9300] acl 3002 [S9300-acl-adv-3002] rule permit ip precedence 4 [S9300-acl-adv-3002] rule permit ip precedence 5...
  • Page 50 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS rule 15 permit ip precedence internet (0 times matched) rule 20 permit ip precedence network (0 times matched) # Check the configuration of traffic classifiers. <S9300> display traffic classifier user-defined...
  • Page 51: Example For Configuring Traffic Statistics Based On Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration interface Vlanif20 ip address 20.20.20.2 255.255.255.0 interface Vlanif30 ip address 20.20.30.2 255.255.255.0 interface GigabitEthernet2/0/1 port link-type trunk port trunk allow-pass vlan 30 interface GigabitEthernet3/0/1 port link-type trunk...
  • Page 52 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS VLAN 20 and IP address of GE 3/0/1 being 20.20.20.1/24 ACL 4000 Traffic classifier c1 Traffic behavior b1 Traffic policy p1 Procedure Step 1 Create a VLAN and configure interfaces.
  • Page 53 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [S9300] traffic behavior b1 [S9300-behavior-b1] statistic enable [S9300-behavior-b1] quit Step 5 Create a traffic policy and apply it to an interface. # Create traffic policy p1 on the S9300 and bind the traffic classifier to the traffic behavior in the traffic policy.
  • Page 54: Example For Filtering Packets Based On Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS traffic policy p1 classifier c1 behavior b1 interface Vlanif20 ip address 20.20.20.1 255.255.255.0 interface GigabitEthernet2/0/1 port link-type access port default vlan 20 traffic-policy p1 inbound interface GigabitEthernet3/0/1...
  • Page 55: Figure 1-5 Networking Diagram For Filtering Packets Based On Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Figure 1-5 Networking diagram for filtering packets based on complex traffic classification MA5200G-A MA5200G-B GE2/0/0 GE2/0/1 S9300 GE1/0/0 ETH1/0/0 DSLAM Home Home gateway 2 gateway 1 Configuration Roadmap The configuration roadmap is as follows: Configure each interface to connect the S9300s.
  • Page 56 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS Procedure Step 1 Create a VLAN and configure each interface. # Create VLAN 20. <Quidway> system-view [Quidway] sysname S9300 [S9300] vlan batch 100 200 # Set the type of GE 1/0/0, GE 2/0/0, and GE 2/0/1 to trunk and add them to VLAN 100.
  • Page 57 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [S9300] traffic behavior tb [S9300-behavior-tb] permit [S9300-behavior-tb] quit Step 5 Apply the traffic policy to the interface. # Create the traffic policy tp on the S9300, in which the traffic classifier is bound to the traffic behavior.
  • Page 58 Quidway S9300 Terabit Routing Switch 1 Class-based QoS Configuration Configuration Guide - QoS vlan batch 100 200 acl number 4000 rule 5 permit source-mac 00e0-8e00-0000 ffff-ff00-0000 rule 10 permit source-mac 00c0-8c00-0000 ffff-ff00-0000 rule 15 deny acl number 4001 rule 5 permit source-mac 00d0-f800-0000 ffff-ff00-0000...
  • Page 59: Traffic Policing And Traffic Shaping Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Traffic Policing and Traffic Shaping Configuration About This Chapter This chapter describes the basic concepts and configuration methods of traffic policing and traffic shaping.
  • Page 60: Overview Of Traffic Policing And Traffic Shaping

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS 2.1 Overview of Traffic Policing and Traffic Shaping This section describes the basic concepts and principle of traffic policing and traffic shaping. 2.1.1 Traffic Policing 2.1.2 Traffic Shaping...
  • Page 61 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration The S9300 supports the single token bucket and dual token buckets. Single token bucket For the single token bucket, parameters of the token bucket are as follows: Committed burst size (CBS): indicates the maximum volume of traffic that bursts in –...
  • Page 62: Traffic Shaping

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS service traffic at the inbound direction that matches a traffic classifier bound to a traffic behavior. NOTE Aggregate CAR supports only the single token bucket.
  • Page 63: Configuring Qos Car

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Figure 2-2 Networking diagram of traffic shaping Put tokens into the bucket at the set rate Packets that need to be sent from this interface...
  • Page 64: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS 2.2.1 Establishing the Configuration Task Applicable Environment If the service traffic sent by users is not limited, a large amount of increasing burst service data makes a network more congested.
  • Page 65: Applying The Qos Car Template

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration By default, no QoS CAR template is created. ----End 2.2.3 Applying the QoS CAR Template Context A QoS CAR template takes effect only after it is applied. The QoS CAR template can be applied on an interface or in a VLAN.
  • Page 66: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS NOTE After a QoS CAR template is applied in a VLAN, the S9300 implements QoS CAR for only the incoming traffic in the VLAN.
  • Page 67: Configuring Complex Traffic Classification

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Traffic policing based on a traffic classifier can be used to control the service traffic of a certain type. Pre-configuration Tasks Before configuring traffic policing based on a traffic classifier, complete the following tasks:...
  • Page 68: Table 2-1 Rules For Making The Color Of A Packet Effective

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed. Run: car cir cir-value [ pir pir-value ] [ cbs...
  • Page 69: Creating A Traffic Policy

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Run: qos car car-name cir cir-value [ cbs cbs-value ] A QoS CAR template is created. NOTE Aggregate CAR supports only a single token bucket at a single rate.
  • Page 70 Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS After a traffic policy is applied, the system performs traffic policing for all the packets that match a traffic classifier in the inbound or outbound direction.
  • Page 71: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration You can apply only one traffic policy in the inbound or outbound direction of an interface. Applying a traffic policy in a VLAN Run: system-view The system view is displayed.
  • Page 72: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS 2.4.1 Establishing the Configuration Task Applicable Environment When the traffic volume of host packets is heavy or a large number of malicious host packets are sent, the CPU of the main control board or the LPU is affected.
  • Page 73: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration If this command is not used, the default CIR is 64 kbit/s and the CBS is 10000 bytes. If this command is used but cbs-value is not specified, the CBS is 188 times greater than the CIR.
  • Page 74: Configuring Traffic Shaping On An Interface

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS Pre-configuration Tasks Before configuring traffic shaping, complete the following tasks: Setting link layer attributes of interfaces to ensure normal operation of the interfaces Assigning IP addresses to the interfaces and configuring routing protocols to ensure that...
  • Page 75: Configuring Traffic Shaping In An Interface Queue

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration By default, the CIR for traffic shaping on an interface is the maximum bandwidth of the interface. For example, the CIR for traffic shaping on an Ethernet interface is 100000 kbit/s, and the CIR for traffic shaping on a GE interface is 1000000 kbit/s.
  • Page 76: Maintaining Traffic Policing And Traffic Shaping

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS By default, the rate for traffic shaping in an interface queue is the maximum bandwidth of the interface. For example, the rate for traffic shaping on an Ethernet interface is 100000 kbit/s, and the rate for traffic shaping on a GE interface is 1000000 kbit/s.
  • Page 77: Configuration Examples

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Procedure Run the reset traffic policy statistics { global | interface interface-type interface- number | vlan vlan-id } { inbound | outbound } command to clear the flow-based traffic statistics.
  • Page 78: Figure 2-3 Networking Diagram For Configuring Qos Car

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS Figure 2-3 Networking diagram for configuring QoS CAR Core network Router GE 2/0/1 GE 1/0/1 GE 1/0/2 S9300 Switch Switch Enterprise users Individual users...
  • Page 79 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration [S9300] interface gigabitethernet1/0/1 [S9300-GigabitEthernet1/0/1] port link-type trunk [S9300-GigabitEthernet1/0/1] port trunk allow-pass vlan 100 [S9300-GigabitEthernet1/0/1] quit [S9300] interface gigabitethernet1/0/2 [S9300-GigabitEthernet1/0/2] port link-type trunk [S9300-GigabitEthernet1/0/2] port trunk allow-pass vlan 200...
  • Page 80 Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS GigabitEthernet1/0/2 Applied number on Interface outbound : 1 GigabitEthernet1/0/2 Applied number on Trunk inbound : 0 Applied number on Trunk outbound : 0 Applied number on Vlan Unknown Unicast : 0...
  • Page 81: Example For Configuring Traffic Policing Based On A Traffic Classifier

    Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration 2.7.2 Example for Configuring Traffic Policing Based on a Traffic Classifier Networking Requirements The S9300 is connected to the router through GE 2/0/1; enterprise and individual users can access the network through the S9300 and router.
  • Page 82: Figure 2-4 Networking Diagram For Configuring Traffic Policing Based On A Traffic Classifier

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS Figure 2-4 Networking diagram for configuring traffic policing based on a traffic classifier Core network GE 2/0/1 GE 1/0/1 GE 1/0/2 S9300 VLAN VLAN...
  • Page 83 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration <Quidway> system-view [Quidway] sysname S9300 [S9300] vlan batch 100 110 120 200 210 220 # Configure the access types of GE1/0/1, GE1/0/2, and GE2/0/1 to trunk, add GE1/0/1 to VLAN 100, VLAN 110, and VLAN 120, add GE1/0/2 to VLAN 200, VLAN 210, and VLAN 220, and add GE2/0/1 to VLAN 100, VLAN 110, VLAN 120, VLAN 200, VLAN 210, and VLAN 220.
  • Page 84 Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS [S9300-behavior-b2] remark dscp 30 [S9300-behavior-b2] car qoscar1 share [S9300-behavior-b2] statistic enable [S9300-behavior-b2] quit [S9300] traffic behavior b3 [S9300-behavior-b3] car cir 40000 pir 60000 green pass...
  • Page 85 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Rule(s) : if-match 5 vlan-id 110 Classifier: c5 Precedence: 25 Operator: AND Rule(s) : if-match 5 vlan-id 210 Classifier: c3 Precedence: 15 Operator: AND...
  • Page 86 Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS Color Mode: color Blind Conform Action: pass Yellow Action: pass Exceed Action: discard Share car: car qoscar2 share statistic: enable Classifier: c5 Behavior: b5...
  • Page 87 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration if-match 5 vlan-id 110 traffic classifier c5 operator and precedence 25 if-match 5 vlan-id 210 traffic classifier c3 operator and precedence 15 if-match 5 vlan-id 100...
  • Page 88: Example For Configuring Traffic Policing For Host Packets

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS port trunk allow-pass vlan 100 110 120 200 210 220 return 2.7.3 Example for Configuring Traffic Policing for Host Packets Networking Requirements As shown in Figure 2-5, PC1 at 10.10.10.10 is connected to GE 2/0/1 of the S9300;...
  • Page 89 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration [S9300-vlan10] quit [S9300] interface gigabitethernet2/0/1 [S9300-GigabitEthernet2/0/1] port link-type trunk [S9300-GigabitEthernet2/0/1] port trunk allow-pass vlan 10 [S9300-GigabitEthernet2/0/1] quit [S9300] interface gigabitethernet3/0/1 [S9300-GigabitEthernet3/0/1] port link-type trunk...
  • Page 90: Example For Configuring Traffic Shaping

    Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS 2.7.4 Example for Configuring Traffic Shaping Networking Requirements The S9300 is connected to GE 2/0/1 and the router; the 802.1p priorities of voice, video, and...
  • Page 91 Quidway S9300 Terabit Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Rate for traffic shaping in each interface queue Procedure Step 1 Create VLANs and configure interfaces. # Create VLAN 10. <Quidway> system-view [Quidway] sysname S9300...
  • Page 92 Quidway S9300 Terabit Routing Switch 2 Traffic Policing and Traffic Shaping Configuration Configuration Guide - QoS # Configure traffic shaping in the interface queues on the S9300, and then set the CIR and PIR of the voice service to 3000 kbit/s and 5 000kbit/s, the CIR and PIR of the video service to 5000 kbit/s and 8000 kbit/s, and the CIR and PIR of the data service to 2000 kbit/s and 3000 kbit/s.
  • Page 93: Management Configuration

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Congestion Avoidance and Congestion Management Configuration About This Chapter This chapter describes the principle and configuration methods of congestion avoidance and congestion management. 3.1 Overview of Congestion Avoidance and Congestion Management This section describes the basic concepts and principle of congestion avoidance and congestion management.
  • Page 94: Congestion Avoidance And Congestion Management Configuration

    3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS 3.1 Overview of Congestion Avoidance and Congestion Management This section describes the basic concepts and principle of congestion avoidance and congestion management. 3.1.1 Congestion Avoidance 3.1.2 Congestion Management...
  • Page 95: Congestion Management

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration WRED The WRED mechanism also prevents global TCP synchronization by randomly discarding packets. The random number generated by WRED, however, is based on the priority. WRED distinguishes the drop policy according to colors of packets.
  • Page 96: Configuring Congestion Avoidance

    3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS setting the weight of WRR. You, however, cannot obtain the required bandwidth by setting the weight of WRR when the average length of packets in each queue changes.
  • Page 97: Creating A Wred Drop Profile

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Pre-configuration Tasks Before configuring congestion avoidance, complete the following tasks on the incoming interface: Configuring priority mapping based on simple traffic classification to map priorities of...
  • Page 98: Applying The Wred Drop Profile

    3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS NOTE The WRED algorithm for non-TCP packets cannot be used on G24SA or G24CA boards. ----End 3.2.3 Applying the WRED Drop Profile Context You can apply a WRED drop profile on an interface or in an interface queue or on both an interface and an interface queue on the S9300 as required.
  • Page 99: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration 3.2.4 Checking the Configuration Prerequisite The configurations of the drop profile of WRED are complete. Procedure Run the display drop-profile [ all | name drop-profile-name ] command to check the configuration of the drop profile of WRED.
  • Page 100: Setting The Scheduling Mode For An Interface Queue

    The interface group must be created before you run this command. For details about interface groups, see the Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet. Step 3 Run: qos { pq | wrr | drr } The scheduling mode of an interface queue is set to PQ, WRR, or DRR.
  • Page 101: Optional) Configuring Traffic Shaping

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration The weight of an interface queue in WRR mode is set. By default, the weight in WRR mode is 1. NOTE You need to perform this step only when the scheduling mode of an interface queue is set to PQ+WRR or PQ+DRR.
  • Page 102: Clearing The Queue-Based Statistics

    3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS Procedure Run the display qos queue statistics interface-type interface-number command to view the queue-based statistics. NOTE The display qos queue statistics command cannot be used on G24SA or G24CA boards.
  • Page 103: Table 3-1 Congestion Avoidance Parameters

    Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Table 3-1 Congestion avoidance parameters Types of Color Lower Upper Drop Percent Services Threshold (%) Threshold (%) Voice Green Video Yellow Data Table 3-2 Congestion management parameters...
  • Page 104 3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS Configuration Roadmap The configuration roadmap is as follows: Configure the VLAN for each interface so that the devices can communicate with each other through the link layer.
  • Page 105 Quidway S9300 Terabit Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration [S9300-GigabitEthernet2/0/1] trust 8021p outer [S9300-GigabitEthernet2/0/1] quit Step 3 Configure congestion avoidance. # Create drop profile wred1 on the S9300 and set parameters of packets of three colors.
  • Page 106 3 Congestion Avoidance and Congestion Management Quidway S9300 Terabit Routing Switch Configuration Configuration Guide - QoS Green Yellow Non-tcp ----------------------------------------------------------------- ----End Configuration Files Configuration file of the S9300 sysname S9300 vlan batch 2 5 6 diffserv domain ds1 8021p-inbound 2 phb af2 red...

Table of Contents