我无法通过 scp 实现良好的传输速率,我想知道网络配置是否未正确调整。通过 tcp 与 udp 运行 iperf 时,我注意到了一些差异。对于同一千兆以太网局域网中的两台 PC,这些结果是否正常?这是服务器的输出:
./iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.91.150 port 5001 connected with 192.168.91.164 port 50651
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 599 MBytes 501 Mbits/sec
./iperf -s -u -w 64K
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 64.0 KByte
------------------------------------------------------------
[ 3] local 192.168.91.150 port 5001 connected with 192.168.91.164 port 39694
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 0.0-30.0 sec 179 MBytes 50.0 Mbits/sec 0.386 ms 0/127660 (0%)
[ 3] 0.0-30.0 sec 1 datagrams received out-of-order
通过 scp 传输时:
129MB 4.6MB/s 00:28
这些结果是否一致?为什么 UDP/TCP/SCP 之间有如此大的差异(scp 应该超过 tcp 吗?)
谢谢