用于 SSH 或 VPN 的开源解决方案,可加快网络速度
日本的电脑A 悉尼的计算机 B
有没有办法在这两台计算机之间建立安全隧道,以便悉尼的计算机 B 更快地访问日本网站,而日本的计算机 A 可以更快地访问澳大利亚网站?
有什么开源解决方案可以适应吗?
computer A in Japan
computer B in Sydney
Is there a way to establish a secure tunnel between these two computer so that Sydney based computer B visit Japanese website faster and Japan based computer A can visit Australian website faster ?
Any open source solution to adapt ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的主要问题是网络延迟;信号在日本和澳大利亚之间传播需要一些时间,而您对此无能为力。
另一个问题是带宽;但这也是隧道也不会改变的。加密信号的压缩效果可能更好也可能更差,但总体而言,应该不会有太大差异。不过,您确实希望在两端都使用足够好的硬件,以便加密和解密的工作不会引入额外的延迟。
您可以做的唯一一件事就是在两端运行缓存代理,这样当您从悉尼重新请求日本站点时,悉尼代理将已经拥有它并节省您前往日本的旅程(和vv.)。如果您控制任一端的网站,您可能还需要考虑镜像它们;这样,在澳大利亚就会有一个日本网站的副本,在日本也会有一个澳大利亚网站的副本,并且这两个网站都可以从各自的国家/地区快速访问。
The main issue here is network latency; a signal needs some time to travel between Japan and Australia, and there is nothing you can do about that.
The other issue is bandwidth; but that is something a tunnel doesn't change either. The encrypted signal may compress better or worse, but overall, there shouldn't be much of a difference. You do want to use decent enough hardware on both ends though, so that the effort of encrypting and decrypting does not introduce extra delays.
The only thing you can do is run a caching proxy on either end, so that when you re-request a Japanese site from Sydney, the Sydney proxy will already have it and save you the trip to Japan (and vv.). If you control the websites on either end, you may also want to consider mirroring them; that way, there would be a copy of the Japanese site in Australia, and a copy of the Australian site in Japan, and both would be fast to access from their respective country.