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

NE40E V800R010C10SPC500 Configuration Guide - QoS 01

This is NE40E V800R010C10SPC500 Configuration Guide - QoS
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 Policing

Example for Configuring Traffic Policing

This part takes the traffic control scenario of the NE40E as an example. It describes how to configure traffic policing to control the overall traffic volume that is received or forwarded, and to control the rate of specified packets.

Networking Requirements

GigabitEthernet 3/0/0 of Device A is connected to GigabitEthernet 1/0/0 of Device B. Server, PC1, and PC2 can access the Internet through Device A and Device B.

Server, PC1, and GE 1/0/0 of Device A are on the same network segment. PC2 and GE 2/0/0 of Device A are on the same network segment.

The traffic from Server and PC1 to GE 1/0/0 is controlled on Device A as follows:

  • A bandwidth of up to 6 Mbit/s is assured for the traffic from Server. The default bandwidth is 5 Mbit/s. For traffic whose rate exceeds 5 Mbit/s but is less than or equal to 6 Mbit/s, packets are normally forwarded. When the traffic rate exceeds 6 Mbit/s, the nonconforming traffic is treated and forwarded as BE traffic flows.

  • The rate limit on the traffic from PC1 is 2 Mbit/s. When the traffic rate exceeds the rate limit, the nonconforming traffic is dropped.

NOTE:

Interfaces 1 through 3 in this example are GE 1/0/0, GE 2/0/0, GE 3/0/0, respectively.

Figure 3-7 Networking diagram for configuring traffic policing

Configuration Notes

During the configuration, pay attention to the following:
  • If the CoS of a packet is re-marked as EF, BE, CS6, or CS7, the packet can be re-marked only in green.

  • To display the statistics about a traffic policy, you can enable statistics for the traffic policy by running the statistics enable command.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure IP addresses for interfaces.
  2. On the inbound interface GE 1/0/0 of Device A, configure CTC-based traffic policing for traffic from Server and PC1.

Data Preparation

To complete the configuration, you need the following data:

  • ACL numbers, traffic classifier names, traffic behavior names, traffic policy names, and the interfaces where the traffic policies are applied, for the traffic of Server and PC1

  • CIR, PIR, CBS, and PBS

Procedure

  1. Configure IP addresses for interfaces (The detailed configuration is not mentioned here).
  2. Configure Device A.

    # Configure ACL rules for matching data flows from Server and PC1.

    <routerA> system-view
    [~routerA] acl number 2001
    [*routerA-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
    [*routerA-acl-basic-2001]commit
    [~routerA-acl-basic-2001] quit
    [~routerA] acl number 2002
    [*routerA-acl-basic-2002] rule permit source 1.1.1.2 0.0.0.0
    [*routerA-acl-basic-2002] commit
    [~routerA-acl-basic-2002] quit

    # Configure traffic classifiers and define ACL-based traffic classifier matching rules.

    [~routerA] traffic classifier class1
    [*routerA-classifier-class1] if-match acl 2001
    [*routerA-classifier-class1] commit
    [~routerA-classifier-class1] quit
    [~routerA] traffic classifier class2
    [*routerA-classifier-class2] if-match acl 2002
    [*routerA-classifier-class2] commit
    [~routerA-classifier-class2] quit

    # Define a traffic behavior. Set the bandwidth for the traffic from Server to 5 Mbit/s and the maximum bandwidth to 6 Mbit/s. For traffic whose rate exceeds 5 Mbit/s but is lower than or equal to 6 Mbit/s, the traffic is directly forwarded. When the traffic rate exceeds 6 Mbit/s, the nonconforming traffic is treated and forwarded as BE traffic flows.

    [~routerA] traffic behavior behavior1
    [*routerA-behavior-behavior1] car cir 5000 pir 6000 green pass yellow pass red pass service-class be color green
    [*routerA-behavior-behavior1] commit
    [~routerA-behavior-behavior1] quit

    # Define a traffic behavior. Set the rate limit on the traffic from PC1 to 2 Mbit/s. When the traffic rate exceeds 2 Mbit/s, the nonconforming traffic is dropped.

    [~routerA] traffic behavior behavior2
    [*routerA-behavior-behavior2] car cir 2000 green pass red discard
    [*routerA-behavior-behavior2] commit
    [~routerA-behavior-behavior2] quit

    # Define a traffic policy to associate traffic classifiers with traffic behaviors.

    [~routerA] traffic policy policy1
    [*routerA-trafficpolicy-policy1] classifier class1 behavior behavior1
    [*routerA-trafficpolicy-policy1] classifier class2 behavior behavior2
    [*routerA-trafficpolicy-policy1] commit
    [~routerA-trafficpolicy-policy1] quit

    # Apply the traffic policy to GE 1/0/0.

    [~routerA] interface gigabitethernet 1/0/0
    [~routerA-GigabitEthernet1/0/0] undo shutdown
    [*routerA-GigabitEthernet1/0/0] traffic-policy policy1 inbound
    [*routerA-GigabitEthernet1/0/0] commit

  3. Verify the configuration.

    Run the display interface commands to view interface-based traffic statistics on Device B.

Configuration Files

  • Configuration file of Device A

    # 
    sysname DeviceA
    #
    acl number 2001
     rule 5 permit source 1.1.1.1 0
    acl number 2002
     rule 5 permit source 1.1.1.2 0
    #
    traffic classifier class1 operator or
     if-match acl 2001
    traffic classifier class2 operator or
     if-match acl 2002
    #
    traffic behavior behavior1
     car cir 5000 pir 6000 green pass yellow pass red pass service-class be color green
    traffic behavior behavior2
     car cir 2000 green pass red discard
    #
    traffic policy policy1
     classifier class1 behavior behavior1 precedence 5
     classifier class2 behavior behavior2 precedence 10
    #
    interface GigabitEthernet1/0/0
     undo shutdown
     ip address 1.1.1.3 255.255.255.0
     traffic-policy policy1 inbound
    #
    return
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055024

Views: 26067

Downloads: 119

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