首页> 外文期刊>LIPIcs : Leibniz International Proceedings in Informatics >How to Avoid Making a Billion-Dollar Mistake: Type-Safe Data Plane Programming with SafeP4
【24h】

How to Avoid Making a Billion-Dollar Mistake: Type-Safe Data Plane Programming with SafeP4

机译:如何避免十亿美元的错误:使用SafeP4进行类型安全的数据平面编程

获取原文
           

摘要

The P4 programming language offers high-level, declarative abstractions that bring the flexibility of software to the domain of networking. Unfortunately, the main abstraction used to represent packet data in P4, namely header types, lacks basic safety guarantees. Over the last few years, experience with an increasing number of programs has shown the risks of the unsafe approach, which often leads to subtle software bugs. This paper proposes SafeP4, a domain-specific language for programmable data planes in which all packet data is guaranteed to have a well-defined meaning and satisfy essential safety guarantees. We equip SafeP4 with a formal semantics and a static type system that statically guarantees header validity - a common source of safety bugs according to our analysis of real-world P4 programs. Statically ensuring header validity is challenging because the set of valid headers can be modified at runtime, making it a dynamic program property. Our type system achieves static safety by using a form of path-sensitive reasoning that tracks dynamic information from conditional statements, routing tables, and the control plane. Our evaluation shows that SafeP4's type system can effectively eliminate common failures in many real-world programs.
机译:P4编程语言提供了高级的声明性抽象,将软件的灵活性带到了网络领域。不幸的是,用于表示P4中数据包数据的主要抽象(即报头类型)缺乏基本的安全保证。在过去的几年中,越来越多的程序经验证明了这种不安全方法的风险,这种方法通常会导致细微的软件错误。本文提出了SafeP4,这是一种针对可编程数据平面的领域特定语言,其中保证所有分组数据都具有明确定义的含义并满足基本的安全保证。我们为SafeP4配备了形式语义和静态类型系统,该系统静态地保证了标头的有效性-根据我们对现实世界中P4程序的分析,这是安全漏洞的常见来源。静态确保头文件的有效性是一项挑战,因为可以在运行时修改有效头文件的集合,使其成为动态程序属性。我们的类型系统通过使用某种形式的路径敏感推理来实现静态安全,该推理可跟踪条件语句,路由表和控制平面中的动态信息。我们的评估表明,SafeP4的类型系统可以有效消除许多实际程序中的常见故障。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号