10.2.4.3. Weighting Control Setting (WRR)

This section describes the settings for Weighted Round Robin (WRR) by which traffics having the same priority are transmitted in accordance with an arbitrary ratio.

Operation Confirmed Version:
 Brocade 5600vRouter Version4.2R1S1

Presumed case for sample setting

  • To set for traffic which is output from interface “dp0s5”

  • The restrictive bandwidth of interface “dp0s5” is 10 Mbps.

  • Flowing traffic from virtual server 6 to virtual server 8 and traffic from virtual server 7 to virtual server 9 at the same time

  • As the rule of WRR, setting Weight 10 for traffic from virtual server 6 and Weight 20 for traffic from virtual server 7, so that the ratio of traffic transmitted is “1:2”.

Configuration diagram
Zone Fig1

Setting flow

  • 1.Setting the name of QoS to be set, with WRR Applying QoS at interface “dp0s5”

  • 2.Setting control rule 1 (highest priority) named af11 to UDP communications originated from virtual server 6 “172.16.9.6” and setting control rule 2 named af21 to UDP communications originated from virtual server 7 “172.16.9.7”

  • 3.トラフィックに対してデフォルトのポリシーを設定する。ポリシー名は PROF1
  • 4.Setting the restrictive bandwidth of policy PROF1 to 10 Mbps

  • 5.Applying control rule af11 to queue 1 and specifying to-be-used Traffic-Class(1) and weighting weight10 Applying control rule af21 to queue 2 and specifying to-be-used Traffic-Class(1) and weighting weight20

Note

  • The set weighting works only for the same Traffic-Class. Do not specify different Traffic-Class setting.

Command to be entered with CLI

set interfaces dataplane dp0s5 policy qos 'WRR'
set policy qos name WRR shaper class 1 match RULE1 mark dscp 'af21'
set policy qos name WRR shaper class 1 match RULE1 protocol 'udp'
set policy qos name WRR shaper class 1 match RULE1 source address '172.16.9.7/32 '
set policy qos name WRR shaper class 1 match RULE2 mark dscp 'af11'
set policy qos name WRR shaper class 1 match RULE2 protocol 'udp'
set policy qos name WRR shaper class 1 match RULE2 source address '172.16.9.6/32 '
set policy qos name WRR shaper class 1 profile 'PROF1'
set policy qos name WRR shaper default 'PROF1'
set policy qos name WRR shaper profile PROF1 bandwidth '10Mbit'
set policy qos name WRR shaper profile PROF1 map dscp af11 to '1'
set policy qos name WRR shaper profile PROF1 map dscp af21 to '2'
set policy qos name WRR shaper profile PROF1 queue 1 description 'DSCP_AF11'
set policy qos name WRR shaper profile PROF1 queue 1 traffic-class '1'
set policy qos name WRR shaper profile PROF1 queue 1 weight '10'
set policy qos name WRR shaper profile PROF1 queue 2 description 'DSCP_AF21'
set policy qos name WRR shaper profile PROF1 queue 2 traffic-class '1'
set policy qos name WRR shaper profile PROF1 queue 2 weight '20'
The configuration after completion of appropriate settings is as follows.
interfaces {
        dataplane dp0s4 {
                address 172.16.9.90/24
        }
        dataplane dp0s5 {
                address 172.16.19.90/24
                policy {
                        qos WRR
                }
        }
        dataplane dp0s6 {
        }
        dataplane dp0s7 {
                address 10.0.0.90/24
        }
        loopback lo
}
policy {
        qos {
                name WRR {
                        shaper {
                                class 1 {
                                        match RULE1 {
                                                mark {
                                                        dscp af21
                                                }
                                                protocol udp
                                                source {
                                                        address 172.16.9.7/32
                                                }
                                        }
                                        match RULE2 {
                                                mark {
                                                        dscp af11
                                                }
                                                protocol udp
                                                source {
                                                        address 172.16.9.6/32
                                                }
                                        }
                                        profile PROF1
                                }
                                default PROF1
                                profile PROF1 {
                                        bandwidth 10Mbit
                                        map {
                                                dscp af11 {
                                                        to 1
                                                }
                                                dscp af21 {
                                                        to 2
                                                }
                                        }
                                        queue 1 {
                                                description DSCP_AF11
                                                traffic-class 1
                                                weight 10
                                        }
                                        queue 2 {
                                                description DSCP_AF21
                                                traffic-class 1
                                                weight 20
                                        }
                                }
                                traffic-class 1 {
                                        queue-limit 64
                                }
                                traffic-class 2 {
                                        queue-limit 64
                                }
                        }
                }
        }
}

Operation check result

The verification result log below allows to confirm that the ratio of the transferred packets is approximately “2:1” based on the rule of WRR in the following case: traffic from virtual server 6 “172.16.9.6” in the verification configuration diagram and traffic from virtual server 7 “172.16.9.7” were flowed at the same time, and the restrictive bandwidth (10 Mbps) is exceeded.
user-admin@vyatta:~$ show queuing dp0s5

Class    Prio  WRR Qlength    Packets            Bytes Tail-drop  RED-drop
---------------------------------------------------------------------------
    0     0    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          1    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          2    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          3    0       0          2               84         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
    1     0    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          1    0       0      16194         24485328     31258         0
               1       0      31922         48266064     15529         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          2    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0
          3    0       0          0                0         0         0
               1       0          0                0         0         0
               2       0          0                0         0         0
               3       0          0                0         0         0