Skip to main content

Peer at the same network can't find advs

5 replies [Last post]
fabioserra2
Offline
Joined: 2007-07-04

Hi all,

I have the following scenario:

- 2 rendezvous ('R1' and 'R2') and 1 edge peer ('E').
- The peers 'R2' and 'E' have the rendezvouz 'R1' in their seeds list.
- The peer 'R2' and 'E' don't know each other, but should. (through the rendezvous 'r1', right?.)
- Any advertisment published by 'R2' can't be found by 'E', and vice versa.

What am I doing wrong?
Should not the peers 'R2' and 'E' know each other through the rendezvous 'R1'??

Tks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31

SRDI information (about peer advertisement) is not forwarded properly in weakly connected networks (i.e., when peers know about less than two other peers). This has been corrected in the 2.6 beta 2 release. I advise you to try your application with it: http://jxse.kenai.com/Developers/Developers.html.

Cheers,

J.

seiska
Offline
Joined: 2008-07-03

Hi fabioserra2,

"The peer 'R2' and 'E' don't know each other, but should. (through the rendezvous 'r1', right?.)"

As much I know, idea is that every edge peer tries to keep connection to (only) one RDV. And every RDV tries to keep connected to max 5 other RDVs. So R2 and E should not know about each other "by default". But both peers should be able to find each other via discovery.

"Any advertisment published by 'R2' can't be found by 'E', and vice versa."

I cannot tell what is wrong here, but yes, E should get replies to discovery requests matching R2's adv's.

So far I have been able to clear out all my coding/setup mistakes by refering links below, so I would suggest (double?/triple?) checking those also.

http://wiki.java.net/bin/view/Jxta/JxtaJXSE
http://wiki.java.net/bin/view/Jxta/NetworkBasics

fabioserra2
Offline
Joined: 2007-07-04

Hi Seiska,

Tks a lot for your answer and the wiki.
I didn't know that wiki and it is being very usefull and informative.

It seems that the 'E' isn't getting replies to discovery requests from 'R2'. Weird. :(

Should the discovery between 'R2' and 'E' work automatically or I would have to set any configuration?

Tks again!

Fabio

fabioserra2
Offline
Joined: 2007-07-04

I have more information about this problem:
- I have 3 Rendezvous (R1, R2, R3).
- R1 has R2 on its seeds list, and R2 has the same.
- R2 has R3 on its seeds list, and R3 has the same.
- R3 is presented to R1 by R2 automatically.

What I've noticed that if I don't have this bi-directional mapping on the rendezvous is impossible to, for example, R2 to present R3 to R1.

Could it be a bug of jxta?
Do I have to add the rendezvous which know me in my seeds list programatically?
If so, How can I do this?

fabioserra2
Offline
Joined: 2007-07-04

Hi all again!

Has anyone never had this network scenario?

I'm trying to figure out what's happening but nothing until now :(

Tks!

Fábio Serra