MaJaB: improving resource management for web-based applications on mobile devices

The Web has become the host platform for interactive and collaborative applications that usually consist of multiple Web services. This transition is pushing the browsers to perform operating system like functionalities for better resource utilization. Unfortunately, there exists limited support for resource management on current Web platforms. This problem is further aggravated on mobile devices because of their limited resources. If current Web communication APIs were used as-is, mobile users would suffer from low responsiveness, battery drainage, and expensive charges. This paper describes the design and implementation of Mobile Ajax Broker (or MaJaB), a middleware layer that performs management and coordination of networking activities of multiple Web services residing in a Web page. MaJaB integrates a range of optimization techniques that were typically applied at the OS level including scheduling, multiplexing, piggybacking, and priority-switching. This work has been implemented as part of EasyMeet, a Web service that enables anytime, anywhere conference participation using any device. MaJaB is built using standard Web technologies to promote easy deployment across platforms. We have evaluated MaJaB over a real-world workload that we observed during our four-month pilot of EasyMeet. Our results show that MaJaB was successful in achieving its goal and, compared to a naive implementation, reduced the percentage of CPU busy periods by 99%, energy consumption by 21%, and network traffic by 25-81% for different participants. While all those improvements result in better user experience, the reduction in network traffic in particular can translate into over $800 saving in international roaming even for a two-user meeting that lasts only for an hour.

[1]  B. Schneirdeman,et al.  Designing the User Interface: Strategies for Effective Human-Computer Interaction , 1998 .

[2]  Carla Schlatter Ellis,et al.  The case for higher-level power management , 1999, Proceedings of the Seventh Workshop on Hot Topics in Operating Systems.

[3]  Douglas L. Jones,et al.  GRACE-1: cross-layer adaptation for multimedia quality and battery energy , 2006, IEEE Transactions on Mobile Computing.

[4]  Richard Bentley,et al.  The World Wide Web as Enabling Technology for CSCW: The Case of BSCW , 1997, Computer Supported Cooperative Work (CSCW).

[5]  Tim O'Reilly,et al.  What is Web 2.0: Design Patterns and Business Models for the Next Generation of Software , 2007 .

[6]  Paramvir Bahl,et al.  Wake on wireless: an event driven energy saving strategy for battery operated devices , 2002, MobiCom '02.

[7]  Tommi Mikkonen,et al.  Web browser as an application platform: the lively Kernel experience , 2008 .

[8]  Pieter Ballon Mobile Web 2.0: The innovator's guide to developing and marketing next generation wireless/mobile applications, A. Jaokar, T. Fish, Futuretext, London (2006). 335pp., £19.99, Paperback, ISBN: 0-9544327-6-2 , 2008 .

[9]  Pablo Rodriguez,et al.  Performance optimizations for wireless wide-area networks: comparative study and experimental evaluation , 2004, MobiCom '04.

[10]  Kang G. Shin,et al.  Smart power-saving mode for IEEE 802.11 wireless LANs , 2005, Proceedings IEEE 24th Annual Joint Conference of the IEEE Computer and Communications Societies..

[11]  Robin Kravets,et al.  Application‐driven power management for mobile communication , 2000, Wirel. Networks.

[12]  Roy T. Fielding,et al.  Principled design of the modern Web architecture , 2000, Proceedings of the 2000 International Conference on Software Engineering. ICSE 2000 the New Millennium.

[13]  Alec Wolman,et al.  Wireless wakeups revisited: energy management for voip over wi-fi smartphones , 2007, MobiSys '07.

[14]  Andrew S. Tanenbaum,et al.  Operating systems: design and implementation , 1987, Prentice-Hall software series.

[15]  Ááá Èèôö,et al.  GPRSWeb : Optimizing the Web for GPRS Links , 2003 .

[16]  M. Carter Computer graphics: Principles and practice , 1997 .

[17]  Ajit Jaokar,et al.  Mobile Web 2.0: The Innovator's Guide to Developing and Marketing Next Generation Wireless/Mobile Applications , 2006 .

[18]  Jesse James Garrett Ajax: A New Approach to Web Applications , 2007 .

[19]  Mahadev Satyanarayanan,et al.  Agile application-aware adaptation for mobility , 1997, SOSP.

[20]  Jason Flinn,et al.  quFiles: a unifying abstraction for mobile data management , 2008, HotMobile '08.

[21]  Eyal de Lara,et al.  Efficient and transparent dynamic content updates for mobile clients , 2006, MobiSys '06.

[22]  Prasun Dewan,et al.  An editing-based characterization of the design space of collaborative applications , 1994 .

[23]  Lu Luo,et al.  Energy-Adaptive Display System Designs for Future Mobile Environments , 2003, MobiSys '03.

[24]  Jason Flinn,et al.  Self-Tuning Wireless Network Power Management , 2005, Wirel. Networks.

[25]  V. Leitáo,et al.  Computer Graphics: Principles and Practice , 1995 .

[26]  Roy T. Fielding,et al.  Hypertext Transfer Protocol - HTTP/1.0 , 1996, RFC.

[27]  Kimitake Hasuike,et al.  Cellular Phone as a Collaboration Tool that Empowers and Changes the Way of Mobile Work: Focus on Three Fields of Work , 2005, ECSCW.

[28]  Jon Howell,et al.  Leveraging Legacy Code to Deploy Desktop Applications on the Web , 2008, OSDI.

[29]  Arie van Deursen,et al.  Performance Testing of Data Delivery Techniques for AJAX Applications , 2009, J. Web Eng..

[30]  Michael L. Scott,et al.  Energy efficiency through burstiness , 2003, 2003 Proceedings Fifth IEEE Workshop on Mobile Computing Systems and Applications.

[31]  Jason Flinn,et al.  Ghosts in the machine: interfaces for better power management , 2004, MobiSys '04.