Huawei Quidway S7700 Configuration Manual - Qos

Smart routing switch
Hide thumbs Also See for Quidway S7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
V100R006C00
Configuration Guide - QoS
Issue
01
Date
2011-07-15
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei Quidway S7700

  • Page 1 Quidway S7700 Smart Routing Switch V100R006C00 Configuration Guide - QoS Issue Date 2011-07-15 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

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS About This Document About This Document Intended Audience This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the QoS supported by the S7700. This document describes how to configure the QoS.
  • Page 4: Command Conventions

    Quidway S7700 Smart Routing Switch 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

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS Contents Contents About This Document........................ii 1 Class-based QoS Configuration....................1 1.1 Introduction to Class-based QoS........................2 1.2 Class-based QoS Features Supported by the S7700...................2 1.3 Configuring Priority Mapping Based on Simple Traffic Classification.............6 1.3.1 Establishing the Configuration Task......................6...
  • Page 6 Quidway S7700 Smart Routing Switch Configuration Guide - QoS Contents 2.2.2 Limiting the Rate of Traffic on the Outbound Interface................51 2.2.3 Configuring Rate Limit on the Management Interface................52 2.2.4 Checking the Configuration........................53 2.3 Configuring Traffic Policing Based on a Traffic Classifier................53 2.3.1 Establishing the Configuration Task.......................53...
  • Page 7 Quidway S7700 Smart Routing Switch Configuration Guide - QoS Contents 3.4.2 Checking the Usage of the Queue......................87 3.4.3 Clearing the Queue-based Statistics......................88 3.5 Configuration Examples...........................89 3.5.1 Example for Configuring Congestion Avoidance and Congestion Management........89 4 Traffic Distribution Configuration..................94 4.1 Traffic Distribution Overview..........................95 4.2 Traffic Distribution Features Supported by the S7700..................95...
  • Page 8: Class-Based Qos Configuration

    Quidway S7700 Smart 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 9: Introduction To Class-Based Qos

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration 1.1 Introduction to 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. In this manner, differentiated services are provided.
  • Page 10: Priority Mapping

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration EXP priority in MPLS packets SYN Flag field in Transmission Control Protocol (TCP) packets Source MAC address Destination MAC address Protocol type field encapsulated in Layer 2 packets...
  • Page 11: Traffic Behavior

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Internal Priority Queue Index CS7 (unknown unicast packets, broadcast packets, and multicast packets) BE (known unicast packets) AF1 (known unicast packets) AF2 (known unicast packets) AF3 (known unicast packets)
  • Page 12 This traffic control action 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 S7700 Smart Routing Switch Configuration Guide - Device Management.
  • Page 13: Configuring Priority Mapping Based On Simple Traffic Classification

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration On a stable network where MAC addresses of packets seldom change, disabling MAC address learning can reduce the size of the MAC address table and improve device performance.
  • Page 14: Configuring An Interface To Trust The Priority Of Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Data Preparation To configure priority mapping based on simple traffic classification, you need the following data. Data Name of a DiffServ domain 802.1p priorities of upstream or downstream packets in a VLAN, DSCP priorities,...
  • Page 15: Optional) Setting The Default 802.1P Priority Of An Interface

    The interface type can be Ethernet, GE, XGE, or Eth-Trunk. l You need to create a port group before performing this task. For details on how to create a port group, see (Optional) Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet.
  • Page 16: Creating A Diffserv Domain And Configuring Priority Mapping

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port priority priority-value The default 802.1p priority of the interface is set.
  • Page 17: Applying A Diffserv Domain

    The MPLS function of the S7700 is controlled by the license. By default, the MPLS function is disabled on the S7700. To use the MPLS function of the S7700, purchase the license from Huawei local office. S-series boards do not support MPLS.
  • Page 18 The interface type can be Ethernet, GE, XGE, or Eth-Trunk. l You need to create a port group before performing this task. For details on how to create a port group, see (Optional) Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet.
  • Page 19: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration 1.3.6 Checking the Configuration After priority mapping based on simple traffic classification is configured, you can view the mapping between packet priorities and PHBs and the mapping between local precedences and queues.
  • Page 20: Configuring Complex Traffic Classification

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Data Preparation To create a traffic policy based on complex traffic classification, you need the following data. Data Name of the traffic classifier and matching rules of the traffic classifier...
  • Page 21 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration l To define matching rules based on the 802.1p priority in the inner VLAN tag of QinQ packets, run: if-match cvlan-8021p { 8021p-value } &<1-8> l To define matching rules based on the 802.1p priority of packets in a VLAN, run: if-match 8021p { 8021p-value } &<1-8>...
  • Page 22 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration traffic classifier classifier-name [ operator { and | or } ] [ precedence precedence-value ] A traffic classifier based on Layer 3 information is created and the traffic classifier view is displayed.
  • Page 23 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration User-defined ACLs process data packets according to the rules defined by users. The S7700 supports basic ACL6s and advanced ACL6s for IPv6 packets. A basic ACL6 can use the source IP address, fragmentation flag, and effective time range as the elements of rules.
  • Page 24 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration By default, the relationship between rules in a traffic classifier is OR. Run: if-match [ ipv6 ] acl basic-acl-number A traffic classifier based on a basic ACL is created.
  • Page 25 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration source-ipv6-address postfix postfix-length | any } | source-port { eq | gt | lt | range } port | time-range time-name ] – To define an advanced ACL6 for ICMPv6 packets, run rule [ rule-id ] { deny |...
  • Page 26 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration The step value between ACL rule IDs is set. Run: rule [ rule-id ] { deny | permit } [ { ether-ii | 802.3 | snap } | l2-...
  • Page 27: Configuring A Traffic Behavior

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Return to the system view. Run: traffic classifier classifier-name [ operator { and | or } ] [ precedence precedence-value ] A traffic classifier is created and the traffic classifier view is displayed.
  • Page 28 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration The deny action is configured. NOTE l If the deny action is configured, the packets matching a traffic classifier are discarded. The packets are still discarded even if other actions except for the traffic statistics action are configured.
  • Page 29 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 VLAN Mapping Configuration in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. CAUTION After the remark vlan-id, remark 8021p, remark cvlan-id, and nest top-most vlan-id commands are used, the system modifies VLAN tags of packets according to the configuration.
  • Page 30 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration CAUTION After the redirect cpu command is used, the packets matching the traffic classification rule are redirected to the CPU, causing deterioration of CPU performance. Use the redirect cpu command with caution.
  • Page 31 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration and packet loss is prevented. For details, see 4.3 Configuring Traffic Distribution Based on the Eth-Trunk. NOTE In a traffic behavior, the remark destination-mac command cannot be used with the following commands...
  • Page 32 VLAN, the system does not perform URPF check on the flows matching the traffic classification rule. NOTE For details on URPF, see Configuring URPF in the Quidway S7700 Smart Routing Switch Configuration Guide - Security. ----End...
  • Page 33: Configuring Traffic Statistics

    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 S7700 Smart Routing Switch Configuration Guide - Device Management. ----End...
  • Page 34: Disabling Mac Address Learning

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed. Step 3 Run: statistic enable The traffic statistics function is enabled. NOTE To collect the flow-based statistics, you must enable the traffic statistics function in a traffic behavior.
  • Page 35: Configuring A Traffic Policy

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration NOTE You can disable MAC address learning as required: l To disable MAC address learning on an interface, in a port group, or in a VLAN, run the mac-address learning disable command in the corresponding view.
  • Page 36 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Context NOTE An LPU may not support a traffic policy; therefore, applying the traffic policy in the system or in a VLAN on the LPU fails. Run the display traffic-policy applied-record [ policy-name ] command to view the LPU where the traffic policy takes effect.
  • Page 37: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration NOTE It is recommended that you should not use the traffic policy containing the re-marking of the 802.p priority, the inner VLAN tag of QinQ packets, and the VLAN ID of packets in a VLAN on the untagged interface in the outbound direction;...
  • Page 38: Maintaining Class-Based Qos

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Run the display traffic policy user-defined [ policy-name [ classifier classifier-name ] ] command to check the traffic policy information. Run the display traffic-policy applied-record [ policy-name ] command to check the applied traffic policy.
  • Page 39: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration 1.6 Configuration Examples This section provides several configuration examples of class-based QoS. 1.6.1 Example for Configuring Priority Mapping Based on Simple Traffic Classification After priority mapping based on simple traffic classification is configured, the S7700 maps 802.1p priorities of packets to different CoS to provide differentiated services.
  • Page 40 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Create DiffServ domains and map 802.1p priorities to PHBs and colors. Bind the DiffServ domain to inbound interfaces GE1/0/1 and GE 1/0/2 on the Switch. Data Preparation...
  • Page 41: Example For Re-Marking The Priorities Based On Complex Traffic Classification

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [Switch-GigabitEthernet1/0/1] quit [Switch] interface gigabitethernet1/0/2 [Switch-GigabitEthernet1/0/2] trust upstream ds2 [Switch-GigabitEthernet1/0/2] quit ----End Configuration Files Configuration file of the Switch sysname Switch vlan batch 100 200 300 diffserv domain ds1...
  • Page 42 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Figure 1-2 Networking diagram of priority re-marking based on complex traffic classification Core network Router VLAN 300 GE2/0/1 GE1/0/1 GE1/0/2 VLAN 100 Switch VLAN 200 Branch 2 of the...
  • Page 43 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [Switch] interface gigabitethernet1/0/1 [Switch-GigabitEthernet1/0/1] port hybrid pivd vlan 100 [Switch-GigabitEthernet1/0/1] port hybrid untagged vlan 100 300 [Switch-GigabitEthernet1/0/1] port vlan-stacking vlan 100 stack-vlan 300 [Switch-GigabitEthernet1/0/1] quit [Switch] interface gigabitethernet1/0/2...
  • Page 44 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Classifier: c2 Precedence: 5 Operator: AND Rule(s) : if-match cvlan-id 200 Classifier: c1 Precedence: 5 Operator: AND Rule(s) : if-match cvlan-id 100 # Check the configuration of the traffic policy.
  • Page 45: Example For Configuring Policy-Based Routing

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration port trunk allow-pass vlan 300 return 1.6.3 Example for Configuring Policy-based Routing After packet redirection based on complex traffic classification is configured, the S7700 redirects packets with different IP priorities to different interfaces so that the S7700 provides different bandwidth services.
  • Page 46 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Procedure Step 1 Create VLANs and configure interfaces. # Create VLANs 20 and 30. <Quidway> system-view [Quidway] sysname Switch [Switch] vlan batch 20 30 # Configure the type of GE 1/0/1, GE 1/0/2 and GE 2/0/1 to trunk, and add all of GE 1/0/1, GE 1/0/2 and GE 2/0/1 to VLAN 20 and VLAN 30.
  • Page 47 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [Switch-classifier-c2] if-match acl 3002 [Switch-classifier-c2] quit Step 4 Create traffic behaviors. # Create traffic behaviors b1 and b2 on the Switch to redirect packets to network segments 20.20.20.1/24 and 20.20.30.1/24.
  • Page 48 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration <Switch> display traffic policy user-defined p1 User Defined Traffic Policy Information: Policy: p1 Classifier: c1 Operator: OR Behavior: b1 Redirect: Redirect ip-nexthop 20.20.20.1 Classifier: c2 Operator: OR...
  • Page 49: Example For Configuring Traffic Statistics Based On Complex Traffic Classification

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration return 1.6.4 Example for Configuring Traffic Statistics Based on Complex Traffic Classification After traffic statistics based on complex traffic classification is configured, the S7700 collect traffic statistics on packets with the specified source MAC address.
  • Page 50 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration Procedure Step 1 Create a VLAN and configure interfaces. # Create VLAN 20. <Quidway> system-view [Quidway] sysname Switch [Switch] vlan 20 [Switch-vlan20] quit # Configure the type of GE1/0/1 as access and GE2/0/1 as trunk, and add GE1/0/1 and GE2/0/1 to VLAN 20.
  • Page 51 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration [Switch] interface gigabitethernet1/0/1 [Switch-GigabitEthernet1/0/1] traffic-policy p1 inbound [Switch-GigabitEthernet1/0/1] quit [Switch] quit Step 6 Verify the configuration. # Check the configuration of the ACL. <Switch> display acl 4000...
  • Page 52 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 1 Class-based QoS Configuration return Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 53: Traffic Policing And Traffic Shaping Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Traffic Policing and Traffic Shaping Configuration About This Chapter This document describes basic concepts of traffic policing and traffic shaping, and introduces the configuration method of QoS CAR, the configuration method of traffic policing based on a traffic classifier, and traffic shaping, and provides configuration examples.
  • Page 54: Overview Of Traffic Policing And Traffic Shaping

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration 2.1 Overview of Traffic Policing and Traffic Shaping This section describes the basic concepts of traffic policing and traffic shaping and the differences between traffic policing and traffic shaping.
  • Page 55 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration The S7700 supports the single token bucket and dual token buckets. Single token bucket The single token bucket technology uses the following parameters: – Committed burst size (CBS): indicates the maximum volume of traffic that bursts in bucket C, in bytes.
  • Page 56: Traffic Shaping

    LPU. CPCAR uses the single token bucket. For details about host packets, blacklisted flows, user-defined flows, and CPCAR configuration, see Local Attack Defense Configuration in the Quidway S7700 Smart Routing Switch Configuration Guide - Security. 2.1.2 Traffic Shaping The traffic shaping function is used to control the rate of packets so that packets are sent at an even rate.
  • Page 57: Configuring Interface-Based Traffic Policing

    Quidway S7700 Smart 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 58: Limiting The Rate Of Traffic On The Outbound Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Applicable Environment If the service traffic sent by users is not limited, a network is congested because a large number of users send bursts of data in the same period. To make full use of limited network resources and provide better services for more users, limit user service traffic.
  • Page 59: Configuring Rate Limit On The Management Interface

    You need to create a port group before performing this task. For details on how to create a port group, see Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Step 4 Run: qos car inbound car-name The CAR profile is applied on an interface.
  • Page 60: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration 2.2.4 Checking the Configuration After interface-based traffic policing is configured, you can view the name, index, and parameters of the CAR profiles and the number of times the CAR profile was applied.
  • Page 61: Configuring Complex Traffic Classification

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Data Name of the traffic classifier and related parameters Name of the traffic behavior and CAR parameters: CIR, (optional) CBS, (optional) PIR, (optional) PBS, (optional) color, (optional) coloring mode, and (optional) CoS...
  • Page 62 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Apart from being defined in a DiffServ domain, colors of packets can also be defined in traffic policing. l When the burst size of a packet is smaller than the CBS value, the packet is colored green.
  • Page 63: Creating A Traffic Policy

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed. Run: car car-name share An aggregate CAR action is configured.
  • Page 64 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Run: traffic-policy policy-name global { inbound | outbound } [ slot slot-id ] A traffic policy is applied to the system or a slot in the inbound or outbound direction.
  • Page 65: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration After a traffic policy is applied, the system performs traffic policing for the packets that belong to a VLAN and match a traffic classifier in the inbound or outbound direction.
  • Page 66: Configuring Traffic Shaping On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration shaping in an interface queue. Otherwise, traffic shaping fails. For example, traffic of lower priorities preempts the bandwidth of traffic of higher priorities. Pre-configuration Tasks...
  • Page 67: Optional) Setting The Length Of The Interface Queue

    2 Traffic Policing and Traffic Shaping Configuration NOTE You need to create a port group before performing this task. For details about creating an interface group, see Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Step 3 Run:...
  • Page 68: Configuring Traffic Shaping In An Interface Queue

    NOTE You need to create a port group before performing this task. For details about how to create a port group, see Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Step 3 Run:...
  • Page 69: Checking The Configuration

    NOTE S-series and W-series boards do not support the display qos queue statistics command. For details about S-series and W-series boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description. Run the display qos configuration interface [ interface-type interface-number ] command to check all the QoS configurations on the interface.
  • Page 70: Checking The Usage Of The Queue

    The display qos queue statistics command cannot be used on S-series and W-series boards. l The statistics on bytes cannot be collected on S-series and W-series boards. l For details about S-series and W-series boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description.
  • Page 71: Configuration Examples

    NOTE The reset qos queue statistics command cannot be used on S-series and W-series boards. For details about S-series and W-series boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description. ----End 2.6 Configuration Examples...
  • Page 72 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Figure 2-3 Networking diagram of interface-based traffic policing Core network Router GE 2/0/1 GE 1/0/1 GE 1/0/2 Switch branch 1 of the branch 2 of the...
  • Page 73 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration [Switch] interface gigabitethernet1/0/1 [Switch-GigabitEthernet1/0/1] port link-type trunk [Switch-GigabitEthernet1/0/1] port trunk allow-pass vlan 100 [Switch-GigabitEthernet1/0/1] quit [Switch] interface gigabitethernet1/0/2 [Switch-GigabitEthernet1/0/2] port link-type trunk [Switch-GigabitEthernet1/0/2] port trunk allow-pass vlan 200...
  • Page 74: Example For Configuring Traffic Policing Based On A Traffic Classifier

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Applied number on Trunk inbound : 0 Applied number on Vlan Unknown Unicast : 0 Applied number on Vlan Multicast : 0 Applied number on Vlan Broadcast : 0...
  • Page 75: Networking Requirements

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Networking Requirements The Switch is connected to the router by using GE 2/0/1; enterprise users can access the network by using the Switch and the router. See Table 2-2.
  • Page 76 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Create VLANs and configure interfaces so that enterprise can access the network by using the Switch. Create traffic classifiers based on the VLAN ID on the Switch.
  • Page 77 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration [Switch-behavior-b1] remark dscp 46 [Switch-behavior-b1] statistic enable [Switch-behavior-b1] quit [Switch] traffic behavior b2 [Switch-behavior-b2] car cir 4000 pir 10000 green pass [Switch-behavior-b2] remark dscp 30...
  • Page 78 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Remark DSCP ef statistic: enable Classifier: c2 Operator: OR Behavior: b2 Marking: Remark DSCP af33 statistic: enable Committed Access Rate: CIR 4000 (Kbps), PIR 10000 (Kbps), CBS 500000 (byte), PBS 1250000 (byte)
  • Page 79: Example For Configuring Traffic Shaping

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration remark dscp af33 statistic enable traffic behavior b3 car cir 4000 pir 10000 cbs 500000 pbs 1250000 mode color-blind green pass yellow pass red discard...
  • Page 80 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Figure 2-5 Networking diagram for configuring traffic shaping Phone 802.1p = 6 GE 1/0/1 GE 2/0/1 802.1p = 2 Core network Switch Router 802.1p = 5...
  • Page 81 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration # Create VLANIF 10 and assign network segment address 10.10.10.1/24 to VLANIF 10. [Switch] interface vlanif 10 [Switch-Vlanif10] ip address 10.10.10.1 255.255.255.0 [Switch-Vlanif10] quit NOTE Assign IP address 10.10.10.2/24 to the interface connecting the router and Switch.
  • Page 82 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration # If the configuration succeeds, the committed bandwidth for the packets transmitted by GE1/0/1 is 10000 kbit/s; the transmission rate of the voice service ranges from 3000 kbit/s to 5000 kbit/ s;...
  • Page 83: Congestion Avoidance And Congestion Management Configuration

    Quidway S7700 Smart 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 basic concepts of congestion avoidance and congestion management, and provides configuration methods and configuration examples of congestion avoidance and congestion management.
  • Page 84: Overview Of Congestion Avoidance And Congestion Management

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration 3.1 Overview of Congestion Avoidance and Congestion Management This section describes the basic concepts of congestion avoidance and congestion management. 3.1.1 Congestion Avoidance Congestion avoidance is a flow control mechanism. A system configured with congestion avoidance monitors network resource usage such as queues and memory buffers.
  • Page 85: Congestion Management

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration the drop policy based on colors of packets, so the drop probability of packets with higher priorities is low. 3.1.2 Congestion Management When intermittent congestion occurs on the network, delay-sensitive services require higher QoS than others.
  • Page 86: Configuring Congestion Avoidance

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration DRR Scheduling The principle of Deficit Round Robin (DRR) is similar to the principle of WRR. Their difference is that WRR schedules packets according to the number of packets, but DRR schedules packets according to the length of packets.
  • Page 87: Optional) Setting The Length Of The Interface Queue

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Configuring traffic policing based on complex traffic classification and the remarking action NOTE Before configuring congestion avoidance, you need to perform either of the preceding tasks to color packets as the basis of congestion avoidance.
  • Page 88: Creating A Wred Drop Profile

    The interface type can be Ethernet, GE, XGE, or Eth-Trunk. l You need to create a port group before performing this task. For details about creating a port group, see Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet.
  • Page 89: Applying The Wred Drop Profile

    NOTE The WRED algorithm for non-TCP packets cannot be used on S series boards, W series boards, and G48SBC boards. For more information about S series boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description. ----End 3.2.5 Applying the WRED Drop Profile...
  • Page 90: Checking The Configuration

    The port group view is displayed. NOTE You need to create a port group before performing this task. For details on how to create a port group, see (Optional) Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Run: qos wred drop-profile-name The WRED drop profile is applied to a port group.
  • Page 91: Configuring Congestion Management

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration 3.3 Configuring Congestion Management After congestion management is configured, if congestion occurs on a network, the S7700 determines the sequence of forwarding packets according to the defined scheduling policy.
  • Page 92: Optional) Setting The Length Of The Interface Queue

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration 3.3.2 (Optional) Setting the Length of the Interface Queue This section describes how to set the length of the interface queue and the length of the specified priority queue.
  • Page 93: Checking The Configuration

    NOTE You need to create a port group before performing this task. For details about creating a port group, see (Optional) Configuring the Interface Group in the Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet. Step 3 Run the following commands as required.
  • Page 94: Maintaining Congestion Avoidance And Congestion Management

    Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Prerequisite The congestion management configurations are complete. Procedure Run the display qos queue length interface interface-type interface-number command to check the usage of the priority queue on a specified interface.
  • Page 95: Clearing The Queue-Based Statistics

    G48SBC boards and W series boards do not support the display qos queue length command. For details about S-series boards, E-series boards, W series boards, and G48SBC boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description. ----End 3.4.3 Clearing the Queue-based Statistics...
  • Page 96: Configuration Examples

    Configuration Guide - QoS Configuration NOTE The reset qos queue statistics command cannot be used on S-series and W-series boards. For details about S-series and W-series boards, see Board Classification in the Quidway S7700 Smart Routing Switch Hardware Description. ----End 3.5 Configuration Examples This section provides several configuration examples of congestion avoidance and congestion management.
  • Page 97 Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Figure 3-1 Networking diagram for configuring congestion avoidance and congestion management Internet Router GE2/0/1 GE1/0/1 GE1/0/2 Switch 802.1p 802.1p Individual Individual user n user 1 802.1p...
  • Page 98 Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration Procedure Step 1 Configure the VLAN for each interface so that the devices can communicate with each other. <Quidway> system-view [Quidway] sysname Switch [Switch] vlan batch 2 5 6...
  • Page 99 Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration [Switch] interface gigabitethernet1/0/1 [Switch-GigabitEthernet1/0/1] qos pq 5 [Switch-GigabitEthernet1/0/1] qos drr 0 to 6 [Switch-GigabitEthernet1/0/1] qos queue 3 drr weight 100 [Switch-GigabitEthernet1/0/1] qos queue 1 drr weight 50...
  • Page 100 Quidway S7700 Smart Routing Switch 3 Congestion Avoidance and Congestion Management Configuration Guide - QoS Configuration qos queue 3 drr weight 100 qos queue 1 wred wred1 qos queue 3 wred wred1 qos queue 5 wred wred1 interface GigabitEthernet1/0/2 port link-type trunk...
  • Page 101: Traffic Distribution Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Traffic Distribution Configuration About This Chapter This section describes basic concepts of traffic distribution, describes the configuration method of traffic distribution based on the Eth-Trunk and Equal Cost Multi-Path (ECMP), and provides configuration examples.
  • Page 102: Traffic Distribution Overview

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration 4.1 Traffic Distribution Overview This section describes basic concepts of traffic distribution. The traffic distribution device captures the packets on a network and forwards them to packet analysis devices or computers that run the packet analysis software for analyzing, recording and processing.
  • Page 103: Configuring Traffic Distribution Based On The Eth-Trunk

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration During data packets forwarding, the S7700 can ensure the integrity of data packets and retain the original TTL value of data packets. Currently, only the E-series boards and X12SA boards can retain the original TTL value of data packets.
  • Page 104: Setting The Load Balancing Mode Of An Eth-Trunk

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Pre-configuration Tasks Before configuring traffic distribution based on the Eth-Trunk, complete the following tasks: Powering on the device normally Creating an Eth-Trunk Adding member interfaces to the Eth-Trunk Data Preparation To configure traffic distribution based on the Eth-Trunk, you need the following data.
  • Page 105: Optional) Configuring Unidirectional Single-Fiber Communication

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration NOTE Currently, only E-series boards and X12SA boards support the load-balance diffluence command and this function needs to be configured with the license. Load balancing based on traffic distribution and monitoring on the Eth-Trunk configured by...
  • Page 106: Configuring A Traffic Policy

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration NOTE Currently, only the E-series boards and X12SA boards support the single-fiber communication function and this function needs to be configured with the license. ----End 4.3.4 Configuring a Traffic Policy...
  • Page 107: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration The traffic policy is applied to the inbound interface. ----End 4.3.5 Checking the Configuration Prerequisite The configurations of load balancing of the Eth-Trunk and the traffic policy are complete.
  • Page 108: Configuring Static Routes

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Figure 4-2 Traffic distribution based on ECMP Upstream S9300B S9300C Traffic Splitter XGE 2/0/1 S9300A GE 1/0/4 GE 1/0/1 GE 1/0/2 GE 1/0/3 Server 4 Server 1...
  • Page 109: Configuring Ecmp

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Procedure Configure static routes. For details, see the IP Static Route Configuration in the Quidway S7700 Smart Routing Switch Configuration Guide - IP Routing. ----End 4.4.3 Configuring ECMP...
  • Page 110: Optional) Retaining The Original Ttl Value

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration By default, IPv4 packets are load balanced based on the source and destination IP addresses. Run: quit Return to the system view. Run: ecmp load-balance enhanced profile profile-name The ECMP profile is applied.
  • Page 111: Maintaining Traffic Distribution

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Example Run the display ecmp-profile [ profile-name ] command to check the name and the load balancing mode of the ECMP profile. <Quidway> display ecmp-profile ECMP-profile: test...
  • Page 112 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Figure 4-3 Traffic distribution based on the Eth-Trunk Upstream Traffic Splitter SwitchC SwitchB XGE 2/0/1 SwitchA GE 1/0/1 GE 1/0/4 Eth-Trunk 1 GE 1/0/2 GE 1/0/3 Server 1...
  • Page 113 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration [SwitchA-Eth-Trunk1] load-balance diffluence [SwitchA-Eth-Trunk1] quit Step 2 Configure a traffic policy to redirect the UDP packets with the destination port number being 10000 to Eth-Trunk 1. # Create ACL 3000 to match the UDP packet with the destination port number being 10000.
  • Page 114: Example For Configuring Traffic Distribution Based On Ecmp

    Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration classifier test behavior test interface Eth-Trunk1 load-balance diffluence interface GigabitEthernet1/0/1 eth-trunk 1 undo negotiation auto single-fiber enable interface GigabitEthernet1/0/2 eth-trunk 1 undo negotiation auto single-fiber enable interface GigabitEthernet1/0/3...
  • Page 115 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Figure 4-4 Traffic distribution based on ECMP Upstream SwitchB SwitchC Traffic Splitter XGE 2/0/1 SwitchA GE 1/0/4 GE 1/0/1 GE 1/0/2 GE 1/0/3 Server 4 Server 1...
  • Page 116 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration Procedure Step 1 Configure the VLAN that each interface belongs to, as shown in Figure 4-4. The details are not mentioned here. Step 2 Set IP addresses of interfaces.
  • Page 117 Quidway S7700 Smart Routing Switch Configuration Guide - QoS 4 Traffic Distribution Configuration interface Vlanif40 ip address 11.0.4.1 255.255.255.0 interface Vlanif100 ip address 10.0.0.1 255.255.255.0 interface GigabitEthernet1/0/1 port link-type access port default vlan 10 interface GigabitEthernet1/0/2 port link-type access port default vlan 20...

Table of Contents