Comments (2)
实际上,这并不是非常重要。
你如果阅读了代码,应该能看到我们只区分了 HardNAT 和 EasyNAT,而不是具体的各种类似 全锥型
、地址受限锥形
等等类型。探测具体的这些类型,并不是一件简单的事情,依赖 STUN server 的实现,有时甚至会让问题变得更复杂。
如果 mode0 能够成功,那么 mode1/mode2 大概率也能够成功(为了 cover 边界情况,会主动把 mode0 再放到尝试策略的最后),我们需要的是 p2p 打洞的成功率,一旦成功,这次策略会被记录,这个链路也可以被持续复用,下次优先尝试,没有额外的成本。所以简化的模型就已经足够。
设计之初,测试过部分 STUN Server,很多并没有完全按照协议来实现,结果并不可靠,并且还依赖响应超时来识别类型,流程多的时候,探测类型耗时也会很长,对用户很不友好。考虑过让用户在自己确认自己 NAT 类型的情况下,主动提供辅助信息来调整策略优先级,但并不是必须,暂时不会增加这个复杂度。且所谓的 全锥形(或地址受限锥形) 的比例应该并不高。
from frp.
mode2确实已经有超过0.98的成功率了,已经够用了。
from frp.
Related Issues (20)
- 大佬们帮忙看看0.58.1连接不上,其他版本也连不上... HOT 6
- 使用旁路由的情况下, frpc无法启动问题 HOT 2
- frpc安装不成功,是否是缺DLL? HOT 2
- frp 配置文件不同版本不一样吗? HOT 2
- xtcp 能获取到访问的真实ip吗? HOT 1
- frp 0.58.1 Server 连接几分钟后断链 HOT 2
- One port for multiple remote connections HOT 1
- frp一段时间后失去连接 HOT 1
- android版本怎么安装和使用 HOT 1
- login to the server failed: session shutdown. HOT 2
- io timeout\connection timeout HOT 2
- [Feature Request] Configure remotePort on the Server HOT 1
- unmarshal ProxyConfig error: json: unknown field "customDomains" HOT 1
- frp返回错误的页面,访问不同子域名时返回错误页面 HOT 1
- 按照gofrp.org官网,提供的p2p教程示例,两台服务器部署的时候json解析失败 HOT 2
- [Feature Request] 是否可以增加压缩条件 HOT 1
- frp 使用route路由locations无效
- Log Failed Authentication Attempts for HTTP Basic Auth on Dashboard [Feature Request] HOT 2
- [Feature Request] 目前只想client端使用http_proxy功能, HOT 1
- 面板深色模式,首页面板,有些字就看不见了 HOT 1
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 frp.