Testing device, testing device generation method, and program

A software container-based test device addresses the challenge of testing virtualized networks by dynamically connecting to virtual ports and performing both black box and white box tests, facilitating efficient testing of distributed network environments.

JP2024143741AInactive Publication Date: 2024-10-11NTT COMM CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023056563
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional test equipment struggles to effectively test virtualized network devices due to difficulties in connecting virtual ports to physical ports, and performing both black box and white box tests in distributed network environments.

Method used

Implementing a test device with a control unit and load generation units as software containers, allowing dynamic generation and connection to virtual or physical ports through VLANs, enabling flexible interface settings and distributed testing across multiple hosts.

Benefits of technology

Enables comprehensive testing of virtualized network devices, including white box tests for identifying bottlenecks, without the need for physical connections to external hardware, and supports testing of distributed networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024143741000001_ABST
    Figure 2024143741000001_ABST
Patent Text Reader

Abstract

To test virtualized network equipment.SOLUTION: A testing device includes a control unit that generates one or more load-generating units on a host according to a command and the one or more load-generating units. Each load-generating unit is configured to generate a connection with the control unit and to wait for an instruction from the control unit.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for performing network testing. [Background technology]

[0002] Tests of network devices such as IP routers have been conducted for some time now. In the conventional technology, tests are generally conducted by connecting the ports of a device under test, such as an IP router, and the testing device with a LAN cable and sending packets from the testing device to the device under test. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-026709 A Summary of the Invention [Problem to be solved by the invention]

[0004] In recent years, network virtualization has progressed. For example, a virtualized network is constructed by creating multiple network devices realized by containers on a host. However, there is a problem that it is difficult to test virtualized network devices with conventional test equipment.

[0005] The present invention has been made in consideration of the above-mentioned points, and has an object to provide a technique for testing a virtualized network device. [Means for solving the problem]

[0006] According to the disclosed technology, a control unit that generates one or more load generating units on a host in accordance with a command; The one or more load generating units, Each load generating unit creates a connection with the control unit and waits for instructions from the control unit. A test apparatus is provided. Effect of the Invention

[0007] According to the disclosed technique, a technique for testing a virtualized network device is provided. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram for explaining problem 1. [Diagram 2] FIG. 13 is a diagram for explaining Problem 2. [Diagram 3] FIG. 11 is a diagram for explaining Problem 3. [Figure 4] FIG. 13 is a diagram for explaining Problem 4. [Diagram 5] FIG. 1 is a diagram for explaining a first embodiment. [Figure 6] FIG. 11 is a diagram for explaining a processing procedure. [Figure 7] FIG. 2 is a diagram illustrating an example of a connection configuration between a test device and a device under test. [Figure 8] FIG. 2 is a diagram illustrating an example of a connection configuration between a test device and a device under test. [Figure 9] FIG. 1 is a diagram for explaining the reason for using a container. [Figure 10] FIG. 11 is a diagram for explaining a second embodiment. [Figure 11] FIG. 11 is a diagram for explaining a second embodiment. [Figure 12] FIG. 13 is a diagram illustrating an example of a load generating container list. [Figure 13] FIG. 11 is a diagram for explaining a third embodiment. [Figure 14] FIG. 13 is a diagram for explaining a fourth embodiment. [Figure 15] FIG. 13 is a diagram for explaining a fifth embodiment. [Figure 16] FIG. 2 illustrates an example of a hardware configuration of the apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the present invention (the present embodiment) will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0010] First, problems with the technology according to the embodiment will be described in detail. The contents described in Problems 1 to 4 below are not publicly known. Since Problems 1 to 4 are solved by the technology according to the embodiment, the following explanation of Problems 1 to 4 is also intended to make the effects of the technology according to the embodiment easier to understand.

[0011] (Challenge 1) Generally, network services are provided to users by a system consisting of network devices such as IP routers, Web servers, switches, etc. In this specification, Web servers are also considered to be a type of "network device."

[0012] In order to check the normality of the network devices that make up the above system, tests are conducted using test equipment (which may also be called a tester). The device that is the subject of the test is called the device under test or the test object. The device under test may also be called the target. Here, both the test equipment and the device under test are assumed to be physical machines.

