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

CLI-based Configuration Guide - QoS

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009

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 Limiting Traffic

Example for Limiting Traffic

Networking Requirements

As shown in Figure 12-3, an enterprise connects to the Internet through the Router as the gateway. To ensure network quality, bandwidth use efficiency, and normal running of services, the device detects FileShare_P2P packets of BT and eDonkey_eMule and limits the rate of the FileShare_P2P packets within 4 Mbit/s.

Figure 12-3  Networking for limiting FileShare_P2P traffic

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable deep security defense and load a signature file.

  2. Configure a traffic classifier and define a rule matching the FileShare_P2P group.

  3. Configure a traffic behavior and limit the rate of FileShare_P2P packets within 4 Mbit/s.

  4. Configure a traffic policy and bind the traffic classifier and traffic behavior to the traffic policy.

  5. Apply the traffic policy to the inbound direction of the WAN interface and enable the SA statistics function on the interface for the SAC configurations to take effect.

Procedure

  1. Enable deep security defense and load a signature file.

    <Huawei> system-view
    [Huawei] sysname Router
    [Router] engine enable
    

  2. Configure a traffic classifier to identify FileShare_P2P packets.

    [Router] traffic classifier p2p 
    [Router-classifier-p2p] if-match category FileShare_P2P
    [Router-classifier-p2p] quit
    

  3. Configure a traffic behavior and limit the rate of FileShare_P2P packets.

    [Router] traffic behavior p2p 
    [Router-behavior-p2p] car cir 4096
    [Router-behavior-p2p] quit
    

  4. Configure a traffic policy and bind the traffic classifier and traffic behavior to the traffic policy.

    [Router] traffic policy p2p 
    [Router-trafficpolicy-p2p] classifier p2p behavior p2p
    [Router-trafficpolicy-p2p] quit
    

  5. Apply the traffic policy to the inbound direction of WAN-side Layer 3 interface GE2/0/0 and enable the SA statistics function on the interface for the SAC configurations to take effect.

    [Router] interface gigabitethernet 2/0/0                                                       
    [Router-GigabitEthernet2/0/0] traffic-policy p2p inbound
    [Router-GigabitEthernet2/0/0] sa application-statistic enable
    [Router-GigabitEthernet2/0/0] quit
    

  6. Run the display current-configuration command to check the configuration.

Configuration Files

  • Configuration file of the Router

    # 
     sysname Router 
    # 
     engine enable
    #
    traffic classifier p2p operator or 
     if-match category FileShare_P2P 
    # 
    traffic behavior p2p 
     car cir 4096 cbs 770048 pbs 1282048 mode color-blind green pass yellow pass red discard 
    # 
    traffic policy p2p 
     classifier p2p behavior p2p 
    # 
    interface GigabitEthernet2/0/0 
     traffic-policy p2p inbound 
     sa application-statistic enable
    # 
    return 
    
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174115

Views: 42183

Downloads: 30

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