HTTP/2 asiantuntevasti mutta helposti

25.8.2016

Näin teknisenä myyjänä kaipaan jouhevaa ja riittävän syvällistä, mutta ymmärrettävää tekstiä tekniikasta. Ja nyt löytyi juuri sopiva HTTP/2 -kuvaus! Daniel Stenberg työskentelee Mozillalle ja hän on ollut mukana HTTPbis (HTTP/2) kehitystyössä (ja on curl + libcurl pääkehittäjä). Ennen kaikkea hän osaa selittää asioita mukavasti.

HTTP2_700x400

Sain itse käytyä tuon 31-sivuisen dokumentin läpi tunnissa.

Sivulla tulee olla SSL/TLS-varmenne, jotta selaimet sallivat HTTP/2 -liikenteen

”A lot of focus of http2 has been to make it behave properly over TLS. SPDY requires TLS and there’s been a strong push for making TLS mandatory for http2, but it didn’t get consensus so http2 shipped with TLS as optional. However, two prominent implementers have stated clearly that they will only implement http2 over TLS: the Mozilla Firefox lead and the Google Chrome lead, two of today’s leading web browsers. …”

–> SPDY on Googlen tekemä ensimmäinen versio, johon HTTP/2 perustuu. Näyttää siis siltä, että kotisivuilla pitää olla TLS-protokollan mahdollistava SSL-varmenne, jotta HTTP/2 -protokollasta voi hyötyä.

Syy TLS-pakollisuuteen on, että HTTP/2 ei välttämättä menisi läpi portin 80 kautta

”Reasons for choosing TLS-only include respect for user’s privacy and early measurements showing that the new protocols have a higher success rate when done with TLS. This is because of the widespread assumption that anything that goes over port 80 is HTTP 1.1, which makes some middle-boxes interfere with or destroy traffic when any other protocols are used on that port. …”

Nykyarvioiden mukaan HTTP/2 -protokollan pitäisi olla nopeampi

”A single http2 connection can contain multiple concurrently-open streams …”

–> Dokumentti mm. kertoo ansiokkaasti nykyisen HTTP 1.1 -protokollan rajoituksista (joita usein kierretään ottamalla yhteyttä useisiin eri hosteihin, joilla saa olla kullakin vain tietty määrä TCP-yhteyksiä)

”http2 is not yet widely deployed nor used. We can’t tell for sure exactly how things will turn out. We have seen how SPDY has been used and we can make some guesses and calculations based on that and other past and current experiments. …

With priorities used properly on the streams, chances are much better that clients will actually get the important data before the less important data. All this taken together, I’d say that the chances are very good that this will lead to faster page loads and to more responsive web sites. Shortly put: a better web experience. …”

–> On mielenkiintoista nähdä tämän protokollan todellinen vaikutus nopeuteen.

 

Lopuksi

Dokumentin lopussa on listat siitä, mitkä selaimet ja palvelimet tukevat jo http/2 -protokollaa.

Ainakin itse nautin tästä lukusessiosta. Toivottavasti sinäkin!

Ja ainahan voidaan keskustella asiasta – kirjoita kommentti tai ota yhteyttä:
info@ssl-apua.fi

Lue lisää