Accelerating the Mobile Web with Selective Offloading

Accelerating the Mobile Web with Selective Offloading

Accelerating the Mobile Web with Selective Offloading Xiao Sophia Wang Haichen Shen David Wetherall University of Washington University of Washington University of Washington Seattle, Washington, USA Seattle, Washington, USA Seattle, Washington, USA [email protected] [email protected] [email protected] ABSTRACT making it less attractive on mobile. Our preliminary tests Mobile Web page loads are notoriously slow due to limited on the top ten mobile pages suggest that mobile page load computing power and slow network access. Our preliminary times are 1.5x (3x) of desktop counterparts in initial (re- experiments show that computation is a significant fraction peated) loads. of page load time on mobile devices. Also, energy arguments Our previous research in desktop settings that quantifies suggest that it will stay this way. To compensate the limited the composition of page load time suggests that computa- computing power, our position is that offloading portions of tion is significant [15]. We extensively loaded the top 200 the page load process to the cloud can significantly improve Alexa [1] Web pages and found that computation comprises mobile page load time. We propose a measurement-based 35% of page load latencies on the critical path (the longest framework that allows to offload portions of mobile page bottleneck path) even on an iMac with a 3GHz quad core load process to the cloud. Unlike browsers that offload fixed CPU and a 8GB memory. This fraction is as much as 40% parts of page loads such as Opera Mini, our framework will on a machine with 2GHz CPU and a 4GB memory. Our allow to offload any portion of the page load process. We mobile study on sampled Web pages also suggests that com- will experiment with a large variety of real-world situations putation is a key bottleneck of Web page loads on mobile (e.g., varying computing power on mobile devices) by of- devices that have less computing power than desktop. And floading varying portions of page loads using our framework. it is likely that mobile computing power will stay this way Informed by the experimental results, we will develop a mo- in the future due to limited energy on mobile devices. bile browser that considers the diverse situations as well as To compensate the limited computing power on mobile energy and data usage. devices, a common approach is offloading to the cloud. How- ever, little has been done to offload mobile Web page loads in the research community because it requires deep under- Categories and Subject Descriptors standing of how browsers load Web pages. Offloading is now C.2.4 [Computer-Communication Networks]: Dis- adopted in more browsers in the industry such as Opera tributed Systems|Distributed applications Mini [11], Amazon Silk [12], and recently released Android Chrome Beta [2]. Those browsers do offload to the cloud, but it is unclear how well they perform. Opera Mini com- General Terms presses pages to a markup format called OBML that reduces Design both transfer time and data usage [10]. Yet it still leaves the full logic of page load processing to mobile devices and so Keywords does Android Chrome Beta. Amazon Silk moves portions of page loads to the cloud which depend on the structure of Web; Mobile Web; Page load; Cloud; Offload Web pages. But, it is unknown how the Silk browser divides the page load process and the choice of offloaded portions 1. INTRODUCTION should consider ambient situations, not only Web pages. Web pages delivered by HTTP(S) have become the de- Our position is that offloading portions of the page load facto standard for connecting billions of users to Internet process to the cloud can significantly accelerate the mobile applications. While the Web provides many favorable fea- Web. We want a mobile browser that selectively offloads tures (e.g., mashups) as opposed to native applications, it portions of page loads in any real-world situations. In the incurs noticeably high page load latencies on mobile devices, long term, the browser should be able to properly offload even if mobile network technologies or computing power evolve. We believe that research on offloading is valuable Permission to make digital or hard copies of all or part of this work for personal or because it has potential to help energy and data usage, not classroom use is granted without fee provided that copies are not made or distributed only performance, while we note that the constraint of the for profit or commercial advantage and that copies bear this notice and the full cita- three metrics is likely to stay on mobile without external tion on the first page. Copyrights for components of this work owned by others than support such as offloading. ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or re- In the rest of the position paper, Section 2 identifies the publish, to post on servers or to redistribute to lists, requires prior specific permission opportunities for offloading and suggests that offloading mo- and/or a fee. Request permissions from [email protected]. MCC’13, August 12, 2013, Hong Kong, China. bile page loads can help both network and computation. Copyright 2013 ACM 978-1-4503-2180-8/13/08 ...$15.00. 45 Section 3 examines the challenges in making offloading de- powerful in computing as of today. Therefore, offloading cisions and discusses issues raised by using offloading (e.g., computation to the cloud offers the opportunity to reduce broken HTTPS end-to-end security and broken cache). We page load time. The argument here is similar to code offload review the background of the page load process in Section for mobile native applications [5, 3, 4], but offloading tech- 4 and propose a measurement-based framework that allows niques differ because computation for page loads has certain to offload any portions of the page load process to the cloud patterns (i.e., HTML parsing, JavaScript and CSS evalua- in Section 5. Section 6 reviews related work and Section 7 tion, rendering). concludes. We demonstrate this opportunity by measuring the com- putation time of loading a page on a mobile phone and on 2. OPPORTUNITIES a laptop. We use our recently developed tool WProf [15] that captures the dependencies and the time to load and We begin with examining the opportunities offered by of- compute each Web object during a page load. The mobile floading mobile Web pages. Note that offloading mobile Web phone is a Nexus S with 1GHz CPU and 512MB memory applications exhibits different opportunities than offloading and the laptop is a Macbook Pro with 2.66GHz CPU and mobile native applications. This is because Web applica- 8GB memory. We find that the time to evaluate the same tions differ from native applications in two aspects: (i) Web piece of JavaScript is less than 20 milliseconds on the lap- pages are downloaded when being requested and thus net- top but is as large as 100 milliseconds on the mobile phone. work activities and computation are inter-dependent, and The time to evaluate the same set of CSS is 100 milliseconds (ii) computation of different kinds of objects (e.g., HTML on laptop compared to over 200 milliseconds on the mobile and CSS) incurs different patterns. The result is that of- phone. A recent study also suggests that the gap between floading techniques that have been used for mobile native smartphone and computer is 5.5 to 23.1 times in JavaScript applications [5, 3, 4] cannot be directly applied to Web ap- execution speed [7]. plications. While offloading the logics of the page load process to the To make the case that offloading is a viable approach to cloud suggests exciting benefits, Opera mini and Android accelerate the mobile Web, we identify three opportunities Chrome beta only compress the Web pages in the cloud while offered by offloading. This includes i) reduced round trips, leaving the full logics of page load processing to the mobile ii) reduced time in computation, and iii) consistency with device. We consider offloading partial logics of the page load other mobile constraints. process to the cloud which offers more opportunities. 2.1 Reduced round trips Unlike offloading native applications that introduce addi- 2.3 Consistency with other mobile constraints tional round trips between the mobile device and the cloud, For techniques to be practical on mobile devices, one offloading Web applications can reduce round trips between has to consider their compatibility with other mobile con- the mobile device and the cloud. straints. There are three key constraints on mobile phones, To demonstrate this opportunity, we first look at how a say performance, power consumption, and 3G/4G data us- mobile device interacts with Web servers when loading a age. Below, we examine whether offloading to the cloud Web page. When a page request to example.com (fictitious) helps relax each constraint. Performance is a key constraint is made, the mobile browser performs a DNS lookup, sets on mobile devices which incur less computing power and up a TCP connection, waits for a response, and downloads slower access network than desktop counterparts. We have the response header and content. Often, the request is redi- demonstrated that offloading can reduce round trips and rected to another mobile page, e.g., m.example.com. Upon computation time which in turn can reduce the total page receiving the first byte of the root HTML page, the mo- load time. Thus, we do not elaborate here. bile browser iteratively parses the HTML page and requests embedded objects, possibly from other Web servers, e.g., Power consumption. Battery power is a scarce resource foo.com and bar.com, until every Web object is fetched, on mobile devices that limits the deployment of more com- parsed, and loaded.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us