NetRep: Automatic Repair for Network Programs
Authors:
- Lei ShiLSLei Shi
- Yuepeng WangYWYuepeng Wang
- Rajeev AlurRARajeev Alur
- Boon Thau LooBLBoon Thau Loo
Preprint
Abstract
Debugging imperative network programs is a challenging task for developers because understanding various network modules and complicated data structures is typically time-consuming. To address the challenge, this paper presents an automated technique for repairing network programs from unit tests. Specifically, given as input a faulty network program and a set of unit tests, our approach localizes the fault through symbolic reasoning, and synthesizes a patch such that the repaired program can pass all unit tests. It applies domain-specific abstraction to simplify network data structures and utilizes modular analysis to facilitate function summary reuse for symbolic analysis. We implement the proposed techniques in a tool called NetRep and evaluate it on 10 benchmarks adapted from real-world software-defined networking controllers. The evaluation results demonstrate the effectiveness and efficiency of NetRep for repairing network programs.Keywords
All Related Versions
This publication has 3 references indexed in Scilit:
- DeepBugs: a learning approach to name-based bug detectionProceedings of the ACM on Programming Languages, 2018
- Deep Learning-Based Fault Localization with Contextual InformationIEICE Transactions on Information and Systems, 2017
- Z3str2: an efficient solver for strings, regular expressions, and length constraintsFormal Methods in System Design, 2016