帯域制限(上限値)設定¶
動作確認バージョン: | Brocade 5600vRouter Version4.2R1S1 |
---|
ここでは、インターフェースから送出されるトラフィックの帯域制限するための設定を紹介します。
サンプル設定のシナリオ
- インターフェースを通過するトラフィックを合計20Mbpsに制限したい
- インターフェースdp0s5から送出されるトラフィックに対して設定したい
構成図
設定のながれ
- 1.設定するQoSの名前を q1 で設定する。トラフィックに対してデフォルトのポリシーを lim20m で設定する。
- 2.ポリシー lim20m に対して利用するTraffic-Class(3)と制限する帯域(20Mbps)を設定
- 3.インターフェース(dp0s5)にてQoSを適用
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'
正しく設定が完了したときのコンフィグレーションは次のとおりです。
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
}
}
}
}
}
}
動作確認結果
以下の検証結果ログから、検証構成図にある仮想サーバ(192.168.3.3)から
192.168.2.6あてのTraffic 1Gbpsを印加した際に18.5Mbpsの結果だと
いうことが確認できましたので、帯域制御動作が機能していることは確認できました。
#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