सभी किताबें

पेशेवर

ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Quantitative Finance · शब्दावली

TLS handshake, session resumption क्या है?

अन्य नाम: TLS handshake · session resumption

Definition 17.2 Low-Latency Software · अध्याय 17 — WebSocket, REST, TLS and JSON at Speed

The TLS handshake is the exchange that opens a TLS connection: the two sides agree on a protocol version and cipher, exchange key shares, the server proves its identity with its certificate, and both derive the keys that protect the records that follow; in TLS 1.3 it takes one round trip. Session resumption opens a new connection with a key derived from an earlier one (a pre-shared key sent to the client as a ticket), skipping the certificate and part of the key exchange.

Operation (loopback, laptop)Cost
TLS 1.3 full handshake (Python ssl, both ends)2.1 ms2.1\,\mathrm{m}\mathrm{s}
TLS 1.3 resumed handshake (Python ssl, both ends)1.6 ms1.6\,\mathrm{m}\mathrm{s}
Round trip of 300 bytes over TLS (Python)45 µs45\,\text{µ}\mathrm{s}
Round trip of 300 bytes over plain TCP (Python)33 µs33\,\text{µ}\mathrm{s}
AES-128-GCM seal of a 300-byte record (OpenSSL, C++)0.16 µs0.16\,\text{µ}\mathrm{s}
AES-128-GCM open of a 300-byte record (OpenSSL, C++)0.15 µs0.15\,\text{µ}\mathrm{s}
Table 17.1. TLS on the laptop’s loopback: medians of 300 handshakes each way and of 5 000 round trips, and of 21 passes of 1 000 records. Measured on a laptop (Intel Core Ultra 7 155H) under WSL2, no isolated cores; OpenSSL 3.0.2, Python 3.10. Data: bench_web.py, measured_tls.csv and measured_web.csv.
अध्याय में पढ़ें →