0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

久しぶりにGNS3(その39:帯域制御とPAgP)

Posted at

帯域制御

GNS3アプライアンスに、NETemという帯域制御や遅延を実現できるネットワークブリッジがある。これを使って、帯域制御を行なってみる。内容的には、前回の「久しぶりにGNS3(その38:PAgPとiperf 期待どおりにならず)」の続きであり、iperfを用いて確認する。なお、クライアントも前回同様、GNS3アプライアンスにある、iptermを用いる。

単純な構成

まずは、下記ネットワークで単純な帯域制御を行う。

Bridge直結.png

中央にあるNETemがネットワークブリッジ。GNS3にて起動後、Consoleをクリックすると、下記が表示される。

BeforeConfiguration.png

ここで、Enterを入力し、下記画面で、50Mbpsを指定する。

50M.png

OKにより戻ると、下記画面となる。

AfternConfiguration.png

この状態でiperfを実施(左側PCがClient、右側PCがServer)した結果が下記となる。

root@ipterm-a1:~# iperf3 -c 10.1.1.2 -u -b 100m -t 100

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-100.00 sec  1.16 GBytes   100 Mbits/sec  0.000 ms  0/863253 (0%)  sender
[  5]   0.00-100.25 sec   573 MBytes  48.0 Mbits/sec  0.399 ms  448194/863248 (52%)  receiver

Server側の結果が48Mbps、ほぼ50Mbpsとなっている。

PAgPと組み合わせ

下記ネットワークで検証。

1-NeTem&1-NoNeTEM.png

PAgPの設定内容は、前回と同じである。左の2台のPCからiperfを実行する。

帯域制御なし

上図の上側の結果。

root@ipterm-1:~# iperf3 -c 10.1.1.2 -u -b 100m -t 100

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-100.00 sec  1.16 GBytes   100 Mbits/sec  0.000 ms  0/863252 (0%)  sender
[  5]   0.00-100.05 sec  1.02 GBytes  87.3 Mbits/sec  0.164 ms  109637/863252 (13%)  receiver

下側の結果。

root@ipterm-3:~# iperf3 -c 10.1.1.4 -u -b 100m -t 100

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-100.00 sec  1.16 GBytes   100 Mbits/sec  0.000 ms  0/863256 (0%)  sender
[  5]   0.00-100.01 sec  1003 MBytes  84.2 Mbits/sec  0.098 ms  136753/863253 (16%)  receiver

100Mbps指定に対して、84-87Mbpsの実効値が出ている。

帯域制御あり(50Mbps)

先ほどと同じく、上側にて、NETemで50Mbpsの帯域制御を行う。

root@ipterm-1:~# iperf3 -c 10.1.1.2 -u -b 100m -t 100

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-100.00 sec  1.16 GBytes   100 Mbits/sec  0.000 ms  0/863252 (0%)  sender
[  5]   0.00-100.21 sec   550 MBytes  46.0 Mbits/sec  0.308 ms  465107/863188 (54%)  receiver

下側の結果。

root@ipterm-3:~# iperf3 -c 10.1.1.4 -u -b 100m -t 100

[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-100.00 sec  1.16 GBytes   100 Mbits/sec  0.000 ms  0/863254 (0%)  sender
[  5]   0.00-100.01 sec   994 MBytes  83.4 Mbits/sec  0.034 ms  143239/863254 (17%)  receiver

ネットワークブリッジNETemを経由した上側のPC(ipterm-1)の結果は46Mbpsとなり、指定された50Mbpsに近い値である。それを経由しない下側のPC(ipterm-2)の結果は先ほどと同じような値(83Mbps)となっている。

PAgPを用いても、あまり意味がなかった。

終わりに(おまけ)

Aggregationの標準方式としてLACPもあるが、LACPはネットワークブリッジ(ここではNETem)を通過できないようだ。下記が見つかる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?