[0013] Fig. 1 shows an example of a test configuration when the device under test is an IP router 4. As shown in Fig. 1, in this case, ports on the IP router 4 and the test equipment 1 are connected with a LAN cable, and traffic is generated from the test equipment 1 to apply a load to the IP router 4.

[0014] In the example of Fig. 1, the test device 1 is roughly divided into a control unit 2 and a load generation unit 3. In this configuration, the control unit 2 receives settings from an operator terminal 50. The load generation unit 3 has an interface such as a LAN port, and is connected to a target port. In response to the settings input to the control unit 2 from the operator terminal 50, the load generation unit 3 creates packets and sends them to the target.

[0015] In a large-scale target, the number of ports increases, and the number of traffic patterns (types of destination addresses set in packets generated by the test equipment 1) also increases, resulting in a large number of setting items. Therefore, the person conducting the test must prepare many complicated setting items before starting the test.

[0016] (Task 2) In recent years, the virtualization of network devices has progressed. In virtualization, for example, a plurality of components realized by software are generated in one physical server, and the plurality of components are connected by a complex network.

[0017] Fig. 2 shows an example of a virtualized network built on a physical server 6. Also shown in Fig. 2 is a test device 1 connected to the physical server 6. Note that a computer on which the virtualized network is built may be called a host. The host may be a physical server or a virtual server.

[0018] The trend towards virtualizing network devices is becoming more pronounced due to the trend towards microservices. When testing such a virtualized network, the conventional test device 1 cannot test each virtual component. Although it is possible to perform a load test on the physical server 6, this becomes a black-box test, and it is difficult to perform a test to find the bottleneck of the constituent network devices.

[0019] (Task 3) In the example shown in Fig. 2, switches, virtual servers, etc. are generated within one physical server 6, and the system is closed to the physical server 6. However, in reality, such a configuration is rare, and it is common for multiple network devices that make up one service to be distributed across multiple physical servers or multiple locations (data centers). An example of such a configuration is shown in Fig. 3.

[0020] As shown in FIG. 3, in a system in which components are distributed, even black-box testing is difficult using conventional hardware-based test equipment.

[0021] (Task 4) Even if an attempt is made to take out one of the network devices that make up a virtualized network and perform a standalone functional test, it is difficult to do so using conventional test equipment.

[0022] For example, consider a case where a test is performed with an IP router 13 on a virtual machine 12 on a physical server 11 as a target, as shown in Fig. 4. Since ports 14 and 15 used for the IP router 13 are virtual ports, the number of ports can be determined by software settings.

[0023] On the other hand, in the physical server 11, the number of physical ports 16 is determined by the number of network cards (NICs) mounted, so the virtual ports 14 and 15 used in the IP router 13 cannot be directly associated with the physical ports 16.

[0024] Therefore, as shown in FIG. 4, by associating a VLAN with a logical port 14 of an IP router 13, it is possible to extract a port from a physical port 16 to the outside using a tagged VLAN.

[0025] However, in order to connect a test device to the IP router 13 using this configuration, it is necessary to either use another physical switch that converts the tagged VLAN to a physical port of the test device, or to set the test device to recognize the VLAN.

[0026] As described above, it is difficult to test a network device that is virtualized and created using software, using conventional test equipment that is created using hardware.

[0027] (Summary of the assignment) <Issue 1: Complexity of operation and test scenario creation> Test equipment (testers) for testing network devices have existed for some time, but the settings are complicated and require skill to use.

[0028] <Issue 2: Microservices problem> With the advancement of network virtualization, multiple software functions are implemented in one device. Testing this from the outside using conventional test equipment results in black-box testing, which can measure the load on the entire system, but does not allow for white-box testing to find bottlenecks.

[0029] <Issue 3: Distributed Microservices Problem> When network devices and virtual servers are distributed across multiple locations, even black-box testing becomes difficult using conventional testing equipment.

[0030] <Issue 4: Interface diversification problem> When trying to test a virtualized network device by itself using conventional test equipment, it is not possible to connect the virtual port to the physical port of the test equipment on a one-to-one basis, and some kind of conversion function (such as VLAN) is required. In other words, it is difficult to test a virtualized network device by itself using conventional test equipment.

