generated at
iperf3でNASとmacの転送速度を計測する

iperfでNASとmacの転送速度を計測する
ContainerStationでiperfを入れる
オプション -s (サーバーモード)
ポート 5201:5201

環境
Google WiFiの親機が近くにある状態
TS-453mini メモリ16GB
MBP 2018 2.6GHz 6コア Corei7 / DDR4 16GB
Qsirchのindexingをpauseした状態で実施

クライアントはmac
LAN内のNASのIPとおしゃべりできるか試す
zsh
# アクセスできることを確認 $ nc 192.168.86.22 5201 -v Connection to 192.168.86.22 port 5201 [tcp/targus-getdata1] succeeded!

2021/5/17 追記
ここでやっているのはクライアントからのアップロードの速度の計測

無線の場合
$ iperf3 -c 192.168.86.22 Connecting to host 192.168.86.22, port 5201 [ 5] local 192.168.86.25 port 63987 connected to 192.168.86.22 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 29.4 MBytes 247 Mbits/sec [ 5] 1.00-2.00 sec 33.2 MBytes 278 Mbits/sec [ 5] 2.00-3.00 sec 32.7 MBytes 274 Mbits/sec [ 5] 3.00-4.00 sec 32.9 MBytes 276 Mbits/sec [ 5] 4.00-5.00 sec 27.4 MBytes 230 Mbits/sec [ 5] 5.00-6.00 sec 22.5 MBytes 189 Mbits/sec [ 5] 6.00-7.00 sec 25.1 MBytes 210 Mbits/sec [ 5] 7.00-8.00 sec 32.5 MBytes 272 Mbits/sec [ 5] 8.00-9.00 sec 31.6 MBytes 265 Mbits/sec [ 5] 9.00-10.00 sec 33.6 MBytes 283 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 301 MBytes 252 Mbits/sec sender [ 5] 0.00-10.01 sec 301 MBytes 252 Mbits/sec receive
30MiB/s程度

1GのイーサネットケーブルでmacとNASを直結する
構成:mac - (thubderbolt - RJ45変換) - (イーサネット) - NAS
NASのNetworkで割当IPを確認する
有線直結の場合
$ iperf3 -c 169.254.9.29 Connecting to host 169.254.9.29, port 5201 [ 5] local 169.254.110.97 port 64753 connected to 169.254.9.29 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 97.6 MBytes 818 Mbits/sec [ 5] 1.00-2.00 sec 100 MBytes 843 Mbits/sec [ 5] 2.00-3.00 sec 102 MBytes 859 Mbits/sec [ 5] 3.00-4.00 sec 101 MBytes 845 Mbits/sec [ 5] 4.00-5.00 sec 109 MBytes 913 Mbits/sec [ 5] 5.00-6.00 sec 109 MBytes 917 Mbits/sec [ 5] 6.00-7.00 sec 111 MBytes 931 Mbits/sec [ 5] 7.00-8.00 sec 112 MBytes 941 Mbits/sec [ 5] 8.00-9.00 sec 110 MBytes 923 Mbits/sec [ 5] 9.00-10.00 sec 106 MBytes 888 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 1.03 GBytes 888 Mbits/sec sender [ 5] 0.00-10.00 sec 1.03 GBytes 887 Mbits/sec receiver
平均で888Mbps程度出ている(理論値-12%)
無線の3.5倍速い
7-8秒は941Mbpsなら117MBytesではないのか?と思ったがMBはMiBのことらしい
100MiB * 8 bit/Byte * 1024 *1024 = 838860800 bps = 838Mbits/sec
上では843になっているから、それでもずれる。なぜ?
> A letter specifying the format to print bandwidth numbers in. Supported formats are
> 'b' = bits/sec 'B' = Bytes/sec
>
> 'a' = adaptive bits/sec 'A' = adaptive Bytes/sec
> The adaptive formats choose between kilo- and mega- as appropriate. Fields other than bandwidth always print bytes, but otherwise follow the requested format. Default is 'a'.
> NOTE: here Kilo = 1024, Mega = 1024^2 and Giga = 1024^3 when dealing with bytes. Commonly in networking, Kilo = 1000, Mega = 1000^2, and Giga = 1000^3 so we use this when dealing with bits. If this really bothers you, use -f b and do the math.
Bitrateが正しいとすると、一番早いときで理論値-5.9%

QNA-UC5G1Tを買ったので、届いたら5Gbps直結で試す
RAID5 * 4本なので125MB/sは超えるはず。

2021/5/16
有線直結の場合
$ iperf3 -c 169.254.10.165