<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">CS</journal-id><journal-title-group><journal-title>Circuits and Systems</journal-title></journal-title-group><issn pub-type="epub">2153-1285</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/cs.2016.79183</article-id><article-id pub-id-type="publisher-id">CS-68081</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject><subject> Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Highly Available Hypercube Tokenized Sequential Matrix Partitioned Data Sharing in Large P2P Networks
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>C.</surname><given-names>G. Ravichandran</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>J.</surname><given-names>Lourdu Xavier</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Faculty of Computer Science and Engineering, R.V.S .College of Engineering, Dindigul, India</addr-line></aff><aff id="aff1"><addr-line>SCAD Institute of Technology, Palladam, India</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>jlourduxaviersjc@gmail.com(CGR)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>05</day><month>07</month><year>2016</year></pub-date><volume>07</volume><issue>09</issue><fpage>2109</fpage><lpage>2119</lpage><history><date date-type="received"><day>6</day>	<month>April</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>1</month>	<year>May</year>	</date><date date-type="accepted"><day>8</day>	<month>July</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Peer-to-peer (P2P) networking is a distributed architecture that partitions tasks or data between peer nodes. In this paper, an efficient Hypercube Sequential Matrix Partition (HS-MP) for efficient data sharing in P2P Networks using tokenizer method is proposed to resolve the problems of the larger P2P networks. The availability of data is first measured by the tokenizer using Dynamic Hypercube Organization. By applying Dynamic Hypercube Organization, that efficiently coordinates and assists the peers in P2P network ensuring data availability at many locations. Each data in peer is then assigned with valid ID by the tokenizer using Sequential Self-Organizing (SSO) ID generation model. This ensures data sharing with other nodes in large P2P network at minimum time interval which is obtained through proximity of data availability. To validate the framework HS-MP, the performance is evaluated using traffic traces collected from data sharing applications. Simulations conducting using Network simulator-2 show that the proposed framework outperforms the conventional streaming models. The performance of the proposed system is analyzed using energy consumption, average latency and average data availability rate with respect to the number of peer nodes, data size, amount of data shared and execution time. The proposed method reduces the energy consumption 43.35% to transpose traffic, 35.29% to bitrev traffic and 25% to bitcomp traffic patterns.
 
