<?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">IJCNS</journal-id><journal-title-group><journal-title>International Journal of Communications, Network and System Sciences</journal-title></journal-title-group><issn pub-type="epub">1913-3715</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ijcns.2016.95014</article-id><article-id pub-id-type="publisher-id">IJCNS-66940</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></subj-group></article-categories><title-group><article-title>
 
 
  A Cross-System Invocation Platform Based on Distributed Network Performance Measurement System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhenwen</surname><given-names>Xue</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yuehui</surname><given-names>Jin</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Tan</surname><given-names>Yang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>State Key Laboratory of Networking and Switching Technology, University of Posts and Telecommunications, Beijing, China</addr-line></aff><pub-date pub-type="epub"><day>30</day><month>05</month><year>2016</year></pub-date><volume>09</volume><issue>05</issue><fpage>152</fpage><lpage>159</lpage><history><date date-type="received"><day>12</day>	<month>April</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>24</month>	<year>May</year>	</date><date date-type="accepted"><day>30</day>	<month>May</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>
 
 
   The Distributed Network Performance Measurement Sys-tem provides functions to derive performance indices of networks and services, which are significant for Network Management System. To make these two systems cooperate, we realize this cross-system invocation platform, using Web Service, a mechanism which allows two systems to exchange data over the internet through publishing interfaces [1]. There are several mature Web Service frameworks, Apache Axis2, Apache CXF etc. In this paper we choose Apache Axis2 to achieve the objective that the Network Management System can invocate the net-work performance measurement functions via the Web Services. 
 
