Tagged-Sub Optimal Code (TSC) Compression for ... - ScienceDirect

4 downloads 21 Views 266KB Size Report
Procedia Computer Science 62 ( 2015 ) 167 – 169. Available ... 1877-0509 © 2015 The Authors. Published by ... Department of Computer Science. Abstract.
Available online at www.sciencedirect.com

ScienceDirect Procedia Computer Science 62 (2015) 167 – 169

The 2015 International Conference on Soft Computing and Software Engineering (SCSE 2015)

Tagged-Sub Optimal Code (TSC) Compression for Improving Performance of Web Services Iehab Al Rassan and Haifa Alyahya King Saud University, College of Computer and Information Sciences Department of Computer Science

Abstract Compression can be used to reduce the size of files and speeding up the transmission time over networks. However, not all compression techniques have the same features and capabilities to improve the performance of transmission over networks. This paper shows a comparison between different compression algorithms in order to improve the performance of web-services over the Internet. Nowadays, Service Oriented Architecture (SOA) being used heavily between applications as interaction between loosely coupled services, which are function independently. Therefore, fast and efficient services offered through the web services are needed. Enhancing performance of web services, would improve overall system’s performance. As a result, compressing and reducing the size of SOAP messages traveling over the network, improves the webs-service performance. This paper compares the performance of web-services by compressing SOAP messages using Tagged Sub-optimal Code (TSC) and Huffman Encoding Algorithms. Experimental results show that web-services compressed using TSC speeds up the performance of web-services compared to normal web-services and web-services compressed using Huffman encoding. © 2015 The TheAuthors. Authors.Published Published Elsevier B.V. © 2015 byby Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of organizing committee of The 2015 International Conference on Soft Computing and Software Peer-review under responsibility of organizing committee of The 2015 International Conference on Soft Computing and Software Engineering (SCSE 2015). Engineering (SCSE 2015)

Keywords: Web Services; SOAP; Performance; XML; Network; TSC; Huffman

1. Introduction A SOAP message is an XML-based protocol, which can be used for exchanging information between computers. It allows applications automatically to connect to remote services and invoke remote methods. The main challenge of SOAP performance is when exchanging large SOAP messages over a network, which increases the transmission time and causing performance delay [1]. Therefore, creating webservices without considering the performance of SOAP messages, could reduce overall system’s performance. In this work, different compression algorithms will be used to compress the SOAP messages in order to measure the performance of webservices using compressed techniques. Tagged Sub-optimal Code (TSC) [2] is a variable-length sub-optimal code, which will be used in this work compared

1877-0509 © 2015 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of organizing committee of The 2015 International Conference on Soft Computing and Software Engineering (SCSE 2015) doi:10.1016/j.procs.2015.08.430

168

Iehab Al Rassan and Haifa Alyahya / Procedia Computer Science 62 (2015) 167 – 169

to Huffman encoding. Figure 1 shows the Quad tree for TSC. In previous work [3], we introduced a methodology to compress a SOAP message and compare it to different compression algorithms. This works shows the results of the methodology we have proposed.

Fig. 1. TSC Quad Tree

2. Experimental results Applying compression techniques to web services will summarize the outcomes of this work. The reduction in XML message size can be noticed when compressed using BPE, Huffman, TSC, or JBE compression techniques. However, the compression ratios and performance are different. BPE compression has excluded from the beginning, because it achieved poor compression ratio and slow encoding time (800% slower encoding time compared with Huffman encoding). Huffman algorithm achieved good compression ratio when it is applied to SOAP message compared to TSC. However, time encoding and decoding in web services using TSC is faster than using Huffman technique. Results show that web-services using TSC achieved better performance compared to Huffman algorithm and normal webservices. Table 1 shows the times needed to send 10 different SOAP messages with different sizes using normal web service, web services compressed using Huffman encoding, and web service compressed using TSC. Results show that the performance of SOAP messages using TSC is better than using Huffman encoding or just normal web-services in all different sizes of SOAP messages. Table 1. Comparison between normal web Service, web Service using Huffman ,and web service using TSC.

File Size

50 bytes 250 bytes 500 bytes 1500 bytes 5 KB 30 KB 100 KB 500 KB 1 MB 2 MB Average

Time in milliseconds Webservice Web-service Using Using TSC Huffman 1.060 0.735 0.0042 1.092 7.886 0.0072 1.141 17.466 0.0078 1.064 60.828 0.0096 1.320 310.619 0.0126 2.478 2244.813 0.0162 7.021 20207.854 0.012 17.304 298773.294 0.0174 35.669 863069.306 0.0096 67.382 2655668.53 0.0126 13.55345 384036.1 0.01092

Normal webservice

Iehab Al Rassan and Haifa Alyahya / Procedia Computer Science 62 (2015) 167 – 169

3. Conclusion Web services with large SOAP messages in size encounter transmission delay over the Internet, which is one of the web services issues. As a result, using compression algorithm that has features and capabilities to improve performance in transmission over a network is a good choice. TSC is one of those algorithms, which has these capabilities and shows increasing the performance of web services when it compared to Huffman encoding and normal webservices. References 1. Minaei, B., Saadat, P. (2009). SOAP Serialization Performance Enhancement Design and implementation of a middleware. International Journal of Computer Science and Information Security, IJCSIS, Vol. 6, No. 1, pp. 105-110, October 2009, USA. 2. Bellaachia, I. AL Rassan . Fast Searching Over Compressed Text Using a New Coding Technique: Tagged Sub-optimal Code (TSC). DCC 2004: IEEE Data Compression Conference, Snowbird, Utah, March 23 - 25, 2004. 3. Iehab Alrassan and Haifa Alyahya. Improve XML Web Services' Performance Using SOAP Compression. The 2014 International Conference on Semantic Web and Web Services (SWWS'14v), Nevada, 2104.

169

Suggest Documents