Skip to main content
QUICK REVIEW

[论文解读] Synthesis of correct adaptors for protocol enhancement in component-based systems

Marco Autili, Paola Inverardi|arXiv (Cornell University)|Apr 28, 2015
Advanced Software Engineering MethodologiesComputer Science参考文献 17被引用 17
一句话总结

本文提出了一种组合式、自动化的正确适配器(协调器)合成方法,用于增强基于组件的系统中的通信协议。通过扩展先前关于行为限制的工作,该方法引入了通过模块化包装器实现的协议转换,利用假设-保证验证技术确保与期望行为的一致性,从而在不修改原始组件的情况下实现安全、增量式的协议增强。

ABSTRACT

Adaptation of software components is an important issue in Component Based Software Engineering (CBSE). Building a system from reusable or Commercial-Off-The-Shelf (COTS) components introduces a set of problems, mainly related to compatibility and communication aspects. On one hand, components may have incompatible interaction behavior. This might require to restrict the system's behavior to a subset of safe behaviors. On the other hand, it might be necessary to enhance the current communication protocol. This might require to augment the system's behavior to introduce more sophisticated interactions among components. We address these problems by enhancing our architectural approach which allows for detection and recovery of incompatible interactions by synthesizing a suitable coordinator. Taking into account the specification of the system to be assembled and the specification of the protocol enhancements, our tool (called SYNTHESIS) automatically derives, in a compositional way, the glue code for the set of components. The synthesized glue code implements a software coordinator which avoids incompatible interactions and provides a protocol-enhanced version of the composed system. By using an assume-guarantee technique, we are able to check, in a compositional way, if the protocol enhancement is consistent with respect to the restrictions applied to assure the specified safe behaviors.

研究动机与目标

  • 解决由可重用或COTS组件构成的基于组件系统中协议不兼容性和行为不匹配的问题。
  • 将现有的协调器合成技术扩展至支持超越简单行为限制的协议增强。
  • 通过模块化、可组合的包装器组件,实现安全、增量式的协议转换。
  • 形式化验证协议增强是否保留了初始协调器所强制执行的期望安全行为。
  • 提供一个自动化的、工具支持的框架,以组合式方式合成并验证增强后的协调器。

提出的方法

  • 该方法使用系统组件和期望行为的形式化规格,自动合成一个初始协调器,以限制交互行为至安全、无死锁的行为。
  • 协议增强被建模为通过包装器组件应用的模块化转换,这些组件拦截并修改交互,而无需修改原始组件或初始协调器。
  • 通过将原始协调器与新的协调器组合,构建增强后的协调器,这些新协调器介于初始协调器和包装器组件之间。
  • 采用组合式假设-保证验证技术检查一致性:增强后的系统仍必须满足原始安全属性。
  • 一致性检查涉及为增强后的环境和原始属性的否定构建Büchi自动机,然后验证其语言交集是否为空。
  • 整个过程在SYNTHESIS工具中实现,该工具支持协议增强型系统的增量合成与验证。

实验结果

研究问题

  • RQ1是否能够以组合式方式自动合成协议增强,同时保留原始系统的安全属性?
  • RQ2如何使用包装器组件在不修改现有组件或协调器的情况下模块化地应用协议转换?
  • RQ3何种形式化技术可确保协议增强不会重新引入不兼容行为?
  • RQ4如何以组合式方式验证协议增强与指定安全属性的一致性?
  • RQ5所合成的胶水代码在多个、增量式的协议增强中可重用的程度如何?

主要发现

  • 该方法成功将自动协调器合成扩展至支持协议增强,实现了在简单行为限制之外的新交互模式的添加。
  • 使用模块化包装器可实现增量式、可组合的协议转换,提升了代码重用性和可维护性。
  • 假设-保证验证技术实现了组合式的一致性检查,确保协议增强不会违反原始安全属性。
  • 形式化的一致性检查通过Büchi自动机的语言交集实现:若交集为空,则增强与原始属性一致。
  • SYNTHESIS工具成功实现了该方法,如真实规模案例研究所示,证实了该方法的可行性和可扩展性。
  • 该方法支持将协调器转换为协议增强版本,在保持正确性的同时增加了新功能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。