<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>P Systems, pp.</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Derivation of a Queuing Network Model for Structured P2P Architectures</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Zouweyna MORDJI</string-name>
          <email>mordji.zouweyna@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mourad AMAD</string-name>
          <email>amad.mourad@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Djamil A¨ISSANI</string-name>
          <email>Djamil.AISSANI@gmail.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LaMOS research unit, Faculty of Exact Sciences, University of Be ́ jaia</institution>
          ,
          <addr-line>06000 Be ́ jaia</addr-line>
          ,
          <country country="DZ">Algeria</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LaMOS research unit, Faculty of Exact Sciences, University of Be ́ jaia</institution>
          ,
          <addr-line>06000 Be ́ jaia</addr-line>
          ,
          <country country="DZ">Algeria</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>LaMOS research unit, Faculty of Exact Sciences, University of Be ́ jaia</institution>
          ,
          <addr-line>06000 Be ́ jaia</addr-line>
          ,
          <country country="DZ">Algeria</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2004</year>
      </pub-date>
      <volume>40</volume>
      <issue>47</issue>
      <fpage>76</fpage>
      <lpage>84</lpage>
      <abstract>
        <p>Peer to peer (P2P) networks have using commonly used for tasks such as file sharing or file distribution, and for building distributed applications in large scale network. Their performance measures are generally based on simulation methods software such as NS-2, P2PSim, OpenNet, etc. Hence, the absence of a validation of the simulation model is a critical issue. In this paper, we propose a new analytical model derived from (8), to evaluate the performance of HPM protocol (hierarchical Peer-to-Peer model). Performance is done principally in terms of total download time of requested resources in the P2P network, and then we analyze the impact of various parameters associated with the heterogeneity of nodes.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
      <p>
        The P2P paradigm has emerged as a solution to
some limitations of the classical methods of resource
sharing based on the paradigm Client / Server. It is
a distributed system without or with minimal central
authority and with varying computational power at
each machine. Its applications are varied, we cite as
an example: the multicast application, parallel
computing, file sharing, IP telephony, instant messaging,
search engines, etc. This type of network is generally
characterized by a good scalability (scaling) and
a very high dynamic (churn rate), for more details
about this topic see (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
      </p>
      <p>
        P2P networks have seen an unprecedented
development that was accompanied by a significant increase
in their complexity. So, we focus in this paper on
analytical models, because of the interest in their
high speed resolution. Indeed, when considering
making a change to the system, decisions will lead
to very high cost, and it is very useful to have
analytical solution with their much reduced computing
time. Analytical and mathematical frameworks let us
to model and study the performance of the P2P
networks, and several models have been proposed
in order to investigate the dynamics of this kind
of systems, many researches are focused on the
Markov chain based modeling , (
        <xref ref-type="bibr" rid="ref6">7</xref>
        ), (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ),(
        <xref ref-type="bibr" rid="ref4">4</xref>
        ), (
        <xref ref-type="bibr" rid="ref9">10</xref>
        ), and
recently the researchers exploit the queuing model
for performance evaluation of the of P2P networks
(
        <xref ref-type="bibr" rid="ref7">8</xref>
        ), (
        <xref ref-type="bibr" rid="ref8">9</xref>
        ), (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ). In this paper, we follow mostly the
approaches put forward in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ).
      </p>
      <p>
        The goal of this paper is to propose an analytical
model for evaluating the performance of the HPM
(hierarchical Peer-to-Peer model) (
        <xref ref-type="bibr" rid="ref12">13</xref>
        ). Our proposed
model is different from those explored in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ), in
their work, the structured P2P systems have not
been addressed. Our work is then to complete the
analytical model proposed in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ).
      </p>
      <p>We interest about structured P2P architecture,
because it is more efficient in terms of lookup and
download resources, and more complicated to
implement. For this, the analytical model is slightly
more interesting to take into account the system
characteristics and evaluate the performance of the
corresponding architecture in a very short time, and
give a good insight into the operation of the systems
under study at low cost, compared to other
performance evaluation techniques of P2P networks like
measurement and simulation approaches. Analytical
models are least expensive and give the modeler
deep insight into the main characteristics of the
system.</p>
      <p>
        In this work, we want, exactly, to answer the
question: using the HPM, how long does it take a
requested resource to lookup and download? To
answer this question, we use a queuing model with
structured P2P system, we consider two types of
nodes, the relay and the end peer nodes as
described in HPM, we use also a single class open
queuing network to evaluates the delays in a relay
nodes, we model each relay node as G/G/1 queue
(
        <xref ref-type="bibr" rid="ref12">13</xref>
        ) and the end peers as M/G/1/K processor
