SPDY

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found. SPDY (pronounced speedy)[1] is an open networking protocol developed primarily at Google for transporting web content.[1] SPDY manipulates HTTP traffic, with particular goals of reducing web page load latency and improving web security. SPDY achieves reduced latency through compression, multiplexing, and prioritization,[1] although this depends on a combination of network and website deployment conditions.[2][3][4] The name "SPDY" is a trademark[5] of Google and is not an acronym.[6]

Throughout the process, the core developers of SPDY have been involved in the development of HTTP/2, including both Mike Belshe and Roberto Peon. As of February 2015, Google has announced that following the recent final ratification of the HTTP/2 standard, support for SPDY would be deprecated, and that support for SPDY would be withdrawn completely in 2016.[7]

History

As of July 2012, the group developing SPDY stated publicly that it is working toward standardisation (available as an Internet Draft).[8] The first draft of HTTP/2 is using SPDY as the working base for its specification draft and editing.[9]

Implementations of SPDY exist in Chromium,[10] Mozilla Firefox,[11] Opera,[12] Amazon Silk, Internet Explorer,[13] and Safari.[14]

In February 2015, Google announced its plans to remove support for SPDY in favor of HTTP/2. HTTP/2 was first discussed when it became apparent that SPDY was gaining traction with implementers (like Mozilla and nginx), and was showing significant improvements over HTTP/1.x. After a call for proposals and a selection process, SPDY/2 was chosen as the basis for HTTP/2. Since then, there have been a number of changes, based on discussion in the Working Group and feedback from implementers.[15]

Design

The goal of SPDY is to reduce web page load time.[16] This is achieved by prioritizing and multiplexing the transfer of web page subresources so that only one connection per client is required.[1][17] TLS encryption is nearly ubiquitous in SPDY implementations, and transmission headers are gzip- or DEFLATE-compressed by design[18] (in contrast to HTTP, where the headers are sent as human-readable text). Moreover, servers may hint or even push content instead of awaiting individual requests for each resource of a web page.[19]

SPDY requires the use of SSL/TLS (with TLS extension ALPN) for security but it also supports operation over plain TCP. The requirement for SSL is for security and to avoid incompatibility when communication is across a proxy.

Relation to HTTP

SPDY does not replace HTTP; it modifies the way HTTP requests and responses are sent over the wire.[1] This means that all existing server-side applications can be used without modification if a SPDY-compatible translation layer is put in place.

SPDY is effectively a tunnel for the HTTP and HTTPS protocols. When sent over SPDY, HTTP requests are processed, tokenized, simplified and compressed. For example, each SPDY endpoint keeps track of which headers have been sent in past requests and can avoid resending the headers that have not changed; those that must be sent are compressed.

The IETF working group for HTTPbis has released the draft of HTTP/2.[20] SPDY (draft-mbelshe-httpbis-spdy-00) was chosen as the starting point.[21][22]

Protocol support

Lua error in package.lua at line 80: module 'strict' not found. For use within HTTPS, SPDY needs the TLS extension Next Protocol Negotiation (NPN),[23] thus browser and server support depends on the HTTPS library.

OpenSSL 1.0.1 or greater introduces NPN.[24] Patches to add NPN support have also been written for NSS and TLSLite.[25]

SPDY is scheduled to switch from NPN to Application-Layer Protocol Negotiation (ALPN) before the end of 2014.[26]

Security Support Provider Interface (SSPI) from Microsoft have not implemented the NPN extension to its TLS implementation. This has prevented SPDY inclusion in the latest .NET Framework versions. Since SPDY specification is being refined and HTTP/2 is expected to include SPDY implementation one could expect Microsoft to release support after HTTP/2 is finalized.

Protocol versions

SPDY is a versioned protocol. In its control frames there are 15 dedicated bits to indicate the version of the session protocol.[citation needed]

  • Version 1: version 1 of the SPDY protocol is not used anymore.[27]
  • Version 2: soon to be discontinued. Nginx supports SPDY/2 in versions prior to 1.5.10.[28] Firefox 28 and recent versions of Chrome drop support for it.[29][30] OpenLiteSpeed 1.1 and up support SPDY/2.[31]
  • Version 3: SPDY v3 introduced support for flow control, updated the compression dictionary, and removed wasted space from certain frames, along with other minor bug fixes.[18] Firefox supports SPDY v3 in Firefox 15.[32] OpenLiteSpeed 1.1 and up support SPDY/3.[31]
  • Version 3.1: SPDY v3.1 introduced support for session-layer flow control, and removed the CREDENTIALS frame (and associated error codes).[33] Firefox 27 has added SPDY 3.1 support.[34] OpenLiteSpeed 1.2.7 introduces SPDY/3.1 support.[35] Nginx 1.5.10 supports SPDY/3.1.[36] F5 BIGIP 11.6 supports SPDY/3.1.[37]
  • Version 4.0: SPDY v4 alpha3 is more closely aligned with the HTTP/2 draft; it has a new stream flow control and error codes unified with the HTTP/2 draft.[38]

