MatchKAT: An Algebraic Foundation For Match-Action

02/15/2021
by   Xiang Long, et al.
0

We present MatchKAT, an algebraic language for modeling match-action packet processing in network switches. Although the match-action paradigm has remained a popular low-level programming model for specifying packet forwarding behavior, little has been done towards giving it formal semantics. With MatchKAT, we hope to embark on the first steps in exploring how network programs compiled to match-action rules can be reasoned about formally in a reliable, algebraic way. In this paper, we give details of MatchKAT and its metatheory, as well as a formal treatment of match expressions on binary strings that form the basis of "match" in match-action. Through a correspondence with NetKAT, we show that MatchKAT's equational theory is sound and complete with regards to a similar packet filtering semantics. We also demonstrate the complexity of deciding equivalence in MatchKAT is PSPACE-complete.

READ FULL TEXT

page 1

page 7

research
02/16/2021

Guarded Kleene Algebra with Tests: Coequations, Coinduction, and Completeness

Guarded Kleene Algebra with Tests (GKAT) is an efficient fragment of KAT...
research
01/25/2019

Calculational HoTT

Based on a loose correspondence between, on one hand, a first order vers...
research
06/07/2022

Q# as a Quantum Algorithmic Language

Q# is a standalone domain-specific programming language from Microsoft f...
research
03/13/2021

Design Principles for Packet Deparsers on FPGAs

The P4 language has drastically changed the networking field as it allow...
research
12/08/2022

Technical Report: Match-reference regular expressions and lenses

A lens is a single program that specifies two data transformations at on...
research
10/25/2019

Runners in action

Runners of algebraic effects, also known as comodels, provide a mathemat...
research
01/15/2018

Algebraic Specifications of Wayfinding Using Cognitive Map

This paper outlines the formal representation of the environment in whic...

Please sign up or login with your details

Forgot password? Click here to reset