sharing queues.
      </p>
      <p>The rest of this paper is organized as follows: next
section gives a background and related work on
Peer to Peer networks and existing performances
evaluation methods, we describe and analysis the
proposed models existing in the literature. Section
3 describes our proposed model. In section 4, we
validate our model; finally, we conclude and give
some perspectives.</p>
    </sec>
    <sec id="sec-2">
      <title>2. BACKGROUND AND RELATED WORK</title>
      <p>In this section we give a brief description of
P2P network and different classes of associated
mathematical models.</p>
    </sec>
    <sec id="sec-3">
      <title>2.1. Background</title>
      <p>P2P Systems offer an important opportunity for a
large number (hundreds of thousands) of nodes
to cooperate in order to share resources via a
widely distributed network. Nodes of the network,
are an equal participant, and there are no nodes
with special facilitating or administrative roles. Since
the service is distributed to all participating nodes,
the system is expected to scale well even when
the network is very large. Avoiding bottlenecks and
likely with good fault tolerance, the P2P paradigm
is suitable for large-scale distributed environments
where nodes (called also peers) can share their
resources (eg. computing power, storage capacity,
bandwidth) as an autonomous and decentralized.
Due to its advantages, several areas have already
taken advantage of this paradigm (eg. file sharing,
sharing computing capacity and exchange instant
messages). A peer can play the role of client
when it consuming resources, and the role of
server when it offered resources, router when it
spreads requests received from other nodes in the
system, and host data source when sharing their
data with other peers. There are many different
P2P systems, each one with various advantages
and disadvantages. They differ both in their object
query mechanism and in their logical topology, we
therefore distinguish three families of P2P systems:
centralized systems,decentralized (structured and
unstructured) systems, and hybrid systems.</p>
    </sec>
    <sec id="sec-4">
      <title>Centralized Systems (CSy): consists of a single</title>
      <p>server that is responsible to relate directly all
connected peers and to identify the files offered by
different clients. The advantage of this technique lies
in the centralized indexing all directories and titles
of shared files by the subscribers in the network.
Clients send queries to the server, and it returns a
list of peers currently connected to the service and
who’s shared the desired files. The file transfer will
be done between final users and not by the server.
Under these conditions and at any time, files are
found stored on the central server. Such centralized
approach does not scale well and have a single
point of failure, (e.g., Napster).</p>
      <p>Decentralized Unstructured Systems (DUSy): it
is called also the pure P2P systems in which all
nodes play equivalent roles, there are no servers
or nodes privileged, each node has high degree
of autonomy. Nodes are organized arbitrarily using
flooding (broadcast or random walks) for the content
discovery. To find a resource, a request will be sent
from a peer to another until it reaches the client that
has the desired object. To avoid flooding the network
for too long, the system associates each request a
timer TTL ”Time To Live”, the value assigned to the
TTL is usually 7 (as in Http). When it reaches zero,
the query is not returned. The major disadvantage
of this mechanism comes from the expiration of TTL
before the course of the entire network, which can
lead to failure of research although the desired file
is available on the P2P network, and usually, these
networks do not scale well, because of the high
amount of signaling traffic. On the other hand, they
present a very high level of anonymity. The most
known examples of these networks are Gnutella and
FreeNet .</p>
    </sec>
    <sec id="sec-5">
      <title>Decentralized Structured Systems (DSSy): the</title>
      <p>
        emergence of structured P2P systems is due to the
problem of large number of messages exchanged
in unstructured P2P systems. Nodes should be
structured in a precise geometrical form, and in
general, they consist in some variant of a Distributed
Hash Table (DHT) technology. These networks are
constructed in a structured overlay where each node
maintains a specific set of contents (or a set of
content location indexes), this information is often
used to guide the routing of the requests / messages
in the system. Therefore, the content searches are
deterministic and efficient. As examples of their
systems, we can cote: Chord, HPM (
        <xref ref-type="bibr" rid="ref10">11</xref>
        ).
      </p>
      <p>Hybrid Systems (HSy): hybrid P2P network is
more complex to implement, as it combines both
centralized and distributed network. A network of this
type is based on a set of servers managing a group
of users according to the centralized architecture.
Each server is then connected to other servers
according to the distributed architecture.</p>
      <p>In this way, if a user searched a file that is not
indexed by the server to which it is attached, it
then forwards the request to another server. This
architecture can benefit from better bandwidth while
reducing the query traffic.</p>
      <p>
        In this paper, we are interested in the structured