Client (browser) support and usage

  • Google Chrome/Chromium.[39][40] SPDY sessions in Chrome can be inspected via the URI: chrome://net-internals/#events&q=type:SPDY_SESSION%20is:active. There is a command-line switch for Google Chrome (--enable-websocket-over-spdy) which enables an early, experimental implementation of WebSocket over SPDY.[41] SPDY protocol functionality can be (de)activated by toggling "Enable SPDY/4" setting on local chrome://flags page. Chromium is expected to remove support for SPDY and Next Protocol Negotiation in early 2016, in favor of HTTP/2 and ALPN.[42] Starting with version 40.x in Feb 2015 Chrome has already dropped support for SPDY/3 and only supports SPDY/3.1 going forward. This has caused Apache websites to be without SPDY support when visited from Google Chrome.[43]
  • Firefox supports SPDY 2 from version 11, and default-enabled since 13 and later. (Also SeaMonkey version 2.8+.) SPDY protocol functionality can be (de)activated by toggling the network.http.spdy.enabled variable in about:config.[11] Firefox 15 added support for SPDY 3.[32] Firefox 27 has added SPDY 3.1 support.[34] Firefox 28 has removed support of SPDY 2.[29] about:networking (or the HTTP/2 and SPDY indicator add-on)[44] shows if a website uses SPDY.
  • Opera browser added support for SPDY as of version 12.10.[45]
  • Internet Explorer 11 added support for SPDY version 3,[46][47] but not for the Windows 7 version.[48] A problem experienced by some users of Windows 8.1 and Internet Explorer 11 is that on initial loading, Google says "Page not found" but on reloading, it is fine. One fix for this is to disable SPDY/3 in Internet Options > Advanced.[49] After version 11, IE will drop the support of SPDY, as it will adopt HTTP/2.[50]
  • Amazon's Silk browser for the Kindle Fire uses the SPDY protocol to communicate with their EC2 service for Web page rendering.[51]
  • Safari 8 and third-party applications in OS X 10.10 and iOS 8 adds support for SPDY 2, 3 and 3.1.[52]

Server support and usage

As of November 2014, approximately 2.3% of all websites support SPDY.[53]

Some Google services (e.g. Google search, Gmail, and other SSL-enabled services) use SPDY when available.[54] Google's ads are also served from SPDY-enabled servers.[55]

A brief history of SPDY support amongst major web players:

  • In Nov, 2009, Google announced SPDY as an internal project to increase the speed of the web.[56]
  • In September, 2010, Google releases SPDY in Chrome for all versions of Chrome 6.[57]
  • In January, 2011, Google deployed SPDY across all Google services.[58]
  • In March 2012, Twitter enabled SPDY on its servers, at the time making it the second largest site known to deploy SPDY.[59]
  • In March 2012, the open source Jetty Web Server announced support for SPDY in version 7.6.2 and 8.1.2,[60] while other open source projects were working on implementing support for SPDY, like node.js,[61][62] Apache (mod_spdy),[63] curl,[64] and nginx.[65]
  • In April 2012 Google started providing SPDY packages for Apache servers which led some smaller websites to provide SPDY support.[66]
  • In May 2012 F5 Networks announced support for SPDY in its BIG-IP application delivery controllers.[67]
  • In June 2012 NGINX, Inc. announced support for SPDY in the open source web server Nginx.[68]
  • In July 2012 Facebook announced implementation plans for SPDY.[69] By March 2013 SPDY was implemented by some of their public web servers.[70]
  • In August 2012 WordPress.com announced support for SPDY (using nginx) across all their hosted blogs.[71]
  • In June 2013, LiteSpeed Technologies announced support for SPDY/2 and SPDY/3 on OpenLiteSpeed, their open source HTTP server.[31] Support for SPDY/3.1 was announced November 2013.[35]
  • In January 2014, Synology announced SPDY is included in the new DSM 5.0.[72]
  • In February 2014, CloudFlare using nginx announced automatic support for SPDY v3.1 for all customers with SSL/TLS certificates.[73]
  • In May 2014, MaxCDN using nginx announced support for SPDY v3.1 via customers' Pull Zone settings and their API.[74]
  • In October 2014, Yahoo shows support of SPDY on the Yahoo Homepage — www.yahoo.com [75]
  • In September 2015, Nginx web server dropped SPDY support in favour of HTTP/2[76]

