Comments (4)
首先,在**大陆对抗 GFW 是违法的。你应该克制自己,不要从事任何违法犯罪行为。
其次,Ahri 的主要能力是同时访问多个内网;使用公网服务器网络环境只是一个辅助功能。
从技术上来说,ahri-client 与 ahri-server 之间仅存在一个 TCP 连接。
双方通过心跳感知对方处于健康状态。
在两种情况下会出现断断续续的情况:
- 高延迟,导致 timeout,被判定为断链
- 低带宽,导致读写速度受限,从而表现为高延迟,于是被判定为断链
为了解决这个问题,你可以适当调大程序参数 -T
的数值。
该值是 ahri-client 与 ahri-server 之间单向 IO 的 timeout 的 unit。
该值的单位是秒。
该值的默认值是 5。
想从根本上解决这个问题,您需要一个带宽稍大一些的公网服务器(最低 2M)。
或者服务器所在的城市与您常住城市的距离更近一些。
顺便说一句,我工作原因需要 google 之类的网站。所以有一个 vps 是 vultr 的。
from ahri.
更换Vutr ,问题依然
ARP Err (dial tcp XXXX:15672: connect: no route to host)
from ahri.
connect: no route to host
问题的原因已经很清楚了。
应该是 DNS 的问题,这个问题不在 ahri 的涉猎范围。
你应该自行 baidu 或者 google。
在过去一年半的时间中,一些胡乱的行为导致 vultr 的 IP 群落被 GWF 重点照顾。
所以,如果你想要更稳定的使用 ahri 的辅助功能,可遵循以下操作。
- 在米国西海岸附近的城市多开几台机子,找到一个 ping 时间段大约在 200ms 的 vps (当然,因为物理距离较远,该值最低不会不低于 150ms)
- use BBR,BBR 由 Google 贡献给 linux kernel,并在 4.9.0 之后的内核中启用。使用 BBR 后,Linux服务器可以显着提高吞吐量并减少连接延迟。
- 确保你的本地网络环境带宽足够,不然由于物理距离,你说的断断续续的情况会一直存在。
最后,我很确定,我在访问 YouTube 的 1080p 的视频时,身处家中百兆宽带的网络环境下,断链情况在一小时内仅出现个位数个。
对了,GMT+8 的19点以后不论你使用哪个工具,网速都被降低很多。
到 23 点后,我这里的情况是直接限制为 2M。
猜测是 GWF 在这个时段会加大审核力度。
ahri 在这个时段下,断链情况会比平时多2~4倍。
当然,我的情况不代表所有人,所以如果你有优化 ahri 的想法与意见,请告诉我。
from ahri.
Thanks @GavinGuan24
from ahri.
Related Issues (12)
- 您好,这个怎么回事呢 HOT 1
- 已经释放 SpreadX。这里可提供有限答疑。 HOT 2
- 老哥,Ahri 还是启动不起来 HOT 8
- 编译服务器端遇错 HOT 2
- 是否支持多个服务器负载均衡? HOT 4
- 使用帮助 HOT 3
- 希望有一个教程 HOT 2
- 如何强制代理所有的URL ? HOT 2
- Dalao能不能考虑加个xtcp的功能,这样做可以减少购买公网服务器带宽的成本 HOT 3
- sockets代理国内网站正常,代理国外网站乱码网页无法显示,是什么原因? HOT 1
- 我是否应该释放 SpreadX 的二进制执行文件? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahri.