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 Configuring Adaptive Traffic Shaping

Example for Configuring Adaptive Traffic Shaping

Networking Requirements

As shown in Figure 3-10, the enterprise headquarters connects to the Internet through GE1/0/0 of RouterA and connects to RouterB of the branch through a 3G network.

Link bandwidth on the 3G network is variable. The enterprise requires that the rate of packets sent from the headquarters to the branch be dynamically changed in accordance with the 3G link bandwidth, to reduce jitter on the 3G network.

The priorities of data, video, and voice packets sent from the headquarters to the branch are af11, af21, and ef respectively. Voice packets need to be processed first, whereas video and data packets require bandwidth guarantee.

Figure 3-10  Networking of adaptive traffic shaping

Configuration Roadmap

Configure interface-based adaptive traffic shaping to dynamically adjust the rate of packets sent from the headquarters to the branch, and configure flow-based congestion management to process voice, video, and data packets differently. The configuration roadmap is as follows:
  1. Configure a jitter NQA test instance on RouterA and RouterB to detect the status of the link between the headquarters and branch.
  2. Configure an adaptive traffic profile and apply it to GE1/0/0 of RouterA. When the NQA test instance detects that packet loss ratios of over 30% for three consecutive times, RouterA reduces the packet transmission rate on GE1/0/0.
  3. Configure traffic classifiers on RouterA to classify data, video, and voice packets.
  4. Configure traffic behaviors on RouterA and specify different congestion management actions for data, video, and voice packets in the traffic behaviors.
  5. Configure a traffic policy on RouterA, associate the traffic classifiers with the traffic behaviors in the traffic policy, and apply the traffic policy to GE1/0/0 so that data, video, and voice packets are processed in different manners.

Procedure

  1. Configure an NQA test instance.

    # Configure the IP address and port number for the UDP server.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] nqa-server udpecho 192.168.2.2 9000

    # Enable the NQA client and create a jitter NQA test instance.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] nqa test-instance admin jitter1
    [RouterA-nqa-admin-jitter1] test-type jitter
    [RouterA-nqa-admin-jitter1] destination-address ipv4 192.168.2.2[RouterA-nqa-admin-jitter1] destination-port 9000
    [RouterA-nqa-admin-jitter1] start now
    [RouterA-nqa-admin-jitter1] quit

  2. Configure an adaptive traffic profile on RouterA.

    [RouterA] qos adaptation-profile gts1
    [RouterA-qos-adaptation-profile-gts1] rate-range low-threshold 128 high-threshold 512
    [RouterA-qos-adaptation-profile-gts1] rate-adjust step 32
    [RouterA-qos-adaptation-profile-gts1] rate-adjust loss low-threshold 20 high-threshold 30
    [RouterA-qos-adaptation-profile-gts1] track nqa admin jitter1
    [RouterA-qos-adaptation-profile-gts1] quit

  3. Apply the adaptive traffic profile to GE1/0/0 on RouterA.

    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] qos gts adaptation-profile gts1
    [RouterA-GigabitEthernet1/0/0] quit
    

  4. Configure traffic classifiers on RouterA to differentiate data, video, and voice services.

    [RouterA] traffic classifier data
    [RouterA-classifier-data] if-match dscp af11
    [RouterA-classifier-data] quit
    [RouterA] traffic classifier video
    [RouterA-classifier-video] if-match dscp af21
    [RouterA-classifier-video] quit
    [RouterA] traffic classifier voice
    [RouterA-classifier-voice] if-match dscp ef
    [RouterA-classifier-voice] quit

  5. Create traffic behaviors on RouterA, and specify the queues and bandwidth for packets matching traffic classifiers.

    [RouterA] traffic behavior data
    [RouterA-behavior-data] queue af bandwidth pct 30
    [RouterA-behavior-data] quit
    [RouterA] traffic behavior video
    [RouterA-behavior-video] queue af bandwidth pct 60
    [RouterA-behavior-video] quit
    [RouterA] traffic behavior voice
    [RouterA-behavior-voice] queue llq bandwidth pct 5
    [RouterA-behavior-voice] quit

  6. Configure a traffic policy on RouterA, and associate the traffic classifiers with the traffic behaviors in the traffic policy.

    [RouterA] traffic policy p1
    [RouterA-trafficpolicy-p1] classifier voice  behavior voice
    [RouterA-trafficpolicy-p1] classifier video  behavior video
    [RouterA-trafficpolicy-p1] classifier data  behavior  data
    [RouterA-trafficpolicy-p1] quit

  7. Apply the traffic policy to GE1/0/0 of RouterA.

    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 192.168.1.2 24
    [RouterA-GigabitEthernet1/0/0] traffic-policy p1 outbound
    [RouterA-GigabitEthernet1/0/0] quit

  8. Verify the configuration.

    # View the record of the adaptive traffic profile gts1 on GE1/0/0 of RouterA.

    [RouterA] display qos adaptation-profile gts1 interface gigabitethernet 1/0/0 applied-record
    Interface: GigabitEthernet1/0/0
    -----------------------------------------------------------------
     QoS gts adaptation-profile: gts1 
    -----------------------------------------------------------------
    NQA admin Name: admin
    NQA test Name: jitter1
    Current Rate: 256(Kbps)
    Last packet loss: 25(%)
    The latest traffic shaping rate fails to be updated because the packet loss ratio is within the allowed range.

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
    qos adaptation-profile gts1                                                     
     rate-range low-threshold 128 high-threshold 512                                
     track nqa admin jitter1                                                        
     rate-adjust loss low-threshold 20 high-threshold 30                            
     rate-adjust step 32                                                            
    #
    traffic classifier video operator or       
     if-match dscp af21                        
    traffic classifier data operator or        
     if-match dscp af11                        
    traffic classifier voice operator or       
     if-match dscp ef                          
    #                                                                               
    traffic behavior video                     
     queue af bandwidth pct 60                 
    traffic behavior data                      
     queue af bandwidth pct 30                 
    traffic behavior voice                     
     queue llq bandwidth pct 5                  
    #                                                                               
    traffic policy p1                                                               
     classifier voice behavior voice           
     classifier video behavior video           
     classifier data behavior data             
    #                                                                               
    interface GigabitEthernet1/0/0
     ip address 192.168.1.2 255.255.255.0                                           
     qos gts adaptation-profile gts1           
     traffic-policy p1 outbound                                                     
    #                                                                               
    nqa test-instance admin jitter1                                                 
     test-type jitter                                                               
     destination-address ipv4 192.168.2.2                                           
     destination-port 9000                                                          
    #                                                                               
    return
    
  • RouterB configuration file

    #
     sysname RouterB
    #                                                                               
    nqa-server udpecho 192.168.2.2 9000                                             
    #                                                                               
    return
    
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174115

Views: 42349

Downloads: 30

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