《2017年WEB加速协议先行.pdf》由会员分享,可在线阅读,更多相关《2017年WEB加速协议先行.pdf(31页珍藏版)》请在三个皮匠报告上搜索。
1、WEB?tu.32 实践驱动的IT教育斯这克学院(StuQ),极窑邦旗下实践驱动的盯教育平台。通过线下和线上多种形式的综合学习解决方案F帮助IT从业者和研发团队提升技能水平。10大职业技术领域课程http:/www.stuq.org?2011?-NOW?STGW/?CLB?Web?WEB?WEB?HTTP2?EFI?1?.?L?.?/?2?H?HC?H?LH?H?1?.?.?/?2?H?HC?H?LH?H?HTTP1.1?1500B ASCII?245=?33?21?22?.=?245=?33?21?22?.=?245=?33?21?22?.=?HTTP1.1?-?p
2、ipelining?WEB?CSS Sprites data uri,Inline Images?.?1?333?.?.?2?.?1?333?.?.?2?.?1?333?.?.?2?4?5?.?HTTPS/HTTP2?HTTP1.1?HTTPS?46%?HTTPS HTTP2?2015.5?2017.05?13.7%?+?+server push HTTP1.1?HTTP vs HTTPS?HTTP1.1?HTTPS?K?0+?0+?L?N?S?2?D?H1?H1?2?A?P?+?O?3?A?C?+?.?/?1?+?.?+?HTTPS?HTTP?7?RTT 500ms?50ms?15ms?RT
3、T?00?:msWIFI4G3G2GHTTPS=HTTP+SLOW?Why Slow?-?10000?-Chrome Remote debug-Linux traffic control-performance timing apiWhy Slow?-?RTT?session?-?G?C?Why Slow?itemstart_load css_load js_load dom_ready active req_timetcp_reuse705720147TLSv1.29669821165tcp_first_use14221430
4、2856ecdhe-rsa-aes128-gcm-sha2569759948163android_wifi_spdy_tcp_first_use4android5_tcp_first_use(http)9997246186ios8_tcp_reuse(http)349382737441893100?X5?4G?HTTP2?TLS1.2?ECDHE?tls session?WEB?TCP?TLS?HTTP2?CDN?TCP?TFO(tcp fast open)80?487ms-390ms
5、iOS9+,kernel v3.7+?3-10 BBR?TFO?2?+?+?+?+?2?+?2?2?TLS?session resumptionSession idSession ticketClientHello Session IDSession Cache?ID?Sessoin ticketClientHello?Session ticket?iOS Qzone SSL?200ms-100ms?50%iOS?TLS?-False Start?Perfect Forward SecretECDHE?DHE?False StartSSL?30%TLS?-OCSP StaplingOCSPOC
6、SP Stapling?7?TLS?-dynamic record size?-record?TLS?-ssl_buffer_size 4k-patchTLS head of line blockingTLS1.3?-0RTT HandshakeTLS1.3?Openssl 1.1.1?Nginx 1.13.0?draft 20TLS1.3 1RTT full handshakeTLS 0RTTPreshared Key?HTTPS?-HSTS?302?HTTP Strict Transport Security(HSTS)Strict-Transport-Security:max-age=0
7、;includeSubDomainsPreload listhttps:/?307?HTTPHTTPSHSTSHTTPHTTPS?-SPDY&HTTP2?-?pipeliningHTTPS?SPDY&HTTP2?-90%?Server push-?htmlcsspngHTTP2?TCP?DNS?IP?server push?inlining?TLS1.2HTTP2?WEB?-?400ms?-link?-?-?-stgw_precon.html-?JS?HTTPS?HTTP1.1HTTP2?TCP?+TLS?TCP?Head of line blocking?server push?QUICHTTP2?+TLS1.3?+UDP?+?packet?+CLB?