Extension and evaluation of JXTA protocols for supporting reliable P2P distributed computing

Fatos Xhafa, Leonard Barolli, Raul Castro Fernandez, Τhanasis Daradoumis, Santi CaballéInternational Journal of Web Information Systems 2008

TL;DR

This paper tackles the challenge of making JXTA, a P2P computing framework, more reliable and efficient. The authors extend and re-implement key JXTA protocols, particularly focusing on presence management and communication mechanisms, to improve distributed application performance. Their work demonstrates practical improvements in reliability and efficiency through real-world testing on the PlanetLab platform.

What Problem Does This Paper Address?

Distributed applications rely heavily on robust communication between their constituent nodes for both reliability and efficiency. While general distributed systems have well-understood reliability mechanisms, emergent computational systems like those built on Peer-to-Peer (P2P) architectures present unique challenges. JXTA is a popular P2P framework, but the authors identify limitations in its core protocols, specifically concerning how nodes manage their presence within a network and how they discover and communicate with each other. These limitations can hinder the development of truly reliable and performant distributed applications. The paper aims to address these shortcomings by enhancing JXTA's existing protocols.

Methods

The core of this work involves a critical analysis of existing JXTA protocols, identifying specific areas for improvement. The authors then propose and implement extensions and re-implementations of these protocols. Key areas of focus include:

  • Presence Management: JXTA's original presence notification mechanism is described as requiring manual management by applications. The authors introduce a mechanism for periodic, automatic publishing of peer advertisements, ensuring that peers are aware of each other's presence more reliably.
  • Service Discovery: To address the need for peers to discover services, the authors implement a new module called DiscoveryOverlay. This module periodically queries peers within a group to synchronize local caches of advertisements, improving the discovery of available services.
  • Connection Management: The paper highlights issues with JXTA's default rendezvous connection mechanism, which can be inefficient. They propose using a pre-specified rendezvous list, allowing for more controlled and reliable connections to network groups.
  • Communication Mechanism (Pipes): JXTA uses pipes for inter-peer communication, requiring matching pipe advertisements. The authors propose a more efficient approach where each peer defines a unique pipe advertisement for incoming messages, simplifying the connection process and improving reliability, especially in geographically distributed networks. They also introduce a progressive window timeout for message retransmissions to handle network latency and unreliability.

Datasets

Not discussed in the paper. The evaluation relies on experiments conducted on the PlanetLab platform.

Key Insights and Ideas

  • Automatic Presence is Crucial: The paper underscores that relying on applications to manually manage peer presence in JXTA is a significant bottleneck. Automating this process through periodic advertisement publishing is essential for a dynamic and reliable P2P network.
  • Proactive Discovery for Efficiency: Instead of waiting for requests, the DiscoveryOverlay module proactively synchronizes peer information. This "pull" mechanism for service discovery is vital for ensuring peers have up-to-date information, leading to better decision-making and resource utilization.
  • Rendezvous Lists for Control: The default JXTA rendezvous mechanism can be a single point of failure or inefficiency. Using a pre-defined list of rendezvous peers provides better control and increases the probability of successful connection to network groups.
  • Simplified Pipe Advertisements for Robustness: The proposed approach of a unique pipe advertisement per peer simplifies communication setup. This, combined with a progressive timeout for message retransmissions, significantly improves the reliability of message delivery in challenging network conditions.

Key Results

The paper reports on experiments conducted on the PlanetLab platform to validate their re-implemented JXTA protocols. While specific quantitative metrics like percentage improvements are not explicitly detailed in a summary table, the authors state:

  • The proposed approach has been validated in practice.
  • The experimental results showed improvements in both efficiency and reliability of JXTA protocols and services.
  • In communication tests, using a progressive window timeout (up to 40 seconds) resulted in almost all messages being sent, with less than 2% of undelivered messages reported as errors, compared to 32% with a fixed timeout.
  • The rendezvous connection mechanism using a rendezvous list considerably increased the possibility of a peer establishing a connection.

Limitations and Future Work

Limitations:

  • The paper acknowledges that the original JXTA protocols have limitations in service publishing/reception, network connection, and message sending/reception.
  • The proposed solution for pipe advertisements requires peers to agree on which advertisement to use, which is handled by associating advertisements with PeerIDs.
  • The experiments were conducted on the PlanetLab platform, which, while representative of distributed environments, might not fully capture all real-world network dynamics.

Future Work:

  • The authors plan to use the re-implemented protocols in large-scale JXTA-based applications for data-intensive computing.
  • They intend to measure the performance of the JXTA protocols in highly dynamic environments with a large number of unreliable peer nodes.

Summary updated

Abstract

Purpose In any distributed application, the communication between the distributed processes/nodes of the distributed systems is essential for both reliability and efficiency matters. The purpose of this paper is to address this issue for distributed applications based on JXTA protocols aiming at extending and evaluating the protocols of the JXTA library for reliable P2P computing. Design/methodology/approach After a careful examination of the current version of JXTA protocols, the need was observed for improving the original JXTA protocols such as pipe services to ensure reliable communication between nodes of the grid platform and the discovery and presence service to increase the performance of the applications. Using a mixed P2P network based on broker peers and client peers architecture, which served as a basis to extend the JXTA protocols, was the basis of the approach. Findings The original JXTA protocols are extented/re‐implemented to support the development of reliable P2P distributed applications. Practical implications The proposed approach has been validated in practice by deploying a P2P network using nodes of PlanetLab platform and testing each of the re‐implemented protocols using this real P2P network. The extended JXTA protocols can be used to develop reliable P2P distributed applications. Originality/value Is of value by showing how to improve both efficiency reliability of JXTA protocols and services.
BibTeX
@article{xhafa2008extension,
  author = {Fatos Xhafa and Leonard Barolli and Raul Castro Fernandez and Τhanasis Daradoumis and Santi Caballé},
  title = {{Extension and evaluation of JXTA protocols for supporting reliable P2P distributed computing}},
  journal = {International Journal of Web Information Systems},
  year = {2008},
  doi = {10.1108/17440080810865657},
}

Loading related content...

Figure