本地是中国(深圳)电信,对端是阿里云香港的轻量服务器( 30M )。
建了一个 WireGuard,iPerf3 测速(下行):
$ iperf3 -c 10.200.200.1 -R
Connecting to host 10.200.200.1, port 5201
Reverse mode, remote host 10.200.200.1 is sending
[ 4] local 10.200.200.2 port 6872 connected to 10.200.200.1 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 1006 KBytes 8.24 Mbits/sec
[ 4] 1.00-2.00 sec 472 KBytes 3.86 Mbits/sec
[ 4] 2.00-3.00 sec 437 KBytes 3.58 Mbits/sec
[ 4] 3.00-4.00 sec 450 KBytes 3.69 Mbits/sec
[ 4] 4.00-5.00 sec 343 KBytes 2.81 Mbits/sec
[ 4] 5.00-6.00 sec 522 KBytes 4.28 Mbits/sec
[ 4] 6.00-7.00 sec 586 KBytes 4.81 Mbits/sec
[ 4] 7.00-8.00 sec 501 KBytes 4.10 Mbits/sec
[ 4] 8.00-9.00 sec 317 KBytes 2.59 Mbits/sec
[ 4] 9.00-10.00 sec 387 KBytes 3.18 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 5.12 MBytes 4.30 Mbits/sec 220 sender
[ 4] 0.00-10.00 sec 5.03 MBytes 4.22 Mbits/sec receiver
作为对比,QUIC (同样也是 UDP ):
$ iperf3 -c 127.0.0.1 -p 1080 -R
Connecting to host 127.0.0.1, port 1080
Reverse mode, remote host 127.0.0.1 is sending
[ 4] local 127.0.0.1 port 7608 connected to 127.0.0.1 port 1080
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 7.51 MBytes 62.9 Mbits/sec
[ 4] 1.00-2.00 sec 3.76 MBytes 31.6 Mbits/sec
[ 4] 2.00-3.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 3.00-4.00 sec 3.83 MBytes 32.2 Mbits/sec
[ 4] 4.00-5.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 5.00-6.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 6.00-7.00 sec 3.79 MBytes 31.8 Mbits/sec
[ 4] 7.00-8.00 sec 3.79 MBytes 31.8 Mbits/sec
[ 4] 8.00-9.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 9.00-10.00 sec 3.81 MBytes 31.9 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 51.2 MBytes 43.0 Mbits/sec 0 sender
[ 4] 0.00-10.00 sec 41.8 MBytes 35.1 Mbits/sec receiver
iperf Done.
TLS:
$ iperf3 -c 127.0.0.1 -p 1080 -R
Connecting to host 127.0.0.1, port 1080
Reverse mode, remote host 127.0.0.1 is sending
[ 4] local 127.0.0.1 port 7608 connected to 127.0.0.1 port 1080
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 7.51 MBytes 62.9 Mbits/sec
[ 4] 1.00-2.00 sec 3.76 MBytes 31.6 Mbits/sec
[ 4] 2.00-3.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 3.00-4.00 sec 3.83 MBytes 32.2 Mbits/sec
[ 4] 4.00-5.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 5.00-6.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 6.00-7.00 sec 3.79 MBytes 31.8 Mbits/sec
[ 4] 7.00-8.00 sec 3.79 MBytes 31.8 Mbits/sec
[ 4] 8.00-9.00 sec 3.80 MBytes 31.9 Mbits/sec
[ 4] 9.00-10.00 sec 3.81 MBytes 31.9 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 51.2 MBytes 43.0 Mbits/sec 0 sender
[ 4] 0.00-10.00 sec 41.8 MBytes 35.1 Mbits/sec receiver
iperf Done.
其中 TLS 和 QUIC 是用 gost 建立隧道的。
请问大家可能的原因有什么呢?
另外一个信息是:WireGuard 测试本地到服务器的上传没有问题(能跑满 30Mbps )。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.