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 IP-based Multi-Field Classification on an MPLS Interface

Example for Configuring IP-based Multi-Field Classification on an MPLS Interface

This section provides an example for configuring IP-based multi-field (MF) classification on an MPLS interface.

Networking Requirements

As shown in Figure 5-5, PE1, P, and PE2 are routers on an MPLS backbone network. CE1, CE2, CE3, and CE4 are access routers on the edge of the backbone network. Use PE1 as an example. You can configure IP-based MF classification on the public network interface (interface 3) of PE1 to implement traffic control on the public network side and verify the packet sending and receiving through traffic statistics.

NOTE:

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

Figure 5-5 Configuring IP-based MF classification on an MPLS interface

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure basic MPLS functions.

  2. Configure IP-based MF classification for outgoing or incoming packets on the public network interface.

  3. Configure an ACL rule.

  4. Configure a traffic classifier.

  5. Configure a traffic behavior.

  6. Configure a traffic policy.

  7. Apply the traffic policy.

Data Preparation

To complete the configuration, you need the following data:

  • ACL number

  • Names of the traffic classifier, traffic behavior, and traffic policy, and number of the interface to which the traffic policy is applied

Procedure

  1. Configure basic MPLS functions.

    For details about how to configure basic MPLS functions, see Example for Configuring BGP/MPLS IP VPN in HUAWEI NetEngine40E Configuration Guide - VPN - BGP/MPLS IP VPN Configuration.

  2. Configure IP-based MF classification for outgoing or incoming packets on the public network interface.

    <HUAWEI> system-view
    [~HUAWEI] slot 1
    [~HUAWEI-slot-1] traffic-policy match-ip-layer mpls-pop
    [*HUAWEI-slot-1] traffic-policy match-ip-layer mpls-push
    [*HUAWEI-slot-1] commit
    [~HUAWEI-slot-1] quit

  3. Configure an ACL rule.

    <HUAWEI> system-view
    [~HUAWEI] acl number 3333
    [*HUAWEI-acl-adv-3333] rule 5 permit ip source 11.11.11.11 0 destination 33.33.33.33 0
    [*HUAWEI-acl-adv-3333] rule 10 permit ip source 33.33.33.33 0 destination 11.11.11.11 0
    [*HUAWEI-acl-adv-3333] commit
    [~HUAWEI-acl-adv-3333] quit

  4. Configure a traffic classifier.

    [~HUAWEI] traffic classifier c1
    [*HUAWEI-classifier-c1] if-match acl 3333
    [*HUAWEI-classifier-c1] commit
    [~HUAWEI-classifier-c1] quit

  5. Configure a traffic behavior.

    [~HUAWEI] traffic behavior b1
    [*HUAWEI-behavior-b1] permit
    [*HUAWEI-behavior-b1] commit
    [~HUAWEI-behavior-b1] quit

  6. Configure a traffic policy.

    [~HUAWEI] traffic policy p1
    [*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
    [*HUAWEI-trafficpolicy-p1] share-mode
    [*HUAWEI-trafficpolicy-p1] statistic enable
    [*HUAWEI-trafficpolicy-p1] commit
    [~HUAWEI-trafficpolicy-p1] quit

  7. Apply the traffic policy.

    [~HUAWEI] interface gigabitethernet 3/0/0
    [~HUAWEI-GigabitEthernet3/0/0] traffic-policy p1 inbound
    [*HUAWEI-GigabitEthernet3/0/0] traffic-policy p1 outbound
    [*HUAWEI-GigabitEthernet3/0/0] commit
    [~HUAWEI-GigabitEthernet3/0/0] quit

  8. Verify the configuration.

    After completing the configurations, run the ping 33.33.33.33 command on CE1 to ping CE3, and run the display traffic policy statistics command to view statistics about traffic exchanged between CE1 and CE3.

    <HUAWEI> display traffic policy statistics interface gigabitethernet 3/0/0 inbound
    Info: The statistics is shared because the policy is shared.
    Interface: GigabitEthernet3/0/0
    Traffic policy inbound: p1
    Traffic policy applied at 2017-08-30 18:30:20 
    Statistics enabled at 2017-08-30 18:30:20
    Statistics last cleared: Never
    Rule number: 1 IPv4, 0 IPv6 
    Current status: OK!
    Item                             Packets                      Bytes
    -------------------------------------------------------------------
    Matched                                5                       500
      +--Passed                            4                       400
      +--Dropped                           1                       100
    
    Last 30 seconds rate
    Item                                 pps                        bps
    -------------------------------------------------------------------
    Matched                                5                       500
      +--Passed                            4                       400
      +--Dropped                           1                       100
    

Configuration Files

#
slot 1 
 traffic-policy match-ip-layer mpls-pop
 traffic-policy match-ip-layer mpls-push
#
acl number 3333
 rule 5 permit ip source 11.11.11.11 0 destination 33.33.33.33 0
 rule 5 permit ip source 33.33.33.33 0 destination 11.11.11.11 0
#
traffic classifier c1
 if-match acl 3333
#
traffic behavior b1
 permit
#        
traffic policy p1
 share-mode
 statistic enable
 classifier c1 behavior b1
#
interface GigabitEthernet3/0/0
 traffic-policy p1 inbound
 traffic-policy p1 outbound
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055024

Views: 22374

Downloads: 115

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