[0031] Examples of configurations capable of solving the above problems will be described below as the first to fifth embodiments. Any of the techniques according to a plurality of the first to fifth embodiments can be combined and implemented. Basically, the first embodiment describes a base configuration, and the second to fifth embodiments describe detailed examples, modified examples, additional functions, and the like of the first embodiment.

[0032] (First embodiment) <Basic configuration example> Fig. 5 shows an example of the configuration of the test apparatus 100 in this embodiment. As shown in Fig. 1, the test apparatus 100 has a control unit 110 and one or more load generating units 120. In each drawing, the load generating unit is written as "LG" (short for Load Generator). Note that the "load generating unit" may also be called a "traffic generating unit", a "packet generating unit", a "testing unit", etc.

[0033] In this embodiment, a virtualization function unit realized by software is used as a component of the test device 100. More specifically, a container is used as each component of the test device 100. That is, the control unit 110 is a container, and the one or more load generating units 120 are each a container.

[0034] The test device 100 itself on which the container is operated may be a physical machine or a virtual machine. The host on which the container is operated may be called the test device 100, or a part in the host having the control unit 110 and one or more load generating units 120 may be called the test device 100.

[0035] In addition, the control unit 110 and one or more load generating units 120 may be distributed across multiple hosts, for example, and in this case, the combination of the control unit 110 and one or more load generating units 120 is still referred to as the test apparatus 100.

[0036] In a conventional test device, each component is realized as a hardware board (a so-called package), whereas in the test device 100 according to this embodiment, each component is realized as a container as described above.

[0037] The control unit 110 in the test device 100 serves as an interface with the operator terminal 50, receives commands from the operator terminal 50, and executes control over the load generating unit 120. The control unit 110 is a container having command and control functions, and therefore may be called a C&C (Command & Control) container.

[0038] Each load generating unit 120 is also realized by a container. The load generating unit 120 is dynamically generated and dynamically deleted by the control unit 110. Furthermore, the load generating unit 120 starts / stops load generation in response to a command from the control unit 110. The command from the control unit 110 to the load generating unit 120 to start / stop load generation may be issued individually to each load generating unit 120, or may be issued collectively to multiple load generating units 120.

[0039] The test target of the test device 100 may be a physical machine, a virtual machine, or a container. For example, it is possible to perform a container unit test (white box test) on a network device constructed by one container in a certain host.

[0040] An example of a procedure for generating the load generating section 120 will be described with reference to the flowchart of Fig. 6. Here, it is assumed that the control section 110 in the test apparatus 100 has already been generated.

[0041] In S101, the operator terminal 50 transmits a command to the control unit 110. This command includes an instruction to generate and start, information indicating an image (program) that is the source of the load generating unit 120 (such as a storage location of the image), and various parameters (which may be called start parameters).

[0042] The control unit 110 that has received the command generates the load generating unit 120 in S102. Specifically, an image corresponding to the load generating unit 120 is acquired, and a container is generated by starting the image. When the container is generated, the above parameters are set for the container, and the container (load generating unit 120) operates according to the settings. Note that "generating a container" may also mean generating and starting (starting) the container.

[0043] Furthermore, when the load generating unit 120 is generated, the control unit 110 and the load generating unit 120 are connected to each other so that communication can be performed between the control unit 110 and the load generating unit 120. A method of connection between the control unit 110 and the load generating unit 120 will be described in detail later.

[0044] Thereafter, for example, when the operator terminal 50 sends a command to the control unit 110 to transmit traffic (packets) from a certain load generating unit 120 to a certain destination, the control unit 110 instructs the load generating unit 120 to transmit traffic to the destination.

[0045] Furthermore, the settings for the load generating unit 120 can be changed by specifying desired parameters to the control unit 110 from the operator terminal 50 even after the load generating unit 120 has been generated.

[0046] <Connection configuration example> By implementing the load generating section 120 in the test apparatus 100 as a container, it is possible to flexibly set a connection method (interface) for connecting the load generating section 120 to a test subject.

[0047] That is, even if there is one image for generating the load generating unit 120, the connection method can be flexibly set by changing the parameters used when generating the load generating unit 120.

[0048] For example, by selecting the above parameters, it is possible to select whether the load generating unit 120 is connected to a physical port of the host under test, to an internal network of the host under test, or to a VLAN.

