加密传输协议的连续零拷贝
Contiguous Zero-Copy for Encrypted Transport Protocols
AI总结:
本文提出Reverso方法,通过颠倒加密传输协议字段顺序解锁连续零拷贝,基于QUIC实现quiceh验证可在不损失安全性的前提下显著提升CPU效率,且该方法可推广至其他现代加密协议。
摘要:
本文提出重新审视现有加密传输协议的设计以提升其效率,我们将该方法命名为“Reverso”,名称源于颠倒协议规范内字段元素的顺序。我们详细阐述了规范中这一看似无害的改动如何在数据传输过程中为加密协议解锁连续零拷贝能力。为验证研究结论,我们发布了quiceh,它是QUIC VReverso的QUIC实现,而QUIC VReverso是QUIC V1标准(RFC9000)的扩展。将该方法应用于QUIC协议的测试结果显示,在发送方无额外开销、且未放松QUIC V1任何安全保证的前提下,数据包处理的CPU效率提升约30%。我们还基于quiceh实现了Cloudflare HTTP/3模块的分支版本以及客户端/服务器演示程序,证明该优化可直接迁移至HTTP/3,最终我们的新版HTTP/3相比基于QUIC V1的基线实现效率提升约38%。我们认为Reverso适用于任意现代加密协议及其实现,无论其运行于哪一层,都能解锁类似的效率提升。本研究表明,接收端实现连续零拷贝的能力本质上取决于所规范的加密协议线图像,我们或许需要颠倒以往编写这类协议的习惯方式。
英文摘要:
We propose in this paper to revisit the design of existing encrypted transport protocols to improve their efficiency. We call the methodology ``Reverso'' from reversing the order of field elements within a protocol specification. We detail how such a benign-looking change within the specifications may unlock contiguous zero-copy for encrypted protocols during data transport. To demonstrate our findings, we release \texttt{quiceh}, a QUIC implementation of QUIC VReverso, an extension of the QUIC V1 standard (RFC9000). Our methodology applied to the QUIC protocol reports $\approx 30\%$ of CPU efficiency improvement for processing packets at no added cost on the sender side and without relaxing any security guarantee from QUIC V1. We also implement a fork of Cloudflare's HTTP/3 module and client/server demonstrator using \texttt{quiceh} and show our optimizations to directly transfer to HTTP/3 as well, resulting in our new HTTP/3 to be $\approx 38\%$ more efficient than the baseline implementation using QUIC V1. We argue that Reverso applies to any modern encrypted protocol and its implementations and that similar efficiency improvement can also be unlocked for them, independently of the layer in which they operate. Indeed, this research shows that the ability to implement contiguous zero-copy on the receiver side inherently depends on the specified encrypted protocol wire image, and that we may need to reverse how we are used to write them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。