使用 AFP 将 Macbook 文件缓慢传输到 Synology/Proxmox 服务器

使用 AFP 将 Macbook 文件缓慢传输到 Synology/Proxmox 服务器

当我从 Macbook Pro 向在 Proxmox VM 中运行 Xpenology/Synology 的 NAS 发送一个 5 GB 的文件时,注意到传输速度很慢,约为 35 MB/s。

首先使用 TCP 上的 AFP 将 NAS 安装到 Macbook Pro 上,然后将文件拖放到安装的驱动器中。

Proxmox 服务器连接到 1G 网络交换机端口,Macbook Pro 通过 Wifi 802.11ac 和连接到同一网络交换机的有线以太网连接进行测试。Xpenology VM 使用 RAID-0 ZFS 阵列作为其存储,该阵列由四个 16 TB 5400 rpm HDD 组成。

您是否希望传输速度更接近 5400 rpm 驱动器的读取速度?我相信这个值大约是 70-80 MB/s。此外,RAID-0 应该使这个值高于 100 MB/s。

否则,我们该如何解决传输速度慢的问题呢?

iperf3测试

使用 Proxmox 作为 iperf 服务器、Macbook(wifi)作为客户端的结果:

-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.138, port 57104
[  5] local 192.168.1.2 port 5201 connected to 192.168.1.138 port 57105
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  36.6 MBytes   307 Mbits/sec                  
[  5]   1.00-2.00   sec  37.7 MBytes   316 Mbits/sec                  
[  5]   2.00-3.00   sec  36.4 MBytes   305 Mbits/sec                  
[  5]   3.00-4.00   sec  36.0 MBytes   302 Mbits/sec                  
[  5]   4.00-5.00   sec  36.6 MBytes   307 Mbits/sec                  
[  5]   5.00-6.00   sec  36.8 MBytes   309 Mbits/sec                  
[  5]   6.00-7.00   sec  36.1 MBytes   303 Mbits/sec                  
[  5]   7.00-8.00   sec  34.7 MBytes   291 Mbits/sec                  
[  5]   8.00-9.00   sec  34.1 MBytes   286 Mbits/sec                  
[  5]   9.00-10.00  sec  30.0 MBytes   252 Mbits/sec                  
[  5]  10.00-10.03  sec   578 KBytes   177 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.03  sec   356 MBytes   298 Mbits/sec                  receiver

使用 Proxmox 作为 iperf 客户端、Macbook(wifi)作为服务器的结果:

Connecting to host 192.168.1.138, port 5201
[  5] local 192.168.1.2 port 53068 connected to 192.168.1.138 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  12.3 MBytes   103 Mbits/sec   13   50.9 KBytes       
[  5]   1.00-2.00   sec  13.0 MBytes   109 Mbits/sec   11   35.4 KBytes       
[  5]   2.00-3.00   sec  10.6 MBytes  89.2 Mbits/sec   13   48.1 KBytes       
[  5]   3.00-4.00   sec  12.5 MBytes   105 Mbits/sec   10   62.2 KBytes       
[  5]   4.00-5.00   sec  11.8 MBytes  98.6 Mbits/sec   15   69.3 KBytes       
[  5]   5.00-6.00   sec  11.1 MBytes  93.1 Mbits/sec   16   63.6 KBytes       
[  5]   6.00-7.00   sec  12.2 MBytes   102 Mbits/sec   15   17.0 KBytes       
[  5]   7.00-8.00   sec  10.3 MBytes  86.7 Mbits/sec   18   49.5 KBytes       
[  5]   8.00-9.00   sec  11.2 MBytes  93.6 Mbits/sec   13   45.2 KBytes       
[  5]   9.00-10.00  sec  10.9 MBytes  91.7 Mbits/sec   19   26.9 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   116 MBytes  97.2 Mbits/sec  143             sender
[  5]   0.00-10.00  sec   115 MBytes  96.8 Mbits/sec                  receiver

使用 Proxmox 作为 iperf 服务器、Macbook(以太网)作为客户端的结果:

-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.99, port 57137
[  5] local 192.168.1.2 port 5201 connected to 192.168.1.99 port 57138
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  81.7 MBytes   685 Mbits/sec                  
[  5]   1.00-2.00   sec  87.8 MBytes   737 Mbits/sec                  
[  5]   2.00-3.00   sec  87.5 MBytes   734 Mbits/sec                  
[  5]   3.00-4.00   sec  87.1 MBytes   731 Mbits/sec                  
[  5]   4.00-5.00   sec  88.4 MBytes   742 Mbits/sec                  
[  5]   5.00-6.00   sec  86.4 MBytes   725 Mbits/sec                  
[  5]   6.00-7.00   sec  88.2 MBytes   740 Mbits/sec                  
[  5]   7.00-8.00   sec  87.1 MBytes   730 Mbits/sec                  
[  5]   8.00-9.00   sec  86.3 MBytes   724 Mbits/sec                  
[  5]   9.00-10.00  sec  85.5 MBytes   717 Mbits/sec                  
[  5]  10.00-10.01  sec   423 KBytes   653 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec   866 MBytes   726 Mbits/sec                  receiver

使用 Proxmox 作为 iperf 客户端、Macbook(以太网)作为服务器的结果:

Connecting to host 192.168.1.99, port 5201
[  5] local 192.168.1.2 port 50916 connected to 192.168.1.99 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  77.8 MBytes   653 Mbits/sec   92   28.3 KBytes       
[  5]   1.00-2.00   sec  87.2 MBytes   732 Mbits/sec   87   29.7 KBytes       
[  5]   2.00-3.00   sec  87.0 MBytes   730 Mbits/sec   91   26.9 KBytes       
[  5]   3.00-4.00   sec  76.1 MBytes   638 Mbits/sec  106    126 KBytes       
[  5]   4.00-5.00   sec  81.2 MBytes   681 Mbits/sec  103   41.0 KBytes       
[  5]   5.00-6.00   sec  90.4 MBytes   759 Mbits/sec   93   65.0 KBytes       
[  5]   6.00-7.00   sec  88.5 MBytes   742 Mbits/sec   83   35.4 KBytes       
[  5]   7.00-8.00   sec  79.8 MBytes   669 Mbits/sec  108   32.5 KBytes       
[  5]   8.00-9.00   sec  90.4 MBytes   759 Mbits/sec   75   39.6 KBytes       
[  5]   9.00-10.00  sec  85.8 MBytes   720 Mbits/sec   78    228 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   844 MBytes   708 Mbits/sec  916             sender
[  5]   0.00-10.00  sec   843 MBytes   707 Mbits/sec                  receiver

iperf Done.

网络图

=====:有线 Cat6 连接 -----:Wifi 802.11ac

Proxmox ===== Unifi Switch ===== Unifi Access Point  ------- Macbook Pro (wifi)
                   |
                   ====== Macbook Pro (USB-c ethernet adapter)

接入点位于交换机顶部,非常热。可能是接入点过热导致网速变慢?

更新:在进行 RF 扫描后更改 5Ghz 信道,并将信道宽度从 4 改为 8,有助于实现 500 Mbps 的 WiFi 速度

相关内容