花生壳,内网穿透下的速度测试,花生壳配置和 机制理解
显示3张图片1M带宽下,the cost of time is 28.50s本地运行,the cost of time is 2.24s3M带宽下,the cost of time is 28.54s3M带宽下,the cost of time is 28.50s--------------如果不显示图片,3M带宽下,the cost of time is 0.26s3M带宽下,the cost
显示3张图片
1M带宽下,the cost of time is 28.50s
本地运行,the cost of time is 2.24s
3M带宽下,the cost of time is 28.54s
3M带宽下,the cost of time is 28.50s
--------------
如果不显示图片,
3M带宽下,the cost of time is 0.26s
3M带宽下,the cost of time is 0.26s
本地运行,the cost of time is 0.97s
本地运行,the cost of time is 0.97s
结论,如果显示图片的话,如matplot,网络传输很慢,花费的时间也很长;
如果没有图片展示,CPU的计算速度就体现出来了;
580M的文件下载速度:
---------------------------
# 花生壳 内网穿透配置和原理解析
教程:https://www.jianshu.com/p/8ff41779463b
我对整个事情的理解:
1、PC2是内网中的服务器,也就是我想访问的服务器(目标服务器);
2、PC1是运行花生壳的电脑(在内网中有个ip,也能访问百度),主要作用是实现端口转发;将PC3访问PC2的数据,传输过去;
3、22号端口是PC2的端口,PC1做了端口映射,相当于把PC1的22号端口映射成一个公网IP+公网端口,暴露了出来。
4、公网想访问PC2的22端口,就是通过花生壳的IP+映射好的端口;
5、内网想访问PC2的22端口,就是PC3的内网IP+22端口;
6、本质上花生壳的作用就是换了一套衣服,这套衣服的作用是内网穿透,需要走公网的流量;所以需要收费
更多推荐
所有评论(0)