A Framework For Performance Analysis of Client/Server Based SOA and P2P SOA
A Framework For Performance Analysis of Client/Server Based SOA and P2P SOA
Abstract— An analytical framework is developed to derive the indicator in a SOA implementation. However, in [8] no
response time and service availability of client/server based effort was made to provide the necessary analytical
SOA and P2P based SOA. The impact on the response time framework so that the claims can be analytically verified.
and service availability for varying load conditions and Service availability, though being a very crucial performance
connectivity for both client/server and P2P SOA metric, was also not analyzed in any of the works mentioned
implementation is studied. It is found that the response time above.
reduces significantly in P2P based SOA depending on network In our previous work [9] a peer to peer based architecture
connectivity and service replication factors. Service availability for service oriented computing was presented, where it was
is also found to be much higher in case of P2P based SOA and
shown through emulation studies that significant
the gain are enhanced for higher values of load. In our analysis
the impacts of search latency and bandwidth penalty resulting
performance improvement can be achieved by distributing
from UDDI distribution are not yet considered. the UDDI across the peers. But the results were unable to
provide enough insight for designing efficient distributed
Keywords-SOA; Service Replication; P2P; response time; algorithms for UDDI distribution and service replication.
service availability. Moreover, effect of service replication (possibly the most
important feature of P2P system that accounts for
performance gain), was not discussed in that paper. For
I. INTRODUCTION
design and implementation of P2P-SOA, we need to design
Service oriented computing [1] is increasingly being efficient algorithms for UDDI distribution, service
adopted in enterprise computing environment for its replication, service migration and service composition.
simplicity, reusability and flexibility in new service We found it difficult to design such algorithms without
composition. Recently its popularity is extending well having a general analytical framework for estimating the
beyond the enterprise environment and global service grids crucial performance metrics. In this paper we present a
are also being designed based on Service Oriented systematic analytical framework based on which the service
Architecture (SOA) [2]. However, the intrinsic dependence response time and service availability of a SOA
on client/server based design, the technology is not well implementation can be analyzed. We consider a general
suited [3] in pervasive [4] environment. This is mainly network with average connectivity k and then we apply
because of frequent service unavailability resulting from stochastic models to such network topology to derive the
poor channel conditions, power saving strategies and user response time and availability.
mobility. The paper is organized as follows. In section II, we give a
In this paper, we develop an analytical framework for brief outline of the analytical frameworks along with the
computing the performance of client/server based SOA (C/S- assumptions we maid. We present the details of our
SOA) and peer-to-peer based SOA (P2P-SOA). Based on the derivations of response time in C/S-SOA and P2P-SOA in
framework, developed here, we compare the performance of section III. Method for evaluation of the service availability
the aforesaid architectures in terms of service response time is presented in section IV. In section V, we evaluate the
and service availability. It has been demonstrated through mathematical expression for number of nodes that are j
our analysis that the service response-time and service
availability improve significantly in P2P-SOA. away from a reference node and maximum number of hops
P2P based architecture for service oriented computing in the network. We compare the performances of C/S-SOA
was presented in [5], [6] and an agent based P2P SOA was and P2P-SOA under identical inputs and network
proposed in [7]. But none of the papers provide any configuration in the section VI. We draw our conclusions in
analytical framework for performance evaluation and hence section VII with a brief outline of the future scopes.
quantitative estimation of performance gain is not available
as far as our knowledge goes. It was shown in [8] that
response time is possibly the most effective performance
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on August 17,2010 at 09:13:46 UTC from IEEE Xplore. Restrictions apply.
II. OUT LINE OF THE ANALYTICAL FRAMEWORK time the request spends in the server including processing
We consider a wireless network with average time,
connectivity k as our reference network. By average
connectivity, in this context, we mean that on an average a 1 1
TSERVER = + . (3)
node is connected with k number of neighbors. We also μ μ −λ
assume that the network uses a symmetric MAC layer such
as 802.11. It may be noted that the logical and physical In the case of C/S-SOA the delay in the server is exactly
neighborhood becomes equivalent in wireless environment. same as in equation (3). But for P2P-SOA, with replication
factor R , the average request arrival for a particular server
We assume that there are N number of nodes in the
will be modified to (λ R ) . Hence delay in this case is
network out of which N s number of nodes act as servers that
provides unique services. We assume that servers can
consume services as well i.e. they can act both as client and 1 1
TSERVER = + . (4)
server. Let each client generates 'r ' number of requests per μ λ
μ−
unit time for each of the server. Then total number of R
requests generated by a client is given by
80
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on August 17,2010 at 09:13:46 UTC from IEEE Xplore. Restrictions apply.
Again from observation it can be ascertained that if a replication factor R , the whole network will be divided into
1 R number of small clusters as the servers are uniformly
node i is j hops away from the reference node X then j th distributed in the network. So in this case if the whole
k
fraction of total traffic generated by i will be passing network contains N number of nodes then each small
through node X. Thus N
cluster will contain on an average number of nodes.
R
⎛ 1 ⎞ Under this situation, the parameter max hop and h will be
i
λX = N s r ∗ ⎜ ⎟.
j
⎝k ⎠ reduced resulting in reduction of λl .
Let us denote the modified max hop , h and λl for P2P-
Now, if N j denotes the number of nodes that are j hops SOA as, max hopP , hP and λlP respectively. So, for P2P-
away from X, then SOA we obtain
max hop
⎛ 1 ⎞
λX = ∑ N r ∗ N ⎜⎝ k
s j j
⎟.
⎠
(7) ⎛ 1
TT − NETWORK = 2 ∗ hP ∗ ⎜⎜
⎞
⎟⎟ . (13)
⎝ C − λlP
j =1
⎠
Where max hop denotes maximum number of hops Finally, we list out the derived response time for C/S-
between any two nodes in the network. SOA and P2P-SOA respectively as
Hence traffic through any link directly connected to X,
1 1 ⎛ 1 ⎞
λX C / S − SOA
T RESPONSE = + + 2 ∗ h ∗ ⎜⎜ ⎟.
λl = . (8) μ μ −λ ⎟
⎝ C − λl ⎠
k
81
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on August 17,2010 at 09:13:46 UTC from IEEE Xplore. Restrictions apply.
reference node [e.g. k=4, 12]. In such cases the
maximum number of hops in the network can be
obtained by finding minimum value of M such that
⎛ M
⎞
⎜⎜1 + 2∑ N ∗ j ⎟⎟ ≥ N . (14)
⎝ j =1 ⎠
*
Values of N ∗ j to be used in this case N J = k ∗ j (15)
After finding the M min from “(14)” and “(15)” Figure 2. Network Delay for k=4
the max hop will be given by max hop = 2 ∗ M min
In figure 4 and figure 5, we plot the over all response
Using the value max hop we can find the values of N j as time under replication factor 4 for k=4 and k=8 respectively.
We significantly observe the response time reduces
⎧ max hop significantly in both cases for P2P SOA. As expected, here
⎪⎪k ∗ j , for j ≤ 2
also the gain in response time is enhanced with increase in
Nj = ⎨ . load.
⎪k ∗ (max hop − j + 1), for j > max hop
⎪⎩ 2
Nj = ∑S .
( )
i = j −1 d +1
i
82
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on August 17,2010 at 09:13:46 UTC from IEEE Xplore. Restrictions apply.
of SOA implementation is studied. From the above studies
we can conclude that-
1) The response time reduces significantly for P2P-SOA.
This reduction is emphasized for higher network traffic
load.
2) The gain in response time in P2P-SOA is not only
because of sharing of server load but also because of
effective reduction in per link network traffic.
3) Service availability is much higher in P2P-SOA and it
Figure 5. Response Time for k=8 reduces more slowly with increase in link failure
probability in case of P2P-SOA.
It may be noted that gain in performance is achieved at
the cost of additional burden on processing, memory and
messaging overhead. This is not quantified in our analysis. It
may also be mentioned that a context aware system will
reduce the additional burden but quantitative modeling of
this is yet to be done. These two aspects should be studied in
future for designing a commercial viable system.
REFERENCES
[1] M. P. Papazoglou, P. Traverso, S. Dustdar and F. Leymann,
Figure 6. Service Availability for k=4 “Service-Oriented Computing state of the art and research challenge,”
IEEE Computer, vol. 40 , pp 38-45, November 2007.
From these result we can conclude that a significant gain [2] M. P. Papazoglou, “Service-Oriented Computing: concept,
in service response time and service availability is achieved characteristics and direction,” In Proc.,WISE 2003, 10-20 december,
when we use P2P-SOA against C/S-SOA. However this pp 3-12 .
improvement in performance is derived at the cost of [3] Geert, Vanderhulst, Kris, Luyten, Karin and Coninx, “Middleware for
additional processing and memory burden on each of the Ubiquitous service-oriented spaces on the web,” AINAW 2007, vol.
2, 21-23 May 2007, pp 1001-1006.
[4] U. Hansmann, L. Mark, M. S. Nicklous, Th. Stober, “Pervasive
Computing-The Mobile World-2nd ed.,” springer professional
series,2003.
[5] F .B. Goncalves, C. E. T. Oliveira, I. Silva, L. G. L. Moura, M. G.
Felipe, “A Software architecture for the provisioning of Mobile
service in peer-to-peer environments,” In Proc.ICIW 2007, 13-19
May 2007
[6] R. J. Bayardo, A. Crainiceanu, R. Agawal, “Peer-to-Peer sharing of
web applications,” In Proc., WWW 2003, Budapest, Hungary, May
2003
[7] Chao-Lin Wu, Chun-Feng Liao, Li-Chen Fu, ”Service-Oriented
Figure 7. Service Availability for k=8 Smart-Home architecture based on OSGI and Mobile-
Agenttechnology,” IEEE Transac. On System, Man and Cybernatics,
participating peer. For a pervasive environment dominated part C:application and review, vol.37, Issue 2, March 2007, pp-193-
by devices with little processing power and memory, simply 205.
service replication may not be a feasible solution. [8] J. S. Her, S. W. Choi, S. H. Oh, and S. D. Kim, “A framework for
measuring performance in Service-Oriented Achitecture,” In Proc.
VII. CONCLUSION AND FUTURE SCOPE Third International Conference on Next Generation Web Service
Practice, wishington, DC, USA, pp. 55-60, October 2009.
In this paper, an analytical framework is developed to [9] S. Choudury, D. Mukharjee, P. Chakraborty, N. C. Debnath and H. K.
derive the response time and service availability of C/S-SOA Lee, “An Agent based framework for peer to peer Distributed
and P2P-SOA. The impact on the response time and service Computing,” In Proc. ISCA-CATA 2008, Cancun,Mexico, pp 252-
availability for varying load and connectivity for both types 257, April 2008.
83
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on August 17,2010 at 09:13:46 UTC from IEEE Xplore. Restrictions apply.