33
Device-Based LTE Latency Reduction at the Application Layer Zhaowei Tan, Jinghao Zhao, Yuanjie Li, Yifei Xu, Songwu Lu

Device-Based LTE Latency Reduction at the Application Layer

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Device-Based LTE Latency Reduction at the Application Layer

Device-Based LTE Latency Reduction at the Application Layer

Zhaowei Tan, Jinghao Zhao, Yuanjie Li,Yifei Xu, Songwu Lu

Page 2: Device-Based LTE Latency Reduction at the Application Layer

2

Latency-Sensitive Mobile Applications

Mobile VR Mobile Gaming Mobile Sensing

• Emerging mobile apps have stringent latency requirement• Small, frequent, yet regular uplink data

Page 3: Device-Based LTE Latency Reduction at the Application Layer

3

Mobile Apps in 4G LTE

These apps typically run on 4G LTE networks, the only large-scale infrastructure for “anywhere, anytime” Internet services

ServerBase stations

CoreNetwork

PhoneDevices

Page 4: Device-Based LTE Latency Reduction at the Application Layer

4

Latency at Access Network

This work: Reducing LTE access latency for every data packet at the active state, without root privilege

– Complementary to app-specific optimization and control plane latency reduction

– Application-layer solution without root or hardware/firmware change

Base stations

PhoneDevices

Page 5: Device-Based LTE Latency Reduction at the Application Layer

5

Outline

This work: Reducing LTE access latency for every data packet at the active state, without root privilege

This talk:1. What incurs long latency for mobile apps?2. How to reduce the latency components?3. Can we design a solution at the app layer?

Page 6: Device-Based LTE Latency Reduction at the Application Layer

1. Roadblocks for low latency

Page 7: Device-Based LTE Latency Reduction at the Application Layer

7

Methodology for Analysis

Analyze traces from a showcase VR application and PUBG

10-month empirical study 4 US mobile carriers

VR Game

Trace analysis with MobileInsight3GPP standard compliant

Trace Collection Data & Standard Analysis

Page 8: Device-Based LTE Latency Reduction at the Application Layer

8

Who is the Bottleneck?

Intuition:DL incurs high latency for the apps

Reality: Uplink latency is a major latency component

➢ 66-78% of the app network latency is from UL

➢Sufficient bandwidth with new PHY technologies

Page 9: Device-Based LTE Latency Reduction at the Application Layer

9

Why High Uplink Latency?

DRXRelated

BaseSta' on

MobileDevice

Packet arrivesin buffer

DRX (Discontinuous

Reception)Insight 1: Wake up

DRX in advance

Tdrx_dozeDRX ON

DRX OFF

28.3-31.9ms on average

Different from DL DRX latency

Page 10: Device-Based LTE Latency Reduction at the Application Layer

10

BaseSta' on

MobileDevice

Why High Uplink Latency?

Tsr_wait Scheduling Request

Grant

Data

“device has data to send”

4msTsr_grant

Packet arrivesin buffer

DRXRelated

Insight2: Prefetchgrant in advance

12.6-19.1ms on average

SchedulingRelated

Grant > 100BSufficient for sensory data!

Page 11: Device-Based LTE Latency Reduction at the Application Layer

11

BaseSta' on

MobileDevice

Why High Uplink Latency?

Scheduling Request

Grant

Data & BSR (if grant insufficient)

(IfgrantbySRinsufficient)

Tbsr_grant Grant

Data

4ms

4ms

(Ifpacketcorrupted)Tretx NACK & Grant

Data

4ms

4ms

Packet arrivesin buffer

Insight 3: Negligible BSR and ReTx Latency

DRXRelated

SchedulingRelated

BSR and Retx Latency:<1ms on average

Page 12: Device-Based LTE Latency Reduction at the Application Layer

2. Solution to latency reduction

Page 13: Device-Based LTE Latency Reduction at the Application Layer

13

LRP Overview

Resolving the conflicts for low latency

Energy-efficient DRXdoze elimination

Resource-efficient proactive scheduling

Rootless inference of critical parameters

LRP

Mobile OS

LTE radiofirmware

In-device, rootless software solution to 4G/5G latency reduction for mobile apps

Page 14: Device-Based LTE Latency Reduction at the Application Layer

14

LRP Overview

Resolving the conflicts for low latency

Energy-efficient DRXdoze elimination

Resource-efficient proactive scheduling

Rootless inference of critical parameters

LRP

Mobile OS

LTE radiofirmware

In-device, rootless software solution to 4G/5G latency reduction for mobile apps

Page 15: Device-Based LTE Latency Reduction at the Application Layer

15

BaseSta' on

MobileDevice

Energy-Efficient DRX Doze Elimination

• Idea: Send a rouser in advance– Data packet arrives at DRX ON → no doze latency

BaseSta' on

MobileDevice

Tdrx_doze

Tdrx_doze

DRX ON

DRX OFFDRX ON

DRX OFF

Legacy LTELRP

