P4R-Type: a Verified API for P4 Control Plane Programs (Technical Report)

09/07/2023
by   Jens Kanstrup Larsen, et al.
0

Software-Defined Networking (SDN) significantly simplifies programming, reconfiguring, and optimizing network devices, such as switches and routers. The de facto standard for programmming SDN devices is the P4 language. However, the flexibility and power of P4, and SDN more generally, gives rise to important risks. As a number of incidents at major cloud providers have shown, errors in SDN programs can compromise the availability of networks, leaving them in a non-functional state. The focus of this paper are errors in control-plane programs that interact with P4-enabled network devices via the standardized P4Runtime API. For clients of the P4Runtime API it is easy to make mistakes that lead to catastrophic failures, despite the use of Google's Protocol Buffers as an interface definition language. This paper proposes P4R-Type, a novel verified P4Runtime API for Scala that performs static checks for P4 control plane operations, ruling out mismatches between P4 tables, allowed actions, and action parameters. As a formal foundation of P4R-Type, we present the F_P4R calculus and its typing system, which ensure that well-typed programs never get stuck by issuing invalid P4Runtime operations. We evaluate the safety and flexibility of P4R-Type with 3 case studies. To the best of our knowledge, this is the first work that formalises P4Runtime control plane applications, and a typing discipline ensuring the correctness of P4Runtime operations.

READ FULL TEXT

page 8

page 11

page 13

page 16

research
04/09/2020

Formal Modelling and Verification of Software Defined Network

In cloud computing, software-defined network (SDN) gaining more attentio...
research
02/07/2019

Response Time and Availability Study of RAFT Consensus in Distributed SDN Control Plane

Software defined networking (SDN) promises unprecedented flexibility and...
research
06/17/2019

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

The P4 programming language offers high-level, declarative abstractions ...
research
08/30/2023

DBNet: Leveraging DBMS for Network Automation

We present DBNet, a data-driven network automation framework built on to...
research
11/01/2018

TRUFL: Distributed Trust Management framework in SDN

Software Defined Networking (SDN) has emerged as a revolutionary paradig...
research
10/08/2018

The Wireless Control Plane: An Overview and Directions for Future Research

Software-defined networking (SDN), which has been successfully deployed ...
research
02/24/2021

Explaining Safety Failures in NetKAT

This work introduces a concept of explanations with respect to the viola...

Please sign up or login with your details

Forgot password? Click here to reset