</p></abstract><kwd-group><kwd>Network Measurement</kwd><kwd> Cross-System</kwd><kwd> Web Service</kwd><kwd> Apache Axis2</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>TANC is a distributed network performance measurement system, and provides a method and device which is used to measure the IP network. It is divided into two subsystems, i.e. a cloud monitoring platform and measuring probes. <xref ref-type="fig" rid="fig1">Figure 1</xref> illustrates the overall architecture of the system.</p><p>The cloud monitoring platform which consists of a management platform (Arbiter), several Data Analyzers (DA) and a Load Balancer (LB), uses cloud computing technology to complete the performance data integration, consistency of treatment and other processes. Among those components, the management platform is the core control platform, which is responsible for managing the dynamic probe deployment, adjustment and measuring tasks. The main task of DA is to collect raw measured data from different probes, In order to balance the amount of DA to the probe based on the load information of DA.</p><p>Measuring probe subsystem consists of probes deployed in large-scale network. Probe implements a variety of measuring tasks of network performance index, collects the resource information itself at the same time and reports it to the cloud monitoring platform in real time. During the collection process, the management platform</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> The distributed network performance measurement system</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x4.png"/></fig><p>will adjust the location of probes flexibly relay on the resource status of probes [<xref ref-type="bibr" rid="scirp.66940-ref2">2</xref>].</p><p>The rest of the paper is organized as follows: Section 2 introduces the design of the invocation platform of the TANC system. Section 3 describes the interfaces which should be provided for the Network Management System, and the process of the service publication. Section 4 presents the methods which we use to evaluate web service. We propose problems for future and other works of our study in Conclusion.</p></sec><sec id="s2"><title>2. Platform Design</title><p>The cross-system invocation platform provides network performance measurement functions of the TANC system. The available indices includes time delay, packet loss and jitter rate etc. The Network Management System or other systems invocate the open interfaces of the platform. On one hand, the platform can make full use of the integrated measurement functions, reuse the software, improve the efficiency of TANC system and exchange the data across systems. On the other hand, it can promote the loose coupling of internal system. For example, the web of the TANC system can call the interfaces of the platform, rather than directly execute the reading and writing operations to the database. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the invocation platform architecture.</p><p>Web Service is a method of communication that allows two different software systems to exchange data over the internet. Different software can be built using different programming languages, and hence there is a need for a method of data exchange that does not depend upon a particular programming language. However, most types of software can interpret XML tags, and Web Service use XML files for data exchange [<xref ref-type="bibr" rid="scirp.66940-ref3">3</xref>]. Thus Web service is a good choice to use to implement the cross-system invocation.</p><p>Axis2 and CXF are two Web Service frameworks both belong to the Apache Software Foundation. Axis2 comes from the well-known Axis1.x series, and is a total rewrite of Axis from the ground up. It uses a new modular architecture that allows its functionality to be more easily extended. CXF is literally the offspring of the XFire and Celtix projects, and has been extensively retooled. The chief differences between two frameworks are as follows:</p><p>CXF has support for WS-Addressing, WS-Policy, WS-Security, and WS-I BasicProfile. Axis2 support each of these except for WS-Policy, which will supported in an upcoming version. CXF was written with Spring in mind, but Axis2 is not. Axis2 supports a wider range of data bindings, including XMLBeans, JiBX, JaxMe and JaxBRI as well as its own native data binding, ADB. Note that support for JaxME and JaxBRI are still considered experimental in Axis2 1.2. CXF currently supports only JAXB and Aegis, support for XMLBeans, JiBX and Castor will come in CXF 2.1.Axis2 supports multiple languages. There is a C/C++ version available in addition to Java version [<xref ref-type="bibr" rid="scirp.66940-ref4">4</xref>]-[<xref ref-type="bibr" rid="scirp.66940-ref6">6</xref>].</p><p>In this paper we choose Apache Axis as the frameworks to publish the service.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Invocation platform architecture</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x5.png"/></fig></sec><sec id="s3"><title>3. Interface Definition and Service Publication</title><sec id="s3_1"><title>3.1. Interface Definition</title><p>The main functions of TANC system include task deployment, task state information query, and the return of the task result etc. the platform needs to provide the interfaces of related functions, thus the Network Management System or other system can call the interfaces in the process to complete related operations. <xref ref-type="fig" rid="fig3">Figure 3</xref> shows the interface invocation flow chart.</p><p>Before deploying task, it is necessary to request the topology information, probes information and task types.</p><p>The network topology information query interface requires administrator ID and password as parameters, and returns all the networks the system have built up. Requestor can choose which network need to be measured via the information requestor get. The information includes network topology name and its ID etc.</p><p>When requestor need to deploy single link performance measurement task, the probes information query interface should be invocated first, which is used for service requestor to get the available probes in a network, and it need network topology ID as a parameter. The information is stored in the system database. If ID is valid, the system will query the database based on the parameter and return a string array containing IP of available probes.</p><p>The task types query interface provides requestor with the network performance indices which TANC can measure. It does not need any input parameters and if the invocation succeed, the interface will return the available types.</p><p>The task which requestor can deploy includes single link performance measurement task and network performance measurement task. The single link performance measurement task requires two probe IPs, task type, task start time and end time as parameters, then the system checks the validity and generates a task record if all parameters are valid. The network performance measurement task requires network topology ID instead of probe IPs as parameter.</p><p>Task status query interface is used when the requestor needs to know the status of a certain tasks, and returns to requestor the task status at the moment. The status includes task been deployed, task into the waiting queue, task executing, task success, failed to carry out task. When requestor invokes the interface, the task ID need to be provided as a parameter, then the system returns a string representation of the status after querying the database.</p><p>By calling the task result query interface, requestor can view the results of the completed tasks, and make the judgment of network performance base on the analysis results. This interface also requires a task ID as interface parameter, and returns the task result data as a JSON format string. The task data is stored in the Hbase after the DA receives from the probes and analyses it.</p><p>Other interfaces can be designed and implemented on the invocation platform, which can make the invocation more efficient. The above several interfaces provide the most basic functions to complete a network performance</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Interface invocation flow chart</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x6.png"/></fig><p>measurement task.</p></sec><sec id="s3_2"><title>3.2. Service Publication</title><p>Axis2 has taken an approach that makes it in many ways resemble an application server in miniature. Axis2 comes packaged with a WAR that can be deployed on a servlet container such as Tomcat that is designed to make web services easier to manage and deploy. The Axis2 Web Administration module allows Axis2 to be configured dynamically. While applications are running, new services can be uploaded, activated or deactivated and their parameters may be changed. The administration UI also allows modules to be enabled on one or more running services. The only downside to using the UI for these purposes is the fact that configuration changes made through it are not persistent. They go away when the servlet container is restarted. Axis2 lends itself towards web services that stand alone, independent of other applications, and offers a wide variety of functionality and a good model for adding more functionality as time goes on through its modular architecture [<xref ref-type="bibr" rid="scirp.66940-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.66940-ref6">6</xref>].</p><p>Comparing with Apache Axis2, Most configuration of Apache CXF is done via the API instead of XML files. Spring integration is heavily emphasized, including support for Spring 2.0 and APIs of CXF. Spring configuration mirror one another fairly closely. CXF emphasizes code-first design, using simple APIs to make development of services from existing applications easier [<xref ref-type="bibr" rid="scirp.66940-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.66940-ref6">6</xref>].</p><p>In publishing the web service, the organization provides a service description containing the interface and implementation details including its data types, operations, binding information and network location. This definition is constructed using WSDL [<xref ref-type="bibr" rid="scirp.66940-ref7">7</xref>]. We publish web service by means of Eclipse in combination with Apache Axis2, and use two Eclipse plugins, the Service Archive Wizard as well as the Code Generator Wizard. Service Archive Wizard is used to package service code as suffix .aar file, and Code Generator Wizard is used to generate the WSDL file and parse the WSDL file to generate the client code. We just need to put the two plug-in jar packages in Eclipse directory under the plugins folder, restart the Eclipse. Then we need get an axis2.war file via unzipping axis2-1.6.2-war.zip, and put it into the webapps file of tomcat, start the tomcat.</p><p>Take the interface file GetMapInfoByUserID.Java as an example. Service code should be packaged into .aar file, here we use the above mentioned Axis2 Service Archiver plug-in. After a series of steps, the corresponding GetMapInfoByUserID.aar file is generated. Then the file needs to be put in tomcat/webapps/Axis2/ WEB_INF/ services/folder below. Other class file and configuration files need to be put in tomcat/webapps/Axis2/ WEB_INF/classes. Restart the tomcat. And then visit http://localhost:8080/axis2/, click on Services, and a web service which is related with getting all network topology information is shown. Click on the web service and the web page displays the related WSDL information.</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> introduces the structure of the WSDL file. The WSDL file is a simple XML document, which contains a series of definition that describes a web service. The type element defines the data types of web service. For maximum platform neutrality, WSDL uses XML Schema syntax to define data types. The message element defines the data elements of an operation. Each message is composed of one or more parts which can be compared to the parameters of a function in a traditional programming language. The portType element is the most important WSDL element. It describes a web service and its operations that can be performed as well as other related information. The binding element defines the message format and protocol details for each port [<xref ref-type="bibr" rid="scirp.66940-ref8">8</xref>].</p></sec></sec><sec id="s4"><title>4. Service Interface Evaluation</title><p>After getting the published Service WSDL file, it is necessary to test that if it can provide normal services, one method is by using the Axis2 Code Generator plugin to generate the client code, but another popular method is by SoapUI which is an open source test tools via soap/HTTP to check and call. Apache JMeter is used to test the performance of the interfaces.</p><sec id="s4_1"><title>4.1. Client Code</title><p>Axis2 Code Generator plugin can generate client code easily and automatically according to the WSDL file, thus we can simply call the generated Code to complete the web service invocation. At the same time, we can also try to invoke the service interface on other platforms, with the Android development platform as an example, it is practicable to invocate the interface with the help of the ksoap2, a client develop library which is more suitable for the Android mobile platform.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> describes the Android Ksoap2 sends web service request to the server to get all network topology information in the system.</p></sec><sec id="s4_2"><title>4.2. SoapUI</title><p>SoapUI is an open-source web service testing application for service-oriented architectures (SOA) and repre-</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> The structure of WSDL file</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x7.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> The request by android Ksoap2</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x8.png"/></fig><p>sentational state transfers (REST). Its functionality covers web service inspection, invoking, development, simulation and mocking, functional testing, load and compliance testing. SoapUI can test SOAP and REST web services, JMS, AMF, as well as make any HTTP(S) and JDBC calls [<xref ref-type="bibr" rid="scirp.66940-ref9">9</xref>]. We can use SoapUI software or SoapUI plug-in in Eclipse to complete our testing. A new project need to be created based on the URL of the WSDL file, and the test result of network topology information query interface is shown as follows.</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> and <xref ref-type="fig" rid="fig7">Figure 7</xref> describes the success of the request and response operations using SoapUI to test the basic information of the network topology respectively. For example, the requester need to provide the User ID, here is admin, as a parameter, then the interface return the information as a JSON string, which contains the ID information of network topology and its name.</p></sec><sec id="s4_3"><title>4.3. Performance Evaluation</title><p>JMeter, which is developed by Apache, is applied to the performance evaluation of Web applications widely. It can be used in the simulation under the condition of heavy load performance of the entire server. The test of JMeter, including the creation of loops and thread group, uses default delay to simulate continuous requests to the server, and the thread group is designed to simulate concurrent load [<xref ref-type="bibr" rid="scirp.66940-ref10">10</xref>].</p><p>We choose three different thread numbers, 5, 50, and 500 to test the performance of the network topology information query interface. Throughput is the number of requests the server can deal with per minute. Average is the total running time divided by the number of requests sent to the server. Median represents the time, which half of the server response time less than it [<xref ref-type="bibr" rid="scirp.66940-ref10">10</xref>]. From <xref ref-type="table" rid="table1">Table 1</xref>, the throughput of 5 threads is less than half of 50 and 500 threads, which two has a similar value, about 5500 per minute. Both average and Median is increased dramatically as the number of the concurrent threads increases.</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>In this paper, we choose the Web Service technology to implement the cross-system invocation platform based</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The request of SoapUI</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x9.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> The response of SoapUI</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/66940x10.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> The interface performance evaluation</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Threads</th><th align="center" valign="middle" >Throughput/min</th><th align="center" valign="middle" >Average/ms</th><th align="center" valign="middle" >Median/ms</th></tr></thead><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >2676.182</td><td align="center" valign="middle" >62</td><td align="center" valign="middle" >66</td></tr><tr><td align="center" valign="middle" >50</td><td align="center" valign="middle" >5436.752</td><td align="center" valign="middle" >363</td><td align="center" valign="middle" >147</td></tr><tr><td align="center" valign="middle" >500</td><td align="center" valign="middle" >5702.41</td><td align="center" valign="middle" >3392</td><td align="center" valign="middle" >1123</td></tr></tbody></table></table-wrap><p>on a distributed network performance measurement system TANC. Web service is an independent, loosely coupled, self-contained platform based on the programmable Web application. Different applications running on different environments can exchange data or integrate by web service without using additional third party system. We define basic interfaces required to complete a measurement task, including deploying task, task status view, task results back, etc. Apache Axis2 is a popular Web Service framework, and we use it to publish the service and generate the corresponding WSDL file. The services are tested by two ways, the client code test and a convenient test tool, SoapUI. And in the end we use Apache JMeter to evaluate the performance of the interfaces. More interfaces of the TANC system need to be published in the future in order to make the invocation more efficient.</p></sec><sec id="s6"><title>Acknowledgements</title><p>This work was sponsored by the 973 Project of China (No.2009CB320505), the 863 Project of China (No.2011AA01A102) and the Fundamental Research Funds for the Central Universities of China (No. 2014RC0501).</p></sec><sec id="s7"><title>Cite this paper</title><p>Zhenwen Xue,Yuehui Jin,Tan Yang, (2016) A Cross-System Invocation Platform Based on Distributed Network Performance Measurement System. International Journal of Communications, Network and System Sciences,09,152-159. doi: 10.4236/ijcns.2016.95014</p></sec></body><back><ref-list><title>References</title><ref id="scirp.66940-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">https://en.wikipedia.org/wiki/Web_service</mixed-citation></ref><ref id="scirp.66940-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Chen, X., Jin, Y.H. and Yang, T. A Low Coupling Analysis Method for Large-Scale Network Performance. Proceedings of 2013 5th IEEE International Conference on Broadband Network &amp; Multimedia Technology.  
http://dx.doi.org/10.1109/icbnmt.2013.6823906</mixed-citation></ref><ref id="scirp.66940-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Papazoglou, M.P. (2009) Web Servies Prinples and Technol-ogy. China Machine Press.</mixed-citation></ref><ref id="scirp.66940-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">http://axis.apache.org/axis2/java/core/</mixed-citation></ref><ref id="scirp.66940-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">http://cxf.apache.org/docs/index.html</mixed-citation></ref><ref id="scirp.66940-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Townsend, B. (2007) Axis, Axis2 and CXF: Surveying the WS Landscape. TheServerSide.com.</mixed-citation></ref><ref id="scirp.66940-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">McGregor, C. and Schiefer, J. (2003) A Framework for Analyzing and Measuring Business Performance with Web Services. Proceedings of the IEEE International Conference on E-Commerce (CEC’03).</mixed-citation></ref><ref id="scirp.66940-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">http://www.w3school.com.cn/wsdl/wsdl_documents.asp</mixed-citation></ref><ref id="scirp.66940-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">http://www.soapui.org/about-soapui/what-is-soapui-.html</mixed-citation></ref><ref id="scirp.66940-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Nevedrov, D. (2006) The Application of JMeter in WebService Performance Test. dev2dev.</mixed-citation></ref></ref-list></back></article>