what is http 2.0

HTTP 2 is originally named HTTP/2.0 is the second major version of the HTTP network protocol used by the World Wide Web. It is based on SPDY. HTTP/2 was developed by the Hypertext Transfer Protocol working group (http is hyper text transfer protocol  2 where is means “second”) of the Internet Engineering Task Force.
HTTP/2 is the first new version of HTTP since HTTP 1.1, which was standardized in RFC 2068 in 1997. The Working Group presented HTTP/2 to IESG for consideration as a Proposed Standard in December 2014 and IESG approved it to publish as Proposed Standard on February 17, 2015.
The HTTP/2 specification was published as RFC 7540 in May 2015.
The standardization effort was supported by Chrome, Opera, Firefox, Internet Explorer 11, Safari, Amazon Silk and Edge browsers. Most major browsers added HTTP/2 support by the end of 2015.

Goals of http 2.0

The working group charter mentions several goals and issues of concern
• Negotiation mechanism that allows clients and servers to elect to use HTTP 1.1, 2.0, or potentially other non-HTTP protocols.
• Maintain high-level compatibility with HTTP 1.1 (for example with methods, status codes, and URIs, and most header fields)
• Decrease latency to improve page load speed in web browsers by considering:
• Data compression of HTTP headers
• Server push technologies
• Pipelining of requests
• Fixing the head-of-line blocking problem in HTTP 1.x
• Multiplexing multiple requests over a single TCP connection
• Support common existing use cases of HTTP, such as desktop web browsers, mobile web browsers, web APIs, web servers at various scales, proxy servers, reverse proxyservers, firewalls, and content delivery networks

Differences from HTTP 1.1

The proposed changes do not require any changes to how existing web applications work, but new applications can take advantage of new features for increased speed.
HTTP/2 leaves most of HTTP 1.1’s high level syntax, such as methods, status codes, header fields, and URIs, the same. The element that is modified is how the data is framed and transported between the client and the server.
Websites that are efficient minimize the number of requests required to render an entire page by minifying (reducing the amount of code and packing smaller pieces of code into bundles, without reducing its ability to function) resources such as images and scripts.
However, minification is not necessarily convenient nor efficient, and may still require separate HTTP connections to get the page and the minified resources. HTTP/2.0 allows the server to “push” content, that is, to respond with data for more queries than the client requested.
This allows the server to supply data it knows a web browser will need to render a web page, without waiting for the browser to examine the first response, and without the overhead of an additional request cycle.
Additional performance improvements in the first draft of HTTP/2.0 (which was a copy of SPDY) come from multiplexing of requests and responses to avoid the head-of-line blocking problem in HTTP 1 (even when HTTP pipelining is used), header compression, and prioritization of requests.
Genesis in and later differences from SPDY
SPDY (pronounced like “speedy”) was a previous HTTP-replacement protocol developed by a research project spearheaded by Google.
SPDY primarily focused on reducing latency. SPDY uses the same TCP pipe but different protocols to accomplish this reduction.   The basic changes made to HTTP 1.1 to create SPDY included: “true request pipelining without FIFO restrictions, message framing mechanism to simplify client and server development, mandatory compression (including headers), priority scheduling, and even bi-directional communication”.
The httpbis working group considered Google’s SPDY protocol, Microsoft’s HTTP Speed+Mobility proposal (SPDY based),and Network-Friendly HTTP Upgrade.
In July 2012 Facebook provided feedback on each of the proposals and recommended HTTP/2.0 be based on SPDY. The initial draft of HTTP/2 was published in November 2012 and was based on a straight copy of SPDY.
The biggest difference between HTTP/1.1 and SPDY was that each user action in SPDY is given a “stream ID”, meaning there is a single TCP channel connecting the user to the server.
SPDY split requests into either control or data, using a “simple to parse binary protocol with two types of frames.” SPDY showed evident improvement from HTTP, with a new page load speedup ranging from 11.81% to 47.7%.
The development of HTTP/2.0 used SPDY as a jumping-off point. Among the many detailed differences between the protocols, the most notable is that HTTP/2.0 uses a fixedHuffman code-based header compression algorithm, instead of SPDY’s dynamic stream-based compression. This helps to reduce the potential for compression oracle attacks on the protocol, such as the CRIME attack.
On February 9, 2015, Google announced plans to remove support for SPDY in Chrome by early 2016, in favor of support for HTTP/2, starting with Chrome 40.

Encryption of http 2.0

HTTP/2.0 is defined for both HTTP URIs (i.e. without encryption) and for HTTPS URIs (over TLS, where TLS 1.2 or newer is required).
Although the standard itself does not require usage of encryption, most client implementations (Firefox,[23] Chrome, Safari, Opera, IE, Edge) have stated that they will only support HTTP/2 over TLS, which makes encryption de facto mandatory.

Initially, some members of the Working Group were trying to push an encryption requirement into the protocol. This faced criticism.

Critics stated that encryption has non-negligible computing costs and that many HTTP applications have actually no need for encryption and their providers have no desire to spend additional resources on it.
Encryption proponents have stated that this encryption overhead is negligible in practice.   Poul-Henning Kamp, lead developer of varnishHTTP accelerator and a senior FreeBSD kernel developer, has criticised IETF for following a particular political agenda with HTTP/2.0.
The criticism of the agenda of mandatory encryption within the existing certificate framework is not new, nor is it unique to members of the open-source community .
A cisco employee stated in 2013 that the present certificate model is not compatible with small devices like routers, because the present model requires not only annual enrollment and remission of non-trivial fees for each certificate.
But must be continually repeated on an annual basis.Working Group finally did not reach consensus over the mandatory encryption,although most client implementations require it, which makes encryption a de facto requirement.
The HTTP/2 protocol also faced criticism for not supporting opportunistic encryption, a measure against passive monitoring similar to the STARTTLS mechanism that has long been available in other internet protocols like SMTP.
 Critics have stated that the HTTP/2 .0 proposal goes in violation of IETF’s own RFC7258 “Pervasive Monitoring Is an Attack”, which also has a status of Best Current Practice 188. RFC7258/BCP188 mandates that passive monitoring be considered as an attack, and protocols designed by IETF should take steps to protect against passive monitoring (for example, through the use of opportunistic encryption).
A number of specifications for opportunistic encryption of HTTP/2 have been provided, of which draft-ietf-httpbis-http2-encryption-01 is an official work item of the working group.
READ MORE  GPS “Friend of Each Destination”


two + 14 =