10.2.4.1. Bandwidth Restriction (Upper-limit) SettingΒΆ

Operation Confirmed Version:
 Brocade 5600vRouter Version4.2R1S1

This section describes the settings for bandwidth restriction of traffic which is output from the interface.

Presumed case for sample setting

  • To restrict traffic which passes through the interface, to 20 Mbps in total

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

Configuration diagram
Zone Fig1

Setting flow

  • 1.Setting the name of QoS to be set, with q1 Setting the default policy for traffic, with lim20m

  • 2.Setting Traffic-Class(3) to be used for policy lim20m and the restrictive bandwidth (20 Mbps)

  • 3.Applying QoS at interface “dp0s5”

Command to be entered with CLI

set policy qos name q1 shaper default 'lim20m'
set policy qos name q1 shaper profile lim20m traffic-class 3 bandwidth '20Mbit'
set interface dataplane dp0s5 policy qos 'q1'
The configuration after completion of appropriate settings is as follows.
interfaces {
       dataplane dp0s4 {
               address 192.168.1.50/24
       }
       dataplane dp0s5 {
               address 192.168.2.50/24
               policy {
                       qos q1
               }
       }
       dataplane dp0s6 {
               address 192.168.3.5/24
       }
       dataplane dp0s7
       loopback lo
}
policy {
       qos {
               name q1 {
                       shaper {
                               default lim20m
                               profile lim20m {
                                       traffic-class 3 {
                                               bandwidth 20mbit
                                       }
                               }
                       }
               }
       }
}

Operation check result

The verification result log below allows to recognize that 18.5 Mbps resulted
when 1 Gbps traffic was flowed from virtual server “192.168.3.3” in the configuration diagram to “192.168.2.6”
and allows to confirm that bandwidth control worked.
#log(iperf client)

test@web1:~$ iperf -c 192.168.2.6 -u -b 1g
------------------------------------------------------------
Client connecting to 192.168.2.6, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.3.3 port 24847 connected with 192.168.2.6 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   970 MBytes   813 Mbits/sec
[  3] Sent 691693 datagrams
[  3] Server Report:
[  3]  0.0-10.2 sec  22.6 MBytes  18.5 Mbits/sec  10.633 ms 675557/691672 (98%)
[  3]  0.0-10.2 sec  1 datagrams received out-of-order

#log(iperf server)

test@ubu01:~$ iperf -su
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------

[  4] local 192.168.2.6 port 5001 connected with 192.168.3.3 port 61086
[  4]  0.0-10.2 sec  22.6 MBytes  18.5 Mbits/sec  10.638 ms 675248/691363 (98%)
[  4]  0.0-10.2 sec  1 datagrams received out-of-order
[  3] local 192.168.2.6 port 5001 connected with 192.168.3.3 port 24847
[  3]  0.0-10.2 sec  22.6 MBytes  18.5 Mbits/sec  10.633 ms 675557/691672 (98%)
[  3]  0.0-10.2 sec  1 datagrams received out-of-order