DRX OFF

rouser

Page 16: Device-Based LTE Latency Reduction at the Application Layer

16

Energy-Efficient DRX Doze Elimination

• Idea: Send a rouser in advance– Data packet arrives at DRX ON → no doze latency

• Issue: Early rouser incurs high energy overhead

• Solution: Timing control for rouser– Send the rouser before data packet– Data periodicity makes this possible; need to know

Tdrx_dozeTdrx_doze

Page 17: Device-Based LTE Latency Reduction at the Application Layer

17

Resource-Efficient Proactive Scheduling

BaseSta' on

MobileDevice

Legacy LTELRP

• Idea: Send a prefetcher in advance– Prefetcher triggers SR and asks for a grant

Scheduling Request

Grant

BaseSta' on

MobileDevice

Scheduling Request

Grantprefetcher

Page 18: Device-Based LTE Latency Reduction at the Application Layer

18

• Idea: Send a prefetcher in advance– Prefetcher triggers SR and asks for a grant

• Issue 1: An early/late prefetcher misses latency reduction or wastes requested resource

• Solution: Timing control on prefetcher– Send the rouser before data packet

• Issue 2: Insufficient grant for prefetcher + data– Rare occurrence and limited impact

Resource-Efficient Proactive Scheduling

Tsr_grant

Page 19: Device-Based LTE Latency Reduction at the Application Layer

3. Inferring key parameters from the application layer

Page 20: Device-Based LTE Latency Reduction at the Application Layer

20

Rootless Inference of Critical Parameters

• Design LRP as a software daemon without root privilege– <10% of mobile devices are rooted

Challenge: Infer LTE-specific parameters;

How to single out access network latency?

Solution idea: Send a pair of controlled packets and observe their receiving interval

Page 21: Device-Based LTE Latency Reduction at the Application Layer

21

Rootless Inference of Critical Parameters

Solution idea: Send a pair of controlled packets and observe their receiving interval

Grant

Request +

Tsr_grant Tsr_grant≈

Page 22: Device-Based LTE Latency Reduction at the Application Layer

22

Rootless Inference of Critical Parameters

Solution idea: Send a pair of controlled packets and observe their receiving interval

Alt: Send DNS requests and measure interval of responses

Premise: The receiving interval dominated by UL LTE• Core network and LTE DL: Little impact on the packet

pair interval

Page 23: Device-Based LTE Latency Reduction at the Application Layer

23

Discussion on LRP Design

• LRP applies to 5G• LRP still helps reduce latency, if

– there is background traffic

– the packet arrival is not strictly regular or predictable

• LRP has little impact on the network side• LRP does not affect those not using LRP

Page 24: Device-Based LTE Latency Reduction at the Application Layer

24

Implementation

• Implement LRP on Android – Work as a standalone user-

space daemon

– Provide APIs for the applications

Page 25: Device-Based LTE Latency Reduction at the Application Layer

Evaluation• Can LRP reduce latency for mobile apps?• How much overhead does LRP occur?• Can LRP benefit apps in 5G?

Page 26: Device-Based LTE Latency Reduction at the Application Layer

26

Latency Reduction for Mobile Apps

• Cover 375 cells, 5 operators, and 2 countries• 4 mobile applications• Experiments under different mobility

0.3-7.4x median LTE network latency reductionUp to 3.5x 95-th percentile LTE network latency reduction

Page 27: Device-Based LTE Latency Reduction at the Application Layer

27

Latency Reduction for Mobile Apps

Page 28: Device-Based LTE Latency Reduction at the Application Layer

28

Latency Reduction: VR Demo

Page 29: Device-Based LTE Latency Reduction at the Application Layer

29

Micro-Benchmarks

• DRX doze Latency

• Scheduling latency

• Accuracy for rootless inference

21-41ms median latency reduction40-57ms 95-th percentile latency reduction

0.3-2.5x median latency reductionUp to 1.7x 95-th percentile latency reduction

1.3-3.2% rootless inference error rate

Page 30: Device-Based LTE Latency Reduction at the Application Layer

30

LRP Overhead

LRP exploits timing control to reduce its overhead

Small overhead!0.05-0.33KB/s data overheadUp to 4.3% extra messages1.0-2.5% extra battery cost

Page 31: Device-Based LTE Latency Reduction at the Application Layer

31

Can LRP be Used in 5G?

Yes!

• Evaluate LRP in AT&T 5G networks– Measure RTT without access to fine-grained logs

Reduce RTT by 4.3-20.5ms for apps

Page 32: Device-Based LTE Latency Reduction at the Application Layer

32

Summary

• LTE UL poses as a roadblock for latency-sensitive apps

• LRP: A rootless mobile app latency solution– Unveil and reduce LTE UL latency elements

– Infer LTE parameters without root

• Applicable to both 4G and 5G

Page 33: Device-Based LTE Latency Reduction at the Application Layer

Thank you!

For code release:http://metro.cs.ucla.edu/lrp.html