A Hybrid Cloud Testing System Based on Virtual Machines and Networks

Jing Chen, Honghua Yan, Chunxiao Wang, Xuyan LiuKSII 2020

Abstract

Traditional software testing typically uses many physical resources to manually build various test environments, resulting in high resource costs and long test time due to limited resources, especially for small enterprises. Cloud computing can provide sufficient low-cost virtual resources to alleviate these problems through the virtualization of physical resources. However, the provision of various test environments and services for implementing software testing rapidly and conveniently based on cloud computing is challenging. This paper proposes a multilayer cloud testing model based on cloud computing and implements a hybrid cloud testing system based on virtual machines (VMs) and networks. This system realizes the automatic and rapid creation of test environments and the remote use of test tools and test services. We conduct experiments on this system and evaluate its applicability in terms of the VM provision time, VM performance and virtual network performance. The experimental results demonstrate that the performance of the VMs and virtual networks is satisfactory and that this system can improve the test efficiency and reduce test costs through rapid virtual resource provision and convenient test services.

Introduction

Software testing is frequently a bottleneck in the development lifecycle. It often demands significant physical hardware, complex manual configuration of diverse environments (including various operating systems, databases, and middleware), and high licensing costs for specialized testing tools. For small-to-medium enterprises (SMEs), these barriers can lead to compromised quality assurance due to resource constraints. While cloud computing offers a potential solution via Infrastructure as a Service (IaaS), simply providing virtual machines (VMs) is insufficient for a complete testing workflow. Testers require a unified ecosystem that allows for rapid deployment of specific network topologies, access to specialized tools like load generators or code analyzers, and integrated bug management. This paper addresses these challenges by proposing a hybrid cloud testing system that manages the entire testing lifecycle.

Methodology and System Architecture

The proposed system is built upon a four-layer hybrid cloud testing model designed to bridge the gap between infrastructure and specialized software services. The Physical Layer comprises the underlying hardware, while the IaaS Layer (built on OpenStack and KVM) manages the lifecycle of VMs and virtual networks. Above this, the SaaS Layer hosts specific testing services—such as performance testing or code analysis—provided by the platform or third-party vendors. Finally, a Portal Layer provides a unified interface for users and administrators.

Figure 4: Overall architecture and workflow of the hybrid cloud testing system, illustrating the interaction between enterprises, test environments, and SaaS platforms.

Network Virtualization and Isolation

A critical innovation of this system is its approach to network virtualization. To support multi-tenancy, the system must ensure that one enterprise's test traffic does not interfere with another's. The architecture utilizes Open vSwitch (OVS) and GRE tunnels to create isolated private virtual networks. As shown in the network topology, communication between VMs on different compute nodes is facilitated through a dedicated network node, which handles routing and isolation via virtual bridges (br-int, br-tun) and GRE tunneling.

Figure 1: Network topology showing VM communication across compute nodes via GRE tunnels and a central network node.

Experimental Results

The system was evaluated based on provisioning speed, compute performance, and network efficiency:

  • Provisioning Speed: The system demonstrates high efficiency, provisioning 10 VMs in approximately 54 seconds. Even under a heavier load of 45 concurrent requests, the average time remains around 101 seconds, representing a significant improvement over manual physical setup.
  • Compute Performance: Using UnixBench, the system's VMs achieved scores near 1000. While slightly lower than major public clouds like Alibaba Cloud (likely due to hardware differences), the performance was deemed satisfactory for standard software testing tasks.
  • Network Efficiency: Internal virtual network bandwidth reached 937 Mb/s, nearly matching physical network speeds (941 Mb/s). While external internet access showed higher latency due to the multiple virtual layers, the internal throughput remains robust for distributed testing scenarios.

Conclusion

The implemented hybrid cloud testing system successfully automates the "setup-deploy-test-report" lifecycle, providing a cost-effective alternative for enterprises. By integrating network isolation with a service marketplace for testing tools, the platform reduces the overhead of environment preparation. Future work will focus on optimizing hypervisor configurations to close the performance gap with public clouds and expanding the variety of available VM resource configurations to support more intensive testing scenarios.

Summary updated

BibTeX
@inproceedings{chen2020hybrid,
  author = {Jing Chen and Honghua Yan and Chunxiao Wang and Xuyan Liu},
  title = {{A Hybrid Cloud Testing System Based on Virtual Machines and Networks}},
  booktitle = {KSII},
  year = {2020},
  doi = {10.3837/tiis.2020.04.007},
}
Figure