# Measurements As First-class Artifacts

**Authors:** Paolo Laffranchini, Luis Rodrigues, Marco Canini, Balachander, Krishnamurthy

arXiv: 1901.05279 · 2019-01-17

## TL;DR

This paper introduces MAFIA, a set of reusable primitives for network measurement tasks on programmable switches, enabling flexible, concise, and hardware-compatible measurement code without expert knowledge.

## Contribution

The paper presents MAFIA, a novel framework of primitives that simplifies and unifies network measurement task implementation on programmable switches.

## Key findings

- MAFIA primitives enable concise measurement task expression.
- Compiled MAFIA code is comparable to manual P4 code in size and resource usage.
- MAFIA is applicable on current hardware without requiring low-level expertise.

## Abstract

The emergence of programmable switches has sparked a significant amount of work on new techniques to perform more powerful measurement tasks, for instance, to obtain fine-grained traffic and performance statistics. Previous work has focused on the efficiency of these measurements alone and has neglected flexibility, resulting in solutions that are hard to reuse or repurpose and that often overlap in functionality or goals.   In this paper, we propose the use of a set of reusable primitive building blocks that can be composed to express measurement tasks in a concise and simple way. We describe the rationale for the design of our primitives, that we have named MAFIA (Measurements As FIrst-class Artifacts), and using several examples we illustrate how they can be combined to realize a comprehensive range of network measurement tasks. Writing MAFIA code does not require expert knowledge of low-level switch architecture details. Using a prototype implementation of MAFIA, we demonstrate the applicability of our approach and show that the use of our primitives results in compiled code that is comparable in size and resource usage with manually written specialized P4 code and can be run in current hardware.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1901.05279/full.md

## Figures

15 figures with captions in the complete paper: https://tomesphere.com/paper/1901.05279/full.md

## References

44 references — full list in the complete paper: https://tomesphere.com/paper/1901.05279/full.md

---
Source: https://tomesphere.com/paper/1901.05279