Interface synthesis and protocol conversion
Summary (2 min read)
1. Introduction
- Interfaces play a central role in component based design and verification of systems.
- Interface automata are a formalism for reasoning about composition and refinement of component interfaces in terms of the protocol aspects of component behaviour.
- The controller synthesis problem and its solution as a winning strategy in a game has a long history, going back to Büchi and Landwebers’ solution of Church’s problem [BL69].
- Recent work on agent algebras [BPSV03, Pas04] formalises the notions of composition and conformance in an abstract algebraic framework, and makes use of the mirror function in an essential way.
2. Asynchronous Interfaces: Interface Automata
- In this section the authors define interface automata and their composition and refinement.
- Throughout this work the authors consider only deterministic interface automata.
- This is in contrast to the original version defined in [dAH01], where an input and an output action with the same name combine to give an internal action.
- The authors call these states backward compatible.
- This implies there is an input strategy πI for P ⊗Q which avoids all locally incompatible states starting from s0P⊗Q, no matter what the output strategy is.
3. Synthesis of Interface Automata
- The synthesis problem for interface automata is as follows.
- Here Fig. 1 presents three examples to illustrate the synthesis idea with given interface automata P and Q.
- The solution is essentially identical with Q, except for the polarity of action b. Notation First the authors prove a result about compatibility that is used in Theorem 3.3 below.
4. Winning Strategies and Synthesis
- Since the orders are lattices, the most permissive strategy exists, as is given by the lattice join.
- The authors then show that the parallel composition P ‖ Q can be extracted from the most permissive winning strategy for Input.
- Note that the bottom elements are the empty strategies, which are allowed by the definition of strategies.
- From Definition 2.10, this implies that the set T of backward compatible states is empty, and hence by Definition 2.11 the composition P ‖ Q is empty.
- The complexity of the algorithm is linear in the size of the game graph.
5. Application: Network Protocol Conversion
- In today’s world, global communication over heterogeneous networks of computers can often lead to protocol mismatches between communicating entities.
- The authors illustrate the use of interface synthesis to the protocol conversion problem through an example adapted from [KNM97].
- When the authors want the two protocols above to work together without causing any inconsistency by using a converter, they need to specify what the converter is allowed and not allowed to do.
- The specification S for the converter relates the two actions sets by specifying temporal ordering of actions.
6. Synchronous Interface Automata
- In earlier sections the authors have presented the synthesis problem and its solution for interface automata, a formalism intended for component-based modelling and development of asynchronous systems.
- The authors SIA model essentially defines Mealy automata with explicit input assumptions and output guarantees.
- The game view of interface composition and refinement then applies mutatis mutandis to the synchronous setting.
- Let P and Q be two SIA with I/O signatures as above.
7. Synthesis of Synchronous Interfaces
- Here P⊥ has the same interpretation as in the asynchronous case.
- First the authors prove a result about compatibility that is used in Theorem 7.2 below.
- The complexity of computing (P ‖ Q⊥)⊥ is again O(|P ||Q|) using the standard iterative refinement technique as in the asynchronous case.
8. Converter Synthesis
- In this section the authors show how the SIA framework and the interface synthesis procedure described in Section 7 can be used to synthesise a protocol converter for two IP blocks that have incompatible protocols of interaction.
- Sometimes the authors indicate a don’t care explicitly by a signal T. Fig. 7 illustrates the synchronous interfaces for two mismatched protocols.
- The authors ignore all data values such as addresses, and consider only boolean control values.
- The authors require that the system as a whole (the two protocols along with the converter) satisfies the interface described by Fig.
Did you find this useful? Give us your feedback
Citations
16 citations
Cites background or methods from "Interface synthesis and protocol co..."
...Otherwise we are guaranteed that no suitable managed component B exists for the candidate manager M since the solution of [4] is sound and complete....
[...]
...The solution of [4] can be applied in both cases since the composition of interface automata is commutative....
[...]
...The control synthesis solution of [4] can be lifted to aia in the obvious way....
[...]
...It is now sufficient to use the solution of [4] which defines B to be (M | P⊥)⊥, where P⊥ abbreviates P⊥AP ....
[...]
...We recall that the synthesis of controllers for interface automata [4] is the problem of solving the equation P | Y Q, for a given system Q and component P , i....
[...]
14 citations
Cites background from "Interface synthesis and protocol co..."
...Similarly, Bhaduri and Ramesh [8] investigate the problem of synthesizing, given P and Q as interface automata, R such that the composition of R and P refines Q; they provide a game-theoretic formulation of the problem as computing winning strategies over a game between P and Q....
[...]
11 citations
10 citations
Cites background or methods from "Interface synthesis and protocol co..."
...This is closely related to the quotienting operator defined in [8], but requires suitable modification to be applicable to the algebra....
[...]
...Based on [8], it follows that quotienting is a derived operator of the algebra....
[...]
...IA can be synthesised in a specification theory by means of a quotienting operator \, as described in [8]....
[...]
9 citations
References
8,625 citations
2,829 citations
[...]
2,304 citations
1,612 citations
Related Papers (5)
Frequently Asked Questions (2)
Q2. What have the authors stated for future works in "Interface synthesis and protocol conversion" ?
As future work, the authors would like to relax some restrictions they have put on the synchronous interface model, such as the requirement of observable nondeterminism. Other possibilities would be to include the effect of hiding internal signals and including fairness specifications to both asynchronous and synchronous interfaces. The work on agent algebras related to semantic foundations for heterogeneous systems ( see [ Pas04 ] ) has a similar goal, and it will be interesting to investigate the connections between the two. The authors are grateful to the anonymous referees for suggesting many improvements in the presentation.