+ All Categories
Home > Documents > Energy Efficient WiFi Display - Xinyu Zhang

Energy Efficient WiFi Display - Xinyu Zhang

Date post: 30-Jan-2016
Category:
Upload: ucsbiee
View: 13 times
Download: 0 times
Share this document with a friend
Description:
Xinyu Zhang 2015-2016 Seminar SeriesNovember 19, 2015WiFi Display, also called Miracast, is an emerging technology that allows a mobile device (source) to duplicate its screen content to an external display (sink) via a peer-to-peer WiFi link. Despite its growing popularity and diverse application scenarios, Miracast involves a host of power hungry operations like video encoding/decoding and WiFi, which can quickly drain off a mobile device’s battery. In this talk, I will introduce our recent study on the energy efficiency issue in Miracast. We started with in-depth measurement experiments to quantify and model key parameters that scale Miracast’s power consumption. With the measurement observations, we designed a set of optimization mechanisms to bypass redundant codec operations, reduce video tail traffic, and relocate the Miracast channel dynamically to maximize transmission efficiency. This optimized Miracast framework has been implemented on an Android smartphone. Experimental results show that the legacy Miracast system costs 1.3 to 2.4 Watts. Our framework reduces the power consumption by 29% to 61%, depending on the Miracast application’s video traffic patterns. Our experiments also point to other potential issues in Miracast, such as long setup latency and response time.
Popular Tags:
27
Energy Efficient WiFi Display* Xinyu Zhang Department of Electrical and Computer Engineering University of Wisconsin - Madison http://xyzhang.ece.wisc.edu Assistant Professor *Joint work with Chi Zhang (UW-Madison) and Ranveer Chandra (Microsoft Research)
Transcript
Page 1: Energy Efficient WiFi Display - Xinyu Zhang

Energy Efficient WiFi Display*

Xinyu Zhang

Department of Electrical and Computer Engineering

University of Wisconsin-Madison

http://xyzhang.ece.wisc.edu

Assistant Professor

*Joint work with Chi Zhang (UW-Madison) and

Ranveer Chandra (Microsoft Research)

Page 2: Energy Efficient WiFi Display - Xinyu Zhang

WiFi Display (Miracast)

A screen cast technology

Specified by the WiFi Alliance

Source mirrors its screen to sink via a WiFi Direct connection

Local streaming mode Tethered streaming mode

ApplicationScreen

composerH.264 codec

WiFi-Direct

interface

Page 3: Energy Efficient WiFi Display - Xinyu Zhang

WiFi Display (Miracast)

Miracast is gaining popularity

Source: supported by Android 4.2+, Windows Phone 8.1

Sink: many HDMI adapters available

Supporting applications without modification

Page 4: Energy Efficient WiFi Display - Xinyu Zhang

Miracast ≠ Chromecast

Chromecast

Google’s proprietary technology

Source redirects video links to sink;

Sink (Chromecast dongle) directly downloads video from Internet

Need application support

Page 5: Energy Efficient WiFi Display - Xinyu Zhang

Energy Efficiency of Miracast

Why it matters?

The Miracast source is usually a battery-powered mobile device

Power consumption on Galaxy Nexus: up to 2.3 W

Didn’t the industry (WiFi Alliance) do anything about it?

Yes! Video frame skipping (VFS)

How effective is it?

Stop video transmission opportunistically when screen is static.

Page 6: Energy Efficient WiFi Display - Xinyu Zhang

Miracast Source Power Consumption

Measured on a Galaxy Nexus smartphone, running Android 4.2.2

Continuous streaming Bursty video

Power consumption dominated by network and codec operations

Page 7: Energy Efficient WiFi Display - Xinyu Zhang

Modeling Miracast Power Consumption

Power to keep NIC

ready

Network power consumption:

Additional power

needed for Tx/Rx

Obtained via factory

calibration

Depends on factory calibrated

factors and two run-time factors

(contention intensity and data-rate)

(i) Channel & interface (ii) Contention intensity (ii) Video data rate

Page 8: Energy Efficient WiFi Display - Xinyu Zhang

Modeling Miracast Power Consumption

Codec power consumption:

Frame rate Bit rate Resolution

Encoding/decoding

energy per-bit

Overhead (CPU/mem)

energy per-bit

(i) Video data rate (ii) Video resolution (ii) Video frame rate

Page 9: Energy Efficient WiFi Display - Xinyu Zhang

Existing Solutions for Mobile Energy Efficiency

Energy aware mobile video streaming

Proxy-based protocols

Server-based protocolsReshape video traffic into bursts to

create sleeping opportunities for

mobile receiver

Video data packets over WiFi

Sleep opportunities

Network interface power optimization

Scheduling protocols to maximize sleep opportunities

Page 10: Energy Efficient WiFi Display - Xinyu Zhang

Energy Efficient Miracast: Solution Set

Reducing network/codec operations

