website content performance modeling html5 conference 2014

24
©2014 AKAMAI | FASTER FORWARD TM Website Content Performance Modeling HTML5 Conference, Oct. 21st, 2014 Pierre Lermant, Akamai Technologies @plermant

Upload: pierre-lermant

Post on 02-Jul-2015

206 views

Category:

Internet


0 download

DESCRIPTION

The time it takes to download http resources is a corner stone of a website performance, and ultimately user experience. In this presentation, we review the different network and system setup variables that affect the speed at which each piece of dynamic content gets fetched from a client (e.g. browser) , and explain their relative impact. By leveraging the massive web traffic seen on the Akamai platform, the existing literature and the typical website properties listed at httparchive.org we present a performance model both simple and comprehensive. In particular, we share empirical data for the middle-tier observed RTT, which is one of the main factor impacting download latencies over long distances. To illustrate the model via a web-based chart, we plot the expected performance against the distance client-origin, based on a key set of parameters. It will allow its users to better understand what variables really matter and take actions to improve their website performance

TRANSCRIPT

Page 1: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Website Content

Performance Modeling

HTML5 Conference, Oct. 21st, 2014Pierre Lermant, Akamai Technologies

@plermant

Page 2: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What problem are we trying to solve?

● Help IT organizations optimize their serving infrastructure

by modeling website dynamic resource download times

Page 3: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Existing Models:

● Can be too simple:○ It is bounded by the speed of light !

● Can be too theoretical

● As a result, no reliable and practical ways to predict

download times of dynamic website resources

Page 4: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Trivia Question

● How long does it take to download a 50K resource

from New-York to San-Francisco (~2,500 miles)?

Page 5: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What parameters are at play?

Page 6: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What parameters don’t really matter

● Last Mile bandwidth is rarely a download bottleneck

Sources: https://www.belshe.com/2010/05/24/more-bandwidth-doesnt-matter-much/

Akamai State of the Internet report, Q2 2014

Page 7: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What parameters don’t really matter, contd.

● Client receiving window buffer size○ i.e. how much data can be ‘in flight’ between a server and a client

○ Typically set at 65 K, larger than most website resources

● Network loss○ Assuming here it’s negligible for small resources

Source: httparchive.org

Page 8: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What parameters have most impact

● New or reused connection, HTTP vs HTTPS○ TCP connection establishment can require many round trips

● Round Trip Times○ Last mile latency: Can vary greatly, from ~0 to 100s of ms

○ Middle Mile RTT: Has most impact over long-haul distances

Page 9: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

What parameters have most impact, contd.

● Origin server initial TCP congestion window○ How many packets can be sent at the start of data download

● Content size and distance client-server

Page 10: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Middle Mile RTT

● Proven difficult to model○ Cannot be approximated by mathematical equations

○ Is driven by peering negotiations between ISPs

● -> Built an experimental setup to model its value

Page 11: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

RTT modeling experimental setup

Ping agents (ICMP)

Ping targets, distribution

matching internet usage

Page 12: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

RTT/Distance typical distribution

Page 13: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Middle-Mile RTT (ms) ~ 3.1 % * Distance (miles)For distances > 500 miles

SF - NY RTT

at speed of

light = 27 ms

SF - NY RTT

thru internet ~

80 ms

Page 14: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Impact of content size & connection type, part 1

Client Server

Page 15: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Impact of content size & connection type, part 2

Initcwnd = 3 Initcwnd = 10

Page 16: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Impact of content size & connection type, part 3

● Total download size (KB), per number of Round Trips

50 K

Page 17: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Connection Reuse: CDN Intermediary Paradigm

Page 18: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Download times of a 50 KB resource*

● Direct is ~ 400 ms (Initcwnd=3), ~ 300 ms (Initcwnd=10)

● Thru CDN intermediaries ~ (80+10+10) ~ 100 ms

* New http connection, 2,500 miles client-server distance, no network loss, no first

or last mile latencies

Page 19: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Take Aways

Page 20: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Main take aways

● Median Middle Mile RTT ~ 3 % of Distance Client-Server○ This is the primary performance driver over long distances

● Client bandwidth and TCP buffer size are rarely a

download bottleneck

Page 21: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Main take aways, contd.

● Critical impact of TCP initial congestion window

(=Initcwnd) for new connections.○ Recent server builds (Linux > 2.6.39) set initcwnd to 10

● Dramatic differences between new and re-used

connections over long distances○ Set permanent connections at your origin if possible

○ Consider CDN intermediaries for far-away end-users

Page 22: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Live Model, Screenshot 1

Source: http://www.akamai.com/html/ms/delivering-dynamic-web-content.html

Page 23: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Live Model, Screenshot 2

Page 24: Website content performance modeling html5 conference 2014

©2014 AKAMAI | FASTER FORWARDTM

Live Model, Screenshot 3