P2P architecture in general and particularly HPM
(
        <xref ref-type="bibr" rid="ref10">11</xref>
        ). HPM is composed of a set of hierarchical rings,
which consist of the nodes that are neighboring
in terms of physically proximity, without distinction
between nodes in different levels, and it is based on
a hash function and cryptographic for the identifiers
of resources, the IP address and port number for
the identifiers of nodes. HPM routing objectives
are: provides the discovery/localization service,
based on a complete decentralized architecture, by
determining with efficiency the node responsible for
storing the requested key’s value.
      </p>
      <p>One of the main characteristics of HPM is the routing
optimization at IP level, as it takes into consideration
the physical proximity while minimizing the number
of hops for lookup process (cost lookup). The
authors evaluated the performance of HPM with
simulation, the metric they are taken: cost lookup,
size of data structure, number of rings at each level
and the number of rings and level for HPM with IPv6
and IPv4 address format. However, in our work, we
evaluate the system with analytical model in term
of total download time of requested resource, and
capture the impact of nodes level characteristics on
the performance of HPM.</p>
      <p>Mathematical models can be used to predict system
behavior. Among both techniques: simulation and
analytic modeling that can be used at the design
stage, this one is much less expensive. Also,
with the availability of very powerful and effective
general purpose modeling tools, analytic models
are becoming increasingly more cost effective than
simulation. Many researches are focused on this
modeling method for evaluating the performance of
P2P systems; the most significant classification of
the modeling techniques we found in the literature,
they are classified into four models: Markov chain
models, fluid flow models, and queuing network
models. In most cases, these models are used to
describe the performance of the whole system and
stochastic characteristics of a peer, they are clearly
able to reflect the effect of different parameters on
P2P systems performance, they permit efficient
and detailed exploration of the parameter space to
evaluate the effect of not just only single parameter,
but also the combined effect of variation of several
parameters. However, many of these models are
based on unrealistic assumption like peers having
global information about the state of all peers,
simplifying assumption on the underlying network
topology, and on the arrivals and departures of
peers.</p>
    </sec>
    <sec id="sec-6">
      <title>2.2. Related Work</title>
      <p>
        In the following, we present the different analytical
models used to evaluate the performance of P2P
networks:
Fluid Flow Model: An homogenous branching
process is used to study the service capacity
of BitTorrent-like P2P file sharing network in the
transient regime and a simple Markovian Model is
presented in (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) to study the steady-state properties.
They found that the capacity of such systems
grows exponentially in transient and stabilizes
at steady state. Various techniques are studied
that might help to improve P2P performance.
Multi-part combined with parallel uploading when
properly optimized will generally improve system
performance, particularly when peers exit in the
system at a high rate. The above work is extended
in (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) where simple deterministic Fluid Model is
derived from Markovian model proposed in (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ),
in order to study peer number temporal evolution
and average downloading time in BitTorrent-like file
sharing systems. Furthermore, other features of
BitTorrent networks such as downloading efficiency
and incentives are discussed.
      </p>
      <p>
        In (
        <xref ref-type="bibr" rid="ref5">6</xref>
        ), the authors develop an analytical model
allowing to study the effect of network characteristics
on P2P file sharing system performance. Particularly,
they have focused on access link capacity and
heterogeneity. In (5), a simple fluid model, (an
extension of (
        <xref ref-type="bibr" rid="ref4">4</xref>
        )) is proposed, the authors analyze
the effect of bandwidth heterogeneity on file transfer
dynamics and content diffusion process in detail.
They compare the performance of heterogeneous
networks and the equivalent homogeneous networks
under different conditions of equivalence. Their
results show that heterogeneity bandwidth can have
a positive effect on content propagation.
      </p>
      <p>
        Markov Chain Model: Birth and Death Markov
model based structured peer-to-peer networks are
studied on (
        <xref ref-type="bibr" rid="ref6">7</xref>
        ). The result shows that the structured
peer-to-peer network is very suitable for networks
with low dynamicity. The authors in (? ) study the
dynamic and robustness properties of large-scale
peer-to-peer systems. They propose an analytical
model of the local behavior of clusters, based on
Markov chains to evaluate the impact of malicious
behaviors on the correctness of the system, and
analytically evaluation of the performance of the
global system, allowing to characterize the global
behavior of the system with respect to its dynamics
and to the presence of malicious nodes. The focus
of these studies is primarily on the evolutionary
dynamic of the system. These studies also do not
account for queuing effects and heterogeneities in
hosts and the network.
      </p>
    </sec>
    <sec id="sec-7">
      <title>Queuing Network Model: the famous model</title>
      <p>
        of P2P file sharing systems is presented in (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), in
