Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. HTTP/2 and a faster Web What it is, what it does and what does it mean.

Slides:



Advertisements
Similar presentations
Building Fast 3rd-Party Webapps O'Reilly Velocity Web Performance and Operations Conference 24 June Lessons.
Advertisements

Hotmails Performance Tuning Best Practices Aladdin A. Nassar Hotmails Performance Champion Microsoft.
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
Incentives Build Robustness in BitTorrent Bram Cohen.
1. 2 Branch Office Network Performance Caches content downloaded from file and Web servers Users in the branch can quickly open files stored in the cache.
Networking Problems in Cloud Computing Projects. 2 Kickass: Implementation PROJECT 1.
Module 5: TLS and SSL 1. Overview Transport Layer Security Overview Secure Socket Layer Overview SSL Termination SSL in the Hosted Environment Load Balanced.
SPDY - Clean Slate HTTP About SPDY o What is SPDY o Goals o Features About HTTP o Simple HTTP o Pipelining for cuncurrency o Pipelining doesn’t help SPDY.
Demystifying Page Load Performance with WProf Aruna Balasubramanian With Xiao (Sophia) Wang, Arvind Krishnamurthy, and David Wetherall University of Washington.
By Jory Cohen Made for CISC856, Spring 2010 Thanks to Dr. Amer, Mike Belshe(Google), Jon Leighton.
Dynamic Adaptive Streaming over HTTP2.0. What’s in store ▪ All about – MPEG DASH, pipelining, persistent connections and caching ▪ Google SPDY - Past,
1 Content Delivery Networks iBAND2 May 24, 1999 Dave Farber CTO Sandpiper Networks, Inc.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Dan Stolts IT Pro Evangelist US DPE - North East Microsoft Corporation
MyCloudIT Removes the Complexity of Moving Cloud Customers’ Entire IT Infrastructures to Microsoft Azure – Including the Desktop MICROSOFT AZURE ISV: MYCLOUDIT.
An Analysis of Internet Content Delivery Systems Stefan Saroiu, Krishna P. Gommadi, Richard J. Dunn, Steven D. Gribble, and Henry M. Levy Proceedings of.
Citrix Partner Update The Citrix Delivery Centre.
How does it work?. What is the Internet? Computer Protocols TCP/IP: Transmission Control Protocol/Internet Protocol HTTP: Hypertext Transfer Protocol.
1 Web Proxies Dr. Rocky K. C. Chang 6 November 2005.
Internet and Intranet Protocols and Applications Section V: Network Application Performance Lecture 11: Why the World Wide Wait? 4/11/2000 Arthur P. Goldberg.
Performance Comparison of Congested HTTP/2 Links Brian Card, CS /7/
Putting the Network to Work
Ch. 28 Q and A IS 333 Spring Q1 Q: What is network latency? 1.Changes in delay and duration of the changes 2.time required to transfer data across.
Web Cache. Introduction what is web cache?  Introducing proxy servers at certain points in the network that serve in caching Web documents for faster.
CS332 Ch. 28 Spring 2014 Victor Norman. Access delay vs. Queuing Delay Q: What is the difference between access delay and queuing delay? A: I think the.
Network. Add speed of light and speed in fiber Inspired by High Performance Browser Networking (Ilya Grigorik) Even Faster Web Sites (Steve Souders)
1: Introduction1 Part I: Introduction Goal: r get context, overview, “feel” of networking r more depth, detail later in course r approach: m descriptive.
IT 210 The Internet & World Wide Web introduction.
UDgateway WAN Optimization. 1. Why UDgateway? All-in-one solution Value added services – Networking project requirements Optimize IP traffic on constrained.
{ Content Distribution Networks ECE544 Dhananjay Makwana Principal Software Engineer, Semandex Networks 5/2/14ECE544.
Midterm Review - Network Layers. Computer 1Computer 2 2.
Web application architecture
Global NetWatch Copyright © 2003 Global NetWatch, Inc. Factors Affecting Web Performance Getting Maximum Performance Out Of Your Web Server.
Overcast: Reliable Multicasting with an Overlay Network CS294 Paul Burstein 9/15/2003.
Protocol(TCP/IP, HTTP) 송준화 조경민 2001/03/13. Network Computing Lab.2 Layering of TCP/IP-based protocols.
Chapter 5 Transport layer With special emphasis on Transmission Control Protocol (TCP)
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
CS 1652 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Jack Lange.
Sharing Information across Congestion Windows CSE222A Project Presentation March 15, 2005 Apurva Sharma.
Kiew-Hong Chua a.k.a Francis Computer Network Presentation 12/5/00.
CSE 461 HTTP and the Web. This Lecture  HTTP and the Web (but not HTML)  Focus  How do Web transfers work?  Topics  HTTP, HTTP1.1  Performance Improvements.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
Networking Basics CCNA 1 Chapter 11.
Empirical Quantification of Opportunities for Content Adaptation in Web Servers Michael Gopshtein and Dror Feitelson School of Engineering and Computer.
PERFORMANCE ENHANCEMENT IN ASP.NET By Hassan Tariq Session #1.
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
HTTP/2 and ATS ATS Fall Summit 2015 Bryan Call. Why HTTP/2? Reduce latency and TCP connection overhead Easier to write well-performing sites (no domain.
The Internet. Important Terms Network Network Internet Internet WWW (World Wide Web) WWW (World Wide Web) Web page Web page Web site Web site Browser.
Flight is a SaaS Solution that Accelerates the Secure Transfer of Large Files and Data Sets Into and Out of Microsoft Azure Blob Storage MICROSOFT AZURE.
HyperText Transfer Protocol (HTTP) Deepti Kulkarni CISC 856: TCP/IP and Upper Layer Protocols Fall 2008 Acknowledgements Professor Amer Richi Gupta.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
WHAT'S THE DIFFERENCE BETWEEN A WEB APPLICATION STREAMING NETWORK AND A CDN? INSTART LOGIC.
By Zach Archer COSC 480. Road map What is SPDY Timeline SPDY gateways Major Advances over HTTP Where SPDY is Currently Closing Thoughts.
Chapter 11 Panko and Panko Business Data Networks and Security, 11 th Edition Copyright © 2016 Pearson Finally, Layer 5!
Week 3: Protocols Protocols. Protocols Protocol Design Packet Length Conveyance Acknowledgement Methodology Error Checking / Correcting Compression Encryption.
DEPLOYING SPDY: 5 “GOTCHAS” TO WATCH OUT FOR BY FASIHULLAH ASKIRI.
How HTTP Works Made by Manish Kushwaha.
Data Virtualization Tutorial… CORS and CIS
Secure Sockets Layer (SSL)
06- Transport Layer Transport Layer.
Utilization of Azure CDN for the large file distribution
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
UDgateway WAN Optimization
Big Red Cloud Offers a Simple Online Accounts Solution for Business Owners and Bookkeepers Hosted on the Powerful Microsoft Azure Platform MICROSOFT AZURE.
File Transfer Issues with TCP Acceleration with FileCatalyst
CSE 461 HTTP and the Web.
AWS Cloud Computing Masaki.
Beyond FTP & hard drives: Accelerating LAN file transfers
Presentation transcript:

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. HTTP/2 and a faster Web What it is, what it does and what does it mean

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Omer Shapira Engineering Manager Traffic

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Content Slides LinkedIn Presentation Template 3

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  LinkedIn  Bandwidth vs. Latency  Challenges with HTTP/1  What is HTTP/2  How the game changes  How LinkedIn adopts HTTP/2 Agenda What to expect before beers

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Social network for business  Founded in 2002  300M+ users  200 countries  Users first Speed matters Who we are and what we do

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  How do we measure the Internet speed?  Trains vs. cars  Bandwidth vs. latency Let’s talk about speed What’s speed, anyway? 6

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Bandwidth is analogous to number of cars on a train  Adding bandwidth is expensive – but simple  Typically sold as “speed”  Matters for streaming  Bandwidth does not matter that much for web or mobile Let’s talk about bandwidth One bazzillion MBps for $4.99 a month + VAT 7

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Shorten the pipe  Or move faster  Speed of light is a hard limit  Decreasing latency is hard and sometimes impossible Let’s talk about latency Latency: time it takes for the server to receive and process request for a page object 8

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  100ms – user perceives as instantaneous.  1s – is about the upper limit of human flow of thought. User loses the feeling direct feedback.  10s – upper limit of attention. Feedback is important, and the chance of context switch is high. Source: Nielsen Norman Group Important latency limits No one will advertise latency 9

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Reality check Signal latency in vacuum and in fiber 10 Source: High Performance Browser Networking

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Low latency  High bandwidth  …  PROFIT! Fast Internet Short latencies, high bandwidth, opportunities

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. In reality Not all latencies are the same 12  Network latency –DNS resolution –SSL/TLS negotiation –Last mile latency typically adds 40ms  Browser latency –DOM/CSSOM latency –Render tree construction –Blocking wait for connection

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Browser latency: what’s up there? No rendering until the tree grows 13 Source: Critical Rendering Path

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. HTTP/1 challenges Things to consider during migration 14

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Mimics interactions between a person and a newspaper –Reading a page takes time. –Transferring text is easy –Single browser window Let’s talk about HTTP Long latencies, low bandwidth, lots of client time 15

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Hyper TEXT transfer protocol In reality we mostly transfer images

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Challenges with HTTP The protocol is getting obsolete

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Challenges with HTTP Congestion Control

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Challenges with HTTP 6 requests in flight, the rest wait… Once all threads are used, the browser blocks the next request…

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Shard1.static.company.com  …  ShardX.static.company.com  X times the connections  BUT –X times the SSL negotiation –X times nascent connections –X times “half closed” connections… Domain sharding to the rescue? 6 requests per shard

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Content is not requested until the base page is parsed Challenges with HTTP Head of line latency

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Headers are transmitted with every request  But some of the headers need to be only transferred once –Accepts-Encoding  Headers are never compressed  Can add extra hop Challenges with HTTP Headers are never compressed Server sent 914 bytes to transfer 57 bytes of response. This is 15x overhead

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. HTTP/2 approach A new perspective 23

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. SPDY – a new beginning Foundations for HTTP/2

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Starts with NPN negotiation (optionally with HTTP upgrade)  If both server and browser support SPDY, they switch to SPDY Overview of HTTP/2 Drop in replacement, transparent for webdevs and SWEs

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Single connection is maintained between browser and server  Congestion window grows, increasing utilization of the network  Unlimited resources in flight – browser is not blocked Overview of HTTP/2 Multiplexing instead of thread pools/domain sharding

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Negotiated over SSL (NPN/ALPN) or as HTTP upgrade  Transport layer security (always in SPDY, optional in HTTP/2)  Compression (including headers) Overview of HTTP/2 Based on SSL/TLS 27

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Server can speculatively push resources to client before base page has been parsed  Resources can be reused between pages through the browser cache. Overview of HTTP/2 Server push 28

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Explicit headers are eliminated  Headers are further compressed Overview of HTTP/2 Header elimination and compression 29

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. HTTP/2 changes the game Things to consider during migration 30

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  chrome –enable-spdy4  IE 11  Firefox 34  Safari… It is (mostly) here Chrome, Firefox, IE with Safari to follow

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Domain sharding  Inlining  Spriting HTTP/1 best practices… Chrome, Firefox, IE with Safari to follow

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Domain sharding –Breaks HTTP/2 prioritization etc –Requires multiple SSL/TLS handshake –Nascent connections break TCP flow control  We are looking for a single connection per domain  Tip: use altName to map multiple domains to same SSL certificate –Single HTTP/2 connection, multiple connections for HTTP/1 Domain sharding – slows HTTP/2 down Chrome, Firefox, IE with Safari to follow

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Inlining != DRY  Instead of inlining resources, modularize codebase and utilize Server Push  SP places object into browser cache  Tombstone records to invalidate cache Inlining – wastes bandwidth Chrome, Firefox, IE with Safari to follow

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Recall browser latency graph  DOM and CSOM are required for rendering  Prioritize JS and CSS over images Control head-of-line latency Chrome, Firefox, IE with Safari to follow

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Transition from HTTP/1 to HTTP/2  Innovation possibilities  Hybrid models New challenges HTTP/2 simplifies delivery, opens new challenges

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Putting SPDY to work at LinkedIn So what? 37

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Anatomy of a page One base page and tons of static content 38 Base page Static Content

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. LinkedIn network stack Or rather non-planar graph 39

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Distribute the content around the globe  Make the web pretty fast by shortening the pipes CDNs Blazing fast, ubiquitous and not flexible

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. There is a CDN edge near you

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Can we beat CDNs locally? Let’s use science to experiment!

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Profile page is better across the board  Homepage is better for regions closer to ECH Comparing SPDY with CDN - results Results Benefits of SPDY increased with for regions close to the PoP

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. LinkedIn network stack Overly simplified

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. LinkedIn network stack Pushing the CDN aside

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Static content vs. base pages – round 2

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved. Combining HTTP/2 with CDNs Deploy HTTP/2 stacks around the globe

Traffic Infrastructure ©2013 LinkedIn Corporation. All Rights Reserved.  Modern CDNs do pretty good job accelerating HTTP  HTTP/2 accelerates web content delivery further  Serving static content through HTTP/2 accelerates LinkedIn page  In the long run, CDNs will support HTTP/2. This will make the web faster for everybody. Bottom line HTTP/2 makes web faster; so do CDNs

Questions

We are hiring