جميع الكتب

مهني

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 The Interview Bookالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

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.
اقرأ في الفصل →