how youtube performance is improved in the t-mobile networkfiles.meetup.com/13678942/how youtube...

32
How YouTube Performance is Improved in the T-Mobile Network Jie Hui , Kevin Lau , Ankur Jain , Andreas Terzis , Jeff Smith T Mobile , Google

Upload: others

Post on 20-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

How YouTube Performance is Improved in the T-Mobile Network

Jie Hui★, Kevin Lau★, Ankur Jain†, Andreas Terzis†, Jeff Smith★

T Mobile★, Google†

Page 2: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Speakers

Jie Hui

Kevin Lau

Ankur Jain

Andreas Terzis

Jeff Smith

Page 3: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Executive Summary

Background: Since 2012, Google and T-Mobile

have been working together to optimize the delivery

of YouTube traffic in the T-Mobile network.

Scope of this talk: By bypassing TCP proxy for

YouTube, T-Mobile users enjoyed a higher quality

video experience while saving battery life at the

same time.

Other optimization experiments will be discussed in

next steps and future talks.

Note: YouTube traffic was not prioritized or treated preferentially in any other way

Page 4: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Why YouTube

Make the customer experience more enjoyable!

QoE is measurement of the enjoyment of the customer experience.

Page 5: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Mobile QoE 2.0

Network

Experience Real User Speed

Experience Real User Application

Experience

Crowd-sourced from devices Network-instrumented

1.0 1.5 2.0

Figure originally from : I. Grigorik, “High Performance Browser Networking: What every web developer should know about networking and web performance”. O’Reilley

Media, 2013

Page 6: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Unique Mobile Challenges

Page 7: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

To From

Customer Evolution

● High speed WiFi

● Wireless but mostly local/stationary

● Shared with few users

● Machines with access to power

● High speed cellular

● Full mobility and everywhere!!!

● Shared with high number of users

● Power limited devices

Page 8: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Mobile Data Usage is Growing Exponentially

HTTP Traffic Data Demand Growth

Page 9: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Wireless 101

• At the RAN

– Devices communicate with the eNodeB and the RAN is a complex system managing scheduling,

wireless channel prediction/transmission, and mobility handovers.

– The air medium is shared and inherently lossy; signals levels are time varying and different per

user. User experience and device power use varies.

• At the Core

– There are a number of gateways and proxies to “normalize” RAN & external network

characteristics (packet loss, delay)

– Concealment of packet drops allow the use of protocols like TCP over wireless

– As RAN moves to LTE, Core network also need to evolve to improve data performance,

especially for streaming video

backhaul

Figure originally from : I. Grigorik, “High Performance Browser Networking: What every web developer should know about networking and web performance”. O’Reilley

Media, 2013

Page 10: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

YouTube Video Delivery

in Mobile Network

Page 11: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Life of a Mobile Video Playback

UE

Mobile Proxy

NAT

Figure originally from : I. Grigorik, “High Performance Browser Networking: What every web developer should know about networking and web performance”. O’Reilley

Media, 2013

Page 12: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Mobile Proxies Hide Cellular Variability -

Important for 2G & 3G

Split TCP

High latency and variability

even more difficult for TCP

Medium latency and variability

difficult for TCP

Low latency and variability

easy for TCP

Page 13: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Proxies Apply Various Optimizations to

Traffic - Just in Time delivery is one

example Direct Connection Proxied

Page 14: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Experiment

• What happens if we bypass the proxy?

– Quality of User Experience

– Network usage

• To answer this question we bypassed TCP proxies for

YouTube traffic and measured difference

Page 15: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Experiment and Results

Page 16: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

● Without the proxies, the servers need to protect and

fully utilize the network

o Chunked delivery

o FQ/Pacing: limit Tx rate

Especially important

after being idle

Tx rate ≤2*cwnd/RTT

o cwnd clamp: limit the

amount of Data In transit

cwnd ≤ Bandwidth Delay

Product

o TCP stack that tolerates

RTT variance and packet

reordering

Being a good network citizen

Time

Data Data in

transit

Tx

rate

GGC Tx rate Rx rate

Rx

rate

Page 17: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Evaluation Metrics I: Network level

1. Distributions of

a. Minimum round trip times (RTT)

b. Retransmission rates

c. Connection throughputs

d. median(RTT)/min(RTT)

2. Network Usage

