[Paper Review] Opaque Service Virtualisation: A Practical Tool for Emulating Endpoint Systems
This paper proposes opaque service virtualisation, a technique that automatically generates accurate service responses using message traces without prior protocol knowledge. By applying multiple sequence alignment with a modified Needleman-Wunsch algorithm to derive message prototypes, it achieves over 99% accuracy in emulating enterprise messaging protocols, successfully integrated into CA Service Virtualization for industrial use.
Large enterprise software systems make many complex interactions with other services in their environment. Developing and testing for production-like conditions is therefore a very challenging task. Current approaches include emulation of dependent services using either explicit modelling or record-and-replay approaches. Models require deep knowledge of the target services while record-and-replay is limited in accuracy. Both face developmental and scaling issues. We present a new technique that improves the accuracy of record-and-replay approaches, without requiring prior knowledge of the service protocols. The approach uses Multiple Sequence Alignment to derive message prototypes from recorded system interactions and a scheme to match incoming request messages against prototypes to generate response messages. We use a modified Needleman-Wunsch algorithm for distance calculation during message matching. Our approach has shown greater than 99% accuracy for four evaluated enterprise system messaging protocols. The approach has been successfully integrated into the CA Service Virtualization commercial product to complement its existing techniques.
Motivation & Objective
- Address the challenge of testing enterprise systems in production-like conditions without access to real backend services.
- Overcome limitations of existing service virtualisation tools that require explicit protocol modeling or are restricted to known protocols.
- Enable automated, scalable, and accurate emulation of complex enterprise messaging protocols without prior knowledge of message structures or schemas.
- Provide a practical solution for DevOps environments requiring frequent, real-time testing under realistic conditions.
- Integrate the technique into a commercial product to support widespread industrial deployment and usability.
Proposed method
- Capture message traces from real system interactions to collect representative request-response pairs.
- Apply multiple sequence alignment (MSA) to identify common patterns across similar messages, extracting message prototypes for each operation type.
- Use a modified Needleman-Wunsch algorithm to compute alignment-based distance between incoming requests and message prototypes for matching.
- Treat message fields as variable or fixed using wildcards in prototypes to separate stable and unstable message components.
- Select the prototype with the minimum distance to the incoming request as the best match for response generation.
- Generate responses based on the matched prototype, enabling real-time, accurate emulation without protocol reverse engineering.
Experimental results
Research questions
- RQ1Can message traces be used to automatically generate accurate, protocol-agnostic service response models without prior knowledge of message formats or protocols?
- RQ2How effective is multiple sequence alignment with a modified Needleman-Wunsch algorithm in matching diverse request messages to derived prototypes?
- RQ3To what extent can this approach achieve high accuracy and robustness across different message encodings, lengths, and payloads in real-world enterprise systems?
- RQ4Can this technique be successfully integrated into a commercial tool and scaled for industrial use in DevOps environments?
- RQ5What are the limitations of a stateless modeling approach in real-world testing scenarios, and how can stateful behavior be modeled in future extensions?
Key findings
- The approach achieved greater than 99% accuracy in emulating four enterprise messaging protocols using only recorded message traces.
- The technique successfully enabled emulation of previously unsupported protocols in CA Service Virtualization, eliminating the need for manual protocol modeling.
- The use of wildcards in prototypes allowed robust matching even when messages varied in length or contained minor structural differences.
- The method demonstrated strong performance under diverse message encodings and operation types, proving robustness in real-world conditions.
- The integration into CA Service Virtualization enabled deployment across thousands of users, validating industrial scalability and practical utility.
- Despite high accuracy, challenges remain with small transaction libraries and the need for user intervention in edge cases requiring 100% correctness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.