According to W3Techs most SPDY-enabled websites use nginx.[77]

See also

References

  1. 1.0 1.1 1.2 1.3 1.4 Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. 11.0 11.1 Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. http://http2.github.io/faq/#whats-the-relationship-with-spdy
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. 18.0 18.1 Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. NPN protocol and explanation about its need to tunnel SPDY over HTTPS.
  24. Openssl 1.0.1 changelog.
  25. TLS Next Protocol Negotiation. Section: Implementations.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. SPDY Protocol - Draft 2: "Currently, the only valid string is "spdy/2" (spdy/1 isn't implemented anywhere anymore)".
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. 29.0 29.1 Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. 31.0 31.1 31.2 OpenLiteSpeed 1.1 (With SPDY!) Retrieved 2013-08-12.
  32. 32.0 32.1 Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. 34.0 34.1 Lua error in package.lua at line 80: module 'strict' not found.
  35. 35.0 35.1 OpenLiteSpeed 1st Web Server to Support SPDY/3.1! Retrieved 2014-1-10.
  36. NGINX Announces Support for SPDY/3.1 Retrieved 2014-02-04.
  37. F5 Bigip 11.6.0 Release Notes Retrieved 2015-03-10.
  38. Lua error in package.lua at line 80: module 'strict' not found.
  39. Chromium SPDY client implementation.
  40. Chromium: SPDY proxy examples.
  41. List of Chromium Command Line Switches.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. https://groups.google.com/forum/#!topic/mod-spdy-discuss/FPEj0zG5I0Y
  44. Lua error in package.lua at line 80: module 'strict' not found.
  45. Lua error in package.lua at line 80: module 'strict' not found.
  46. Lua error in package.lua at line 80: module 'strict' not found.
  47. Lua error in package.lua at line 80: module 'strict' not found.
  48. Lua error in package.lua at line 80: module 'strict' not found.
  49. Lua error in package.lua at line 80: module 'strict' not found.
  50. Lua error in package.lua at line 80: module 'strict' not found.
  51. Lua error in package.lua at line 80: module 'strict' not found.
  52. Lua error in package.lua at line 80: module 'strict' not found.
  53. Both NGINX and Apache offer SPDY support (to complement the above mentioned browser/client support more explicitly) Usage of SPDY for websites.
  54. spdy-dev mailing list: SPDY on Google servers?.
  55. Google Speeds Up Web-Page Downloads with SPDY Protocol - Cloud Computing - News & Reviews. eWeek.com (2011-06-20). Retrieved on 2013-11-21.
  56. Lua error in package.lua at line 80: module 'strict' not found.
  57. Lua error in package.lua at line 80: module 'strict' not found.
  58. Lua error in package.lua at line 80: module 'strict' not found.
  59. Twitter Adopts SPDY.
  60. Jetty Feature SPDY.
  61. Lua error in package.lua at line 80: module 'strict' not found.
  62. Lua error in package.lua at line 80: module 'strict' not found.
  63. Lua error in package.lua at line 80: module 'strict' not found.
  64. Lua error in package.lua at line 80: module 'strict' not found.
  65. Lua error in package.lua at line 80: module 'strict' not found.
  66. Lua error in package.lua at line 80: module 'strict' not found.
  67. F5 Helps Organizations Improve User Experience and Simplify Management with First Integrated SPDY Gateway | About F5 | F5 Networks. F5.com (2012-05-08). Retrieved on 2013-11-21.
  68. Lua error in package.lua at line 80: module 'strict' not found.
  69. Lua error in package.lua at line 80: module 'strict' not found.
  70. Lua error in package.lua at line 80: module 'strict' not found.
  71. Lua error in package.lua at line 80: module 'strict' not found.
  72. [1] DSM 5.0 beta
  73. Lua error in package.lua at line 80: module 'strict' not found.
  74. Lua error in package.lua at line 80: module 'strict' not found.
  75. [2] Support of SPDY by Yahoo on www.yahoo.com
  76. https://www.nginx.com/blog/nginx-1-9-5/
  77. Lua error in package.lua at line 80: module 'strict' not found.

External links