Adaptive video tail cutting

Video pass-through

Background suppression

Improving transmission efficiency

Batching and prefetching

PSM lock

Off-channel Miracast

Page 11: Energy Efficient WiFi Display - Xinyu Zhang

Video Tails in Miracast

Video tail

One “screenshot” cannot be encoded into a single video frame

Need to add “tail” frames to gracefully refine video quality

In Android Miracast, the tail lasts 1 second (30 frames)

1 second

This matters only for screens that stay for a while -- Continuous

screen update (e.g., video playback) doesn’t have the problem

Page 12: Energy Efficient WiFi Display - Xinyu Zhang

Video Tails in Miracast

Video tails improve video quality, but cost energy

Linear growth in

power consumption

Marginal improvement

in video quality

Page 13: Energy Efficient WiFi Display - Xinyu Zhang

Adaptive Tail Cutting

Principle: cutting redundant codec operations

Instead of always generating 30 tail frames, stop encoding

immediately when video quality stops improving

When to stop?

Straightforward way: compute PSNR of encoded frames.

Limitation: Substantial processing overhead

Observation: variance of frame

size drops when PSNR plateaus

Adaptively cut the tail when

variance of frame size is low

Page 14: Energy Efficient WiFi Display - Xinyu Zhang

Adaptive Tail Cutting

Implementation on Android

Page 15: Energy Efficient WiFi Display - Xinyu Zhang

Video Pass-through

Principle: bypass codec operations and offload to sink

For streaming apps, the source needs to decode video for screen

display, and then reencode it for Miracasting

We can bypass such

decoding/reencoding operations

Replace with an H.264

format checker

Page 16: Energy Efficient WiFi Display - Xinyu Zhang

Video Pass-through

Hiding video pass-through from the sink

Timestamp conversion

Sequence number conversion

Convert video’s native timestamp to Miracast timestamp

Native sequence number is not readable (encoded in unknown format)

Leverage H.264 configuration frames to reset sequence number, when

video cast starts/ends

Page 17: Energy Efficient WiFi Display - Xinyu Zhang

Batching and Prefetching

Principle: amortizing transmission overhead

Applicable to locally stored video

A tradeoff between saving energy and wasted transmission

Send entire batch before the due time of first frame

Frequency of user

interruption

Page 18: Energy Efficient WiFi Display - Xinyu Zhang

Off-channel Miracast

Principle

Select an energy-efficient channel for the Miracast link,

independent of any infrastructure (access points)

Approach

Energy-aware off-channel selection

Model-driven approach to determine energy-optimal channel

Ping delay Contention intensity Channel-dependent power

consumption in Miracast

“Off-channel”Assigned

channel

Page 19: Energy Efficient WiFi Display - Xinyu Zhang

Other Optimizations

Optimizing WiFi Power Saving Mode (PSM) tails

WiFi interface remains on for a while, after each transmission

Optimizing invisible background traffic

Silent background audio

Background image layers

PSMlock: shorten PSM tail and let it sleep immediately,

leveraging Miracast’s periodic traffic pattern

Page 20: Energy Efficient WiFi Display - Xinyu Zhang

Implementation

Application-transparent implementation

Based on Android 4.2.2 Miracast framework

Source is a Galaxy Nexus phone

Any application can run on top

Video streaming: local streaming, tethered streaming

Bursty video: Presentation (30s per slide), map navigation (1s per frame)

Page 21: Energy Efficient WiFi Display - Xinyu Zhang

Effectiveness of PSMlock

PSMlock saves up to 5.2%

Page 22: Energy Efficient WiFi Display - Xinyu Zhang

Effectiveness of Video Tail Cutting

Tail-cutting does not affect

video qualityPower saving depends on

traffic intensity and burstiness

Page 23: Energy Efficient WiFi Display - Xinyu Zhang

Effectiveness of Video Pass-through

Pass-through saves substantial

processing power

Pass-through plus prefetching

reduces latency

Page 24: Energy Efficient WiFi Display - Xinyu Zhang

Effectiveness of Off-channel Miracast

Power saving (in tethered streaming mode) depends on

contention intensity

Model-driven approach can effectively select top-

3 most energy efficient channels

Page 25: Energy Efficient WiFi Display - Xinyu Zhang

System-level Power Saving

A: no contention

B: severe contention

29% to 61% saving, depending how application refreshes screen

Page 26: Energy Efficient WiFi Display - Xinyu Zhang

Conclusion

Profiling power consumption of WiFi Display (Miracast)

Major cost: codec and network

Optimizing Miracast energy efficiency

System-level mechanisms to improve energy efficiency

Optimizing codec+network operations

A measurement profiling and modeling framework

Future directions

Higher layer: application-aware power optimization

Lower layer: integrating with WiFi Direct’s sleep scheduling

Page 27: Energy Efficient WiFi Display - Xinyu Zhang

Thank you!


Recommended