# US 2021/0288885 A1 · Simulation and testing of infrastucture as a service scale using a container orchestration engine

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0288885 A1
- Document ID: US20210288885A1
- Status: Published application
- Kind: A1
- Application number: 16/820,624
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Sai Sindhur Malleni; Venkata Anil Kumar Kommaddi
- Web page: https://patentgrep.com/patent/US20210288885A1

## CPC

- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- H04L 41/145: {involving simulating, designing, planning or modelling of a network}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L 43/55: Testing of service level quality, e.g. simulating service usage
- H04L 49/70: {Virtual switches}
- H04L 63/0263: {Rule management}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for scale testing infrastructure as a service systems are disclosed. A processing device generates a container image including a plurality of processes for providing compute functions and modifying a fake virtual driver with network switch functionality. The plurality of processes includes a compute process to create fake virtual machines using the modified fake virtual driver. The processing device generates a plurality of simulated compute nodes using the container image and generates a plurality of fake virtual machines using the modified fake virtual driver on one or more simulated compute nodes, scheduled as pods using a container orchestration engine. In this way, network and messaging traffic on the control plane is effectively simulated at scale. The modified fake driver enables network switch functionality so that network configuration for each fake virtual machine may be simulated, thereby mimicking the network actions of a virtual machine on a compute node.

## Claims

### Claim 1

A method comprising:
modifying a fake virtual driver with virtual switch functionality;
generating a container image including a plurality of processes, wherein the plurality of processes includes a compute process to create and terminate fake virtual machines using the modified fake virtual driver;
generating, by a processing device, a plurality of simulated compute nodes using the container image; and
creating a plurality of fake virtual machines on a simulated compute node of the plurality of simulated compute nodes using the modified fake virtual driver, to simulate network traffic on a control plane.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of processes further includes:
one or more processes to enable virtual switch functionality and commands within the simulated compute node; and
a network service agent that interacts with the modified fake virtual driver to simulate a network configuration of each fake virtual machine that is created on the simulated compute node and thereby simulate network traffic on the control plane, wherein the virtual network switch functionality allows the modified fake virtual driver to interact with the network service agent.

### Claim 3 (depends on 2)

The method of claim 2, wherein simulating a network configuration of a fake virtual machine that is created on the simulated compute node comprises:
performing virtual interface (VIF) plugging operations for the fake virtual machine including creating an open virtual switch (OvS) internal interface for the fake virtual machine on an internal OpenStack bridge of the simulated compute node;
in response to creation of the OvS internal interface, adding corresponding flows and firewall rules to the fake virtual machine; and
notifying a network service on the control plane about the VIF plugging operations.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the plurality of simulated compute nodes comprises:
scheduling, using a container orchestration engine, the plurality of simulated compute nodes as one or more pods, each of the one or more pods having script to configure itself as a simulated compute node with its own IP addresses and simulated network stacks and script to communicate with the control plane.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating the plurality of simulated compute nodes further comprises:
defining a replicaset object with a specified number of simulated compute nodes to maintain, wherein in response to detecting that one or more simulated compute nodes have been deleted, the replicaset object creates additional simulated compute nodes to maintain the specified number of simulated compute nodes.

### Claim 6 (depends on 1)

The method of claim 1, wherein each simulated compute node is generated independently of the control plane, self-reports its existence to the control plane, and generates messaging traffic between itself and the control plane.

### Claim 7 (depends on 1)

The method of claim 1, wherein the modified fake virtual driver stores an internal status data structure and reports to the control plane about the internal status data structure, and wherein the internal status data structure does not correspond to any of the plurality of fake virtual machines.

### Claim 8

A system comprising:
a memory; and
a processing device operatively coupled to the memory, the processing device to:
modify a fake virtual driver with virtual switch functionality;
generate a container image including a plurality of processes, wherein the plurality of processes includes a compute process to create and terminate fake virtual machines using the modified fake virtual driver;
generate a plurality of simulated compute nodes using the container image; and
create a plurality of fake virtual machines on a simulated compute node of the plurality of simulated compute nodes using the modified fake virtual driver, to simulate network traffic on a control plane.

