Application-Layer Protocol Negotiation
Application-Layer Protocol Negotiation (ALPN) is a Transport Layer Security (TLS) extension that allows the application layer to negotiate which protocol should be performed over a secure connection in a manner that avoids additional round trips and which is independent of the application-layer protocols. It is used to establish HTTP/2 connections without additional round trips (client and server can communicate over two ports previously assigned to HTTPS with HTTP/1.1 and upgrade to use HTTP/2 or continue with HTTP/1.1 without closing the initial connection). Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Application-Layer Protocol Negotiation (ALPN) is a Transport Layer Security (TLS) extension that allows the application layer to negotiate which protocol should be performed over a secure connection in a manner that avoids additional round trips and which is independent of the application-layer protocols. It is used to establish HTTP/2 connections without additional round trips (client and server can communicate over two ports previously assigned to HTTPS with HTTP/1.1 and upgrade to use HTTP/2 or continue with HTTP/1.1 without closing the initial connection). Handshake Type: Client Hello (1) Length: 141 Version: TLS 1.2 (0x0303) Random: dd67b5943e5efd0740519f38071008b59efbd68ab3114587... Session ID Length: 0 Cipher Suites Length: 10 Cipher Suites (5 suites) Compression Methods Length: 1 Compression Methods (1 method) Extensions Length: 90 [other extensions omitted] Extension: application_layer_protocol_negotiation (len=14) Type: application_layer_protocol_negotiation (16) Length: 14 ALPN Extension Length: 12 ALPN Protocol ALPN string length: 2 ALPN Next Protocol: h2 ALPN string length: 8 ALPN Next Protocol: http/1.1 The resulting 'Server Hello' from the web server will also contain the ALPN extension, and it confirms which protocol will be used for the HTTP request: Handshake Type: Server Hello (2) Length: 94 Version: TLS 1.2 (0x0303) Random: 44e447964d7e8a7d3b404c4748423f02345241dcc9c7e332... Session ID Length: 32 Session ID: 7667476d1d698d0a90caa1d9a449be814b89a0b52f470e2d... Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f) Compression Method: null (0) Extensions Length: 22 [other extensions omitted] Extension: application_layer_protocol_negotiation (len=5) Type: application_layer_protocol_negotiation (16) Length: 5 ALPN Extension Length: 3 ALPN Protocol ALPN string length: 2 ALPN Next Protocol: h2
References
- Dell BSAFE Micro Edition Suite 5.0 Release Advisory . retrieved 2022-10-18 · 1666047600.0
- JEP 244: TLS Application-Layer Protocol Negotiation Extension . 2017-08-07. retrieved 2018-08-29 · 1535497200.0
- Release Note: TLS Application-Layer Protocol Negotiation Extension . 2020-04-30. retrieved 2020-06-11 · 1591830000.0
- What's New in TLS/SSL (Schannel SSP) . 31 August 2016. retrieved 2020-03-30 · 1585522800.0
- ClientConfig in rustls::client - Rust . docs.rs . retrieved 2026-01-11 · 1768086000.0
- Transport Layer Security (TLS) Next Protocol Negotiation Extension . · 1768086000.0
- Langley, Adam. » NPN and ALPN . retrieved 2 April 2013 · 1768086000.0
- Langley, Adam. False Start's Failure (11 Apr 2012) . retrieved 25 September 2013 · 1768086000.0
- gnutls 3.2.0 . retrieved 2015-01-26 · 1422226800.0
- MatrixSSL - News . 2014-12-04. retrieved 2015-01-26 · 1422226800.0
- NSS 3.15.5 release notes . Mozilla Developer Network . retrieved 2015-01 · 1768086000.0
- OpenSSL 1.0.2 release notes . The OpenSSL Project . 2015-01-22. retrieved 2015-01-26 · 1422226800.0
- LibreSSL 2.1.3 released . 2015-01-22. retrieved 2015-01-26 · 1422226800.0
- Download overview - PolarSSL . 2014-04-11. retrieved 2015-01-26 · 1422226800.0
- wolfSSL Release Change Log . 2015-10-26. retrieved 2015-09-11 · 1441926000.0
- Go 1.4 Release Notes . 2014-12-10. retrieved 2017-11-28 · 1511823600.0
Cite this
"Application-Layer Protocol Negotiation". 1768163739. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1332433845 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy