Control flow based cost analysis for P4
The networking industry is currently undergoing a steady trend of softwarization. Yet, network engineers suffer from the lack of software development tools that support programming of new protocols. We are creating a cost analysis tool for the P4 programming language, that automatically verifies whe...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
De Gruyter
2020-12-01
|
Series: | Open Computer Science |
Subjects: | |
Online Access: | https://doi.org/10.1515/comp-2020-0131 |
id |
doaj-89d3958b0bc24a348af3fd4d2da3127b |
---|---|
record_format |
Article |
spelling |
doaj-89d3958b0bc24a348af3fd4d2da3127b2021-10-03T07:42:29ZengDe GruyterOpen Computer Science2299-10932020-12-01111707910.1515/comp-2020-0131comp-2020-0131Control flow based cost analysis for P4Lukács Dániel0Pongrácz Gergely1Tejfel Máté2Faculty of Informatics, Eötvös Loránd University, Budapest, HungaryEricsson Hungary Ltd., Budapest, HungaryFaculty of Informatics, Eötvös Loránd University, Budapest, Hungary; 3in Research Group, Martonvásár, HungaryThe networking industry is currently undergoing a steady trend of softwarization. Yet, network engineers suffer from the lack of software development tools that support programming of new protocols. We are creating a cost analysis tool for the P4 programming language, that automatically verifies whether the developed program meets soft deadline requirements imposed by the network. In this paper, we present an approach to estimate the average execution time of P4 program based on control flow graphs. Our approach takes into consideration that many of the parts of P4 are implementation-defined: required information can be added in through incremental refinement, while missing information is handled by falling back to less precise defaults. We illustrate application of this approach to a P4 protocol in two case studies: we use it to examine the effect of a compiler optimization in the deparse stage, and to show how it enables cost modelling complex lookup table implementations. Finally, we assess future research tasks to be completed before the tool is ready for real-world usage.https://doi.org/10.1515/comp-2020-0131data planecontrol flow graphstatic profilingrefinementsoft real-time |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Lukács Dániel Pongrácz Gergely Tejfel Máté |
spellingShingle |
Lukács Dániel Pongrácz Gergely Tejfel Máté Control flow based cost analysis for P4 Open Computer Science data plane control flow graph static profiling refinement soft real-time |
author_facet |
Lukács Dániel Pongrácz Gergely Tejfel Máté |
author_sort |
Lukács Dániel |
title |
Control flow based cost analysis for P4 |
title_short |
Control flow based cost analysis for P4 |
title_full |
Control flow based cost analysis for P4 |
title_fullStr |
Control flow based cost analysis for P4 |
title_full_unstemmed |
Control flow based cost analysis for P4 |
title_sort |
control flow based cost analysis for p4 |
publisher |
De Gruyter |
series |
Open Computer Science |
issn |
2299-1093 |
publishDate |
2020-12-01 |
description |
The networking industry is currently undergoing a steady trend of softwarization. Yet, network engineers suffer from the lack of software development tools that support programming of new protocols. We are creating a cost analysis tool for the P4 programming language, that automatically verifies whether the developed program meets soft deadline requirements imposed by the network. In this paper, we present an approach to estimate the average execution time of P4 program based on control flow graphs. Our approach takes into consideration that many of the parts of P4 are implementation-defined: required information can be added in through incremental refinement, while missing information is handled by falling back to less precise defaults. We illustrate application of this approach to a P4 protocol in two case studies: we use it to examine the effect of a compiler optimization in the deparse stage, and to show how it enables cost modelling complex lookup table implementations. Finally, we assess future research tasks to be completed before the tool is ready for real-world usage. |
topic |
data plane control flow graph static profiling refinement soft real-time |
url |
https://doi.org/10.1515/comp-2020-0131 |
work_keys_str_mv |
AT lukacsdaniel controlflowbasedcostanalysisforp4 AT pongraczgergely controlflowbasedcostanalysisforp4 AT tejfelmate controlflowbasedcostanalysisforp4 |
_version_ |
1716846119335493632 |