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

传输层的会话类型:迈向 TCP 的实现

Session Types for the Transport Layer: Towards an Implementation of TCP

Samuel Cavoj, Ivan Nikitin, Colin Perkins, Ornela Dardha

AI总结:

本文探讨用多方会话类型(MPST)在 Rust 中实现 TCP 服务器子集,并与 Linux TCP 栈互操作,揭示理论假设与传输层实现之间的差异。

摘要:

会话类型是一种类型规范,用于形式化描述由通信驱动的应用,目标是在软件生命周期的后续阶段减少错误并简化调试。TCP、UDP 和 QUIC 等传输层协议支撑着现代互联网上的大部分通信,并影响数十亿最终用户。与应用层相比,传输层具有不同的需求和约束,因此对验证也有不同要求。尽管如此,据我们所知,尚无工作展示会话类型在传输层的应用。在本研究中,我们讨论如何将多方会话类型(MPST)用于实现 TCP 协议。我们使用 Rust 开发了一个基于 MPST 的 TCP 服务器子集实现,并针对 Linux TCP 协议栈测试其互操作性。我们的结果凸显了会话类型理论中的假设与传输层协议通常实现方式之间的差异。本工作是将会话类型引入传输层的第一步。

英文摘要:

Session types are a typing discipline used to formally describe communication-driven applications with the aim of fewer errors and easier debugging later into the life cycle of the software. Protocols at the transport layer such as TCP, UDP, and QUIC underpin most of the communication on the modern Internet and affect billions of end-users. The transport layer has different requirements and constraints compared to the application layer resulting in different requirements for verification. Despite this, to our best knowledge, no work shows the application of session types at the transport layer. In this work, we discuss how multiparty session types (MPST) can be applied to implement the TCP protocol. We develop an MPST-based implementation of a subset of a TCP server in Rust and test its interoperability against the Linux TCP stack. Our results highlight the differences in assumptions between session type theory and the way transport layer protocols are usually implemented. This work is the first step towards bringing session types into the transport layer.

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

↑