which a multiple class Closed Queuing Model was
proposed to capture distinguishing characteristics
of P2P file sharing systems, This model is applied
in three different types of architecture (Centralized
Indexing: CIA, Distributed Indexing with Flooded
queries : DIF, and Distributed Indexing with Hashing
directed queries: DIHA), and it is used for analyzing
important aspects regarding performance like
system scaling, freeloaders, file popularity and
availability. This model does not capture the
significance of the physical underlying topology of
the considered P2P network. In (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ), an analytic
framework to evaluate the performance of peer to
peer networks is proposed. The authors used as a
metric: a time to download or replicate an arbitrary
file. Their proposed model captures the impact of
various networks and peer level characteristics on
the performance of P2P network, and they propose a
queuing model which evaluates the delay of routers
using a single class open queuing network and
the peers as M/G/1/K processor sharing queues.
An important abstraction unaddressed in is the
availability, and dynamism of nodes in term or churn
rate (disconnection/connection) for P2P network,
which can influence on total network latency. In (
        <xref ref-type="bibr" rid="ref8">9</xref>
        ),
the same authors evaluate the file transfer delay
at the peers, and contributed more compared to
their previous work in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ), the case of online-offline
transition of peers and gives the total peer latency.
In this work, we are interested to apply the proposed
analytical model (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ) in order to give performance
evaluation of structured P2P systems, a case
study concerns HPM protocol (
        <xref ref-type="bibr" rid="ref10">11</xref>
        ). In table 1, we
summarized the work discussed in this section, we
gave the focus of analyses and result, and the weak
point of each work.
      </p>
    </sec>
    <sec id="sec-8">
      <title>3. PROPOSITION</title>
      <p>
        In this section we develop our proposition model,
which consists of modeling the HPM structured
P2P system, and evaluate its performances with
an analytical method. This work is an extension
of (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ). The authors of (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ) did not evaluate withe
their analytical models the performance of structured
P2P systems, so we want to complement their work
and study case not treated. For this, we use a
queuing model to model and evaluate the HPM. As
described in HPM architecture, two types of nodes
is considered, the relay and the end peer, the relay
node represents a gateway between rings. We use
a single class open queuing network to model and
evaluate the delays in relay nodes, we model each
relay node as a GI/G/1 queue like in (
        <xref ref-type="bibr" rid="ref12">13</xref>
        ) and the
end peers as M/G/1/K processor sharing queues.
      </p>
    </sec>
    <sec id="sec-9">
      <title>3.1. Functional Principal</title>
      <p>
        HPM is organized as a set of hierarchical rings
composed of nodes, we interested in two types of
nodes: relays and peers nodes. Each relay acts as
a gateway to one or more rings, and peers are
the nodes residing in the various ring. We take
as example the scenario below: three relays (R1,
R2 and R3) and four rings as shown in figure 2.
When a peer P2 in ring 2 searches a file that is
on peer P9 in ring4, the request (packet) should be
transferred through the R1 and R2 relays to get the
file that on P9, (the principal detailed of the lookup
and download of resources in HPM is described
in (
        <xref ref-type="bibr" rid="ref10">11</xref>
        )), so, how long does it take to lookup and
download a requested resource?, : to answer this
question, we must first get query search time, the
transmission time of the file being downloaded, and
queuing delay at the intermediate relay, the sum of
the three quantities provides us the total resource
transfer time. For this, in next section, we studied
and analyzed each point separately, and we use a
queuing model to model relays and the peers and
evaluate the total delay to download a requested
resource in the HPM architecture.
n : number of internal relays in the network. for
each j, j = 1,...,n
0j : expected external arrival rate at relay j
0j = [1=E(A0j )]
Ca00j : squared coefficient of variation (scv) or
variability of external interarrival time at relay j:
Ca20j = [V ar(A0j )]=[E(A0j )2]
      </p>
      <p>j : expected service rate at relay j:
1=E(Sj )
j =
j, CS00j = [V arSj ]=[E(Sj )2]
CS00j : scv or variability of service time at relay
pij : for each pair (i,j), probability of a packet
going to relay j after completing service at relay
i</p>
    </sec>
    <sec id="sec-10">
      <title>3.2. Analytical Model of HPM</title>
      <p>We focus on the network queuing delays and the
delays at the end peers, using a queuing model. We
break up the system into two components: the relay
nodes, modeled with single class open network,
GI/G/1 OQNS, and the end peers modeled with
M/G/1/K Processor Shared.</p>
    </sec>
    <sec id="sec-11">
      <title>3.2.1. Relay Network Model</title>
      <p>
        In our proposition, we use a decomposition method
