hysteria
hysteria copied to clipboard
[请求帮助] 在Oracle的VPS上速度异常?
问题详情
oracle免费的两台vps,使用v2ray
下载速度能够到达200M
,hysteria
只能到50M。手头其他家的一台美国VPS用相同配置可以跑满带宽。
后面将client放到和server同一台oracle机器上测试,设置代理export http_proxy=http://127.0.0.1:1100 https_proxy=http://127.0.0.1:1100
,用fast测速,未挂代理时下载速度为500M
,设置代理后,
同时调整server
的up_mbps
和client
的down_mbps
测速结果:
up_mbps | fast测速结果 |
---|---|
100 | 26.71Mbps |
200 | 46.61Mbps |
300 | 64.95Mbps |
400 | 79.60Mbps |
500 | 93.38Mbps |
测试过程中CPU在80%以内。
服务端安装信息或者一键脚本信息
hysteria version v1.2.1 2022-09-10T01:25:46.128Z 03e397b152134419d0ed4cb0565328fd81bd29f7
VPS 信息
Oracle-Tokyo 免费小鸡 x86 2核1GB
服务端配置
{
"listen": "localhost:1234",
"cert": "/etc/v2ray/v2ray.cert",
"key": "/etc/v2ray/v2ray.key",
"up_mbps": 200,
"down_mbps": 200,
"recv_window_conn": 671088640,
"recv_window_client": 671088640,
"max_conn_client": 65535
}
服务端日志
2022-10-23T05:57:52Z [INFO] [config:{Listen:localhost:1234 Protocol: ACME:{Domains:[] Email: DisableHTTPChallenge:false DisableTLSALPNChallenge:false AltHTTPPort:0 AltTLSALPNPort:0} CertFile:/etc/v2ray/v2ray.crt KeyFile:/etc/v2ray/v2ray.key Up: UpMbps:500 Down: DownMbps:200 DisableUDP:false ACL: MMDB: Obfs: Auth:{Mode: Config:[]} ALPN: PrometheusListen: ReceiveWindowConn:671088640 ReceiveWindowClient:671088640 MaxConnClient:65535 DisableMTUDiscovery:false Resolver: ResolvePreference: SOCKS5Outbound:{Server: User: Password:} BindOutbound:{Address: Device:}}] Server configuration loaded 2022-10-23T05:57:52Z [WARN] No authentication or obfuscation enabled. Your server could be accessed by anyone! Are you sure this is what you intended? 2022-10-23T05:57:52Z [INFO] [addr:localhost:1234] Server up and running 2022-10-23T05:58:06Z [INFO] [src:127.0.0.1:41942] Client connected 2022-10-23T05:58:08Z [DEBU] [src:127.0.0.1:41942] [dst:fast.com:443] [action:Direct] TCP request 2022-10-23T05:58:08Z [DEBU] [src:127.0.0.1:41942] [dst:api.fast.com:443] [action:Direct] TCP request 2022-10-23T05:58:09Z [DEBU] [src:127.0.0.1:41942] [dst:ipv4-c097-tyo001-ix.1.oca.nflxvideo.net:443] [action:Direct] TCP request 2022-10-23T05:58:09Z [DEBU] [src:127.0.0.1:41942] [dst:ipv4-c062-tyo001-ix.1.oca.nflxvideo.net:443] [action:Direct] TCP request 2022-10-23T05:58:09Z [DEBU] [src:127.0.0.1:41942] [dst:ipv4-c226-sjc002-ix.1.oca.nflxvideo.net:443] [action:Direct] TCP request 2022-10-23T05:58:09Z [DEBU] [src:127.0.0.1:41942] [dst:ipv4-c156-sea001-ix.1.oca.nflxvideo.net:443] [action:Direct] TCP request 2022-10-23T05:58:09Z [DEBU] [src:127.0.0.1:41942] [dst:ipv4-c130-sea001-ix.1.oca.nflxvideo.net:443] [action:Direct] TCP request 2022-10-23T05:58:23Z [INFO] [src:127.0.0.1:41942] [dst:ipv4-c062-tyo001-ix.1.oca.nflxvideo.net:443] [error:stream 20 canceled with error code 0] TCP error 2022-10-23T05:58:23Z [INFO] [src:127.0.0.1:41942] [dst:ipv4-c156-sea001-ix.1.oca.nflxvideo.net:443] [error:stream 28 canceled with error code 0] TCP error
客户端安装信息
hysteria version v1.2.1 2022-09-10T01:25:46.128Z 03e397b152134419d0ed4cb0565328fd81bd29f7
客户端配置
{
"server": "localhost:1234",
"server_name": "*******",
"up_mbps": 30,
"down_mbps": 200,
"recv_window_conn": 671088640,
"recv_window": 1342177280,
"disable_mtu_discovery": false,
"socks5": {
"listen": "127.0.0.1:1099"
},
"http": {
"listen": "127.0.0.1:1100"
}
}
客户端运行环境(操作系统)
debian 11
客户端日志
2022-10-23T05:58:06Z [INFO] [config:{Server:localhost:1234 Protocol: Up: UpMbps:30 Down: DownMbps:500 Retry:0 RetryInterval:0 SOCKS5:{Listen:127.0.0.1:1099 Timeout:0 DisableUDP:false User: Password:} HTTP:{Listen:127.0.0.1:1100 Timeout:0 User: Password: Cert: Key:} TUN:{Name: Timeout:0 MTU:0 TCPSendBufferSize: TCPReceiveBufferSize: TCPModerateReceiveBuffer:false} TCPRelays:[] TCPRelay:{Listen: Remote: Timeout:0} UDPRelays:[] UDPRelay:{Listen: Remote: Timeout:0} TCPTProxy:{Listen: Timeout:0} UDPTProxy:{Listen: Timeout:0} TCPRedirect:{Listen: Timeout:0} ACL: MMDB: Obfs: Auth:[] AuthString: ALPN: ServerName:********* Insecure:false CustomCA: ReceiveWindowConn:671088640 ReceiveWindow:1342177280 DisableMTUDiscovery:false Resolver: ResolvePreference:}] Client configuration loaded 2022-10-23T05:58:06Z [INFO] [addr:localhost:1234] Connected 2022-10-23T05:58:06Z [INFO] [addr:127.0.0.1:1100] HTTP server up and running 2022-10-23T05:58:06Z [INFO] [addr:127.0.0.1:1099] SOCKS5 server up and running 2022-10-23T05:58:08Z [DEBU] [dst:fast.com:443] [action:Proxy] HTTP request 2022-10-23T05:58:08Z [DEBU] [dst:api.fast.com:443] [action:Proxy] HTTP request 2022-10-23T05:58:09Z [DEBU] [dst:ipv4-c130-sea001-ix.1.oca.nflxvideo.net:443] [action:Proxy] HTTP request 2022-10-23T05:58:09Z [DEBU] [dst:ipv4-c226-sjc002-ix.1.oca.nflxvideo.net:443] [action:Proxy] HTTP request 2022-10-23T05:58:09Z [DEBU] [dst:ipv4-c062-tyo001-ix.1.oca.nflxvideo.net:443] [action:Proxy] HTTP request
你要用iperf3 测一下udp协议的丢包情况,
{
"server": "[2001:29f0:ac01:522:5400:4ff:fe1c:40d6]:123",
"protocol": "udp",
"up_mbps": 30,
"down_mbps": 300,
"retry": -1,
"retry_interval": 1,
"http": {
"listen": "0.0.0.0:8080",
"timeout": 60
},
"tun": {
"name": "tun0",
"timeout": 60,
"mtu": 1500,
"tcp_sndbuf": "4m",
"tcp_rcvbuf": "4m",
"tcp_autotuning": true,
"persist": false,
},
"relay_tcps": [
{
"listen": "0.0.0.0:531",
"remote": "[2001:4860:4860::8888]:53",
"timeout": 60
}
],
"relay_udps": [
{
"listen": "0.0.0.0:531",
"remote": "[2001:4860:4860::8888]:53",
"timeout": 60
}
],
"server_name": "1-courier.push.apple.com",
"insecure": true,
"recv_window_conn": 671088640,
"recv_window": 671088640,
"disable_mtu_discovery": false
}
你要用iperf3 测一下udp协议的丢包情况,
server和client都放到同一台机器上了,udp不可能还有丢包的
我这边也有这个情况, 怎么搞速度都上不去。
我也发现了类似的现象,x86速度正常,arm平台就是慢
更新:测试了下,arm64下速度还算可以,但还是比x86慢不少,armv7下速度就是非常慢,cpu占用也很高