google search accelerating youtube - northeastern university

15
Accelerating YouTube & Google Search Andreas Terzis

Upload: others

Post on 04-May-2022

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Google Search Accelerating YouTube - Northeastern University

Accelerating YouTube & Google SearchAndreas Terzis

Page 2: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

YouTube Statistics

● YouTube is a large fraction of Internet traffic globally1

○ 17% NA, 25% Europe, 33% LATAM, 23% APAC of fixed-line traffic● Mobile makes ~40% of YouTube’s global watch time● Over 6B hours of video watched each month on YouTube2

● 100 hours of video are uploaded to YouTube every minute● ~8M users concurrently saw Felix Baumgartner jump from space

[1] https://www.sandvine.com/downloads/general/global-internet-phenomena/2013/2h-2013-global-internet-phenomena-report.pdf[2] http://www.youtube.com/yt/press/statistics.html

Page 3: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

How YouTube works: Mapping

① Client issues HTTP(S) request for manifest from YT Front End: GET /watch?v=n_6p-1J551Y② Mapping infrastructure determines cache that the user should contact③ YTFE returns Manifest with videoplayback URLs for different encoding schemes/rates/video sizes④ Client resolves xxx.googlevideo.com -> x.y.z.w (inside carrier’s addr space)

GGC

Carrier

YTFE

Mapping Google

DNS

x.y.z.w

Page 4: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

How YouTube works today: Video Playback

⑤ Client issue HTTP(S) videoplayback requests from nearest Google Global Cache (GGC)● HTTP range requests for video chunks (100’s KB - MB)● ABR algorithm at the client determines requested format for the next video chunk

○ ABR selection depends on multiple factors: network rate, screen size, client resources, etc.

GGC

Carrier

YTFE

Mapping Google

DNS

x.y.z.w

Page 5: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

Delivering Video to Mobile Networks: TCP Proxies

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 6: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

Challenging the assumption

● Conventional wisdom suggests that TCP proxies improve performance in cellular networks

● 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 7: Google Search Accelerating YouTube - Northeastern University

Direct=Proxied

Direct is better

Proxied is better

0.000001 0.0001 0.01 1 100

0.00

001

0

.001

0. 1

1

0

Direct connections have fewer retransmitted bytes

Page 8: Google Search Accelerating YouTube - Northeastern University

DirectProxied

Lower throughput peak

Lower throughput due to clamp

10 100 1,000 10,000 100,000

kbits/sec

Direct connections have higher throughput

Page 9: Google Search Accelerating YouTube - Northeastern University

DirectProxied

Proxied connectionsare more bloated

Page 10: Google Search Accelerating YouTube - Northeastern University

Removing proxy did not significantly change overall network traffic

Slight increase in busy hour and daily volumeNo significant change in other metrics

BH

Vol

ume

Time

Proxied Direct Connection Proxied Direct ConnectionA

vg. P

ower

Util

izat

ion

Time

Busy Hour Volume Power Utilization

Page 11: Google Search Accelerating YouTube - Northeastern University

Evaluation Metrics II: Quality of Experience

1. Join Latency: T1-T02. Playback time: TP= (T2-T1) + (T4-T3) + (T7-T6) + (T9-T8)3. Total Rebuffer time: T3-T24. Battery Lifetime (Power consumed during [T0,T9])

PlayRebuffering

Playing

Seeking

Paused

T0 T1 T2 T3 T4T5T6 T7T8 T9

Initial/forced buffering

Page 12: Google Search Accelerating YouTube - Northeastern University

WorsePerformance

Direct is better

Proxied is betterDirect=Proxied

Direct connections rebuffer for less time

Page 13: Google Search Accelerating YouTube - Northeastern University

WorsePerformance

Direct connections have lower join latency

Page 14: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

● Large portion of users in emerging markets access the Internet over 2G networks

● End-to-end Latency is 2 components● Byte reduction can only improve Response Receipt / Render

● Request time is driven by RTT to closest Google front end (= 4* RTTs for HTTPS)

Decreasing web search latency on 2G networks

BrowserrequestsSRP

1st response bytes rcvd

Render(minimal javascript)

Request Time

Wake up Radio

DNS TCP / SSL init

Late load javascript for interactive features

Page 15: Google Search Accelerating YouTube - Northeastern University

Google Confidential and Proprietary

RTT Distribution for Indian ISP

0 x 2x 3x 4x 5x 6x 7x 8x

RTT as a function of network type

● RTT between UEs and closest Google server

● Considerable variation in RTT

● Where is the variation coming from?