(
        <xref ref-type="bibr" rid="ref12">13</xref>
        ),(
        <xref ref-type="bibr" rid="ref13">14</xref>
        ), that consists of decomposing a network
relay nodes into smaller sub-networks and then
analyzing each sub-network separately which it
consist of individual queues. In this approach, a
network is approximated as a set of individual
isolated GI/G/1 queues. Performance metrics at
each queue are computed using approximation
formulas for the GI/G/1 queue.
      </p>
      <p>
        We model each relay nodes by a GI/G/1 to allow
for arbitrary arrival and service time distribution.
Traffic to a network relay can be rather irregular and
does not necessarily follow a Poissonien distribution
(
        <xref ref-type="bibr" rid="ref14">15</xref>
        ),(
        <xref ref-type="bibr" rid="ref15">16</xref>
        ), and may vary from network to another.
Given this, we model our network with generalized
inter-arrival (GI) process.
      </p>
      <p>To find the relay network delay, we should pass
through three steps:
Step 1. Analysis of interaction between relays of the
networks,
Step 2. Evaluation of performance measures at each
relay,
Step 3. Evaluation of performance measures for the
whole network.</p>
      <p>
        Step 1. Analysis of interaction between relays of
the networks
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
(5)
(
        <xref ref-type="bibr" rid="ref5">6</xref>
        )
Determine two parameters for each relay j:
(i) the arrival rate j can be obtained from the traffic
rate equations:
j =
      </p>
      <p>n
0j + ∑ ij ; f orj = 1; ::n;</p>
      <p>i=1
where ij = pij i, is the expected arrival rate at
station j from station i.</p>
      <p>We also get :
j = j = j ; 0
j
1;
(ii)the squared coefficient of variation (scv) for the
arrival process or variability of interarrival time.
The expected (external) departure rate to station 0
from station j is given by :</p>
    </sec>
    <sec id="sec-12">
      <title>Step 2. Evaluation of performance measures at each relay</title>
      <p>
        The expected number of packets in the jth relay,
including one in service, is given by using Little’s law:
E[NCj ] = j + j E[WQj ]
(
        <xref ref-type="bibr" rid="ref6">7</xref>
        )
The expected waiting time at the jth relay is given by
:
0j = j + (1
n
∑ pij ):
i=1
n
0 = ∑
j=1
      </p>
      <p>n
0j or ∑
j=1</p>
      <p>j0
vj = E(Kj ) = j = 0:
Throughput or total external rate of traffic into the
relays :
.</p>
      <p>
        The expected number of visits
The s.c.v. of arrival time can be approximated by
Traffic variability equation (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ):
, where
and
      </p>
      <p>n
Ca2j = wj ∑
i=0
ij Ca2i + 1
j
wj =
1
1
1 + 4(1</p>
      <p>j )2(xj
xj =
∑n
i=0( ijj )2
:
wj
1)
;
E(wj ) =
j (Ca2j + CS2j )g( j ; Ca2j ; CS2j )</p>
    </sec>
    <sec id="sec-13">
      <title>Step 3. Evaluation of performance measures for the whole network</title>
      <p>The total number of packets in the network is:</p>
      <sec id="sec-13-1">
        <title>The relay delay per packet:</title>
        <p>
          NC =
n
∑ NCi :
i=1
E[TNr] =
NC
0
(
          <xref ref-type="bibr" rid="ref8">9</xref>
          )
(
          <xref ref-type="bibr" rid="ref9">10</xref>
          )
        </p>
      </sec>
    </sec>
    <sec id="sec-14">
      <title>3.2.2 The End Peers</title>
      <p>
        The HPM architecture is composed of peers and
relays, each relay is attached to a number of rings;
in turn harbor the end peer. In the previous section,
we provided a queuing delay at the intermediate
relay, and in this subsection, we give and develop
a queuing model for the end peer and provide
expression of the expected time takes to service a
requesting resource. We model each end peer as
M/G/1/m Processor sharing. The choice of this last is
motivated by the fact that, the service time depends
on the size of the resource being downloaded and
resource size distribution is typically heavy-tailed,
so the service time cannot be modeled as an
exponential process. For this, we are motivated to
choice an arbitrary distributions for the time services
and taking generalized model for resource size, and
the arrival process follows the Poisson process with
rate di, since the SCV of the arrival process at the
end peers equals 1, the demonstration of this result
is given in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        ).
      </p>
      <p>
        State probabilities pk are given by:
