arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.06303cs.SEcs.PL
收藏

NetRep:网络程序的自动修复

NetRep: Automatic Repair for Network Programs

Lei Shi, Yuepeng Wang, Rajeev Alur, Boon Thau Loo

摘要:

由于理解各种网络模块和复杂的数据结构通常是耗时的,因此对于开发人员来说,开发命令式网络程序是一项具有挑战性的任务。为了解决这一问题,本文提出了一种从单元测试中自动修复网络程序的技术。具体地说,给定一个有故障的网络程序和一组单元测试作为输入,我们的方法通过符号推理定位故障,并合成一个补丁,使修复后的程序可以通过所有的单元测试。它应用特定于领域的抽象来简化网络数据结构,并利用模块化分析来促进功能摘要的符号分析重用。我们在一个名为NetRep的工具中实现了所提出的技术,并在根据现实世界的软件定义网络控制器改编的10个基准测试上对其进行了评估。评估结果表明NetRep修复网络程序的有效性和效率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