</p></abstract><kwd-group><kwd>Peer-to-Peer (P2P)</kwd><kwd> Video-on-Demand</kwd><kwd> Hypercube</kwd><kwd> Sequential Matrix Partition</kwd><kwd> Data Mapping</kwd><kwd> Data Availability</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In today’s highly interconnected work, data availability and data sharing play a significant role in P2P networks. In the context of network management and traffic engineering Traffic Matrices in Peer Network (TM-PN) [<xref ref-type="bibr" rid="scirp.68081-ref1">1</xref>] was designed for providing traffic optimization. Typically, providing tradeoff between peer populations was the objective of Chunk Scheduling in Peer Network (CS-PN) performed through mixed strategy. However, the two methods suffer from data sharing in peer network. Peer-to-Peer (P2P) systems are distributed systems without (or with a minimal) centralized control or hierarchical organization, where each node is equivalent in term of functionality. P2P refers to a class of systems and applications that employ distributed resources to perform a critical function such as resources localization in a decentralized manner. The main challenge in P2P computing is to design and implement a robust distributed system composed of distributed and heterogeneous peer nodes, located in unrelated administrative domains. In a typical P2P system, the participants can be “domestic” or “enterprise” terminals connected to the Internet. The applications of the P2P systems in current days are PPLive and UUSEE data streaming methodologies. In live telecasting of P2P systems, lacks of multimedia data such as videos and audios are shared by millions of users at a time in a common system using P2P application protocol. The P2P system is highly responsible for delivering the data in secured manner. High traffic affects the performance of the P2P system as a serious problem in large networks. In a peer-to-peer network as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, a group of computers are connected together so that users can share resources and information. There is no central location for authenticating users, storing files, or accessing resources. This means that users must remember which computers in the workgroup have the shared resource or information that they want to access. It also means that users must log on to each computer to access the shared resources on that computer. In most peer- to-peer networks, it is difficult for users to track where information is located because data is generally stored on multiple computers. This makes it difficult to back up critical business information, and it often results in small businesses not completing backups. Often, there are multiple versions of the same file on different computers in the workgroup.</p><p>The main contribution of this paper is to propose an efficient Hypercube Sequential Matrix Partition (HS-MP) for efficient data sharing in P2P Networks using tokenizer method which is further to resolve the problems of the larger P2P networks. The remainder of the paper is organized as follows. Section 2 provides an overview on the related work. Section 3 describes the design of Hypercube Tokenized Sequential Matrix Partitioned (HS-MP) Data Sharing technique. The performance evaluation and its discussion with conventional techniques are presented in Section 4. Section 5 depicts the conclusion.</p></sec><sec id="s2"><title>2. Literature Survey</title><p>Ozkasapa et al. [<xref ref-type="bibr" rid="scirp.68081-ref2">2</xref>] have proposed an energy cost model for P2P network with the objective of improving scalability through distributed greedy algorithm. However, accuracy remained unsolved. In this work, accuracy in terms of data sharing rate was performed using Matrix Partition technique. As an extension, a gossip-based protocol was designed by Emrah &#199;ema et al. [<xref ref-type="bibr" rid="scirp.68081-ref3">3</xref>] to addressed accuracy through aggregate function. The authors proposed and developed a fully distributed Protocol for Frequent Items Discovery (ProFID) where the result is</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> P2P network connection</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x7.png"/></fig><p>produced at every peer. ProFID uses gossip-based (epidemic) communication, a novel pair-wise averaging function and system size estimation together to discover frequent items in an unstructured P2P network.</p><p>Ozkasapa et al. [<xref ref-type="bibr" rid="scirp.68081-ref4">4</xref>] constructed a self-organization peer network for distributed systems. The authors derived exact expressions for infection probabilities through elaborated counting techniques on a digraph. Considering the first passage times of a Markov chain based on these probabilities, the expected message delay was experienced by each peer and its overall mean as a function of initial number of infectious peers. An analytical framework for self-organizing nodes in P2P network was introduced in this paper. Another method called fair- share buffering was introduced by Ozkasapa et al. [<xref ref-type="bibr" rid="scirp.68081-ref5">5</xref>] aiming at improving the reliability of dissemination. The authors proposed a novel approach; stepwise fair-share buffering that provides uniform load distribution and reduces the overall buffer usage where every peer has a partial view of the system. They reported and discussed the comparative performance results with existing buffering approaches as well as random buffering which serves as a benchmark.</p><p>Mohammad Shojafar et al. [<xref ref-type="bibr" rid="scirp.68081-ref6">6</xref>] proposed Improved Adaptive Probabilistic Search (IAPS) algorithm to improve the response rate through optimization. IAPS used ant-colony optimization and observed file types into consideration in order to search for file container nodes with a high probability of success. The authors performed extensive simulations to study the performance of IAPS, and compared it with the Random Walk and Adaptive Probabilistic Search algorithms. Gedik et al. [<xref ref-type="bibr" rid="scirp.68081-ref7">7</xref>] applied Data stream processing for data partitioning through control algorithm to measure the cost. However all the methods mentioned above lack data sharing which is addressed in this paper through a design of Time-based Matrix Partition that maps the peer location with ID for efficient data sharing. Richard Lin et al. [<xref ref-type="bibr" rid="scirp.68081-ref8">8</xref>] proposed Flexible data sharing algorithm for cloud- enabled extended peer system using Extended Bestpeer. With the objective of ensuring data availability and accessibility of data in bio-informatics, a Distributed Hash <xref ref-type="table" rid="table">Table </xref>with Round Trip Time (RTT) was introduced ensuring scalability.</p><p>The conventional methodologies for P2P network consumed more energy for transferring the packets between the peer nodes in the network and also the average packet latency was high due to the instability of the architecture and complex algorithm construction. In this work, we propose Hypercube Sequential Matrix Partition (HS-MP) for efficient data sharing in large P2P network based on tokenizer, which outperforms P2P streaming model. In particular, we make the following contributions in this paper:</p><p> To provide a modeling of Dynamic Hypercube Organization and give a formula to derive the link between the peer and data at various locations in large P2P network ensuring data availability.</p><p> To extend our framework to Sequential Self-Organizing (SSO) ID generation model and formalize data sharing based on data proximity aiming at reducing the time to obtain the data.</p><p> To develop Time-based Matrix Partition for mapping data with the ID based on location in a horizontal and vertical manner and can measured at different time intervals.</p><p>The conventional methods [<xref ref-type="bibr" rid="scirp.68081-ref2">2</xref>] - [<xref ref-type="bibr" rid="scirp.68081-ref8">8</xref>] for P2P networks consumed more energy consumption and latency which reduces the performance of the P2P networks. It did not support larger P2P system in efficient manner. Hence, Hypercube Tokenized Sequential Matrix Partitioned Data Sharing technique is proposed in this paper for large scale P2P Network.</p></sec><sec id="s3"><title>3. Proposed System</title><p>To improve the data sharing in large P2P networks, the design of Hypercube Tokenized Sequential Matrix Partitioned (HS-MP) Data Sharing technique is proposed and the flow is illustrated in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> shows the block diagram of HS-MP. In order to achieve efficient data sharing in P2P network, the architecture of HS-MP is divided into three steps. They are given as:</p><p> Construction of Dynamic Hypercube Organization,</p><p> Design of Sequential Self-Organizing ID generation model and</p><p> An efficient Time-based Matrix Partition technique.</p><p>The three-step framework enhances the execution performance of the system with the help of tokenizer. The tokenizer initially identifies the availability of data across the network. Once the data availability in peer network is identified, they are assigned with ID. Finally, the assigned data is mapped with peer location to ensure data sharing in large P2P network. The elaborate description about HS-MP framework is described in the forthcoming sections.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Block diagram of HS-MP</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x8.png"/></fig><sec id="s3_1"><title>3.1. Construction of Dynamic Hypercube Organization</title><p>The first step in the design of the proposed framework is the identification of data availability using Dynamic Hypercube Organization (DHO) by the tokenizer. The tokeziner (i.e., a peer node also a server) assists the peer nodes in P2P network for identifying the data availability using DHO.</p><p>In DHO, let us consider a network graph “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x9.png" xlink:type="simple"/></inline-formula>”, where “G” represents the graph with “V” vertices and “E” edges. In peer-to-peer network, “V” denotes the set of peer nodes represented by “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x10.png" xlink:type="simple"/></inline-formula>” and “E” denotes the links represented by “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x11.png" xlink:type="simple"/></inline-formula>” and is mathematically formulated as given below.</p><disp-formula id="scirp.68081-formula5"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x12.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68081-formula6"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x13.png"  xlink:type="simple"/></disp-formula><p>The tokenizer in the proposed framework is a server that efficiently coordinates and assists the peers in P2P network. It also maintains the list of peers that are currently in the network. The statistics regarding the nodes in the peers with their types of data is also maintained and is formulated as given below.</p><disp-formula id="scirp.68081-formula7"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x14.png"  xlink:type="simple"/></disp-formula><p>From Equation (3), node “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x15.png" xlink:type="simple"/></inline-formula>” has the data “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x16.png" xlink:type="simple"/></inline-formula>”. In the proposed framework, the set of nodes/edges are arranged in dynamic structure with the objective of entering or leaving of the peer node in the P2P network at any time. In the proposed framework, all peers in P2P network are arranged using a Dynamic Hypercube Organization, where each peer comprises of many nodes, ensuring data availability at many locations. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the construction of DHO where each node consists of many peers.</p><p>As shown in the <xref ref-type="fig" rid="fig3">Figure 3</xref>, five types of data “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x17.png" xlink:type="simple"/></inline-formula> “are available in various peer nodes “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x18.png" xlink:type="simple"/></inline-formula>”, in P2P network at an instant of time. In each peer, there exists either two or three nodes namely, “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x19.png" xlink:type="simple"/></inline-formula>” and totally twenty three nodes exist with each node possessing different types of data. From <xref ref-type="fig" rid="fig3">Figure 3</xref>, the peer node “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x20.png" xlink:type="simple"/></inline-formula>” has the data “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x21.png" xlink:type="simple"/></inline-formula>” and therefore, the following links are inferred from <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><disp-formula id="scirp.68081-formula8"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x22.png"  xlink:type="simple"/></disp-formula><p>In similar manner, every peer node has different data availability at any instant of time. With the construction of DHO, though data redundancy is seen (i.e., <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x23.png" xlink:type="simple"/></inline-formula>in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x24.png" xlink:type="simple"/></inline-formula>) the availability of data is made through several peer nodes as the peers may leave the P2P network at any time. In order to ensure data availability, the proposed framework replicates the data over multiple peers in P2P network with the objective increasing the data availability rate even when a peer node fails.</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Construction of dynamic hypercube organization</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x25.png"/></fig></sec><sec id="s3_2"><title>3.2. Design of Sequential Self-Organizing ID Generation Model</title><p>The second step in the design of the proposed framework is the construction of Sequential Self-Organizing ID generation. Once the availability of data is identified by the tokenizer, the data has to be assigned with a valid ID. The proposed framework uses a Sequential Self-Organizing (SSO) ID generation model for effective assignment of ID to the corresponding data. When a data has to be shared within the peer network, using SSO, the data is assigned in an efficient manner in such a way that the data ID closest to the ID of the requester is considered.</p><p>Using SSO in the proposed framework, proximity of data availability is also considered into account aiming at minimizing the time to obtain the data. The SSO ID generation model uses a large ID space “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x26.png" xlink:type="simple"/></inline-formula>”. Here, the tokenizer assigns Sequential IDs to the data whenever a peer joins the network where the IDs are administered over the entire large ID space and is mathematically provided as below:</p><disp-formula id="scirp.68081-formula9"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x27.png"  xlink:type="simple"/></disp-formula><p>From Equation (5) the entire ID space “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x28.png" xlink:type="simple"/></inline-formula>” holds up to an average of about “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x29.png" xlink:type="simple"/></inline-formula>” nodes. The Sequential Self-Organizing ID generation is then formulated as given below:</p><disp-formula id="scirp.68081-formula10"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x30.png"  xlink:type="simple"/></disp-formula><p>From Equation (6), “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x31.png" xlink:type="simple"/></inline-formula> “ is assigned with the ID “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x32.png" xlink:type="simple"/></inline-formula>”, “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x33.png" xlink:type="simple"/></inline-formula>” is assigned with the ID “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x34.png" xlink:type="simple"/></inline-formula>” and so on in a Sequential manner according to the data availability and the time of data entering in to the peer network. The arrival of data in the proposed framework can be of any order. But using SSO ID generation model, the ID is assigned in a sequential manner. The resultant ID generation in the proposed framework is stored in the routing table as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>The routing table in <xref ref-type="fig" rid="fig4">Figure 4</xref> includes the information regarding the peer, the data available in the peer network and their corresponding ID which is stored in sequential manner using Self-Organizing manner.</p><p>From the routing table stated in <xref ref-type="fig" rid="fig4">Figure 4</xref>, the data available “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula>” in peer “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x36.png" xlink:type="simple"/></inline-formula>” is assigned with ID as “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x37.png" xlink:type="simple"/></inline-formula>”. Next, the data available in, “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x38.png" xlink:type="simple"/></inline-formula>” in peer “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x39.png" xlink:type="simple"/></inline-formula>” is assigned with ID as “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x35.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x40.png" xlink:type="simple"/></inline-formula>”. In a similar manner, every data in the peer network is assigned with the Sequential ID in an efficient manner, minimizing the execution time for measuring data availability. Finally, the last step in the design of the proposed framework is the mapping of data using Time-based Matrix Partition technique. This is called as Time-based because the Matrix Partition (i.e., the mapping of location with ID) changes with respect to time and does not remain the same at all intervals of time. By applying Time-based Matrix Partition technique, the data assigned with ID is mapped with peer location for efficient data sharing in peer networks.</p><p>The time-based matrix partition technique in the proposed framework uses a hash method which partition and assigns the ID with a location in a horizontal and vertical manner. The time-based matrix partition technique applied dividing element that partitions the data from the peer nodes and assigns ID to each data.</p><p>The Time-based Matrix Partition technique uses two dividing elements, one for horizontal partition and the</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Routing table for peers in P2P network</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x41.png"/></fig><p>second for vertical partition. The horizontal partition in the proposed framework represents the peer with data available (i.e.,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x42.png" xlink:type="simple"/></inline-formula>) whereas the vertical partition represents the ID of the corresponding data (i.e., “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x43.png" xlink:type="simple"/></inline-formula>” “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x44.png" xlink:type="simple"/></inline-formula>”). As a result, the mathematical formulation for data mapping with the objective of efficient data sharing in peer network is given as below,</p><disp-formula id="scirp.68081-formula11"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x45.png"  xlink:type="simple"/></disp-formula><p>From Equation (7), “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x46.png" xlink:type="simple"/></inline-formula>” represents the row and “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x47.png" xlink:type="simple"/></inline-formula>” column representation. <xref ref-type="fig" rid="fig5">Figure 5</xref> shows the Time- based Matrix Partition technique that maps the location for two peers “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x48.png" xlink:type="simple"/></inline-formula>” with IDs “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x46.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x49.png" xlink:type="simple"/></inline-formula>” respectively.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the mapping of data ID with the peer location for efficient data sharing in peer network. <xref ref-type="fig" rid="fig6">Figure 6</xref> shows the HS-MP algorithm for efficient data sharing in large P2P networks. The entire algorithm is divided into three parts. The first part concentrates on measuring the overall data availability in P2P network for each vertices and edges. The peer nodes are represented by vertices whereas the link is denotes by edges with the objective of identifying the available data in the entire network.</p><p>The second part focuses on the measuring of ID for each data according to the nodes in peer network and assigning the ID”s correspondingly. Finally, data mapping with peer location is measured using the routing table that efficiently maintains the location information for each data in the peer using Time-based Matrix Partition, aiming at efficient data sharing. The flowchart of the proposed HS-MP algorithm is illustrated in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p></sec></sec><sec id="s4"><title>4. Results and Discussion</title><sec id="s4_1"><title>4.1. Experimental Setup</title><p>The proposed methodology HS-MP for data sharing in P2P Networks using tokenizer technique is simulated using Network Simulator 2 tool. The initial network setup parameters are illustrated in <xref ref-type="table" rid="table">Table </xref>1. In order to investigate the performance of the proposed HS-MP, the experiments are conducted in the real-world environment. The number of nodes and channels are 1000 and 100, respectively. Initial data rate is set to 1Mbps and two ray ground propagation models are used to deliver the packets from one node to another node in the network. Destination Sequence Based Distance Vector (DSDV) is used as the default routing protocol in this paper.</p><p>The peer nodes in network is moving and the velocity of the moving peer node is determined using the following equation,</p><disp-formula id="scirp.68081-formula12"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x50.png"  xlink:type="simple"/></disp-formula><p>where, W denotes bandwidth of the peer node, V<sub>t</sub><sub>−1 </sub>is the previous velocity of the peer node, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x51.png" xlink:type="simple"/></inline-formula>is previous location of the peer node and P<sub>t</sub> is the current location of the peer node.</p><p>The proposed Peer-to-peer (P2P) distributed architecture is compared with the conventional techniques as Peer-to-Peer Live Streaming System [<xref ref-type="bibr" rid="scirp.68081-ref7">7</xref>] , Traffic Matrices in Peer Network (TM-PN) and Chunk Scheduling in Peer Network (CS-PN) using the following performance evaluation parameters.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Design of data ID mapping with peer location</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x52.png"/></fig><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Pseudo code of the proposed HS-MP algorithm</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x53.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table">Table </xref>1</label><caption><title> Initial network parameters</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameter</th><th align="center" valign="middle" >Assigned value</th></tr></thead><tr><td align="center" valign="middle" >Number of nodes</td><td align="center" valign="middle" >1000</td></tr><tr><td align="center" valign="middle" >Number of channels</td><td align="center" valign="middle" >100</td></tr><tr><td align="center" valign="middle" >Sensing region</td><td align="center" valign="middle" >1000 * 1000 m</td></tr><tr><td align="center" valign="middle" >Initial node energy</td><td align="center" valign="middle" >1000 J</td></tr><tr><td align="center" valign="middle" >Packet size</td><td align="center" valign="middle" >512 B</td></tr><tr><td align="center" valign="middle" >Transmission power</td><td align="center" valign="middle" >0.02 Watts</td></tr><tr><td align="center" valign="middle" >Received power</td><td align="center" valign="middle" >0.01 Watts</td></tr><tr><td align="center" valign="middle" >Routing protocol</td><td align="center" valign="middle" >DSDV</td></tr><tr><td align="center" valign="middle" >Data rate</td><td align="center" valign="middle" >1 Mbps</td></tr><tr><td align="center" valign="middle" >radio-propagation model</td><td align="center" valign="middle" >Two Ray Ground</td></tr><tr><td align="center" valign="middle" >Mobility speed</td><td align="center" valign="middle" >3 m/s</td></tr><tr><td align="center" valign="middle" >Pause time</td><td align="center" valign="middle" >10 s</td></tr></tbody></table></table-wrap></sec><sec id="s4_2"><title>4.2. Energy Consumption</title><p>The transmission of packet between any two peer nodes in the network, consumes certain power. The determination of energy and power consumption is important to analyze the performance of the proposed HS-MP methodology. The energy consumption for transmitting a packet can be illustrated as,</p><disp-formula id="scirp.68081-formula13"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x54.png"  xlink:type="simple"/></disp-formula><p>where, k refers to the number of bits transmitted;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x55.png" xlink:type="simple"/></inline-formula>is a variable factor ranging from 1 to 5 between two peer nodes based on their channel condition;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x56.png" xlink:type="simple"/></inline-formula>is the amplification coefficient relying on minimum bit error rate (BER);</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x57.png" xlink:type="simple"/></inline-formula>is the distance between any two peer nodes;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x58.png" xlink:type="simple"/></inline-formula>refers to the energy dissipation, expressed as</p><disp-formula id="scirp.68081-formula14"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x59.png"  xlink:type="simple"/></disp-formula><p>where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x60.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x61.png" xlink:type="simple"/></inline-formula> denotes the voltage and current consumption of the peer node, respectively; and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x61.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x62.png" xlink:type="simple"/></inline-formula> is the baud rate or data transmission rate.</p><p>The consumed energy is directly proportional to the number of bits transmitted and distance between two consecutive peer nodes.</p><p>The energy required to receive a packet can be expressed as,</p><disp-formula id="scirp.68081-formula15"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x63.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68081-formula16"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x64.png"  xlink:type="simple"/></disp-formula><p>The power consumption for transmitting a packet can be expressed as,</p><disp-formula id="scirp.68081-formula17"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x65.png"  xlink:type="simple"/></disp-formula><p>Similarly, the power consumption required for packet bit reception can be represented by,</p><disp-formula id="scirp.68081-formula18"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x66.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68081-formula19"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x67.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.68081-formula20"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x68.png"  xlink:type="simple"/></disp-formula><p>where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x69.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x70.png" xlink:type="simple"/></inline-formula>.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x71.png" xlink:type="simple"/></inline-formula>and d represents the estimated distance and actual distance between the two peer nodes, respectively.</p><p>The parameter makes an impact on the energy transmission between the two peer nodes, and the part of the transmission energy will be lost if<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x72.png" xlink:type="simple"/></inline-formula>.</p><p>For analysis the performance of the proposed HS-MP for P2P Networks in synthetic traffic, the experiments are done over the transpose traffic, bitrev traffic, bitcomp traffic and shuffle traffic. In transpose traffic mode, each peer node sends messages only to a destination with the upper and lower halves of its own address transposed. Each peer node sends only to whose address is bit reversal of the sender’s address in bitrev traffic mode. Each peer node sends messages only to a with one’s complement of its own address under bitcomp traffic mode and each peer node sends messages to other peer nodes with an equal probability in shuffle traffic mode. <xref ref-type="fig" rid="fig7">Figure 7</xref> shows the Normalized energy consumption of real time traffic.</p><p>The proposed method reduces the energy consumption 43.35% to transpose traffic, 35.29% to bitrev traffic and 25% to bitcomp traffic patterns for CS-PN method. The proposed method also reduces the energy consumption 33.75% to transpose traffic, 24.65% to bitrev traffic and 12.3% to bitcomp traffic patterns for TM-PN method.</p><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Performance analysis of normalized energy</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x73.png"/></fig></sec><sec id="s4_3"><title>4.3. Data Availability (DA)</title><p>It is used to ensure the proposed framework with which the data is available at a required level of performance. The data availability rate is the product of number of peer nodes in large P2P network and the overall data size. The mathematical formulation for data availability rate is given as below:</p><disp-formula id="scirp.68081-formula21"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x74.png"  xlink:type="simple"/></disp-formula><p>where, “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x75.png" xlink:type="simple"/></inline-formula>” is the data availability rate with size of data and “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x76.png" xlink:type="simple"/></inline-formula>” is the different number of peer nodes. It is expressed in terms of Giga Bytes (GB). The performance of the proposed system is efficient if the data availability rate is high.</p><p>The average data availability rates are 714 GB for HS-MP method, 705 GB for TM-PN method and 581 GB for CS-PN method. The proposed method increases the data availability rate to 1.26% for TM-PN method and increases the data availability rate to 18.62% for CS-PN method. <xref ref-type="fig" rid="fig8">Figure 8</xref> shows the performance analysis of data availability.</p></sec><sec id="s4_4"><title>4.4. Average Packet Latency</title><p>The time taken to execute or measures the data availability for the whole P2P network is called as Average packet latency. It is measured in terms of milliseconds. The performance of the proposed system is efficient if the average packet latency is high.</p><disp-formula id="scirp.68081-formula22"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x77.png"  xlink:type="simple"/></disp-formula><p>where, i = 1 to n; n represents the number of peer nodes in P2P network.</p><p>The execution time for peer node “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x78.png" xlink:type="simple"/></inline-formula>” using the three methods HS-MP, TM-PN and CS-PN are measured and illustrated in <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p><p>The proposed method consumes Power consumption of 0.51 mW, 0.55 mW and 0.57 mW for transpose traffic, bitrev traffic and bitcomp traffic, respectively. The average packet latency for transpose traffic, bitrev traffic and bitcomp traffic are 16.5 ms, 19.9 ms and 21.5 ms, respectively.</p></sec><sec id="s4_5"><title>4.5. Precision</title><p>The data sharing rate is measured in terms of precision. It is defined as the ratio of relevant data retrieved to the irrelevant data retrieved.</p><disp-formula id="scirp.68081-formula23"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-7600725x79.png"  xlink:type="simple"/></disp-formula><p>where, “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x80.png" xlink:type="simple"/></inline-formula>” is data relevancy and “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x81.png" xlink:type="simple"/></inline-formula>” is data irrelevancy, the measure of precision for data sharing is obtaining using “<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x80.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x81.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7600725x82.png" xlink:type="simple"/></inline-formula>”. The data sharing between peer nodes is high if precision is high. The value of precision for the proposed system and conventional systems are given in <xref ref-type="fig" rid="fig1">Figure 1</xref>0.</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Performance analysis of data availability</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x83.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Performance analysis of average packet latency</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x84.png"/></fig><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Performance analysis of precision</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-7600725x85.png"/></fig></sec></sec><sec id="s5"><title>5. Conclusion</title><p>In this paper, the problem of efficient data sharing in large P2P networks by mapping peer location with ID is solved effectively by proposed method. Three Figures of merit have been considered for system design, namely, the data availability rate, time for measuring data availability and data sharing rate for large P2P networks. Performances results reveal that the proposed HS-MP framework provides higher level of precision and data sharing rate and also increase the robustness by consuming less processing time on obtaining the data. Compared to the existing P2P data streaming methods, the proposed Hypercube Sequential Matrix Partition (HS-MP) framework is comparatively superior to the state-of-art works. The proposed method consumes energy consumption of 0.51 mW, 0.55 mW and 0.57 mW for transpose traffic, bitrev traffic and bitcomp traffic, respectively. The average packet latency for transpose traffic, bitrev traffic and bitcomp traffic are 16.5 ms, 19.9 ms and 21.5 ms, respectively. In future, this work can be extended to increase the performance of the live streaming systems.</p></sec><sec id="s6"><title>Acknowledgements</title><p>The authors would like to thank their friends and colleagues for their constant help and support throughout the study and to obtain the results.</p></sec><sec id="s7"><title>Cite this paper</title><p>C. G. Ravichandran,J. Lourdu Xavier, (2016) Highly Available Hypercube Tokenized Sequential Matrix Partitioned Data Sharing in Large P2P Networks. Circuits and Systems,07,2109-2119. doi: 10.4236/cs.2016.79183</p></sec><sec id="s8"><title>NOTES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.68081-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Xu, K., Shen, M., Cui, Y., Ye, M.J. and Zhong, Y.F. (2014) A Model Approach to the Estimation of Peer-to-Peer Traffic Matrices. IEEE Transactions on Parallel and Distributed Systems, 25, 1101-1111.  
http://dx.doi.org/10.1109/TPDS.2013.179</mixed-citation></ref><ref id="scirp.68081-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Ozkasapa, O., Caglar, M., Ule Yaz, E. and Kücükcifci, S. (2010) An Analytical Framework for Self-Organizing Peer-to-Peer Anti-Entropy Algorithms. Performance Evaluation, 67, 141-159.  
http://dx.doi.org/10.1016/j.peva.2009.09.009</mixed-citation></ref><ref id="scirp.68081-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Cema, E. and Ozkasapb, O. (2012) ProFID: Practical Frequent Items Discovery in Peer-to-Peer Networks. Future Generation Computer Systems, 6, 1544–1560.</mixed-citation></ref><ref id="scirp.68081-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Ozkasap, O., Caglar, M., Cema, E., Ahi, E. and Iskender, E. (2010b) Stepwise Fair-Share Buffering for Gossip-Based Peer-to-Peer Data Dissemination. Computer Networks, 53, 2259-2274. http://dx.doi.org/10.1016/j.comnet.2009.03.021</mixed-citation></ref><ref id="scirp.68081-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ozkasap, O., Cem, E, Cebeci, S.E. and Koc, T. (2013) Flat and Hierarchical Epidemics in P2P Systems: Energy Cost Models and Analysis. Future Generation Computer Systems, 36, 257-266.  
http://dx.doi.org/10.1016/j.future.2013.09.009</mixed-citation></ref><ref id="scirp.68081-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Shojafar, M., Abawajy, J.H., Delkhah, Z., Ahmadi, A., Pooranian, Z. and Abraham, A. (2013) An Efficient and Distributed File Search in Unstructured Peer-to-Peer Networks. Peer to Peer Network Application, 8, 120-136.  
http://dx.doi.org/10.1007/s12083-013-0236-0</mixed-citation></ref><ref id="scirp.68081-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Gedik, B., Schneider, S., Hirzel, M. and Wu, K.L. (2014) Elastic Scaling for Data Stream Processing. IEEE Transactions on Parallel and Distributed Systems, 25, 1-10. http://dx.doi.org/10.1109/TPDS.2013.295</mixed-citation></ref><ref id="scirp.68081-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Richard Lin, C.H., Wen, C.H., Lin, Y.C., Tung, K.Y., Lin, R.W. and Lin, C.Y. (2013) A P2P Framework for Developing Bioinformatics Applications in Dynamic Cloud Environments. International Journal of Genomics, 2013, 1-9.  
http://dx.doi.org/10.1155/2013/361327</mixed-citation></ref></ref-list></back></article>