Giter Club home page Giter Club logo

Comments (2)

fatedier avatar fatedier commented on July 20, 2024

实际上,这并不是非常重要。

你如果阅读了代码,应该能看到我们只区分了 HardNAT 和 EasyNAT,而不是具体的各种类似 全锥型地址受限锥形 等等类型。探测具体的这些类型,并不是一件简单的事情,依赖 STUN server 的实现,有时甚至会让问题变得更复杂。

如果 mode0 能够成功,那么 mode1/mode2 大概率也能够成功(为了 cover 边界情况,会主动把 mode0 再放到尝试策略的最后),我们需要的是 p2p 打洞的成功率,一旦成功,这次策略会被记录,这个链路也可以被持续复用,下次优先尝试,没有额外的成本。所以简化的模型就已经足够。

设计之初,测试过部分 STUN Server,很多并没有完全按照协议来实现,结果并不可靠,并且还依赖响应超时来识别类型,流程多的时候,探测类型耗时也会很长,对用户很不友好。考虑过让用户在自己确认自己 NAT 类型的情况下,主动提供辅助信息来调整策略优先级,但并不是必须,暂时不会增加这个复杂度。且所谓的 全锥形(或地址受限锥形) 的比例应该并不高。

from frp.

meiweimuli avatar meiweimuli commented on July 20, 2024

mode2确实已经有超过0.98的成功率了,已经够用了。

from frp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.