Revisiting Network Energy Efficiency of Mobile Apps: Performance in the Wild

Z. Morley Mao (茅斫青), Sanae Rosen, Ashkan Nikravesh, Yihua Guo, Zhuoqing Morley Mao, Feng Qian, Subhabrata SenInternet Measurement Conference 2015 · DOI

TL;DR

This paper reveals that mobile apps continue to be major battery drains due to excessive and often unnecessary background network traffic. By analyzing two years of real-world user data, the researchers identify a new problem of persistent foreground traffic after apps are backgrounded and highlight significant energy inefficiencies across apps with similar functionalities, suggesting a need for better OS-level management of app network activity.

What Problem Does This Paper Address?

Smartphone apps have become ubiquitous, but their battery consumption remains a significant concern. While CPU performance has dramatically improved, battery capacity has lagged. A major culprit for this battery drain is inefficient network activity, particularly "background traffic" – data sent and received when the app isn't actively being used by the user. Previous research has touched upon this, but this paper aims to provide a comprehensive, long-term, "in-the-wild" analysis of this problem, uncovering new issues and quantifying the extent of energy waste across a broad range of popular applications. The core challenge is understanding why and how apps waste energy through their network behavior, especially when users aren't directly interacting with them.

Methods

The researchers employed a two-pronged approach:

  • Longitudinal User Study: They collected detailed network traces (including packet payloads, user input, and process mappings) from 20 real smartphone users over 22 months. This allowed them to observe app behavior in its natural environment, capturing real-world usage patterns and network activity.
  • In-Lab Testing: To validate findings and understand the root causes of observed network behavior, they conducted controlled experiments in the lab. This included creating custom web pages to test specific hypotheses about how browsers handle background traffic.

A key methodological contribution is their approach to assigning network energy consumption. They attribute "tail energy" (energy consumed by the radio after data transmission) to the last packet sent during a tail period to avoid double-counting, and they define total cellular network energy as the sum of energy assigned to each app. They also categorize Android process states (foreground, visible, perceptible, service, background) to analyze energy consumption across different operational modes.

Datasets

The primary dataset used in this study was collected from 20 University of Michigan students using Samsung Galaxy S III smartphones over 623 days (December 2012 to November 2014). This dataset comprises approximately 125 GB of raw cellular and WiFi packet traces, user input, and context data. The researchers focused on cellular traffic due to its higher energy consumption. They also leveraged existing power models for LTE networks and data from previous studies for comparison.

Key Insights and Ideas

  • Persistent Foreground Traffic is a New Problem: A significant finding is that network traffic initiated in the foreground often persists even after an app is sent to the background, sometimes for extended periods (hours to days). This is a new energy drain not fully appreciated before.
  • Vast Inefficiency Across Similar Apps: Apps with nearly identical functionality can exhibit energy consumption differences of up to an order of magnitude. This highlights that developers have widely varying approaches to managing background network activity, with many clearly not adopting energy-efficient practices.
  • "Idle" Apps Still Draining Power: Many apps, even those rarely used by a user, continue to generate background network traffic for days. This suggests a significant opportunity for energy savings if the operating system could proactively manage or terminate such idle applications.
  • Tail Energy Matters: The intermittent nature of some background traffic, even if small in data volume, can lead to disproportionately high energy consumption due to "tail energy" from keeping the cellular radio active.

Key Results

  • Background Traffic Dominates: 84% of total network energy consumption occurs in the background state.
  • Persistent Traffic Prevalence: 84% of apps send 80% of their background traffic within 60 seconds of being sent to the background, indicating a widespread issue with traffic not terminating promptly.
  • Browser Inefficiency: For Chrome, approximately 30% of its network energy consumption was attributed to background activity, with some web pages continuing to send requests indefinitely.
  • Significant Potential Savings: Simulating the preemptive killing of idle background apps after three days of inactivity showed potential energy reductions of up to 16% for specific apps (like Weibo) on days they were not used.

Limitations and Future Work

  • OS-Level Solutions: The authors acknowledge that while app developers can improve, OS-level interventions are crucial. They point to Android M's "Doze" and "App Standby" features as positive steps in this direction, suggesting future work could evaluate these mechanisms.
  • Developer Awareness: They emphasize the need for developers to be more aware of foreground/background states and to explicitly terminate network transfers when apps are minimized.
  • Cross-Platform Comparison: While they briefly touch upon iOS and Windows Phone, a deeper comparative analysis of how different operating systems manage background tasks and their impact on energy efficiency would be valuable.
  • User Benefit vs. Developer Flexibility: The paper highlights a trade-off between giving developers flexibility and preventing excessive energy consumption, suggesting further research into finding the optimal balance.
  • Data Limitations: While the dataset is extensive, it's limited to a specific set of devices and users, and the inability to decrypt SSL traffic means some network activity might be obscured.

Summary updated

BibTeX
@inproceedings{2015revisiting,
  author = {Z. Morley Mao (茅斫青) and Sanae Rosen and Ashkan Nikravesh and Yihua Guo and Zhuoqing Morley Mao and Feng Qian and Subhabrata Sen},
  title = {{Revisiting Network Energy Efficiency of Mobile Apps: Performance in the Wild}},
  booktitle = {Internet Measurement Conference},
  year = {2015},
  doi = {10.1145/2815675.2815713},
}
Figure