pk = 1 k(1m+)1 ; Pl = 1m(1m+1) ; =
diX^ ; (
        <xref ref-type="bibr" rid="ref10">11</xref>
        )
for k = 0; 1; :::; m. where Pl is the loss probability,
and X^ is the average service time per request.
Using Little’s Law, the expected service time that a
user encounters can be expressed as:
(
        <xref ref-type="bibr" rid="ref12">13</xref>
        )
E[Np] represent the expected number of resource
transfers in progress at the end peer at any given
time, it is given by:
      </p>
    </sec>
    <sec id="sec-15">
      <title>3.2.3. Query Search Time</title>
      <p>The expression of query search time is the time
taken for the entire search process to terminate; it
differs from one architecture to another, depending
on the research technique used. In this work, we
consider a structured architecture to evaluate this
parameter, which is the HPM, so, the neighbor
relationship between peers and data locations is
strictly defined. Searching in such systems is
therefore determined by the particular network
architecture. The search technique employed to
lookup the requesting resource in this architecture
is defined as follow:
Each ring k at level i, used the ith part of data key
for the lookup process, when a peer in ring k if the
requestor node belongs to, the request succeeds on
this ring k, if the resource does not exist on the active
covered ring, the search is done on ring level i + 1, or
i 1, in a deterministic manner the cost of the search
process is O(∑m</p>
      <p>i=1 log2(ni)), where, ni is the number
of nodes on the covered ring at level i on which the
request succeeded.</p>
      <p>
        The query process terminates when the last of
the responses finds it’s way back to the source.
The expected time elapsed between the query
generation and termination is thus:
where [∑iN (E[WQi ] + i)]=NR represent the average
queuing delay at a relay, and [WQi ] is given
previously in Eq.(
        <xref ref-type="bibr" rid="ref13">14</xref>
        )
The factor of 2 comes in since the query response
traces the same forward path back to the query
originator.
      </p>
      <p>C is the cost of the lookup in HPM architecture, and
is given by:</p>
      <p>m
