What is ALPN (Application-Layer Protocol Negotiation)
2016-03-17 00:44:05 -0400
Without ALPN, the steps to load a HTTP/2 page would be like:
- TLS handshake
- Browser/Client speaks HTTP/1.1 to server with "Upgrade: h2c" Header
- Server responds with 101 Switching to upgrade to HTTP2
- Now they talks via HTTP2
With ALPN, the steps would be:
- TLS handshake and in the handshake client tells the server the list of protocol it supports and server respond in handshake saying that it supports HTTP2 as well
- Now they talks via HTTP2
As you can see there is one less round trip with ALPN (No step of Upgrade and 101 Switching)
RFC: http://tools.ietf.org/html/rfc7301
Back to home
Subscribe |
Register |
Login
| N