[0049] An example of a connection configuration of the test device 100 when the test target is a conventional device (IP router 17) is shown in Fig. 7. As shown in Fig. 7, the IP router 17 has a physical port 20, a logical port 20, a logical port 19, and a software IP router 18.

[0050] The test device 100 includes a plurality of physical ports 130, and by connecting each load generating section 120 to one physical port 130, each load generating section 120 can be connected to one physical port 20 of the test target device (IP router 17) via a physical link. This allows the test device 100 according to this embodiment to be used in the same way as a conventional test device.

[0051] Fig. 8 shows an example of a connection configuration of the test device 100 when the device under test is a virtualized IP router 12. As shown in Fig. 8, the IP router 12 is realized by a virtual machine on the target host 11, and has a virtual port 15, a logical port 14, and a software IP router 13. Furthermore, a VLAN is used for the external interface of the IP router 12. In other words, each virtual port 15 communicates with other devices by a VLAN. Each VLAN is identified by a VLAN ID.

[0052] 8, each load generating unit 120 in the test device 100 can be connected to each virtual port 15 (and logical port 14) of the IP router 12 by connecting it to a VLAN having a corresponding VLAN ID. This makes it possible to test each port in the virtualized IP router 12.

[0053] The method of connecting the load generating section 120 to the test subject, as described with reference to FIGS. 7 and 8, can be set by parameters designated to the control section 110 from the operator terminal 50.

[0054] The reason why containers are used instead of virtual machines (VMs) as the components of the test device 100 is as follows.

[0055] As shown in Fig. 9(a), a virtual machine can only run one instance (a running virtual machine) for one image, and multiple instances cannot be generated from one image. On the other hand, a container can generate multiple instances from one image, as shown in Fig. 9(b).

[0056] By implementing the load generation unit 120 using a container, it is possible to operate the load generation unit 120 under various settings according to startup parameters with one image. After the load generation unit 120 is generated (started), the settings can be changed according to parameters (setting information) sent from the control unit 110.

[0057] Since the container has the above-mentioned advantages, the container is used as each component of the test apparatus 100 in this embodiment.

[0058] However, this is not limited to containers, and a virtualization function unit other than a container may be used as each component of the test apparatus 100. Furthermore, the load generation unit 120 may be a container, and the control unit 110 may be a virtualization function unit other than a container (e.g., a virtual machine). Furthermore, the load generation unit 120 may be a container, and the control unit 110 may be a physical machine.

[0059] <About the effects> By implementing each component of the test device 100 as software (specifically, a container), the test device 100 can be easily connected to a network virtually constructed inside a computer, a VLAN used only inside the computer, etc. Also, unlike conventional appliance (standalone device) type testers, there is no need to pull out a physical link to the outside of the target device.

[0060] In addition, since the interface type can be changed using startup parameters regardless of the container image, a connection between the test subject and the test device 100 can be made simply by changing the startup parameters of the container according to the interface type of the test subject.

[0061] Second embodiment Next, a second embodiment will be described. In the second embodiment, an example regarding the connection between the control unit 110 and the load generating unit 120 will be described.

[0062] The control unit 110 generates a load generating unit 120 (container) at the location where it is to be generated (a base, a physical server, a virtual machine, etc.), and starts up the load generating unit 120 so that the load generating unit 120 connects to an appropriate interface (specifically, a virtual network interface).

[0063] The started load generating unit 120 generates (establishes) a connection with the control unit 110.

[0064] In this embodiment, a TCP connection is used as an example of a connection. That is, for example, a TCP connection is established by a three-way handshake that starts with a connection establishment request from the load generating unit 120.

[0065] The above process is executed for each load generating unit 120, thereby generating a star-shaped load generating container network with the control unit 110 at the center. This load generating container network is called a "test control network." After the test control network is generated, each load generating unit 120 waits for an instruction from the control unit 110.

[0066] 10 is a sequence diagram showing the above-mentioned operation. In S1, the control unit 110 receives a command for generating the load generating unit 120 from the operator terminal 50. In S2, the control unit 110 generates the load generating unit 120. At this time, network interface setting, IP address setting, and the like are also performed.

[0067] When the load generating unit 120 is generated, in S3, the load generating unit 120 establishes a TCP connection with the control unit 110. After the TCP connection is established, in S4, the control unit 110 transmits a container list to the load generating unit 120. The container list will be described later.

