Avatar CS Knowledge Wiki

28 家庭网络史 4

“cone” NAPT rule

Level 9d: P2P networking via NAT traversal#

Screenshot 2023-07-17 at 9.26.27 AM.png

“cone” NAPT rule

  • Any connection that goes to 18.241.9.7: 2222 would be reroute to 10.0.0.7:9876

What would be needed to make this TCPConnection happen?

  • Step 1: PC @ 10.0.0.7 needs to know its public IP address
    • STUN Server @ 3.9.0.5 (STUN Servers are stateless)

Screenshot 2023-07-17 at 9.33.33 AM.png

  • Step 2: PC @ 10.0.0.7 wants to tell its peer about its public address: Rendezvous server
    • A rendezvous server is similar to a chat room, and the rendezvous server itself doesn’t have to have any persistent mapping between user names and public addresses
    • When one user is trying to talk to another users, the rendezvous server checks whether the other party is logged in on the server, and if true send the message
    • Rendezvous servers are often run by applications (e.g. Minecraft, or Bittorrent) since rendezvous servers are cheaper than TURN servers, and TURN servers would be needed if P2P connections cannot be established

Screenshot 2023-07-17 at 9.37.18 AM.png

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud