No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - QoS

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the configurations of QoS functions, including MQC, priority mapping, traffic policing, traffic shaping, interface-based rate limiting, congestion avoidance, congestion management, packet filtering, redirection, traffic statistics, and ACL-based simplified traffic policy.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Traffic Statistics

Example for Configuring Traffic Statistics

Networking Requirements

As shown in Figure 11-2, the tenant device is connected to the external network device through the Switch on the data center network. 802.1p priorities of storage service packets and data service packets are 6 and 2 respectively. The tenant requires that statistics on storage service packets be collected to determine bandwidth allocation.

Figure 11-2 Networking for configuring traffic statistics

Configuration Roadmap

The traffic statistics function is enabled so that the Switch can collect statistics on storage service packets. The configuration roadmap is as follows:
  1. Create VLANs and configure interfaces so that the Switch can connect to external network devices.
  2. Configure an ACL to match packets with 802.1p priorities of 6.
  3. Configure a traffic classifier and reference the ACL in the traffic classifier.
  4. Configure a traffic behavior so that the Switch collects statistics on packets matching rules.
  5. Configure a traffic policy, bind the traffic policy to the traffic classifier and traffic behavior, and apply the traffic policy to 10GE1/0/2 in the inbound direction so that the Switch collects statistics on packets with 802.1p priorities of 6.

Procedure

  1. Create a VLAN and configure interfaces.

    # Create VLAN 100.

    <HUAWEI> system-view
    [~HUAWEI] sysname Switch
    [*HUAWEI] commit
    [~Switch] vlan 100
    [*Switch-vlan100] quit
    [*Switch] commit
    

    # Configure 10GE1/0/1 on the Switch as a trunk interface and add 10GE1/0/1 and 10GE1/0/2 to VLAN 100.

    [~Switch] interface 10ge 1/0/1
    [~Switch-10GE1/0/1] port link-type trunk
    [*Switch-10GE1/0/1] port trunk allow-pass vlan 100
    [*Switch-10GE1/0/1] quit
    [*Switch] interface 10ge 1/0/2
    [*Switch-10GE1/0/2] port default vlan 100
    [*Switch-10GE1/0/2] quit
    [*Switch] commit
    

  2. Configure an ACL.

    # Create ACL 4000 (Layer 2 ACL) on the Switch to match packets with 802.1p priorities of 6.

    [~Switch] acl 4000
    [*Switch-acl-L2-4000] rule permit 8021p 6
    [*Switch-acl-L2-4000] quit
    [*Switch] commit

  3. Configure a traffic classifier.

    Create a traffic classifier c1 on the Switch and reference ACL 4000 in the traffic classifier.

    [~Switch] traffic classifier c1
    [*Switch-classifier-c1] if-match acl 4000
    [*Switch-classifier-c1] quit
    [*Switch] commit

  4. Configure a traffic behavior.

    # Create a traffic behavior b1 on the Switch and configure the traffic statistics action in the traffic behavior.

    [~Switch] traffic behavior b1
    [*Switch-behavior-b1] statistics enable
    [*Switch-behavior-b1] quit
    [*Switch] commit

  5. Configure a traffic policy and apply the traffic policy to an interface.

    # Create a traffic policy p1 on the Switch and bind the traffic policy to the traffic classifier and traffic behavior.

    [~Switch] traffic policy p1
    [*Switch-trafficpolicy-p1] classifier c1 behavior b1
    [*Switch-trafficpolicy-p1] quit
    [*Switch] commit

    # Apply the traffic policy p1 to the inbound direction of 10GE1/0/2.

    [~Switch] interface 10ge 1/0/2
    [~Switch-10GE1/0/2] traffic-policy p1 inbound
    [*Switch-10GE1/0/2] quit
    [*Switch] commit
    [~Switch] quit

  6. Verify the configuration.

    # View the ACL configuration.

    <Switch> display acl 4000
    L2 ACL 4000, 1 rule
    ACL's step is 5
     rule 5 permit 8021p 6 (0 times matched)

    # View the traffic classifier configuration.

    <Switch> display traffic classifier c1
      Traffic Classifier Information:
        Classifier: c1
          Type: OR
          Rule(s):
            if-match acl 4000
    

    # View the traffic policy configuration.

    <Switch> display traffic policy p1
      Traffic Policy Information:
        Policy: p1
          Classifier: c1
            Type: OR
          Behavior: b1
            Statistics: enable
    

    # View the traffic statistics.

    <Switch> display traffic-policy statistics interface 10ge 1/0/2 inbound
    Traffic policy: p1, inbound                                                                                                         
    --------------------------------------------------------------------------------
     Slot: 1                                                                        
     Item                  Packets                Bytes           pps           bps 
     -------------------------------------------------------------------------------
     Matched                212185             22067448          1600       1379215 
      Passed                212185             22067448          1600       1379215 
      Dropped                    0                    0             0             0 
       Filter                    0                    0             0             0 
       CAR                       0                    0             0             0 
     -------------------------------------------------------------------------------

Configuration Files

Switch configuration file

#
sysname Switch
#
vlan batch 100
#
acl number 4000
 rule 5 permit 8021p 6 
#
traffic classifier c1 type or
 if-match acl 4000
#
traffic behavior b1
 statistics enable
#
traffic policy p1
 classifier c1 behavior b1 precedence 5 
#
interface 10GE1/0/1
 port link-type trunk
 port trunk allow-pass vlan 100
#
interface 10GE1/0/2
 port default vlan 100
 traffic-policy p1 inbound
#
return
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166640

Views: 47731

Downloads: 219

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next