[0068] Note that the connection method between the control unit 110 and the load generating unit 120 (i.e., a method that enables communication) is not limited to a TCP connection. For example, a shared storage (virtual storage) may be arranged between the control unit 110 and the load generating unit 120, and the control unit 110 and the load generating unit 120 may communicate with each other by reading and writing data from and to the storage. In this specification, such a connection method is also called a "connection."

[0069] The above-mentioned connection process between the control section 110 and the load generating section 120 can be applied to any connection method (link) used to connect the load generating section 120 and the test subject.

[0070] Fig. 11 shows an example in which a target host (host to be tested) has a virtualized network configured with multiple containers. In addition, in the example of Fig. 11, each component of the test device 100 is provided within this target host. In other words, the target host shown in Fig. 11 may be called the test device 100. It may also be considered that the test device 100 is provided within the target host.

[0071] Specifically, in the target host in FIG. 11, in addition to the containers 30 to 36 that constitute the virtualized network, a control unit 110 and load generating units 120-1 to 120-3 are provided.

[0072] The dashed lines in Fig. 11 indicate the connections of the test control network between the control unit 110 and the load generating units 120-1 to 120-3. The solid lines indicate the links (transmission paths) between the containers. The thick lines with arrows on both sides indicate the test traffic flow. As shown in Fig. 11, in the test control network indicated by the dashed lines, the control unit 110 and the load generating unit 120 are directly connected by an internal network without going through the containers (shaded) to be tested.

[0073] On the other hand, the interface on the test subject side in each load generating unit 120 is connected to the container to be tested by a link. The test subject container to which the load generating unit 120 is to be connected by a link can be specified by a command from the operator terminal 50 (for example, a command for generating the load generating unit 120).

[0074] Furthermore, the destination to which the test traffic is to be sent from the load generating unit 120 can also be specified by a command from the operator terminal 50. This destination is specified by, for example, an IP address.

[0075] That is, the test design in this embodiment can be realized by simply deciding the same items as in a normal container design, such as where to place the load generating unit 120, where to connect it, and what IP address to assign it to. This makes it possible to perform unit testing and integration testing of containers within the same host, for example, by having the load generating units 120 exchange test traffic with each other.

[0076] <About the effects> The test device 100 according to this embodiment has each component configured as a container, so it can be connected to a network inside a computer, a VLAN used only inside the computer, etc. Also, unlike conventional appliance (standalone device) type testers, there is no need to pull out a physical link to the outside of the target host, and it is possible to perform a test inside the target host.

[0077] Third embodiment Next, a third embodiment will be described. In the third embodiment, an example of operation related to a test using a load generating unit 120 will be described. The operation in the third embodiment assumes a configuration in which a control unit 110 and one or more load generating units 120 are provided in a target host together with a container to be tested, as shown in FIG.

[0078] However, the operation of the third embodiment is not limited to the configuration shown in Fig. 11 and can be applied to any configuration. For example, it can be applied to the configurations shown in Fig. 7 and Fig. 8. It can also be applied to the configurations described in the fourth and fifth embodiments described later.

[0079] When the load generating unit 120 participates in the test control network (that is, when a TCP connection is established with the control unit 110), the load generating unit 120 reports its own IP address, container name, and the like to the control unit 110.

[0080] The control unit 110 creates a load generating container list (sometimes simply called a "list") based on the reports received from each load generating unit 120. The load generating container list is a list of the load generating units 120 participating in the test control network, and specifically, for example, the IP address, port number, etc. of each load generating unit 120 are described in the list.

[0081] Every time the control unit 110 updates the load generating container list, it simultaneously distributes the load generating container list to all the load generating units 120 participating in the test control network. Here, an example of a test operation using the load generating container list will be described.

[0082] In a test using a load generating container list, a mesh traffic test is autonomously performed between the load generating units 120. In other words, a test is performed for each combination of two load generating units 120 to transmit packets to other load generating units 120 and check the normality of the path the packets take.

[0083] Each load generating section 120 receives the list distributed from the control section 110, and expands the list (table) to prepare for the test.

[0084] A specific example is shown in Fig. 12. In the example shown in Fig. 12, "Download Cols." is a load generating container list downloaded from the control unit 110 to the load generating unit 120, and "Upload Cols." indicates the extended portion (extended column).

