Skip to main content
QUICK REVIEW

[Paper Review] Opaque Response Generation Enabling Automatic Creation of Virtual Services for Service Virtualisation

Miao Du|arXiv (Cornell University)|Aug 17, 2016
Software System Performance and ReliabilityComputer Science4 references4 citations
TL;DR

This paper proposes an opaque response generation approach for automatic service virtualization that enables virtual service creation without expert knowledge or protocol documentation. By clustering interactions, matching incoming requests to similar recorded ones, and learning from them to generate accurate responses in real time, the method achieves over 99% average accuracy, enabling DevOps-friendly, production-like testing environments.

ABSTRACT

Service virtualisation is a method to create virtual service models that can mimic interaction behaviors between a system under test and the target system. With service virtualisation, the development team can get access to the production-like conditions whenever and however many times they need, enabling frequent and comprehensive testing. Previous techniques for service virtualisation have relied on explicitly modelling the target services by a service expert and require detailed knowledge of message protocol and structure. However, neither of these are necessarily available. In this thesis, we introduce our novel opaque response generation approach. This approach enables services to be virtualised automatically without any expert knowledge or documentation of system protocol and interaction behaviours. Given a collection of interactions exchanged between a system under test and a target real service, our approach can 1) organise the same type of interactions into the same cluster and derive a cluster prototype for each cluster; 2) search a given incoming request for its the most similar request in the interaction library; 3) learn knowledge from the incoming request and the recorded interaction; and 4) generate a response. A framework and proof-of-concept implementation of our opaque response generation approach is described. Experimental results show our opaque response generation approach is able to automatically generate accurate responses in real time with an accuracy rate over 99% on average.

Motivation & Objective

  • To address the challenge of testing software systems in isolation due to dependencies on external services.
  • To eliminate the need for expert reverse-engineering or detailed protocol documentation in service virtualization.
  • To enable automatic, real-time generation of accurate virtual service responses using only observed interactions.
  • To support continuous integration and DevOps practices by providing on-demand, production-like testing environments.

Proposed method

  • Clustering similar interactions from recorded traffic into groups using similarity metrics.
  • Deriving a cluster prototype (e.g., centroid) for each interaction cluster to represent typical behavior.
  • Matching an incoming request to the most similar recorded request using a similarity-based search mechanism.
  • Learning from the matched request and its associated response to generate a new, contextually appropriate response.
  • Applying a consensus prototype approach to improve response accuracy and robustness.
  • Implementing a proof-of-concept framework using network trace data to validate the approach in real-time service emulation.

Experimental results

Research questions

  • RQ1Can service virtualization be achieved without prior knowledge of message protocols or system behavior?
  • RQ2How accurately can virtual services generate responses using only observed interaction traces?
  • RQ3What clustering and matching techniques enable efficient and accurate response generation in real time?
  • RQ4How does the opaque response generation approach scale and perform under dynamic or complex interaction workloads?
  • RQ5Can the approach maintain high accuracy across diverse service types and interaction patterns?

Key findings

  • The opaque response generation approach achieves an average response accuracy rate of over 99% in real-time testing scenarios.
  • The method successfully generates accurate virtual service responses without requiring protocol documentation or expert reverse-engineering.
  • The cluster centroid and consensus prototype techniques significantly improve response generation efficiency and robustness.
  • The framework supports continuous, on-demand testing by emulating production-like service behavior from captured network traces.
  • The approach is effective across diverse service interactions, including Twitter API calls such as user timelines, tweet retrieval, and friend relationships.
  • The implementation demonstrates feasibility and scalability for DevOps environments, enabling frequent and comprehensive testing without access to production systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.