arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.05311cs.CRcs.NI
收藏

TurboTLS:减少1次往返的TLS连接建立方法

TurboTLS: TLS connection establishment with 1 less round trip

Carlos Aguilar-Melchor, Thomas Bailleux, Jason Goertzen, Adrien Guinet, David Joseph, Douglas Stebila

AI总结:

本研究提出TurboTLS方法,通过UDP并行传输TLS握手初始数据与TCP三次握手,结合基于请求的分片、轻量排序缓冲等机制,在不修改TLS协议内容的前提下减少一次往返,实现低复杂度的显著延迟优化。

摘要:

我们展示了如何减少一次往返来建立TLS连接。在我们名为TurboTLS的方法中,TLS握手初始阶段的客户端到服务器、服务器到客户端的数据流通过UDP而非TCP传输。与此同时,在相同的传输批次中,TCP三次握手也同步进行。一旦TCP连接建立,客户端和服务器就可以通过TCP连接完成TLS握手的最后一个批次,并继续使用该连接传输应用数据。我们未对TLS握手协议的内容做任何修改,仅调整了其传输机制。我们通过基于请求的分片机制避免UDP分片问题:客户端提前发送足够多的UDP请求,为服务器提供充足的响应空间,使每个请求包对应一个响应包即可承载全部响应内容。如果服务器在DNS HTTPS资源记录中声明支持该机制,客户端无需额外往返就能检测到哪些服务器支持此功能。基于我们的软件实现开展的实验显示,该方法带来了显著的延迟提升。在可靠连接上,我们在无明显额外开销的情况下,有效消除了一次往返。为确保在不可靠连接上也有足够性能,我们采用了轻量级的数据包排序与缓冲机制:客户端可以等待极短的时间接收可能丢失的数据包(例如,仅为首个分片观测到的RTT的一小部分),之后再回退到TCP模式,且不会产生额外延迟,因为TCP连接此前已经在建立过程中。该方法复杂度低,即使在存在配置不当中间盒的异构网络环境中,也能带来显著的性能提升。

英文摘要:

We show how to establish TLS connections using one less round trip. In our approach, which we call TurboTLS, the initial client-to-server and server-to-client flows of the TLS handshake are sent over UDP rather than TCP. At the same time, in the same flights, the three-way TCP handshake is carried out. Once the TCP connection is established, the client and server can complete the final flight of the TLS handshake over the TCP connection and continue using it for application data. No changes are made to the contents of the TLS handshake protocol, only its delivery mechanism. We avoid problems with UDP fragmentation by using request-based fragmentation, in which the client sends in advance enough UDP requests to provide sufficient room for the server to fit its response with one response packet per request packet. Clients can detect which servers support this without an additional round trip, if the server advertises its support in a DNS HTTPS resource record. Experiments using our software implementation show substantial latency improvements. On reliable connections, we effectively eliminate a round trip without any noticeable cost. To ensure adequate performance on unreliable connections, we use lightweight packet ordering and buffering; we can have a client wait a very small time to receive a potentially lost packet (e.g., a fraction of the RTT observed for the first fragment) before falling back to TCP without any further delay, since the TCP connection was already in the process of being established. This approach offers substantial performance improvements with low complexity, even in heterogeneous network environments with poorly configured middleboxes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