IBM Cloud上のPowerVSとVPC間のスループット測定

# はじめに
IBM Cloud上のPower Virtual Sever(PowerVS)とVritual Private Cloud(VPC)間のスループットを測定した際のメモです。
iperf3とscpの勉強のために行いました。


# 実施環境
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3881779/f4cc9a17-8ee6-4ab3-9875-9f66e9270c66.png)
**VPC(転送元)**
- IP：192.168.s.s
- アーキテクチャー：x86
- OS：CentOS Stream v9
- vCPU：2
- RAM：8 GiB RAM
- ボリューム帯域幅：1 Gbps
- ネットワーク帯域幅：3 Gbps

**PowerVS(転送先)**
- IP：192.168.r.r
- マシンタイプ：S1022
- OS：AIX7300-03-00
- コア数：10
- メモリー：100 GB
- ディスク：Tier0 25 IOPS/GB
- ディスク容量：100 GB

# 実施内容
1. iperf3を使ってスループットを測定
    - TCPを使用して、60秒間測定
1. scpを使って転送の転送速度を測定
    - 2GBのtestファイルを転送した際の転送速度を10回測定

## 1. iperf3を使ってスループットを測定
転送先のPowerVS側でiperf3を起動しました。

```: @192.168.r.r
# iperf3 -s
```

転送元のVPC上でもiperf3を起動し、PowerVSに接続しました。

```: @192.168.s.s
# iperf3 -c 192.168.r.r -t 60
```

- `-c 192.168.r.r`：転送先サーバー(192.168.r.r)に接続
- `-t 60`：通信時間を60秒に指定

