Table of Contents

Advertisement

Quick Links

S3700HI Ethernet Switches
V200R001C00
Configuration Guide - QoS
Issue
01
Date
2012-03-15
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei S3700HI

  • Page 1 S3700HI Ethernet Switches V200R001C00 Configuration Guide - QoS Issue Date 2012-03-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

    Indicates a tip that may help you solve a problem or save time. Provides additional information to emphasize or supplement NOTE important points of the main text. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 4: Command Conventions

    Change History Updates between document issues are cumulative. Therefore, the latest document issue contains all updates made in previous issues. Changes in Issue 01 (2012-03-15) Initial commercial release. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 5: Table Of Contents

    1.6.1 Displaying the Flow-based Traffic Statistics...................38 1.6.2 Clearing the Flow-based Traffic Statistics....................38 1.7 Configuration Examples...........................38 1.7.1 Example for Configuring Priority Mapping Based on Simple Traffic Classification on the S3700HI ..................................39 1.7.2 Example for Re-marking the Priorities Based on Complex Traffic Classification.........41...
  • Page 6 2.6.1 Example for Configuring Traffic Policing Based on an Interface............68 2.6.2 Example for Configuring Traffic Policing Based on a Traffic Classifier..........70 2.6.3 Example for Configuring Hierarchical Traffic Policing on the S3700HI..........75 2.6.4 Example for Configuring Traffic Shaping....................80 3 Congestion Avoidance and Congestion Management Configuration......84 3.1 Overview of Congestion Avoidance and Congestion Management..............85...
  • Page 7 3.4 Maintaining Congestion Avoidance and Congestion Management..............95 3.4.1 Displaying the Queue-based Statistics....................95 3.4.2 Clearing the Queue-based Statistics......................96 3.5 Configuration Examples...........................96 3.5.1 Example for Configuring Congestion Avoidance and Congestion Management on the S3700HI..96 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 8: Class-Based Qos Configuration

    QoS service for traffic of the same type by matching packets with certain rules. In this manner, differentiated services are provided. 1.2 Class-based QoS Features Supported by the S3700HI The S3700 supports simple traffic classification, complex traffic classification, and priority mapping.
  • Page 9: Introduction To Class-Based Qos

    QoS service for traffic of the same type by matching packets with certain rules. In this manner, differentiated services are provided. 1.2 Class-based QoS Features Supported by the S3700HI The S3700 supports simple traffic classification, complex traffic classification, and priority mapping.
  • Page 10: Priority Mapping

    Complex traffic classification is required to provide differentiated services. Complex traffic classification takes effect only when it is associated with a traffic control action or a resource allocation action. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 11 This traffic control action copies the specified data packets to a specified destination to detect and troubleshoot faults on a network. For details about flow mirroring, see Mirroring in the S3700HI Ethernet Switches Configuration Guide - Device Management. Traffic statistics This traffic control action collects data packets matching defined complex traffic classification rules on the S3700.
  • Page 12: Configuring Priority Mapping Based On Simple Traffic Classification

    802.1p priorities of incoming or outgoing packets in a VLAN, DSCP priorities, PHBs, and colors of incoming or outgoing IP packets Type and number of the interface bound to a DiffServ domain Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 13: Configuring An Interface To Trust The Priority Of Packets

    The interface type can be Ethernet, GE, or Eth-Trunk. l 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 S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: trust { 8021p { inner | outer } | dscp } The interface is configured to trust packet priorities.
  • Page 14: Optional) Setting The Default 802.1P Priority Of An Interface

    S3700 binds a DiffServ domain to the outbound interface. In the DiffServ domain, the S3700 maps packet PHBs and colors to priorities so that the downstream device provides QoS services based on packet priorities. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 15: Applying A Diffserv Domain

    DiffServ domain, bind the DiffServ domain to the inbound interface. The system maps packet priorities to PHBs and colors based on the mappings defined in the DiffServ domain. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 16 The interface type can be Ethernet, GE, or Eth-Trunk. l 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 S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: trust upstream { ds-domain-name | default | none } The interface is bound to a DiffServ domain.
  • Page 17: Checking The Configuration

    Setting link layer attributes of interfaces Configuring routing protocols to ensure the connectivity of the network Configuring ACLs if ACLs are used as matching rules for traffic classification Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 18: Configuring Complex Traffic Classification

    { 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> Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 19 By default, the relationship between rules in a traffic classifier is AND. Step 3 Run the following commands as required. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 20 A basic ACL is created and the ACL view is displayed. Or, run: acl [ ipv6 ] name acl-name basic A named ACL is created and ACL view is displayed. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 21 A advance ACL is created and the ACL view is displayed. Or, run: acl [ ipv6 ] name acl-name link A named ACL is created and ACL view is displayed. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 22 { ack | fin | psh | rst | syn | urg } | time-rangetime-name | tos tos ] – When protocol is set to UDP, the command format of an advanced ACL6 rule is as follows: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 23 Creating a traffic classifier based on a Layer 2 ACL Run: system-view The system view is displayed. Run: acl l2-acl-number A Layer 2 ACL is created and the ACL view is displayed. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 24 A user-defined ACL is created and the user-defined ACL view is displayed. NOTE user-defined-acl-number specified the number of a user-defined ACL. The value is an integer that ranges from 5000 to 5999. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 25: Configuring A Traffic Behavior

    By configuring the deny or permit action, the S3700 rejects or permits packets matching traffic classification rules to control the network traffic. Procedure Step 1 Run: system-view The system view is displayed. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 26 The VLAN ID in the outer VLAN tag of the packets in a VLAN matching the traffic classification is re-marked. l Run: remark destination-mac mac-address The destination MAC address of the packets matching the traffic classification is re-marked. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 27 A traffic behavior is created and the traffic behavior view is displayed. Step 3 Run the following commands as required. l Run: redirect cpu The packets matching the traffic classification are redirected to the CPU. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 28: Configuring Traffic Policing

    ----End Configuring Traffic Policing Traffic policing discards the packets that exceed the rate limit or re-marks colors or CoS of these packets. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 29 All the flows that match a traffic classifier are mirrored to an observing interface. NOTE For details about flow mirroring, see Configuring Local Flow Mirroring in the S3700HI Ethernet Switches Configuration Guide - Device Management. ----End...
  • Page 30: Configuring Traffic Statistics

    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: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 31: Configuring A Traffic Policy

    You can associate a traffic classifier with a traffic behavior in a traffic policy. Context When creating a traffic policy on the S3700HI, specify the matching order of traffic classifiers in the traffic policy. The matching order includes the automatic order and configuration order: If the automatic order is used, traffic classifiers are matched based on their priorities.
  • Page 32 A traffic policy is applied to the interface in the inbound or outbound direction. Only one traffic policy can be applied to an interface in the inbound or outbound direction. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 33: Checking The Configuration

    Run the display traffic behavior user-defined [ behavior-name ] command to check the traffic behavior configuration. Run the display traffic policy user-defined [ policy-name [ classifier classifier-name ] ] command to check the traffic policy information. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 34: Configuring A Traffic Policy By Using Simplified Qos Commands

    Configuring an ACL if the ACL needs to be used to classify traffic Data Preparation To configure a traffic policy by using simplified QoS commands, you need the following data. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 35: Configuring Traffic Policing For The Traffic That Matches An Acl Rule

    | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ red { drop | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] ] Traffic policing is performed for outgoing packets based on the ACL rule. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 36 } | l2-acl | user-acl } } [ rule rule-id ] cir cir-value [ pir pir- value ] [ cbs cbs-value pbs pbs-value ] [ [ green { drop | pass Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 37 [ yellow { drop | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] [ red { drop | pass [ remark-8021p 8021p-value | remark-dscp dscp-value ] } ] ] ----End Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 38: Filtering The Traffic That Matches An Acl Rule

    { [ ipv6 ] {bas-acl | adv-acl | name acl-name } | l2-acl | user-acl } [ rule rule-id ] The incoming packets matching an ACL rule are filtered on an interface. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 39: Re-Marking The Traffic That Matches An Acl Rule

    { dscp-name | dscp-value } | local-precedence local-precedence-value | ip-precedence ip-precedence- value | vlan-id vlan-id } The priorities of incoming packets matching an ACL rule are re-marked. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 40 { dscp-name | dscp-value } | local- precedence local-precedence-value | ip-precedence ip-precedence-value | vlan-id vlan-id } The priorities of incoming packets matching an ACL rule are re-marked. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 41: Collecting Statistics On The Traffic That Matches An Acl Rule

    [ vlan vlan-id ] inbound acl { l2-acl | name acl-name } [ rule rule-id ] acl { bas-acl | adv-acl | name acl-name } [ rule rule-id ] Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 42: Mirroring Traffic That Matches An Acl Rule

    | name acl-name } | l2-acl | user-acl } } [ rule rule-id ] to observe- port o-index The incoming packets matching an ACL rule are mirrored on an interface. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 43: Redirecting The Traffic That Matches An Acl Rule

    By configuring the redirection action, the S3700 redirects the packets matching traffic classification rules to the CPU, the specified interface, or the specified next hop address. Procedure Configuring traffic redirection globally Run: system-view The system view is displayed. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 44 { l2-acl | name acl-name } [ rule rule-id ] acl { bas-acl | adv- acl | name acl-name } [ rule rule-id ] { cpu | interface interface-type interface-number | ip- nexthop ip-nexthop | ipv6-nexthop ipv6-nexthop } ----End Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 45: Maintaining Class-Based Qos

    | vlan vlan-id } { inbound | outbound } command in the user view to clear the flow-based traffic statistics. ----End 1.7 Configuration Examples This section provides several configuration examples of class-based QoS. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 46: Example For Configuring Priority Mapping Based On Simple Traffic Classification On The S3700Hi

    1 Class-based QoS Configuration 1.7.1 Example for Configuring Priority Mapping Based on Simple Traffic Classification on the S3700HI After priority mapping based on simple traffic classification is configured, the S3700 maps 802.1p priorities of packets to different CoS to provide differentiated services.
  • Page 47 # Bind DiffServ domains ds1 and ds2 to GE 0/0/1, and GE 0/0/2 respectively. [Switch] interface gigabitethernet0/0/1 [Switch-GigabitEthernet0/0/1] trust upstream ds1 [Switch-GigabitEthernet0/0/1] quit [Switch] interface gigabitethernet0/0/2 [Switch-GigabitEthernet0/0/2] trust upstream ds2 [Switch-GigabitEthernet0/0/2] quit ----End Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 48: Example For Re-Marking The Priorities Based On Complex Traffic Classification

    Branch 1 is mapped to 4 and the priority of data packets to Branch 2 is mapped to 2. By doing this, differentiated services are provided. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 49 Switch adds the outer VLAN tag with the VLAN ID as 300 to the packets sent from GE 0/0/1 and GE 0/0/2 and GE 0/0/3 can forward packets in VLAN 300. <Quidway> system-view [Quidway] sysname Switch Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 50 [Switch-GigabitEthernet0/0/2] traffic-policy p1 inbound [Switch-GigabitEthernet0/0/2] quit Step 5 Verify the configuration. # Check the configuration of traffic classifiers. <Switch> display traffic classifier user-defined User Defined Classifier Information: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 51 GigabitEthernet0/0/2 qinq vlan-translation enable port hybrid pvid vlan port hybrid untagged vlan 200 300 port vlan-stacking vlan 200 stack-vlan 300 traffic-policy p1 inbound Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 52: Example For Configuring Policy-Based Routing

    VLAN 20 and VLAN 30 that all of GE0/0/1, GE0/0/2 and GE0/0/3 are added to ACL rules 3001 and 3002 Traffic classifiers c1 and c2 Traffic behaviors b1 and b2 Traffic policy p1 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 53 Create traffic classifiers c1 and c2 on the Switch with matching rules as ACL 3001 and ACL 3002. [Switch] traffic classifier c1 [Switch-classifier-c1] if-match acl 3001 [Switch-classifier-c1] quit [Switch] traffic classifier c2 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 54 Rule(s) : if-match acl 3001 Total classifier number is 2 # View the configuration of the traffic policy. <Switch> display traffic policy user-defined p1 User Defined Traffic Policy Information: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 55 20 30 traffic-policy p1 inbound interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 20 30 interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 20 30 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 56: Example For Configuring Traffic Statistics Based On Complex Traffic Classification

    To complete the configuration, you need the following data: VLAN 20 ACL 4000 Traffic classifier c1 Traffic behavior b1 Traffic policy p1 Procedure Step 1 Create a VLAN and configure interfaces. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 57 [Switch] traffic policy p1 [Switch-trafficpolicy-p1] classifier c1 behavior b1 [Switch-trafficpolicy-p1] quit Apply traffic policy p1 to Eth0/0/1. [Switch] interface ethernet0/0/1 [Switch-Ethernet0/0/1] traffic-policy p1 inbound Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 58 20.20.20.1 255.255.255.0 interface Ethernet0/0/1 port link-type access port default vlan 20 traffic-policy p1 inbound interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 20 return Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 59: Traffic Policing And Traffic Shaping Configuration

    2.5 Maintaining Traffic Policing and Traffic Shaping This section describes how to maintain traffic policing and traffic shaping. 2.6 Configuration Examples This section provides several configuration examples of traffic policing and traffic shaping. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 60: Traffic Policing And Traffic Shaping Overview

    Packets that need to be sent from this interface Continue to send Classification Token bucket Drop The S3700 supports the single token bucket and dual token buckets. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 61 Traffic policing based on a traffic classifier uses dual token buckets. After traffic policing based on a traffic classifier is configured on an S3700HI, CAR can be performed twice for upstream flows. The S3700HI first applies CAR to the upstream flows that match a traffic classifier, and then it aggregates all the upstream flows and applies CAR to limit the aggregated flows.
  • Page 62: Traffic Shaping

    The S3700 performs traffic shaping for the packets of a certain type that pass through an interface based on simple traffic classification. In this manner, traffic shaping based on voice, data, and video services is implemented. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 63: Configuring Traffic Policing Based On An Interface

    2.2.2 Limiting the Rate of Traffic on the Interface To limit the rate of traffic entering the S3700, configure traffic policing on the inbound interface. Procedure Step 1 Run: system-view Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 64: Displaying The Maximum Length Of A Queue

    Create a port group before performing this task. For details on how to create a port group, see (Optional) Configuring a Port Group in the S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: qos lr { inbound | outbound } cir cir-value [ cbs cbs-value ] Traffic policing is configured on the interface.
  • Page 65: Configuring Traffic Policing Based On A Traffic Classifier

    Data Preparation To configure traffic policing based on a traffic classifier, you need the following data. Data Name of the traffic classifier and related parameters Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 66: Configuring Complex Traffic Classification

    PHBs and colors. Context Level-2 CAR is supported by the S3700HI. After the system applies the CAR to the service flows matching a traffic classifier in a traffic policy, it aggregates all the service flows matching the traffic classifier bound to the aggregate CAR action in the same traffic policy and applies the CAR to the flows.
  • Page 67: Creating A Traffic Policy

    You can associate a traffic classifier with a traffic behavior in a traffic policy. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: traffic policy policy-name [ match-order { auto | config } ] Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 68: Applying The Traffic Policy

    Traffic policies applied to the slot and system have the same functions. Applying a traffic policy to an interface Run: system-view Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 69: Checking The Configuration

    Run the display traffic behavior user-defined [ behavior-name ] command to check the traffic behavior configuration. Run the display traffic classifier user-defined [ classifier-name ] command to check the traffic classifier configuration. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 70: Configuring Traffic Shaping

    Run the display traffic policy { interface [ interface-type interface-number ] | vlan [ vlan- id ] | global } [ inbound | outbound ] command on the S3700HI to check the traffic policy information and flow-based traffic statistics.
  • Page 71: Configuring Traffic Shaping On An Interface

    NOTE Create a port group before performing this task. For details on how to create a port group, see Configuring the Interface Group in the S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: qos lr { inbound | outbound } cir cir-value [ cbs cbs-value ] The rate for traffic shaping on an interface is set.
  • Page 72: Optional) Setting The Length Of The Interface Queue

    Classification For details about internal priority re-marking based on complex traffic classification, see Creating a Traffic Policy Based on Complex Traffic Classification. Procedure Step 1 Run: system-view Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 73: Checking The Configuration

    NOTE Create a port group before performing this task. For details on how to create a port group, see Configuring the Interface Group in the S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: qos queue queue-index shaping cir cir-value pir pir-value [ cbs cbs-value pbs pbs- value ] The rate for traffic shaping in an interface queue is set.
  • Page 74: Displaying The Traffic Statistics

    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. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 75: Configuration Examples

    Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration Run the reset qos queue statistics interface interface-type interface-number command on the S3700HI to clear the queue-based traffic statistics on the interface. ----End 2.6 Configuration Examples This section provides several configuration examples of traffic policing and traffic shaping.
  • Page 76 [Switch-Ethernet0/0/1] qos lr inbound cir 8192 [Switch-Ethernet0/0/1] quit [Switch] interface ethernet0/0/2 [Switch-Ethernet0/0/2] qos lr inbound cir 5120 [Switch-Ethernet0/0/2] quit Step 3 Verify the configuration. # View the traffic policing configuration. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 77: Example For Configuring Traffic Policing Based On A Traffic Classifier

    QoS in practice. Therefore, you need to re-mark DSCP priorities of different service packets on the Switch so that the downstream router can process packets based on priorities. The requirements are as follows: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 78 Re-marked priorities of packets with different VLAN IDs Parameters for packets with different VLAN IDs: CIR and PIR values Type and number of the interface to which a traffic policy needs to be applied Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 79 GE0/0/1 in the inbound direction to limit the packets received from the user side and re-mark priorities of these packets. [Switch] traffic policy p1 [Switch-trafficpolicy-p1] classifier c1 behavior b1 [Switch-trafficpolicy-p1] classifier c2 behavior b2 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 80 Committed Access Rate: CIR 4000 (Kbps), CBS 500000 (Byte) PIR 10000 (Kbps), PBS 1250000 (Byte) Green Action : pass Yellow Action : pass Red Action : discard Marking: Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 81 GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 110 120 traffic-policy p1 inbound interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 100 110 120 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 82: Example For Configuring Hierarchical Traffic Policing On The S3700Hi

    Figure 2-5 Hierarchical traffic policing Provincial center server GE0/0/2 Switch GE0/0/1 ISP network GE0/0/1 GE0/0/1 VLAN 100 VLAN 200 SwitchA SwitchB City A City B 10.1.0.0/16 10.2.0.0/16 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 83 # Configure ACL 3001 to permit the TCP packets destined for city B on the network segment 10.2.0.0/16 to pass through. [Switch] acl 3001 [Switch-acl-adv-3001] rule 5 permit tcp destination 10.2.0.0 0.0.255.255 Step 3 Configure traffic classifiers. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 84 [Switch-behavior-city_a_af31] car cir 400 pir 2000 [Switch-behavior-city_a_af31] car city_a share [Switch-behavior-city_a_af31] statistic enable [Switch-behavior-city_a_af31] quit [Switch] traffic behavior city_a_af11 [Switch-behavior-city_a_af11] car cir 500 pir 2000 [Switch-behavior-city_a_af11] car city_a share Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 85 [Switch-trafficpolicy-city_control] classifier city_b_af11 behavior city_b_af11 [Switch-trafficpolicy-city_control] classifier city_b_be behavior city_b_be [Switch-trafficpolicy-city_control] classifier city_b_default behavior city_b_default [Switch-trafficpolicy-city_control] quit [Switch] interface gigabitethernet 0/0/2 [Switch-GigabitEthernet0/0/2] traffic-policy city_control inbound [Switch-GigabitEthernet0/0/2] quit Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 86 3001 traffic behavior city_a_af11 car cir 500 pir 2000 cbs 62500 pbs 250000 green pass yellow pass red discard car city_a share statistic enable traffic behavior city_a_af31 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 87: Example For Configuring Traffic Shaping

    2.6.4 Example for Configuring Traffic Shaping You can configure traffic shaping and set different traffic shaping rates for different types of packets to reduce the jitter and ensure bandwidth of various services. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 88 Data Preparation To complete the configuration, you need the following data: 802.1p priorities Rate for traffic shaping on an interface Rate for traffic shaping in each interface queue Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 89 5000 kbit/s to 8000 kbit/s; the transmission rate of the data service ranges from 2000 kbit/s to 3000 kbit/s. ----End Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 90 5 shaping cir 5000 pir 8000 qos queue 6 shaping cir 3000 pir 5000 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 trust 8021p return Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 91: Congestion Avoidance And Congestion Management Configuration

    3.1 Overview of Congestion Avoidance and Congestion Management This section describes the basic concepts of congestion avoidance and congestion management. 3.2 Configuring Congestion Avoidance on the S3700HI After congestion avoidance is configured, the S3700 processes packets of different colors based on the WRED configuration.
  • Page 92: Overview Of Congestion Avoidance And Congestion Management

    When congestion occurs or aggravates, the system discards packets. Congestion avoidance mechanisms include tail drop, Random Early Detection (RED), and Weighted Random Early Detection (WRED). The The S3700HI performs congestion avoidance based on WRED. Tail Drop The traditional packet drop policy uses tail drop.
  • Page 93: Congestion Management

    WRR allocates bandwidth according to the number of packets. When the average length of packets in each queue is the same or known, you can obtain the required bandwidth by Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 94: Configuring Congestion Avoidance On The S3700Hi

    WRR or DRR queue according to their priorities and scheduled in a polling manner according to the weight of the queue. 3.2 Configuring Congestion Avoidance on the S3700HI After congestion avoidance is configured, the S3700 processes packets of different colors based on the WRED configuration.
  • Page 95: Optional) Setting The Length Of The Interface Queue

    Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: qos queue queue-index length length-value The length of the interface priority queue is set. ----End Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 96: Optional) Configuring The Cfi Field As The Internal Drop Priority

    The interface type can be Ethernet, GE, or Eth-Trunk. l Create a port group before performing this task. For details on how to create a port group, see Configuring the Interface Group in the S3700HI Ethernet Switches Configuration Guide - Ethernet. Step 3 Run: dei enable The CFI field is configured as the internal drop priority.
  • Page 97: Applying The Wred Drop Profile

    The system view is displayed. Run: qos queue queue-index wred drop-profile-name A WRED drop profile is applied to the system. Applying a WRED drop profile to an interface Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 98: Checking The Configuration

    The port group view is displayed. NOTE Create a port group before performing this task. For details on how to create a port group, see (Optional) Configuring a Port Group in the S3700HI Ethernet Switches Configuration Guide - Ethernet. Run: qos wred drop-profile-name The WRED drop profile is applied to a port group.
  • Page 99: Configuring Congestion Management

    Data Preparation To configure congestion management, you need the following data. Data Mapping between the local precedence and queues. Mode of queue scheduling. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 100: Optional) Setting The Length Of The Interface Queue

    Otherwise, traffic may be lost because of the queue cannot obtain the buffer. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 101: Setting The Scheduling Mode For An Interface Queue

    NOTE Create a port group before performing this task. For details about creating a port group, see (Optional) Configuring a Port Group in the S3700HI Ethernet Switches 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 102: Checking The Configuration

    You can use display commands to view the queue-based traffic statistics such as the number of forwarded and discarded packets. Context To view the queue-based traffic statistics, run the following command in any view. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 103: Clearing The Queue-Based Statistics

    Before viewing the queue statistics on an interface, run the qos port statistics enable command to enable the queue statistics function on the specified outbound interface. The display qos port statistics command cannot be used on the S3700HI. ----End 3.4.2 Clearing the Queue-based Statistics You can use the reset command to clear the queue-based traffic statistics.
  • Page 104 Types of Color Lower Upper Drop Percent Services Threshold (%) Threshold (%) Voice Green Video Yellow Data Table 3-2 Congestion management parameters Type of Services Voice Video Data Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 105 PHBs mapped to 802.1p priorities being 6, 5, and 2 and colors Name of the WRED drop profile and WRED parameters Scheduling parameters of queues of different CoS Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 106 [Switch-GigabitEthernet0/0/2] quit Step 4 Configure congestion management. # Set scheduling parameters of queues of different CoS on outgoing interfaces GE 0/0/1 and GE 0/0/2 of the Switch. Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 107 2 5 6 qos drr qos queue 1 drr weight 50 qos queue 3 drr weight 100 qos queue 5 drr weight 0 Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 108 3 wred wred1 qos queue 5 wred wred1 interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 2 5 6 trust upstream ds1 trust 8021p inner return Issue 01 (2012-03-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.

Table of Contents