HTTP/2 and Wi-Fi: The Race to Deliver Content Quicker is no Longer Just Down to The Radio Speed
By Dr Chris Spencer, CTO, GlobalReach Technology
It's been 16 years since HTTP 1.1 (RFC2616) became a standard. Yes you read that right - 16 years - and I expect that a few of us are now feel very old as we read that.
But, a new faster securer standard has now been approved. It’s known as HTTP/2.
Most modern browsers already have support for HTTP/2. From a user’s perspective it’s seamless, but the biggest improvements are the faster page load times, which means a faster and greater user experience.
GlobalReach Technology has already deployed the backend infrastructure to deliver all our captive portal pages over HTTP/2 to supported clients. (another GlobalReach first).
The benefit is that captive portal delivery over HTTP/2 greatly improves performance and loading times.
The Problem with HTTP/1.1
HTTP/1.1 has served the internet well for more than 16 years, but its age is starting to show, and it's lost its shine. In the face of today’s user demand for ever-increasing speed and content, it isn’t built to handle the future volumes.
Loading a web page now takes more resource than ever, and because HTTP really only allows one outstanding request per TCP connection. loading all of those assets (css, images, jQuery, JavaScript) efficiently is difficult.
In the past, browsers have used multiple TCP connections to issue parallel requests. However, there are limits to this; if too many connections are used, it’s both counter-productive (TCP congestion), and it’s fundamentally unfair because browsers are taking more than their share of the network resources.
At the same time, the large volume requests means that there’s a lot of duplicated data in transit over the network. Backhaul whether that fibre, cable or in the air, is at a premium.
Both of these factors means that HTTP/1.1 requests have a lot of overhead associated with them. If too many requests are made, performance suffers both on the network and at the server.
This has forced the industry into a corner where it’s considered best practice to do things like data: inlining, domain sharding, concatenation and putting content into multiple content delivery networks. These tricks are indications of underlying problems in the protocol itself, and cause a number of headaches when they’re used.
The Nuts & Bolts
HTTP/2 (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, an HTTP-compatible protocol developed by Google and supported in Chrome, Opera, Firefox, Internet Explorer 11, Safari, and Amazon Silk browsers.
HTTP/2 is was developed by the Hypertext Transfer Protocol working group of the Internet Engineering Task Force. HTTP/2 is the first new version of HTTP since HTTP 1.1, which was standardized in RFC 2616 in 1999. 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 Feb 17, 2015.
The standardization effort came as an answer to SPDY. 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).
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 proxy servers, firewalls, and content delivery networks.
Decrease latency to improve page load speed in web browsers by considering:
1. Data compression of HTTP headers 2. Server push technologies 3. Fixing the head-of-line blocking problem in HTTP 1 4. Loading page elements in parallel over a single TCP connection
The Difference With 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 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 (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 prioritisation of requests.
SPDY
SPDY was a research project spearheaded by Google that is also an applicable protocol, designed for the transportation of information and other content on the web.
SPDY primarily focuses 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 include: "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 biggest difference between HTTP/1.1 and SPDY, is 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 splits requests into either control or data, which is a "simple to parse binary protocol with two types of frames." SPDY has shown evident improvement from HTTP, with a new page load speedup ranging from 11.81% to 47.7%.
HTTP/2 uses SPDY as a jumping-off point; though SPDY is an improvement on HTTP 1.1, it does have some limitations. SPDY communicates separately with each host, which means that multiplexing happens only at one host at a time, no matter how many connections are open. This means that SPDY can only download things from one host at a time. The improvement HTTP/2 makes on this is that it allows multiplexing to happen at different hosts at the same time. This makes downloading multiple web pages or content from the Internet significantly faster.
HTTP/2 also uses a fixed Huffman code-based header compression algorithm, instead of SPDY's dynamic stream-based compression. This helps to reduce the potential for attacks on the protocol.
On February 9, 2015, Google announced plans to remove support for SPDY in Chrome, in favour of support for HTTP/2, by early 2016. This, started with Chrome 40.
Encryption
HTTP/2 is defined for both HTTP URIs (for now in the clear) and for HTTPS URIs (over TLS, where TLS 1.2 or newer is required).
Some implementations, such as Firefox, have stated that they will only support HTTP/2 when it is used over an encrypted connection.
The Faster Web is Just Around the Corner. Fasten your Seat Belts…..
Contact www.globalreachtech.com/contact for more.










