Skip to main content

Clarifications Needed

3 replies [Last post]
ave52
Offline
Joined: 2009-02-07

Is it true that JXTA peers in a WAN environment take more time to discover each other?

Reply viewing options

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

Thanks for the info. I just wanted to know as to how long approximately should i wait for peers to get discovered after configuring(not in LAN)?

enygma2002
Offline
Joined: 2008-12-22

I`d say under 30 seconds. For my toy application, using the public network with multicast off, it takes much less than that... under 5-10 seconds.
You could also use a lock system and unlock when the discovery event comes.

If you need a timeout system, I think 60 seconds would be a safe bet.

Cheers!

enygma2002
Offline
Joined: 2008-12-22

Well, normally that happens to any application/protocol that is run outside of a LAN.

In LAN you have high-speed connections and not a big need for routing since your destinations are reachable within one hop. (wire-to-wire or wire-switch-wire).

In WAN(or in-the-wild), you have multiple problems like routing, multiple hops between source and destination, various network limitations, etc.

It is normal that any network operation in WAN will be performed noticeably slower than LAN or even localhost, this including peer discovery.

This is a basic network fact. If you were talking about something else, please describe better your question.

Cheers!