[![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg?style=flat-square)](https://opensource.org/licenses/Apache-2.0)
[![#p2p](https://img.shields.io/badge/matrix-%23p2p-blue?style=flat-square)](https://matrix.to/#/#p2p:matrix.org)
[![Docs](https://img.shields.io/badge/docs-main-blue.svg?style=flat-square)](https://matrix-org.github.io/pinecone/)
# Pinecone
Pinecone is an experimental overlay routing protocol suite which is the foundation of the current P2P Matrix demos. It is designed to provide end-to-end encrypted connectivity between devices at a global scale over any compatible medium (currently TCP, WebSockets, Bluetooth Low Energy etc), allowing multi-hop peer-to-peer connectivity between devices even in places where there is no Internet connectivity.
Pinecone builds two virtual topologies: a globally agreed spanning tree, like [Yggdrasil](https://github.com/yggdrasil-network/yggdrasil-go), and a virtual line (or snake) arranged sequentially by public key. This gives some rise to the routing scheme perhaps being called SNEK (Sequentially Networked Edwards Key) routing, but perhaps we can come up with a better acronym. ����
Intersecting paths between keyspace neighbours provide the bulk of the routing knowledge, whilst the spanning tree provides greedy routing for some bootstrap and path setup traffic. In addition, Pinecone also implements source routing and an active pathfinder, although these are currently not used by the P2P Matrix demos.
Pinecone is incredibly experimental still. There might be bugs, vulnerabilities or architectural problems that we don't yet know about. If you spot anything that doesn't look right, we are very happy to welcome issues and pull requests, or you can join us in [#p2p:matrix.org](https://matrix.to/#/#p2p:matrix.org).
## Requirements
Go 1.18 or later.
## Questions
### Is there any documentation?
The best documentation today is the code itself, which is reasonably well commented. There is also some documentation on how the protocol works [here](https://matrix-org.github.io/pinecone/).
### Does Pinecone perform well?
Generally yes! However, this implementation isn't terribly well optimised yet so there will almost certainly be improvements that can be made.
### Will Pinecone scale?
It's a primary goal of ours to build something that will scale up to Internet-like proportions in order to help us with our plans for Matrix world domination. We think Pinecone should scale well, but ultimately we will find out and make changes accordingly.
### Is Pinecone secure?
All traffic transported over Pinecone is end-to-end encrypted using TLS, therefore intermediate nodes will not be able to inspect packet contents. Many of the protocol messages are also cryptographically signed for authenticity. The protocol is still in its infancy, however, so there may be theoretical attacks that we don't know about yet.
### Can I run Pinecone on my platform?
This implementation is written in [Go](https://golang.org) which has excellent support for a number of platforms and cross-compilation for mobile devices. We've successfully seen Pinecone running on macOS, Linux, Windows, Android and iOS. We aren't aware of any specific reasons that it wouldn't work on other platforms supported by Go.
### Why not Yggdrasil?
We did in fact experiment with Yggdrasil in earlier P2P Matrix demos, and in many ways, Pinecone is directly inspired by Yggdrasil. However, the spanning tree topology alone is not a suitable routing scheme for highly dynamic networks. Peerings that represent parent-child relationships on the spanning tree can result in entire parts of the coordinate system becoming temporarily invalidated, interrupting connectivity.
### Why not libp2p?
We experimented with that too! libp2p worked well for local-only scenarios but currently assumes in many places that nodes will be directly routable to each other over (either over a LAN or the Internet), which is not necessarily going to be the case for P2P Matrix. Other components that would be useful (such as NAT traversal and overlay routing) are still quite early. If Pinecone overlay routing is a success then we will hopefully to be able to assist with adding support into libp2p in the future.
### Does Pinecone provide anonymity?
No, it is not a goal of Pinecone to provide anonymity. Pinecone packets will be routed using the most direct paths possible (in contrast to Tor and friends, which deliberately send traffic well out of their way) and Pinecone packets do contain source and destination information in their headers currently. It is likely that we will be able to seal some of this information, in particular the source addresses, to reduce traffic correlation, but this is not done today.
### Does Pinecone work on mobile devices?
Yes, we actually have two P2P Matrix demos for Android and iOS today. Node mobility is an important problem for us to solve, as not many routing schemes today respond well to topology changes. We believe that the SNEK routing within Pinecone should respond well to topology changes.
### What is a static peer?
Pinecone nodes can automatically discover each other depending on the platform (for example, Android and iOS nodes can discover each other over Bluetooth without any further configuration). However, you might not be physically close to any other Pinecone nodes, so instead you can join the wider Pinecone network by connecting to a static peer over the Internet or an existing network. Traffic to distant nodes will be routed over this peer connection.
### Can I run my own static peer?
Sure, the `cmd/pinecone` binary will help you to do that. You will need to provide the `-listen` command line argument to specify which port to accept connections on, and you will probably also want to specify the `-connect` flag to connect your node to an existing peer so that your node is not isolated from the rest of the world. Unless, of course, isolation is what you are aiming for.
### Does Pinecone work through firewalls or NATs?
Yes. Pinecone peering connections look like regular TCP or WebSocket connections and will work fine through firewalls or NATs. If you make an outbound connection to a static node, you will still be able to receive incoming Pinecone traffic over that peering.
没有合适的资源?快使用搜索试试~ 我知道了~
Matrix生态系统的点对点覆盖路由_Go_JavaScript_下载.zip
共151个文件
go:79个
md:26个
txt:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 144 浏览量
2023-04-13
23:40:20
上传
评论
收藏 402KB ZIP 举报
温馨提示
Matrix生态系统的点对点覆盖路由_Go_JavaScript_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
Matrix生态系统的点对点覆盖路由_Go_JavaScript_下载.zip (151个子文件)
default.css 14KB
Dockerfile 616B
Gemfile 145B
.gitignore 80B
state_tree_test.go 21KB
state_tree.go 19KB
peer.go 13KB
state_snek.go 13KB
multicast.go 13KB
main.go 13KB
commands.go 12KB
simulator.go 11KB
state.go 11KB
frame.go 9KB
state.go 8KB
router.go 8KB
frame_test.go 7KB
state_forward.go 7KB
state_snek_test.go 7KB
drop_packets.go 6KB
nodes.go 5KB
router.go 5KB
announcement.go 5KB
state_broadcast.go 5KB
manager.go 4KB
main.go 4KB
gobind.go 4KB
dial.go 4KB
sessions.go 4KB
queuefairfifo.go 4KB
events.go 4KB
packetconn.go 4KB
manhole.go 4KB
links.go 3KB
main.go 3KB
tun_darwin.go 3KB
coordinates.go 3KB
consts.go 3KB
queuefifo.go 3KB
api.go 3KB
broadcast.go 2KB
tun.go 2KB
listen.go 2KB
queuelifo.go 2KB
announcement_test.go 2KB
virtualsnake.go 2KB
events.go 2KB
coordinates_test.go 2KB
websocket.go 2KB
virtualsnake_test.go 2KB
ping.go 2KB
varu64_test.go 2KB
distance.go 2KB
signaturehop.go 2KB
ed25519.go 2KB
api.go 2KB
platform_darwin.go 2KB
interface.go 2KB
distance_test.go 2KB
overlay.go 2KB
http.go 2KB
pathfind.go 1KB
overlay_test.go 1KB
options.go 1KB
varu64.go 1KB
platform_unix.go 1KB
platform_windows.go 1KB
realpaths.go 1KB
platform_darwin.go 1KB
version.go 1KB
pools.go 1KB
platform_other.go 980B
streams.go 896B
types.go 893B
queuefifo_test.go 845B
platform_other.go 822B
queue.go 807B
tun_linux.go 805B
logger.go 708B
slowconn.go 665B
main.go 606B
ed25519_test.go 350B
pprof.go 157B
page.html 9KB
graph.js 32KB
ui.js 28KB
peerings-form.js 10KB
nodes-form.js 6KB
common.js 6KB
main.js 5KB
websocket-worker.js 2KB
server-api.js 2KB
example_drop_snek_proto.json 3KB
api_reference.json 2KB
example_alice_and_friends.json 2KB
debug.json 100B
LICENSE 10KB
Gemfile.lock 8KB
pinecone.lua 12KB
4_next_hop.md 7KB
共 151 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微信小程序 - 同乐居商城:购物车合算源码
- 1、根据输入的三条边值判断能组成何种三角形,并设计测试数据进行判定覆盖测试 三条边为变量a、b、c,范围为1≤边值≤10,不在范
- SQL server 练习题目8道(小白教学).zip
- Python 手写实现 iD3 决策树算法-根据信息增益公式.zip
- 411675952289057车联助手-小窗版(三星)3.5.1.apk
- 三种快速排序方法合并在一个文件中以便直接运行的Python代码示例
- 937712277954201实习5.word
- 2程序语言基础知识pdf1_1716337722703.jpeg
- 简单的Python示例,演示了如何使用TCP/IP协议进行基本的客户端和服务器通信
- 考试.sql
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功