Page 18: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Comparing distributions: Quantile-Quantile plots

● We have distributions of proxied and direct connections

● How do we compare the two distributions?

● One answer: Quantile-Quantile plot

y1

x1

x1 y1 y2 x2

y2

x2 x Distribution

x Distribution

y Distribution

y D

istr

ibu

tion

Page 19: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Direct=Proxied

Direct is

better

Proxied

is better

0.000001 0.0001 0.01 1 100

0.0

00

01

0

.00

1 0

. 1

1

0

Direct connections have fewer retransmitted bytes

Page 20: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Direct

Proxied

Lower

throughput

peak

Lower

throughput

due to clamp

10 100 1,000 10,000

100,000

kbits/sec

Direct connections have higher throughput

Page 21: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Direct

Proxied

Proxied connections

are more bloated

Page 22: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Removing proxy did not significantly change overall network traffic

Slight increase in busy hour and daily volume

No significant change in other metrics

BH

Vo

lum

e

Time

Proxied Direct Connection Proxied Direct Connection A

vg

. P

ow

er

Utiliz

atio

n

Time

Busy Hour Volume Power Utilization

Page 23: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Evaluation Metrics II: Quality of Experience

1. Join Latency: T1-T0

2. Playback time: TP= (T2-T1) + (T4-T3) + (T7-T6) + (T9-T8)

3. Total Rebuffer time: T3-T2

4. Battery Lifetime (Power consumed during [T0,T9])

Play

Rebuffering

Playing

Seeking

Paused

T0

T1

T2

T3

T4

T5

T6

T7

T8

T9

Initial/forced buffering

Page 24: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Worse

Performance

Direct

is better

Proxied

is better Direct=Proxied

Direct connections rebuffer for less time

Page 25: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Worse

Performance

Direct connections have lower join latency

Page 26: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

~20% Reduction in Battery Consumption

Access 2.3 Min 5+ Min 15+ Min Overall

LTE 20.11% 19.28% 21.62% 21.84%

HSPA 16.49% 15.10% 19.64% 19.46%

Direct Connection Battery Savings

Direct Connection

Proxied Connection

PCH Low power, listening only

FACH Medium Power, Shared Channel, low speed

DCH High Power, dedicated channel, High speed

Page 27: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Summary Findings from Proxy Bypass

Bypassing proxies

• Lowers retransmission rates, increases throughput,

and decreases bufferbloat

• Does not negatively impact network traffic

• Improves quality of experience for video

• Increases battery lifetime

Page 28: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

What else?

Page 29: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Other components impacting QoE (completed, in progress)

Internet

Deploy GGC to serve

video from location

closer to user.

GGC supports IPv6.

Also bypasses CGN

device that could

impact performance

Adaptive BitRate (talk

on Thursday)

YouTube workload

analysis shows caching

at base station not

effective in reducing

congestion on RAN

backhaul.

Burst optimization,

Congestion Notification

(In/Out band)

Page 30: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Examples of RAN optimizations

• Burst Optimization – Send bigger chunks at longer

intervals to amortize cost of

radio wakeup/ timeout

C1 C2 C3 C4 Bytes

Delivered

Time

● Pacing traffic at the server for congested

cells

o in-band (e.g., ECN)

o out-of-band

Such optimizations require applications to have

knowledge of partial network configuration/state

Active

Timeout

Idle

Radio State

C1+C2 C3+C4

Time

Core Network

GGC

Page 31: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Open exchange of information

• T-Mobile and Google experimenting with APIs for

programmatic exchange of information – T-Mobile → Google

• Congestion level/radio state transition timers of cells,

throughput guidance, etc

• Use this information for server/client optimizations

– Google → T-Mobile • Aggregated, anonymized QoE metrics

• Diagnostics to identify problems

• Exploring out-of-band, in-band and device APIs

• Future work to standardize these APIs so that other

carriers & content providers also benefit

Page 32: How YouTube Performance is Improved in the T-Mobile Networkfiles.meetup.com/13678942/How YouTube Performance is Improved … · How YouTube Performance is Improved in ... wireless

Take Away

• Mobile QoE 2.0 requires a new collaborative approach

• Future directions to standardize

– mobile application RUM

– application awareness of network state

• Connect with us - T-Mobile: [email protected]

- Google: [email protected]

Mobile

Application/

Services

Mobile

Operator