[0085] In the example shown in FIG. 12, the extended column includes, for example, a transmission sequence counter, a reception sequence counter, a reception rate (bps), and reception packet loss (number of lost packets, loss rate, etc.).

[0086] The load generating unit 120 refers to the load generating container list and transmits packets (for example, IP packets) addressed to load generating units 120 other than itself via a target interface (an interface connected to a test target by a link).

[0087] When the load generating unit 120 of the packet source detects that the information of the destination load generating unit 120 includes a port number, it performs UDP communication. The payload of the packet to be sent contains the value of a transmission sequence counter for each destination. The value of the transmission sequence counter is incremented by 1 every time a packet is sent.

[0088] Furthermore, the load generating unit 120 increments the counter value of "Sent seq." (transmission counter value) in the list by one every time the load generating unit 120 transmits a packet.

[0089] On the other hand, when the load generating unit 120 receives a packet transmitted from another load generating unit 120, it increments the counter value of "Recv seq." (reception counter value) in the list by one.

[0090] Packets received by the load generating unit 120 are assigned consecutive sequence numbers for each source, so if a packet is lost within the virtualized network, the continuity of the sequence numbers is lost and the packet loss can be detected on the receiving side.

[0091] Any method may be used to detect packet loss, but for example, for convenience, if the sequence number starts from 1 and the reception counter value also starts from 1, it can be determined that packet loss has occurred if the counter value of "Recv seq." (reception counter value) is smaller than the sequence number of the received packet. The load generating unit 120 reports (uploads) to the control unit 110 the load generating container list with information recorded in "Upload Cols."

[0092] An example of the above process is shown in Fig. 13. In the example of Fig. 13, a load generating container list is downloaded from the control unit 110 to the load generating unit 120 having an IP address of "192.168.1.1". The load generating unit 120 transmits a packet to the load generating unit 120 having an IP address of "30.30.30.30".

[0093] Here, if the list shown in FIG. 12 is the list downloaded to the load generating unit 120 with the IP address "192.168.1.1", the number of packets sent to "30.30.30.30" is recorded in the "Sent seq." column of the entry for "30.30.30.30" in the list.

[0094] If a load generating unit 120 with an IP address of "192.168.1.1" receives packets from a load generating unit 120 with an IP address of "30.30.30.30", the number of packets received from "30.30.30.30" is recorded in the "Recv seq." column of the entry for "30.30.30.30" in the list. Also, in the "Recv bps" and "Recv Losses" columns of the entry for "30.30.30.30", statistical information such as the reception rate and reception packet loss of packets received from the load generating unit 120 with the IP address of "30.30.30.30" is recorded.

[0095] As described above, the load generating unit 120 can apply a traffic load to the test subject by autonomously transmitting packets to other load generating units 120 based on the load generating container list downloaded from the control unit 110. The load generating unit 120 can record statistical information such as packet loss and received bps calculated based on packet transmission and reception in a list, and report the statistical information to the control device 110 in response to a request from the control device 110.

[0096] Note that performing a test using the load generating container list as described above is one example. A test may be performed without using the load generating container list. For example, the operator terminal 50 instructs the control unit 110 to "test that a certain load generating unit 120 transmits a packet to virtual server A." Upon receiving this instruction, the control unit 110 notifies the load generating unit 120 of the IP address of virtual server A, thereby instructing the load generating unit 120 to transmit a packet to virtual server A.

[0097] The load generating unit 120 that has received the instruction transmits packets to the virtual server A and observes return packets to the transmitted packets. This makes it possible to test, for example, the performance (processing delay, etc.) of the virtual server A.

[0098] <About the effects> In the test method described in the third embodiment, compared to the conventional test scenario creation work, the tester can focus on test design, such as selecting and arranging the image of the load generating unit 120 (container) that is suitable for the purpose of performing the test. In this embodiment, the tester only needs to decide where (on which host computer) the load generating unit 120 is to be arranged, which interface is to be connected to which target, and which IP address is to be assigned to the interface. Since the load generating unit 120 is informed of information on other load generating units 120 via the control unit 110, mesh traffic tests can be performed autonomously between the load generating units 120.

