Network Performance of HTML5 Web Application in Smartphone
Total Page:16
File Type:pdf, Size:1020Kb
Master Thesis Electrical Engineering Nov2011 Network Performance of HTML5 Web Application in Smartphone Saroj Sharan Regmi Suyog Man Singh Adhikari School of Computing Blekinge Institute of Technology 371 79 Karlskrona Sweden This thesis is submitted to the School of Computing at Blekinge Institute of Technology in partial fulfillment of the requirements for the degree of Master of Science in Electrical Engineering. The thesis is equivalent to 20 weeks of full time studies. Contact Information: Author(s): Saroj Sharan Regmi E-mail: [email protected] Suyog Man Singh Adhikari E-mail: [email protected] University advisor(s): David Erman School of Computing Blekinge Institute of Technology 371 79, Karlskrona, Sweden E-mail: [email protected] University Examiner(s): Patrik Arlos School of Computing Blekinge Institute of Technology 371 79, Karlskrona, Sweden E-mail: [email protected] School of Computing Internet : www.bth.se/com Blekinge Institute of Technology Phone : +46 455 38 50 00 371 79 Karlskrona Fax : +46 455 38 50 57 Sweden ii ABSTRACT Hypertext markup language 5 (HTML5), a new standard for HTML, enriched with additional features is expected to override all the basic underlying overhead needed by other applications. By the advent of new extension, HTML5, the web’s basic language is transplanted from a simple page layout into rich web application development language. Furthermore, with the release of HTML5, traditional browsing is expected to change and modify accordingly and on the other hand the potential users will have an alternative rather than sticking in platform and OS dependent native applications. This thesis deals with the readiness assessment of HTML5 with regard to different smart phones- Android and Windows. In order to visualize the fact, we analyzed different constraints like DNS lookup time, page loading time, memory and CPU consumption associated with two applications-Flash and HTML5 running right through the smart phones. Furthermore, the comparative analysis is performed in different network scenarios- Wi-Fi and 3G and user experience is estimated based on network parameters. From the experiments and observations taken, we found that android phones provide better support for HTML5 web applications than windows mobile devices. Also, the HTML5 applications loading time is limited by the browser rendering time rather that the content loading time from the network and is also dependent on hardware configuration of device used. Keywords: HTML5, Flash, DNS lookup time, CPU, Memory, Page loading, 3G, Wi-Fi. I II ACKNOWLEDGEMENT We are grateful to our parents for their enormous support, encouragement and blessing which strengthen our ability to complete this task. We would like to express our heartfelt gratitude to our supervisor Dr. David Erman, School of Computing, Blekinge Institute of Technology, for his advice and support. Without his guidance and instruction this thesis work would not reach so far. At last but not the least, we would also like to thank Dr. Patrik Arlos for granting us scenario for the thesis work and Ravichandra Kommalapati for his technical support and friendly environment. We would also like to thank Mr. Seth Fogie of AirScanner for providing us with free two years license for the use of MobileSniffer tool for our purpose of study. III IV TABLE OF CONTENTS ABSTRACT ...........................................................................................................................................I ACKNOWLEDGEMENT ................................................................................................................ III TABLE OF CONTENTS .................................................................................................................... V LIST OF FIGURES .......................................................................................................................... VII LIST OF TABLES ........................................................................................................................... VIII 1 INTRODUCTION ....................................................................................................................... 1 1.1 AIMS AND OBJECTIVES ........................................................................................................... 1 1.2 SCOPE OF THESIS .................................................................................................................... 2 1.3 PROBLEM STATEMENT ........................................................................................................... 2 1.4 RESEARCH QUESTIONS ........................................................................................................... 2 1.5 RESEARCH METHODOLOGY ................................................................................................... 2 1.5.1 Selection of Papers ........................................................................................................... 3 1.5.2 Network Behavior study ................................................................................................... 3 1.5.3 Page Loading Time .......................................................................................................... 3 1.5.4 CPU and Memory Utilization .......................................................................................... 3 1.6 MOTIVATION ......................................................................................................................... 4 1.7 MAIN CONTRIBUTION ............................................................................................................. 4 1.8 THESIS OUTLINE .................................................................................................................... 4 2 LITERATURE REVIEW AND STATE OF THE ART ........................................................... 5 2.1 MOBILE PHONES .................................................................................................................... 5 2.2 HTML5 ................................................................................................................................. 5 2.3 SURVEY OF RELATED WORKS ................................................................................................ 5 3 EXPERIMENT SETUP ............................................................................................................... 7 3.1 EXPERIMENTAL ENVIRONMENT ............................................................................................. 7 3.2 NETWORK PERFORMANCE EXPERIMENTAL SETUP ................................................................. 8 3.3 PAGE LOADING TIME EXPERIMENTAL SETUP ......................................................................... 8 3.4 SMARTPHONE PERFORMANCE EXPERIMENT SETUP ............................................................... 9 3.5 ON THE VALIDITY OF TOOLS USED ........................................................................................ 9 3.5.1 MobileSniffer ................................................................................................................... 9 3.5.2 Sharkroot .......................................................................................................................... 9 3.5.3 Task Manager ................................................................................................................ 10 3.5.4 Process Monitor ............................................................................................................. 10 4 RESULT AND ANALYSIS ....................................................................................................... 11 4.1 NETWORK PERFORMANCE CONSTRAINT-DNS LOOKUP TIME ............................................... 11 4.1.1 Wi-Fi Network scenario ................................................................................................. 11 4.1.2 3G Network Scenario ..................................................................................................... 12 4.1.3 Summary ........................................................................................................................ 13 4.2 NETWORK PERFORMANCE CONSTRAINT- PAGE LOADING TIME ............................................ 13 4.2.1 Wi-Fi Network Scenario ................................................................................................ 13 4.2.2 3G Network scenario...................................................................................................... 14 4.2.3 Summary ........................................................................................................................ 15 4.3 DEVICE PERFORMANCE CONSTRAINT -MEMORY CONSUMPTION .......................................... 15 4.3.1 Wi-Fi Network Scenario ................................................................................................ 15 4.3.2 3G Network Scenario ..................................................................................................... 16 4.3.3 Summary ........................................................................................................................ 16 4.4 DEVICE PERFORMANCE CONSTRAINT -CPU CONSUMPTION ................................................. 17 4.4.1 Wi-Fi Network Scenario ................................................................................................ 17 4.4.2 3G Network Scenario ..................................................................................................... 17 V 4.4.3 Summary .......................................................................................................................