### Claim 9 (depends on 8)

The system of claim 8, wherein the plurality of processes further includes:
one or more processes to enable virtual switch functionality and commands within the simulated compute node; and
a network service agent that interacts with the modified fake virtual driver to simulate a network configuration of each fake virtual machine that is created on the simulated compute node and thereby simulate network traffic on the control plane, wherein the virtual network switch functionality allows the modified fake virtual driver to interact with the network service agent.

### Claim 10 (depends on 9)

The system of claim 9, wherein to simulate a network configuration of a fake virtual machine that is created on the simulated compute node, the processing device is to:
perform virtual interface (VIF) plugging operations for the fake virtual machine including creating an open virtual switch (OvS) internal interface for the fake virtual machine on an internal OpenStack bridge of the simulated compute node;
in response to creation of the OvS internal interface, add corresponding flows and firewall rules to the fake virtual machine; and
notify a network service on the control plane about the VIF plugging operations.

### Claim 11 (depends on 8)

The system of claim 8, wherein to generate the plurality of simulated compute nodes, the processing device is further to:
schedule, using a container orchestration engine, the plurality of simulated compute nodes as one or more pods, each of the one or more pods having script to configure itself as a simulated compute node with its own IP addresses and simulated network stacks and script to communicate with the control plane.

### Claim 12 (depends on 11)

The system of claim 11, wherein to generate the plurality of simulated compute nodes, the processing device is further to:
define a replicaset object with a specified number of simulated compute nodes to maintain, wherein in response to detecting that one or more simulated compute nodes have been deleted, the replicaset object creates additional simulated compute nodes to maintain the specified number of simulated compute nodes.

### Claim 13 (depends on 8)

The system of claim 8, wherein each simulated compute node is generated independently of the control plane, self-reports its existence to the control plane, and generates messaging traffic between itself and the control plane.

### Claim 14 (depends on 8)

The system of claim 8, wherein the modified fake virtual driver stores an internal status data structure and reports to the control plane about the internal status data structure, and wherein the internal status data structure does not correspond to any of the plurality of fake virtual machines.

### Claim 15

A non-transitory computer readable medium having instruction stored thereon that, when executed by a processing device, cause the processing device to:
modify a fake virtual driver with virtual switch functionality;
generate a container image including a plurality of processes, wherein the plurality of processes includes a compute process to create and terminate fake virtual machines using the modified fake virtual driver;
generate, by the processing device, a plurality of simulated compute nodes using the container image; and
create a plurality of fake virtual machines on a simulated compute node of the plurality of simulated compute nodes using the modified fake virtual driver, to simulate network traffic on a control plane.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the plurality of processes further includes:
one or more processes to enable virtual switch functionality and commands within the simulated compute node; and
a network service agent that interacts with the modified fake virtual driver to simulate a network configuration of each fake virtual machine that is created on the simulated compute node and thereby simulate network traffic on the control plane, wherein the virtual network switch functionality allows the modified fake virtual driver to interact with the network service agent.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein to simulate a network configuration of a fake virtual machine that is created on the simulated compute node, the processing device is to:
perform virtual interface (VIF) plugging operations for the fake virtual machine including creating a open virtual switch (OvS) internal interface for the fake virtual machine on an internal OpenStack bridge of the simulated compute node;
in response to creation of the OvS internal interface, add corresponding flows and firewall rules to the fake virtual machine; and
notify a network service on the control plane about the VIF plugging operations.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein to generate the plurality of simulated compute nodes, the processing device is further to:
schedule, using a container orchestration engine, the plurality of simulated compute nodes as one or more pods, each of the one or more pods having script to configure itself as a simulated compute node with its own IP addresses and simulated network stacks and script to communicate with the control plane.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein to generate the plurality of simulated compute nodes, the processing device is further to:
define a replicaset object with a specified number of simulated compute nodes to maintain, wherein in response to detecting that one or more simulated compute nodes have been deleted, the replicaset object creates additional simulated compute nodes to maintain the specified number of simulated compute nodes.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein each simulated compute node is generated independently of the control plane and self-reports its existence to the control plane.
