Nested policies on AR

Latest reply: Aug 1, 2014 01:42:05 2376 1 0 1

Hello,

I think that how to offer different traffic privileges to users from different departments without ignoring the quality of service might be an interesting topic.


As everybody knows this can be implemented on all of our routers using hierarchical quality of service (HQoS). Yes, this is also my opinion, HQoS is too much of a fancy name but it can be really useful in a lot of situations. For example, even though you limit the bandwidth for a department, you can assure good voice communication or enough video traffic for conferences.

The main idea of this HQoS is that you don’t have to stop to just one traffic policy. When you see that you cannot make the configuration grained enough, you just add another sub-traffic policy. So, the configuration is not that hard, you have to configure a traffic policy in another traffic policy . 


I will try to make a configuration example to point out the use of it and for more details I advise you to check the product documentation which can be found on our support website.


Let’s assume that we want to shape the traffic on one of our outgoing WAN interfaces to 10 Mbytes and out of this bandwidth we want to assign 50% percent to the really important traffic ( voice, video), 25 % percent to the traffic with less importance , 10% to the traffic with lesser importance and so on.


Configuration :

First we have to configure  the sub traffic policy, where we set classifiers based on DSCP priorities to send packets to different queues according to their importance in our network and then we configure the behavior for the selected traffic.

In this example we will partition the traffic into PLATINUM, GOLD, SILVER and default-class

#

drop-profile 1

wred dscp

traffic classifier default-class operator or

 if-match any

traffic classifier PLATINUM operator or

 if-match dscp cs5 ef

 traffic classifier GOLD operator or

 if-match dscp cs3 af31 af32 af33 cs4 af41 af42 af43

traffic classifier SILVER operator or

 if-match dscp cs2 af21 af22 af23

#

 traffic behavior default-class

 remark dscp default

 statistic enable

 queue wfq

traffic behavior BW_PLATINUM

 statistic enable

 queue llq bandwidth pct 50

traffic behavior BW_SILVER

 queue af bandwidth pct 10

 drop-profile 1

 statistic enable

traffic behavior BW_GOLD

 queue af bandwidth pct 25

 drop-profile 1

 statistic enable

#

traffic policy SELECT_TRAFFIC

 classifier SILVER behavior BW_SILVER

 classifier GOLD behavior BW_GOLD

 classifier PLATINUM behavior BW_PLATINUM

 classifier default-class behavior default-class


The second step is to configure the main traffic policy . Since in our example we want to shape the outgoing traffic to 10 MB we will proceed with the following configuration:

traffic behavior 10MB

 gts cir 10000 cbs 250000 queue-length 64

 statistic enable

 traffic-policy SELECT_TRAFFIC

traffic policy 10MB

 classifier default-class behavior 10MB

The ultimate step is to assign the policy to the WAN interface in question :

interface GigabitEthernet0/0/0

 traffic-policy 10MB outbound


Result :

[Huawei]dis traffic-policy applied-record 10MB

-------------------------------------------------

  Policy Name:   10MB

  Policy Index:  0

     Classifier:default-class     Behavior:10MB

-------------------------------------------------

 *interface GigabitEthernet0/0/0

    traffic-policy 10MB outbound 

      slot 0    :  success

   Classifier: default-class

    Operator: AND

    Rule(s) :

     if-match any

     Behavior: 10MB

      General Traffic Shape:

        CIR 10000 (Kbps), CBS 250000 (byte)

        Queue length 64 (Packets)

      statistic: enable

      Nest Policy :  SELECT_TRAFFIC

       Classifier: SILVER

        Operator: OR

        Rule(s) :

         if-match dscp cs2 af21 af22 af23

         Behavior: BW_SILVER

           Assured Forwarding:

             Bandwidth 10 (%)

             Bandwidth 1000 (Kbps)

             Drop Method: WRED

             Drop-profile: 1

           statistic: enable

       Classifier: GOLD

        Operator: OR

        Rule(s) :

         if-match dscp cs3 af31 af32 af33 cs4 af41 af42 af43

         Behavior: BW_GOLD

           Assured Forwarding:

             Bandwidth 25 (%)

             Bandwidth 2500 (Kbps)

             Drop Method: WRED

             Drop-profile: 1

           statistic: enable

       Classifier: PLATINUM

        Operator: OR

        Rule(s) :

         if-match dscp cs5 ef

         Behavior: BW_PLATINUM

           statistic: enable

           Low-latency:

             Bandwidth 50 (%)

             Bandwidth 5000 (Kbps) CBS 125000 (Bytes)

       Classifier: default-class

        Operator: AND

        Rule(s) :

         if-match any

         Behavior: default-class

           Marking:

             Remark DSCP default

           statistic: enable

           Flow based Weighted Fair Queueing:

             Max number of hashed queues: 1

              Drop Method: Tail

              Queue Length: 64 (Packets) 131072 (Bytes)

-------------------------------------------------

  Policy total applied times: 1.

 

This is just an example but the configuration can be adapted to real networks and changed according to your requirements.

For the sub policy’s behavior you can configure traffic shaping, adaptive traffic shaping, congestion management, or congestion avoidance in the traffic behavior of the sub traffic policy


In the main policy you can configure for the outbound direction of the interface GTS, GTS+AF, AF or EF. For the inbound direction you can configure: CAR and statistics.


Note: If you are using AR1220F the HQoS configuration is working on V200R005C10SPC500 and later versions.

  • x
  • convention:

user_2790689
Created Aug 1, 2014 01:42:05 Helpful(0) Helpful(0)

Thank you.
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login