Skip to main content

Connecting 2 Rendezvous Nodes?

2 replies [Last post]
andrwe2486
Offline
Joined: 2009-05-07

I'm trying to get 2 rendezvous nodes to connect together, but it doesn't seem to be working.

I'm trying to make a centralized-decentralized network where i have a chain of rendezvous nodes and each rendezvous node has 2 Edge peers connected.

I tested this in a computer lab where all comuters are on the same subnet. I get RDV 1 going and then EDGE1 and EDGE2 connect. I have each peer search for all available Peer advertisements and all 3 Peers find each other ads. They even find ads from other people in the lab working on their own Jxta projects.

The problem happens when I try to add the 2nd rendezvous node. I add the TCP/IP address of RDV 1 to RDV 2 through addSeedRendezvous. Then I call waitForRendezvousConnection(4000). RDV 2 finds a group advertisement that RDV 1 has published, and joins the group, but when I try to do Peer discovery on RDV 2 it doens't find any peer ads. The other 3 peers, RDV 1 & Edge1&2, don't find an advertisement for RDV 2.

Any suggestions on what could cause that? It seems pretty simple to me because I use the same code that works when Edge1&2 connect to RDV 1. I can't figure out how it could find the group advertisement and then not find peer advertisemnts and not have its own peer ad be found by other peers.

THANKS FOR ANY HELP

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
andrwe2486
Offline
Joined: 2009-05-07

After checking some other threads and a lot of trial and error, my network seems to be working.

As far as I can tell, the reason my network wasn't working with my chain of RDVs is because each RDV has to have the other RDVs as seeds. I'm not sure why it won't work if only RDV1 has a seed for RDV2 and RDV1 connects to RDV2, but then RDV2 doesn't make the connection the other direction.

Any way, I have moved on from that network structure and I am using some stuff I found in a dirfferent thread.

I'm prety sure there is quite a few programmers who are having the same types of problem

The solution is to have a few bootstrap RDVs and then give each of those RDVs the other RDV as seeds. Then give all the seeds to your edge peers.

andrwe2486
Offline
Joined: 2009-05-07

UPDATE:
I tried my network on my computer at home, using different ports for each peer, I ran the 4 peers as mentioned above. Now RDV 2 finds an advertisement for RDV 1, Edge 1, Edge2, but the other peers don't find RDV 2.