Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » P2P without a Server?
P2P without a Server? [message #619037] Mon, 27 August 2007 12:18 Go to next message
Eclipse UserFriend
Originally posted by: judexiang.yahoo.com

Hi,

I am wondering if ECF enables us to connect Peer-to-Peer without any server. Things I tried always need a server (e.g. ECF Server).

Thanks.
Re: P2P without a Server? [message #619040 is a reply to message #619037] Wed, 29 August 2007 17:50 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 974
Registered: July 2009
Senior Member
Hi justinX,

justinX wrote:
> Hi,
>
> I am wondering if ECF enables us to connect Peer-to-Peer without any server. Things I tried always need a server (e.g. ECF Server).
>
> Thanks.

The ECF IContainer API does allow/support direct peer-to-peer groups.
That is, the basic model does allow this. That being said, there are no
complete provider implementations (at the moment) that are ready for
full deployment. There are several efforts underway, however:

1) JXTA-based provider. Worked on originally by Pierre Henry-Perret.
The bug associated with this provider is here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=135452

2) JGroups-based provider. I (Scott) am working on this now in my
'spare time'. JGroups is a java-based reliable multicast messaging
layer, done by Bela Ban and others: http://www.jgroups.org I've
created an enhancement request for this here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=201610

3) JMS-based providers. There are JMS implementations that support
peer-to-peer protocols. ECF currently has two JMS-based providers:

a) ActiveMQ/Websphere CE-based
b) Weblogic (BEA)-based
c) Net4j-based: https://bugs.eclipse.org/bugs/show_bug.cgi?id=187654

Although the first two are based upon JMS client-server topologies, it
should be straightforward to create other JMS-based providers that use
multicast JMS implementations (e.g. commercial or other protocols) as
the two listed above are very small and based mostly on a JMS-generic
bundle: org.eclipse.ecf.provider.jms. This bundle (o.e.e.provider.jms)
only depends upon the JMS API, and implements most of what is needed to
use any JMS provider via abstract super classes (e.g.
AbstractJMSClientChannel, AbstractJMSServerChannel). I think also that
ActiveMQ also can use peer-to-peer topologies/protocols as well, but I
haven't tested that.

The first two are available via anonymous CVS at the CVS server on
ecf1.osuosl.org. See the instructions at the bottom of the page on
http://ecf1.osuosl.org for CVS access instructions. There are the
following plugins:

ActiveMQ/Websphere CE

plugins/
org.eclipse.ecf.provider.jms

plugins/
org.eclipse.ecf.provider.jms.activemq
org.eclipse.ecf.proivder.jms.activemq.ui

plugins/
org.eclipse.ecf.provider.jms.weblogic
org.eclipse.ecf.provider.jms.weblogic.ui

test/
org.eclipse.ecf.tests.provider.jms.activemq
org.eclipse.ecf.tests.provider.jms.activemq

Thanks. Please let all know when you have more questions.


Scott
Re: P2P without a Server? [message #619045 is a reply to message #619040] Thu, 30 August 2007 14:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: judexiang.yahoo.com

Scott. Thanks.

One more question: currently all network communication are through a server? Or the server is just used for discovering members, and networking directly go from one member to others thereafter?
Re: P2P without a Server? [message #619047 is a reply to message #619045] Thu, 30 August 2007 17:31 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 974
Registered: July 2009
Senior Member
Hi JustinX,

justinX wrote:
> Scott. Thanks.
>
> One more question: currently all network communication are through a server? Or the server is just used for discovering members, and networking directly go from one member to others thereafter?

The answer to this is provider/implementation dependent. For
server-based providers (e.g. ECF generic, JMS-weblogic, JMS-websphere,
etc) all network communication is through server. For the peer-to-peer
topology providers (e.g. JXTA, JGroups/multicast, JMS/multicast) you are
exactly right that the server is used for authenticating and group
membership communication, but is not used for direct communication.

For some providers (e.g. XMPP), some kinds of communication (e.g. IM)
are via server and other kinds (e.g. Jingle-based voip calls) are
optionally peer-to-peer.

Scott
Re: P2P without a Server? [message #623501 is a reply to message #619047] Tue, 06 May 2008 19:07 Go to previous message
foo bar is currently offline foo barFriend
Messages: 55
Registered: July 2009
Member
Scott Lewis wrote:
> Hi JustinX,
>
> justinX wrote:
>> Scott. Thanks.
>> One more question: currently all network communication are through a
>> server? Or the server is just used for discovering members, and
>> networking directly go from one member to others thereafter?
>
> The answer to this is provider/implementation dependent. For
> server-based providers (e.g. ECF generic, JMS-weblogic, JMS-websphere,
> etc) all network communication is through server. For the peer-to-peer
> topology providers (e.g. JXTA, JGroups/multicast, JMS/multicast) you are
> exactly right that the server is used for authenticating and group
> membership communication, but is not used for direct communication.
>
> For some providers (e.g. XMPP), some kinds of communication (e.g. IM)
> are via server and other kinds (e.g. Jingle-based voip calls) are
> optionally peer-to-peer.
>
> Scott
>
Would it be possible to set up ECF for file caching / sharing among
peers in a local network?

The idea is to use P2P for discovering if any of the client peers have a
file and to download the file directly from a peer before trying an
Internet / server access of the file.

/Per.
Previous Topic:Source code for ECF version 1.0.0.v20070215
Next Topic:ECF 2.0.0 M7
Goto Forum:
  


Current Time: Sat Nov 29 08:02:36 GMT 2014

Powered by FUDForum. Page generated in 0.24659 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software