Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

传输性能问题 #438

Closed
Tevic opened this issue Mar 4, 2020 · 4 comments
Closed

传输性能问题 #438

Tevic opened this issue Mar 4, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Tevic
Copy link

Tevic commented Mar 4, 2020

之前用的frp,偶然发现这个东西,发现功能比frp强太多了,然后找教程在路由器上部署开了服务端,客户端在公司内网的树莓派上,因为树莓派是ZeroW,所以性能比较弱,测试下来无线网卡最多能跑到1.5-2MB/s的样子,之前frp在家里通过ZeroW访问公司内部资源是可以满速的,但换到nps后速度只能到600KB/s,换回frp又能满速,是不是能考虑优化下性能。
补充下:frp和nps都是开的tcp隧道连到客户端的socks5代理上,本地通过socks5代理访问资源。

@Tevic Tevic added the enhancement New feature or request label Mar 4, 2020
@ffdfgdfg
Copy link
Contributor

ffdfgdfg commented Mar 5, 2020

能观察下跑到600kb/s的时候load跑多少了吗,pi zerow单核1ghz arm确实可能是cpu跑不动了导致的,原因呢我偏向于nps是采用多路复用的设计,使用单个连接传输多个访问连接的数据,这中间涉及到的拆包解包过程开销并不低
能否再测试下客户端放到普通电脑上网速多少呢

@Tevic
Copy link
Author

Tevic commented Mar 5, 2020

测试了一下在上面说的在rasp情况下,frpc和npc都能占满CPU,没有抓go profile,相信性能还有比较大的优化的空间,更高带宽也会带来更大的cpu开销

@yhyf
Copy link

yhyf commented May 27, 2020

我之前测试也发现,socks5的组网方式传输速度特别慢,您这边有解决办法吗

@hezlog
Copy link

hezlog commented Apr 5, 2021

我也遇到过,使用frp带宽可以跑满(25M),用npc远程桌面都卡的没法用。

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants