Skip to main content

Single Hop

3 replies [Last post]
bagsgaurav
Offline
Joined: 2008-01-09
Points: 0

Hi all,

I am new to Jxta, I have a requirement that when I connect two peers, there should be only single hop between them (one to one) like a VPN.Is it possible in Jxta?

I'll really appreciate if someone helps me with this.

Thanks in advance.

Regards,
gaurav

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
Points: 0

In theory, it is possible if all your peers are not hidden behind firewalls and NATs, but in practice, I doubt this will ever happen... You never know from where the people using your application will connect (Internet cafe, home, the office, a client...) and most of the time, they will connect from behind Firewalls and NAT. So I would not bet on this...

I don't know why you have this requirement, what is the reason? May be that requirement is not necessary.

Cheers,

J.

bagsgaurav
Offline
Joined: 2008-01-09
Points: 0

Hi adamman71,

Thanks for reply,
Actually I am working on a hypothetical project given as assignment where company has got offices(branches) in a country and the data should get routed within the country.
I saw tunneling concept and pipping so thought it must be possible through Jxta.

Well can you give any suggestion what can be done or any pointers how to go about this.Is this thing possible through Java or should I make a vpn connection using open source openVpn and then go about transferring data using pure sockets.

Regards
Gaurav

adamman71
Offline
Joined: 2007-01-31
Points: 0

JXTA will help you move data between your hubs for sure. Now there is no guarantee that this data will systematically move from one peer to another peer. It could go through several peers, but that is not a problem. I'll explain why.

Tunneling is nothing more than putting a cryptography coating on data being transfered between a company's LAN and someone connecting to that' company's LAN from the outside. If you think about it, this data does not go from on the company's server to the remote PC directly. It passes through several servers, including the internet provider's server. Yet this still remains safe, because of the cryptography layer.

JXTA does not provide a full cryptography layer, but it does provide authentication functionalities for access to peer groups and resources in general through X.509 certificates. There is nothing preventing you from encrypting your data on the JXTA layer to ensure confidentiality.

However, if you not interested in all other functionalities of JXTA and you only want cryptographic coating on your data, then using JXTA and implementing a cryptographic layer would be overkill. You could also explore Jini if you are ready to commit to Java only.

Hope this helps,

J.