[0099] (Fourth embodiment) Next, a fourth embodiment will be described. In the fourth embodiment, a detailed configuration example of the load generating unit 120 will be described.

[0100] Fig. 14 shows an example of the functional configuration of the load generating unit 120. Since the load generating unit 120 is a container generated from an image, Fig. 14 corresponds to the software configuration of the image of the container.

[0101] 14, the load generating unit 120 has a main processing unit 124, a transmitting unit 123, a receiving unit 122, and a statistical information calculating unit 121. The main processing unit 124 communicates with the control unit 110. The transmitting unit 123 transmits packets to a destination. The receiving unit 122 receives the packets. The statistical information calculating unit 121 calculates statistical information such as the above-mentioned reception rate.

[0102] By simply preparing one type of image having the software configuration shown in FIG. 14, a plurality of load generating units 120 can be generated, and a mesh traffic test can be performed between the load generating units 120 described above, for example.

[0103] A plurality of types of images may be prepared as the basis for generating the load generating unit 120, and an image may be selected and used according to the purpose of the test. For example, the load generating unit 120 may be generated from an image in which the software of the transmitting unit 123 and the receiving unit 122 in the configuration of Fig. 14 is different from that in Fig. 14.

[0104] In other words, by generating the load generating unit 120 using an image in which the software of the transmitting unit 123 and the receiving unit 122 are swapped in the image that is the basis for generating the load generating unit 120, it is possible to perform desired tests such as TCP / IP communication checks, UDP / IP flow tests, and Web server tests using HTTP.

[0105] For example, multiple types of images are prepared in advance, and the image to be used for container generation is instructed to the control unit 110 from the operator terminal 50 according to the item to be tested. This makes it possible to simultaneously carry out multiple types of tests with one control unit 110.

[0106] <About the effects> Compared to conventional test equipment in which product A was used for IP connectivity testing and product B was used for Web testing, the technology of this embodiment changes the image of the load generating unit 120 to be started, so that a load generating unit 120 that performs an IP mesh test between load generating units 120, or a load generating unit 120 that issues an HTTP request as a Web client, can be started from the control unit 110.

[0107] Although there are some differences in the settings depending on the image type of the load generating unit 120, the load generating unit 120 participates in the test control network, and the control unit 110 can issue instructions to the load generating unit 120 such as starting and stopping a test.

[0108] Fifth embodiment Next, a fifth embodiment will be described. In the fifth embodiment, an example will be described in which a control unit 110 and a plurality of load generating units 120 are distributed and arranged by orchestration.

[0109] The operation of centrally managing containers running on multiple different host computers is called orchestration. Specifically, Ansible (registered trademark), Salt, Kubernetes (registered trademark), etc. are used as tools for container orchestration.

[0110] By using an orchestration tool such as Kubernetes (registered trademark), the load generating unit 120 can be generated in a remote host in a location different from the host having the control unit 110. This allows the load generating units 120 to be distributed so as to test not only a single device such as a router, but also a network that extends on a global scale, such as the Internet or an IP-VPN.

[0111] Although it is possible to distribute the load generating units 120 without using an orchestration tool, the load generating units 120 can be distributed more easily by using an orchestration tool.

[0112] Fig. 15 shows an example of the system configuration in the third embodiment. In the example shown in Fig. 15, the local site host 200 is provided with a control unit 110 and a load generating unit 120-1. The remote site host 300 is provided with a load generating unit 120-2, and the remote site host 400 is provided with a load generating unit 120-3. Each host is connected to a network 500.

[0113] Each host may be a physical server or a virtual machine on a cloud. As an example, when a virtualized network is constructed in cloud A and the virtualized network (or components constituting the virtualized network) is to be tested, for example, the operator terminal 50 instructs the control unit 110 to generate a load generating unit 120 on a host (virtual machine) of cloud A, and the test can be performed by the generated load generating unit 120. The host that generates the load generating unit 120 may be a host on which the components constituting the virtualized network are operating.

[0114] In addition to the functions of control unit 110 already described, control unit 110 may have the functions of an orchestration tool (e.g., the functions of a master node of Kubernetes), or the functions of the orchestration tool may be provided separately from control unit 110.