C = O(∑ log2(ni);</p>
      <p>i=1
d give the approximate distance for random graph,
it represent the shortest path between two random
chosen nodes on the relay graph:
d =
ln(NR
1)(z^2 z^1)
(ln(z^2=z^1))
ln(z^12) ;
where z^i is the average number of i hop neighbors
and NR is the total number of nodes in the relay
graph:</p>
      <p>NR NR
z^1 = [ ∑ Aij]=NR; z^2 = [ ∑ IA^(i; j)]=NR
i;j=1 i;j=1;i̸=j
A is the relay adjacency matrix, A^ = A2 and IA(i; j)
defined as:</p>
      <p>IA^(i; j) =
{ 1; ifA^ij &gt; 0;</p>
      <p>0; otherwise</p>
    </sec>
    <sec id="sec-16">
      <title>3.2.4. Expected Download Time</title>
      <p>We arrived at the expression that gives the total
download time of resource, which is the time elapsed
from when the query was generated until the entire
resource is downloaded, with O(i) copies of the
resource in the network, which is generated by the
Zipf’s Law :</p>
      <p>O(i) = Von=i H (V );
where H (V ), is the harmonic number of order of
V and defined as:</p>
      <p>V
H (V ) = ∑ 1=i :
i=1
The given formula in Section 3:2:1: gives us the total
time it takes a packet takes to get the customer
E[TNR], so the download time is determined by the
time spent by the last packet sent by the slower peer
to reach the destination.</p>
      <p>The time when the last packet reaches the edge
of the network is when the slower peer is done
transmitting it’s allocated resource part i.e. after
E[TWP ] seconds. The packet, then spends a further
E[TNR] in the network.</p>
      <p>The expected service time for data transfer at the
slower peer is:</p>
      <p>E[TWP ] =</p>
      <p>B=O(i)</p>
      <p>C=E[NWP ]</p>
      <sec id="sec-16-1">
        <title>B is the total file size,</title>
        <p>O(i) number of copies of the resource in the network
E[NWP ] is the expected number of files serving at
any point in time</p>
        <p>1 j
E[NWP ] = ∑[∑ i p(i)]P (m = j)</p>
        <p>
          j=0 i=0
Thus, the total download time, E[TD], is given by:
(
          <xref ref-type="bibr" rid="ref14">15</xref>
          )
(
          <xref ref-type="bibr" rid="ref15">16</xref>
          )
E[TD] = E[TWP ] + E[TNR]
(17)
The final expression for the overall waiting time,
E[T ], gives :
        </p>
        <p>E[T ] = E[TD] + E[TQS]
(18)</p>
      </sec>
    </sec>
    <sec id="sec-17">
      <title>4. CONCLUSION AND FUTURE WORK</title>
      <p>In this paper, we have presented the performance
evaluation models for P2P systems, which of these
P2P overlay networks is best suited depends on
the application and its required functionalities and
performance metrics (e.g. scalability, network routing
performance, location service, file sharing, content
distribution, and so on).</p>
      <p>
        We have summarized various recent works on
performance modeling of such systems that have
been proposed in the literature, offering an insightful
and useful overview of system properties, focus of
analyses and results of each work studying.
A novel analytical model derived from work in (
        <xref ref-type="bibr" rid="ref7">8</xref>
        )
is proposed in this paper, it consist of evaluating
the performance of structured P2P network, we
have take as an example the HPM architecture and
as performance metrics the total download time of
requested resources.
      </p>
      <p>As future work, we envision to take into account the
behavior of nodes and we will study the online-offline
transition, which may influence the performance of
the system, and especially on the download time of
a resource.</p>
      <sec id="sec-17-1">
        <title>Ref. Analytical</title>
        <p>
          Method
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) CQMo
        </p>
        <p>
          Architecture Focus of Analyses and
Results
CIA,DIFA,DIHA Generality, flexibility of
modeling,analyze the effect of
freeloaders, files and user
behavior.
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
        </p>
        <p>MMo,Bpr</p>
        <p>DUSy
(BitTorrent)</p>
        <p>
          Study service capacity and
fairness. P2P system achieves
favorable scaling in terms of
average download delay with
increasing load.
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
        </p>
        <p>FMo</p>
        <p>HFflow
(5)</p>
      </sec>
      <sec id="sec-17-2">
        <title>HFMo</title>
        <p>
          (
          <xref ref-type="bibr" rid="ref7">8</xref>
          )
        </p>
        <p>QMo(OQN)
Do not capture all
aforementioned phases of the sharing
process, namely flash crowd,
steady state. Not account the
query search time
(propagation delay), not treated the
structured architecture.</p>
      </sec>
      <sec id="sec-17-3">
        <title>Not account for queuing effects in the network.</title>
      </sec>
      <sec id="sec-17-4">
        <title>Weak points</title>
        <p>Not capture the effect of the
differences in the file size of
different request on the sys
performance, access rate and
varying load on different peer
not modeled, ignore the effect
of the network topology.</p>
        <p>Performance of individual user
not degrades significantly, the
average delays scale well in
the offered load Not account
for queuing effects and
heterogeneities in the network.
Not account for queuing
effects in the network, and
heterogeneities in hosts and
the network. The assumption
about global knowledge of all
peers for peer selection</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>:</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Amad</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Meddahi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <article-title>A¨ıssani, ”P2P Networks Management Survey”</article-title>
          ,
          <source>International Journal of Computer Sciences Issues (IJCSI)</source>
          , Vol.
          <volume>9</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>1</given-names>
          </string-name>
          , No 3, pp.
          <fpage>193</fpage>
          <lpage>148</lpage>
          ,
          <year>January 2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2] :
          <string-name>
            <given-names>Z.</given-names>
            <surname>Ge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Figueiredo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jaiswal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Kurose</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Towsley</surname>
          </string-name>
          , ”
          <article-title>Modeling peer-peer file sharing systems”</article-title>
          ,
          <source>in Proceedings of IEEE INFOCOM</source>
          , pp.
          <fpage>2188</fpage>
          <lpage>2198</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>:</surname>
            <given-names>X.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
          </string-name>
          , G. de Veciana, ”
          <article-title>Service Capacity of Peer to Peer Networks”</article-title>
          ,
          <source>in Proceedings of IEEE INFOCOM</source>
          , vol.
          <volume>04</volume>
          , pp.
          <fpage>2242</fpage>
          <lpage>2252</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>: D.</given-names>
            <surname>Qiu</surname>
          </string-name>
          , R. Srikant, ”
          <article-title>Modeling and Performance Analysis of BitTorrent-Like Peer-to-Peer Networks”</article-title>
          ,
          <source>in Proceedings of ACM SIGCOMM</source>
          , Portland, OR, pp.
          <fpage>367</fpage>
          <lpage>378</lpage>
          ,
          <year>August 2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>: F.</given-names>
            <surname>Lo Piccolo</surname>
          </string-name>
          , G. Neglia, G. Bianchi, ”
          <article-title>Performance evaluation of Peer-to-Peer file sharing systems: analytical models and simulation tools”</article-title>
          ,
          <source>Bianchi Infocom 2005 Student Workshop</source>
          , Miami, FL, USA, March
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [7] : HAN Li,
          <article-title>LEI Zhen-ming, ”Modeling structured peer to peer systems”</article-title>
          ,
          <source>The journal of China Universities of posts and Telecommunications</source>
          , Volume
          <volume>13</volume>
          , Issue 3, pp 76
          <fpage>80</fpage>
          ,
          <year>September 2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [8]
          <string-name>
            <surname>: Krishna</surname>
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Ramachandran</surname>
          </string-name>
          and Biplab Sikdar, ”
          <article-title>An Analytic Framework for Modeling Peer to Peer Networks”</article-title>
          ,
          <source>in Proceedings of INFOCOM</source>
          . pp.
          <volume>215</volume>
          9
          <fpage>2169</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [9]
          <string-name>
            <surname>: Krishna</surname>
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Ramachandran</surname>
          </string-name>
          and Biplab Sikdar, ”
          <article-title>A Queuing Model for Evaluating the Transfer Latency of Peer-to-Peer Systems”</article-title>
          ,
          <source>in Proceedings of IEEE Transaction on parallel and Distributed Systems</source>
          , VOL.
          <volume>21</volume>
          , NO.
          <issue>3</issue>
          , pp 367
          <fpage>378</fpage>
          ,
          <year>March 2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [10] :
          <string-name>
            <given-names>F.</given-names>
            <surname>Clevenot</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Nain</surname>
          </string-name>
          , ”
          <article-title>A simple model for the analysis of the Squirrel peer-to-peer caching system</article-title>
          ,
          <source>” Proceedings of IEEE INFOCOM</source>
          ,
          <string-name>
            <surname>Hong</surname>
            <given-names>Kong</given-names>
          </string-name>
          , China,
          <year>March 2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [11]
          <string-name>
            <surname>:</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Amad</surname>
            , ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Meddahi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <article-title>A¨ıssani</article-title>
          , ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhangb</surname>
          </string-name>
          , ”
          <article-title>HPM: A novel hierarchical Peer-to-Peer model for lookup acceleration with provision of physical proximity”</article-title>
          ,
          <source>Journal of Network and Computer Applications</source>
          , vol.
          <volume>35</volume>
          , Issue 6, pp.
          <source>1818</source>
          <year>1830</year>
          ,
          <year>November 2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [12]
          <string-name>
            <surname>:</surname>
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Anceaume</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Ludinard</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Sericola</surname>
          </string-name>
          , ”
          <article-title>Performance Evaluation of Large scale Dynamic Systems”</article-title>
          ,
          <source>ACM SIGMETRICS Performance Evaluation Review</source>
          , vol.
          <volume>39</volume>
          <issue>Issue 4</issue>
          , pp.
          <fpage>108</fpage>
          <lpage>117</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [13] : W. Whitt, ”
          <article-title>The Queuing Network Analyzer,”</article-title>
          <source>The Bell Systems Technical Journal</source>
          ,
          <fpage>2779</fpage>
          -
          <lpage>2815</lpage>
          ,
          <year>1983</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [14] : W. Whitt, ”
          <article-title>Performance of the Queueing Network Analyzer”</article-title>
          ,
          <source>Bell System Technical Journal</source>
          , vol.
          <volume>62</volume>
          , no.
          <issue>9</issue>
          , pp
          <fpage>2817</fpage>
          -
          <lpage>2843</lpage>
          , Nov.
          <year>1983</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [15]
          <string-name>
            <surname>:</surname>
            <given-names>W. E.</given-names>
          </string-name>
          <string-name>
            <surname>Leland</surname>
            ,
            <given-names>M. S.</given-names>
          </string-name>
          <string-name>
            <surname>Taqqu</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Willinger</surname>
            and
            <given-names>D. V.</given-names>
          </string-name>
          <string-name>
            <surname>Wilson</surname>
          </string-name>
          , ”
          <article-title>On the self-similar nature of Ethernet traffic (Extended Version)</article-title>
          ,
          <source>” IEEE/ACM Trans. on Networking</source>
          , vol.
          <volume>2</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          ,
          <year>Feb 1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [16]
          <string-name>
            <surname>:</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Paxson</surname>
            and
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Floyd</surname>
          </string-name>
          , ”
          <article-title>Wide area traffic: The failure of Poisson modeling</article-title>
          ,
          <source>” IEEE/ACM Trans. on Networking</source>
          , vol.
          <volume>3</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>226</fpage>
          -
          <lpage>244</lpage>
          ,
          <year>June 1995</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>