सभी किताबें

पेशेवर

1 Markets I: The Ecosystem and Exchange-Traded Marketsबाज़ार ऑनलाइन 2 Markets II: Rates, FX and Creditबाज़ार ऑनलाइन 3 Markets III: Commodities, Energy and Cryptoबाज़ार ऑनलाइन 4 Quantitative Methodsविधियाँ ऑनलाइन 5 Derivatives and Volatilityडेरिवेटिव्स ऑनलाइन 6 Rates, Credit, XVA and Riskब्याज दरें, क्रेडिट और जोखिम ऑनलाइन 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosअनुसंधान ऑनलाइन 8 Strategies I: Equities and Futuresरणनीतियाँ ऑनलाइन 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksरणनीतियाँ ऑनलाइन 10 Microstructure and Executionनिष्पादन ऑनलाइन 11 Market Making and High-Frequency Tradingमार्केट मेकिंग ऑनलाइन 12 Machine Learning for Marketsमशीन लर्निंग ऑनलाइन 13 Low-Latency Softwareतकनीक ऑनलाइन 14 Networks, Hardware and Trading Infrastructureतकनीक ऑनलाइन 15 Research, Data and Risk Platformsतकनीक ऑनलाइन 16 The Desk and the Firmफ़र्म ऑनलाइन 17 The Industry: Firms, Roles and Careersकरियर ऑनलाइन 18 Interviews I: Maths, Probability and Speedकरियर ऑनलाइन 19 Interviews II: Markets, Trading Games and the Final Roundकरियर ऑनलाइन 20 Interviews III: Codeकरियर ऑनलाइन
ऐप्स परिचय 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.
अध्याय में पढ़ें →