http 2
play

HTTP/2 Daniel Stenberg, Mozilla @bagder HTTP Today HTTP/2 basics - PowerPoint PPT Presentation

HTTP/2 Daniel Stenberg, Mozilla @bagder HTTP Today HTTP/2 basics Status Future Daniel Stenberg network hacker at Email: daniel@haxx.se Twitter: @bagder Web: daniel.haxx.se Blog: daniel.haxx.se/blog Internet Today Internet


  1. HTTP/2 Daniel Stenberg, Mozilla @bagder

  2. HTTP Today HTTP/2 basics Status Future

  3. Daniel Stenberg network hacker at Email: daniel@haxx.se Twitter: @bagder Web: daniel.haxx.se Blog: daniel.haxx.se/blog

  4. Internet Today Internet Today HTTP for everything everything HTTP for The web has changed changed The web has signifjcantly since 1996 since 1996 signifjcantly

  5. Request and payload growth 2100K 2100K 100 100 80 80 httparchive.org 800K 800K in the last 4 years...

  6. connections per page g r o . e v i h c r a p t t h

  7. Roundtrip Bonanza

  8. Latency adds up Page load time 4,000 ms e h s l e Round trip 750 ms B time e k i M 0 ms 240 ms

  9. Head of line blocking Head of line blocking

  10. HTTP 1.1 HTTP 1.1 workarounds workarounds

  11. Spriting Spriting

  12. Inlining Inlining .icon1 { background: url(data:image/png;base64,<data>) no-repeat; } .icon2 { background: url(data:image/png;base64,<data>) no-repeat; }

  13. Concatenation $ cat *.js > single-monster.js

  14. Sharding

  15. RFC 7540 RFC 7540

  16. Just a new framing layer maintains HTTP paradigms http:// and https:// URLs remain HTTP/1.1 will linger for decades Proxies to convert 1:1

  17. Conservative in what you accept less optional parts no minor version!

  18. Binary No more telnet tricks Easier framing TLS and compression anyway... Wireshark inspector frame types, like HEADERS and DATA

  19. Multiplexed (1/2) Multiple streams over a single physical connection Max number of parallel streams set by peer

  20. Multiplexed (2/2)

  21. One TCP connection One TCP connection

  22. Better utilization of bandwidth

  23. Streams Streams Dynamic priority Dependencies A A Flow control B C B C

  24. Header compression headers are big and repetitive 1.1 has no header compression HPACK

  25. Server push Give me HTML please! Here's HTML for you Here's CSS for you

  26. Stricter TLS Stricter TLS TLS version 1.2+ only TLS version 1.2+ only Stricter cipher suite requirements Stricter cipher suite requirements No compression No compression No renegotiations No renegotiations

  27. HTTP/2 is not Mandatory TLS Changing HTTP headers

  28. How will HTTP/2 afgect users? Faster page loads More responsive loading More HTTPS

  29. How will HTTP/2 afg fgect web development? Most things are unafg fgected HTTP/1 work-arounds hurt HTTP/2 perf Need to do separate tweaks Optimal HTTP/2 usage will need some time

  30. Implementations Akamai Ghost, Apache Traffjc Server, http4s-blaze, Chromium, Chicken Scheme hpack lib, cl-http2- protocol, curl and libcurl, Deuterium, Ericsson MSP, F5, H2O, Haskell http2 lib, http-2, http2, hyper, hyper, Jetty, LiteSpeed Enterprise, Lucid, Microsoft, mod_h2, Mozilla Firefox, Netty, nghttp2, NGINX, node-http2, OkHttp, OpenLiteSpeed, Protocol::HTTP2, Brocade SteelApp Traffjc Manager, Sasazka, second-transfer, Test GFE, Trusterd, Twitter, Undertow, Warp, Wireshark https://github.com/http2/http2-spec/wiki/Implementations

  31. browsers

  32. Will HTTP/2 get widely deployed? Will HTTP/2 get widely deployed? YES YES

  33. Will HTTP/2 get widely deployed? Will HTTP/2 get widely deployed? “Look at IPv6” Look at IPv6” “ All major browsers All major browsers Many sites already did SPDY Many sites already did SPDY Apache, nginx and more Apache, nginx and more

  34. HTTP/2 – October 2015 Browsers only over HTTPS Firefox: 14% HTTP/2 30% of HTTPS is HTTP/2 HTTP/2 is used 15 times more than HTTP/1.0 Google servers: 18% HTTP/2 HTTP/2 in 70% of browsers in use right now IPv6: 9% today, almost 20 years after fjrst RFC

  35. Future Future HTTP/2 lays the foundation for the future HTTP/2 lays the foundation for the future Time to drop legacy HTTP “mistakes”? Time to drop legacy HTTP “mistakes”? HTTP/3 might happen faster HTTP/3 might happen faster QUIC QUIC

  36. Final recap Final recap Binary and multiplexed Binary and multiplexed Primarily over TLS Primarily over TLS Users won't see a “2” Users won't see a “2” It's already here It's already here

  37. Thank you!

Recommend


More recommend