arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.01184cs.NI
收藏

富策略DBF路由协议收敛性的形式化验证

Formally Verified Convergence of Policy-Rich DBF Routing Protocols

Matthew L. Daggitt, Timothy G. Griffin

摘要:

在本文中,我们提出了新的一般收敛结果的分布式Bellman-Ford(DBF)家庭的路由协议,其中包括距离矢量协议(如RIP)和路径矢量协议(如BGP)的行为。我们的结果适用于“富含策略”的协议,我们指的是可以具有复杂策略(例如条件路由转换)的协议,这些策略违反了Bellman-Ford协议标准演示中做出的传统假设。首先,我们提出了一个新的代数模型,抽象路由问题,具有更少的原语比以前的模型,可以表示更有表现力的政策语言。新模型也是第一个允许距离矢量和路径矢量协议并发推理的模型。其次,我们演示了DBF路由协议是一个更大的类的异步迭代算法,已经存在强大的收敛结果的实例。这些结果使我们能够建立在Sobrinho以前所示的条件是路径矢量协议收敛的充分和必要条件,并加强它们:我们表明,经过微小的修改,它们也适用于距离矢量协议;我们证明它们保证最终到达的路由解决方案是唯一的,从而消除了异常的可能性,如BGP楔形;我们放松了异步通信的模型,表明如果路由消息可以丢失、重新排序和复制,则结果仍然成立。第三,我们的模型和相应的理论结果已经在Agda定理证明器中完全形式化。由此产生的库是一个强大的工具,用于快速原型化和正式验证新的策略语言。作为一个例子,我们正式验证了策略语言的正确性与BGP的许多功能,包括社区,条件策略,路径膨胀和路由过滤。

英文摘要:

In this paper we present new general convergence results about the behaviour of the Distributed Bellman-Ford (DBF) family of routing protocols, which includes distance-vector protocols (e.g. RIP) and path-vector protocols (e.g. BGP). Our results apply to ``policy-rich" protocols, by which we mean protocols that can have complex policies (e.g. conditional route transformations) that violate traditional assumptions made in the standard presentation of Bellman-Ford protocols. First, we propose a new algebraic model for abstract routing problems which has fewer primitives than previous models and can represent more expressive policy languages. The new model is also the first to allow concurrent reasoning about distance-vector and path-vector protocols. Second, we demonstrate how DBF routing protocols are instances of a larger class of asynchronous iterative algorithms, for which there already exist powerful results about convergence. These results allow us to build upon conditions previously shown by Sobrinho to be sufficient and necessary for the convergence of path-vector protocols and strengthen them: we show that, with a minor modification, they also apply to distance-vector protocols; we prove they guarantee that the final routing solution reached is unique, thereby eliminating the possibility of anomalies such as BGP wedgies; we relax the model of asynchronous communication, showing that the results still hold if routing messages can be lost, reordered, and duplicated. Thirdly, our model and our accompanying theoretical results have been fully formalised in the Agda theorem prover. The resulting library is a powerful tool for quickly prototyping and formally verifying new policy languages. As an example, we formally verify the correctness of a policy language with many of the features of BGP including communities, conditional policy, path-inflation and route filtering.

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

↑