PNRP - 它是如何运作的?

发布于 2024-08-12 23:27:42 字数 320 浏览 3 评论 0原文

抱歉,如果这看起来是一个愚蠢的问题,但我实际上很难找到直接的答案。我知道 PNRP 是 MS 用于实现点对点的技术,但它实际上是如何工作的 - 我的意思是,我假设当您在全球云中注册您的地址时,它实际上是在联系 Microsoft 服务器以查找对等地址,然后将对等端点信息。

当假设全球只有 2 个对等点时,我仍然对如何在云中找到地址感到有点困惑。

...据我了解,必须有一个对等解析器来维护注册列表(假设一个全新的节点上线),然后它会提供要连接的最近邻居的地址。如果我选择使用服务/应用程序知道的地址或我假设使用微软运营的对等解析器的全球云,这可以是我拥有的中央服务器。

谢谢

Sorry if this seems like a stupid question but im actually having a hard time finding a straight answer. I know PNRP is MS's technology for implementing peer-to-peer but how does it actually work - i mean im assuming when you register your address in the global cloud that it is actually contacting a Microsoft server to find a peer address then handing back the peer endpoint info.

Im a little confused still as to how addresses are found in the cloud when say there are only 2 peers located across the globe.

... From what i understand there has to be a peer resolver to maintain a list of registrations (assuming a brand new node comes online) it then hands addresses of its closest neighbors to connect to. This can be a central server that I own if i choose to use an address the services/apps know about or the global cloud which i assume uses a peer resolver that microsoft operates.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜是你 2024-08-19 23:27:42

来自维基百科页面

在内部,PNRP 使用一种架构
类似于分布式哈希表
系统,如 Chord 或 Pastry。这
对等名称进行哈希处理以生成
128 位对等标识符,以及
DHT 类算法用于检索
主机发布的位置
该标识符。

这意味着他们的基础设施不是中心化的;没有“微软服务器”可问。打个比方,您向云询问路由信息,它会协作回答。

如果云中只有两台计算机,它们就会互相了解。

From the Wikipedia page:

Internally, PNRP uses an architecture
similar to distributed hash table
systems such as Chord or Pastry. The
peer name is hashed to produce a
128-bit peer identifier, and a
DHT-like algorithm is used to retrieve
the location of the host publishing
that identifier.

This means their infrastructure is not centralized; there isn't "a Microsoft server" to ask. Metaphorically, you're asking the cloud for routing information, and it collaboratively answers.

If there were only two computers in the cloud, they would both know about each-other.

や三分注定 2024-08-19 23:27:42

这是商品

http://msdn.microsoft.com/en-us/library/ ms731061.aspx

它涵盖了基础知识:

网格、节点、通道安全、解析器。

你的问题的答案就是解析器。您的程序可以在对等级别上进行协作,但它们需要中央服务器才能立即找到彼此。您将向服务器发布一个解析器,所有客户端都会使用它。

Here's the goods

http://msdn.microsoft.com/en-us/library/ms731061.aspx

It covers the basics:

Meshes, Nodes, Channel Security, Resolvers.

And the answer to your question is the resolver. Your programs can collaborate on a peer to peer level but they need central servers to find each other instantly. You would publish a resolver to your server and all the clients would use it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文