Mobile Phones and Cloud Computing
Total Page:16
File Type:pdf, Size:1020Kb
Mobile phones and cloud computing A quantitative research paper on mobile phone application offloading by cloud computing utilization Oskar Hamrén Department of informatics Human Computer Interaction Master’s programme Master thesis 2-year level, 30 credits SPM 2012.07 Abstract The development of the mobile phone has been rapid. From being a device mainly used for phone calls and writing text messages the mobile phone of today, or commonly referred to as the smartphone, has become a multi-purpose device. Because of its size and thermal constraints there are certain limitations in areas of battery life and computational capabilities. Some say that cloud computing is just another buzzword, a way to sell already existing technology. Others claim that it has the potential to transform the whole IT-industry. This thesis is covering the intersection of these two fields by investigating if it is possible to increase the speed of mobile phones by offloading computational heavy mobile phone application functions by using cloud computing. A mobile phone application was developed that conducts three computational heavy tests. The tests were run twice, by not using cloud computing offloading and by using it. The time taken to carry out the tests were saved and later compared to see if it is faster to use cloud computing in comparison to not use it. The results showed that it is not beneficial to use cloud computing to carry out these types of tasks; it is faster to use the mobile phone. 1 Table of Contents Abstract ..................................................................................................................................... 1 Table of Contents ..................................................................................................................... 2 1. Introduction .......................................................................................................................... 5 1.1 Previous research ......................................................................................................................... 5 1.2 Purpose .......................................................................................................................................... 7 1.3 Research questions ....................................................................................................................... 7 1.4 Hypothesis ..................................................................................................................................... 7 1.5 Research plan ............................................................................................................................... 8 1.6 Limitations .................................................................................................................................... 8 2. Defining cloud computing .................................................................................................... 9 2.1 The five essential characteristics of cloud computing ............................................................... 9 2.2 Cloud computing service models .............................................................................................. 10 2.2.1 Software as a Service (SaaS) ................................................................................................ 10 2.2.2 Platform as a Service (PaaS) ................................................................................................. 10 2.2.3 Cloud Infrastructure as a Service (IaaS) ............................................................................... 11 2.3 Cloud computing deployment models ...................................................................................... 12 2.3.1 Public cloud .......................................................................................................................... 12 2.3.2 Private cloud ......................................................................................................................... 12 2.3.3 Hybrid cloud ......................................................................................................................... 12 2.3.4 Community cloud ................................................................................................................. 12 2.4 The history of cloud computing ................................................................................................ 13 2.4.1 Virtualization ........................................................................................................................ 14 2.4.2 Utility computing .................................................................................................................. 14 2.4.3 Outsourcing ........................................................................................................................... 14 2.4.4 Grid Computing .................................................................................................................... 15 3. Mobile phone development ................................................................................................ 16 3.1 Mobile platforms and operating systems ................................................................................. 16 3.2 Mobile phones and cloud computing ........................................................................................ 17 4. Method ................................................................................................................................. 18 4.1 Quantitative and qualitative methods ...................................................................................... 18 4.2 Choice of method ........................................................................................................................ 18 4.3 Choice of research questions ..................................................................................................... 19 4.4 Data gathering ............................................................................................................................ 19 4.4.1 Choosing target mobile phone devices and programming language .................................... 19 4.4.2 Choosing tests ....................................................................................................................... 19 4.4.3 Choosing cloud vendor ......................................................................................................... 20 4.4.3 Building the mobile phone application and cloud servlets ................................................... 21 4.4.4. Application walkthrough ..................................................................................................... 23 4.4.5 Distributing the application .................................................................................................. 25 4.5 Data processing ........................................................................................................................... 26 2 4.6 Statistical methods ..................................................................................................................... 27 4.6.1 Statistical method for comparing the test results .................................................................. 27 4.6.2 Statistical method for comparing download and upload ratio to the cloud based test results ....................................................................................................................................................... 28 4.6.3 Statistical method for comparing phone performance to the local based test results ........... 28 5. Result ................................................................................................................................... 29 5.1 Comparing the cloud-based and local based test results ........................................................ 29 5.2 The cloud based tests results relationship with download and upload ratio ........................ 31 5.3 Local based test results relation to mobile phone performance ............................................ 37 6. Discussion ............................................................................................................................ 44 6.1 Upload/download ratio effect on the cloud test results ........................................................... 44 6.2 Phone performance effect on the local test results .................................................................. 45 6.3 Answering the sub questions ..................................................................................................... 45 6.3.1 Comparison of fast and slow mobile phones with fast or slow network connection ............ 45 6.3.2 Suitable functions for cloud offloading ................................................................................ 46 6.3.3 Other advantages and disadvantages of using the cloud in mobile phone applications ....... 47 References ............................................................................................................................... 48 Appendix 1 – Word list .......................................................................................................... 52 Appendix 2 – The image ........................................................................................................ 55 Appendix 3 – Tests and timer source code ........................................................................... 56 PrimeClacLocal.java .......................................................................................................................