[0115] <About the effects> According to the technology of the fifth embodiment, in a microservice in which containers are distributed across multiple hosts, the load generating unit 120, which is a tester, is distributed, making it possible to perform both black box testing and white box testing. In addition, the tester is also orchestrated like the service. That is, although the load generating units 120 are distributed, the control unit 110 can centrally control them from one location.

[0116] (Hardware configuration example) As described above, each component of the test apparatus 100 is realized by a container, and therefore the test apparatus 100 can be realized by making a computer execute a program. This computer may be a physical computer or a virtual machine. The program may be a program having an image of the control unit 110 and an image of the load generating unit 120.

[0117] That is, the test device 100 can be realized by executing a program corresponding to the processing performed by the test device 100 using hardware resources such as a CPU and memory built into a computer. The program can be recorded on a computer-readable recording medium (such as a portable memory) and stored or distributed. The program can also be provided via a network such as the Internet or email.

[0118] Fig. 16 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 16 includes a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, and the like, all of which are connected to each other via a bus B.

[0119] The program for realizing the processing on the computer is provided by a recording medium 1001 such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0120] When an instruction to start a program is received, the memory device 1003 reads out and stores the program from the auxiliary storage device 1002. The CPU 1004 implements functions related to the device in accordance with the program stored in the memory device 1003.

[0121] The interface device 1005 is used as an interface for connecting to a network, etc. The display device 1006 displays a GUI (Graphical User Interface) or the like by a program. The input device 1007 is composed of a keyboard and mouse, buttons, a touch panel, etc., and is used to input various operation instructions. The output device 1008 outputs the results of calculations. Note that the device may not include any one or all of the display device 1006, the input device 1007, and the output device 1008.

[0122] (Additional Note) This specification discloses at least the following test apparatus, test apparatus generating method, and program: (Additional note 1) a control unit that generates one or more load generating units on the host in accordance with a command; The one or more load generating units, Each load generating unit creates a connection with the control unit and waits for instructions from the control unit. Test equipment. (Additional note 2) Each load generator is a container Item 1. The test apparatus according to item 1. (Additional note 3) Each load generator is connected to a test target and transmits packets to the test target. 3. The test device according to claim 1 or 2. (Additional note 4) Each load generating unit receives an address of another load generating unit from the control unit, and transmits a packet addressed to the received address. 4. The test device according to claim 1, (Additional note 5) Each load generating unit calculates statistical information about packets received from other load generating units, and reports the calculated statistical information to the control unit. Item 4. The test apparatus according to item 4. (Additional note 6) The control unit generates a plurality of load generating units on a plurality of hosts that are distributed. 6. The test device according to claim 1, (Additional note 7) A test device generation method executed by a host having a control unit, comprising: generating one or more load generating units on the host in accordance with the command by the control unit; each load generating unit generates a connection with the control unit and waits for an instruction from the control unit; A method for generating a test device comprising: (Additional note 7) A program for causing a computer to function as each unit in the test device according to any one of claims 1 to 6.

[0123] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]

[0124] 1, 100 Test Equipment 50 Operator terminal 110 Control section 120 Load Generator 121 Statistical information calculation section 122 Receiving section 123 Transmitter 124 Main processing section 1000 Drive Device 1001 Recording media 1002 Auxiliary storage 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input Device 1008 Output device

Claims

1. a control unit that generates one or more load generating units on the host in accordance with a command; The one or more load generating units, Each load generating unit creates a connection with the control unit and waits for instructions from the control unit. Test equipment.

2. Each load generator is a container 2. The test device of claim 1.

3. Each load generator is connected to a test target and transmits packets to the test target.

2. The test device of claim 1.

4. Each load generating unit receives an address of another load generating unit from the control unit, and transmits a packet addressed to the received address.

2. The test device of claim 1.

5. Each load generating unit calculates statistical information about packets received from other load generating units, and reports the calculated statistical information to the control unit.

5. A test device according to claim 4.

6. The control unit generates a plurality of load generating units on a plurality of hosts that are distributed.

2. The test device of claim 1.

7. A test device generation method executed by a host having a control unit, comprising: generating one or more load generating units on the host in accordance with the command by the control unit; each load generating unit generates a connection with the control unit and waits for an instruction from the control unit; A method for generating a test device comprising:

8. A program for causing a computer to function as each unit in the test apparatus according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Fault recovery system and method

    JP2018026709A