以下のような測定結果が得られました。
転送元
```: @192.168.s.s
# iperf3 -c 192.168.r.r -t 60
Connecting to host 192.168.r.r, port 5201
[  5] local 192.168.s.s port 51246 connected to 192.168.r.r port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   396 MBytes  3.32 Gbits/sec    0   1.78 MBytes
[  5]   1.00-2.00   sec   396 MBytes  3.32 Gbits/sec    0   3.31 MBytes
[  5]   2.00-3.00   sec   396 MBytes  3.32 Gbits/sec    0   3.31 MBytes
[  5]   3.00-4.00   sec   394 MBytes  3.30 Gbits/sec    0   3.31 MBytes
[  5]   4.00-5.00   sec   395 MBytes  3.31 Gbits/sec    0   3.31 MBytes
[  5]   5.00-6.00   sec   398 MBytes  3.33 Gbits/sec    0   3.31 MBytes
[  5]   6.00-7.00   sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]   7.00-8.00   sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]   8.00-9.00   sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]   9.00-10.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  10.00-11.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  11.00-12.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  12.00-13.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  13.00-14.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  14.00-15.00  sec   396 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  15.00-16.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  16.00-17.00  sec   399 MBytes  3.34 Gbits/sec    0   3.94 MBytes
[  5]  17.00-18.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  18.00-19.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  19.00-20.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  20.00-21.00  sec   400 MBytes  3.36 Gbits/sec    0   3.94 MBytes
[  5]  21.00-22.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  22.00-23.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  23.00-24.00  sec   396 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  24.00-25.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  25.00-26.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  26.00-27.00  sec   392 MBytes  3.29 Gbits/sec    0   3.94 MBytes
[  5]  27.00-28.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  28.00-29.00  sec   399 MBytes  3.35 Gbits/sec    0   3.94 MBytes
[  5]  29.00-30.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  30.00-31.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  31.00-32.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  32.00-33.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  33.00-34.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  34.00-35.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  35.00-36.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  36.00-37.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  37.00-38.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  38.00-39.00  sec   399 MBytes  3.34 Gbits/sec    0   3.94 MBytes
[  5]  39.00-40.00  sec   390 MBytes  3.27 Gbits/sec    0   3.94 MBytes
[  5]  40.00-41.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  41.00-42.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  42.00-43.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  43.00-44.00  sec   396 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  44.00-45.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  45.00-46.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  46.00-47.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  47.00-48.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  48.00-49.00  sec   399 MBytes  3.34 Gbits/sec    0   3.94 MBytes
[  5]  49.00-50.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  50.00-51.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  51.00-52.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  52.00-53.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  53.00-54.00  sec   395 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  54.00-55.00  sec   395 MBytes  3.31 Gbits/sec    0   3.94 MBytes
[  5]  55.00-56.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  56.00-57.00  sec   396 MBytes  3.32 Gbits/sec    0   3.94 MBytes
[  5]  57.00-58.00  sec   398 MBytes  3.33 Gbits/sec    0   3.94 MBytes
[  5]  58.00-59.00  sec   394 MBytes  3.30 Gbits/sec    0   3.94 MBytes
[  5]  59.00-60.00  sec   400 MBytes  3.36 Gbits/sec    0   3.94 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  23.2 GBytes  3.32 Gbits/sec    0             sender
[  5]   0.00-60.00  sec  23.2 GBytes  3.32 Gbits/sec                  receiver
```
転送先
```: @192.168.r.r
-----------------------------------------------------------
Server listening on 5201 (test #1)
-----------------------------------------------------------
Accepted connection from 192.168.s.s, port 51232
[  5] local 192.168.r.r port 5201 connected to 192.168.s.s port 51246
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   393 MBytes  3.30 Gbits/sec
[  5]   1.00-2.00   sec   396 MBytes  3.32 Gbits/sec
[  5]   2.00-3.00   sec   396 MBytes  3.32 Gbits/sec
[  5]   3.00-4.00   sec   394 MBytes  3.31 Gbits/sec
[  5]   4.00-5.00   sec   394 MBytes  3.31 Gbits/sec
[  5]   5.00-6.00   sec   398 MBytes  3.34 Gbits/sec
[  5]   6.00-7.00   sec   396 MBytes  3.32 Gbits/sec
[  5]   7.00-8.00   sec   397 MBytes  3.33 Gbits/sec
[  5]   8.00-9.00   sec   397 MBytes  3.33 Gbits/sec
[  5]   9.00-10.00  sec   393 MBytes  3.29 Gbits/sec
[  5]  10.00-11.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  11.00-12.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  12.00-13.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  13.00-14.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  14.00-15.00  sec   395 MBytes  3.31 Gbits/sec
[  5]  15.00-16.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  16.00-17.00  sec   400 MBytes  3.35 Gbits/sec
[  5]  17.00-18.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  18.00-19.00  sec   395 MBytes  3.32 Gbits/sec
[  5]  19.00-20.00  sec   398 MBytes  3.34 Gbits/sec
[  5]  20.00-21.00  sec   398 MBytes  3.33 Gbits/sec
[  5]  21.00-22.00  sec   395 MBytes  3.31 Gbits/sec
[  5]  22.00-23.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  23.00-24.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  24.00-25.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  25.00-26.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  26.00-27.00  sec   392 MBytes  3.29 Gbits/sec
[  5]  27.00-28.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  28.00-29.00  sec   399 MBytes  3.35 Gbits/sec
[  5]  29.00-30.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  30.00-31.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  31.00-32.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  32.00-33.00  sec   398 MBytes  3.34 Gbits/sec
[  5]  33.00-34.00  sec   394 MBytes  3.30 Gbits/sec
[  5]  34.00-35.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  35.00-36.00  sec   398 MBytes  3.34 Gbits/sec
[  5]  36.00-37.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  37.00-38.00  sec   395 MBytes  3.32 Gbits/sec
[  5]  38.00-39.00  sec   398 MBytes  3.34 Gbits/sec
[  5]  39.00-40.00  sec   390 MBytes  3.27 Gbits/sec
[  5]  40.00-41.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  41.00-42.00  sec   394 MBytes  3.31 Gbits/sec
[  5]  42.00-43.00  sec   393 MBytes  3.30 Gbits/sec
[  5]  43.00-44.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  44.00-45.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  45.00-46.00  sec   394 MBytes  3.30 Gbits/sec
[  5]  46.00-47.00  sec   395 MBytes  3.31 Gbits/sec
[  5]  47.00-48.00  sec   394 MBytes  3.31 Gbits/sec
[  5]  48.00-49.00  sec   399 MBytes  3.35 Gbits/sec
[  5]  49.00-50.00  sec   398 MBytes  3.34 Gbits/sec
[  5]  50.00-51.00  sec   396 MBytes  3.33 Gbits/sec
[  5]  51.00-52.00  sec   395 MBytes  3.32 Gbits/sec
[  5]  52.00-53.00  sec   392 MBytes  3.29 Gbits/sec
[  5]  53.00-54.00  sec   394 MBytes  3.31 Gbits/sec
[  5]  54.00-55.00  sec   396 MBytes  3.32 Gbits/sec
[  5]  55.00-56.00  sec   393 MBytes  3.30 Gbits/sec
[  5]  56.00-57.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  57.00-58.00  sec   397 MBytes  3.33 Gbits/sec
[  5]  58.00-59.00  sec   394 MBytes  3.30 Gbits/sec
[  5]  59.00-60.00  sec   400 MBytes  3.36 Gbits/sec
[  5]  60.00-60.00  sec   640 KBytes  3.01 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-60.00  sec  23.2 GBytes  3.32 Gbits/sec                  receiver
```

## 2. scpを使って転送の転送速度を測定
Shellファイル(scp.sh)により、scpコマンドを用いた2GBのtestファイルの転送処理を10回繰り返し行いました。

以下のような測定結果が得られました。
```:@192.168.s.s
# sh scp.sh
test                                              100% 2048MB 270.9MB/s   00:07
test                                              100% 2048MB 247.6MB/s   00:08
test                                              100% 2048MB 256.5MB/s   00:07
test                                              100% 2048MB 247.6MB/s   00:08
test                                              100% 2048MB 239.4MB/s   00:08
test                                              100% 2048MB 232.1MB/s   00:08
test                                              100% 2048MB 285.3MB/s   00:07
test                                              100% 2048MB 242.6MB/s   00:08
test                                              100% 2048MB 259.6MB/s   00:07
test                                              100% 2048MB 256.7MB/s   00:07
```
平均253.83MB/sでした。

以上です。