-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I want to find a solution for a simple test case to allow a pair of ONOS and Atomix to be communicated with each other through a P2P cluster. The simplest setting is that the pair of client and server interact with each other through 2 intermediate P2P proxies. Thus, the network topology is ONOS <--> peer1 <--> peer2 <--> Atomix
It is relatively easy to implement the partial path of ONOS <--> peer1 <--> peer2 by making use of go-libp2p/http_proxy/proxy.go. However, it is unclear how to implement peer2 <--> Atomix. The difficulty lies in the fact that the server is not a p2p host. Thus, peer2 cannot connect to a non-p2p peer if a multiaddr cannot be correctly created for the non-p2p server. Essentially, I want peer2 to act as an egress gateway to bridge between a P2P network and a non-P2P host.
Meanwhile, I have found libp2p/go-libp2p-raft project in github (https://github.com/libp2p/go-libp2p-raft). I can curious to know the way of enabling Atomix to become a p2p host. Is there any suggestion for making Atomix to be reachable from a P2P host? Thanks.