Testing method, device and equipment of computing network integrated network and storage medium

By obtaining test tasks and network topology diagrams, and monitoring network traffic to determine test results, the problem of low efficiency and accuracy of test case generation in the existing technology is solved, and more efficient and more accurate integrated network testing is achieved.

CN119788573APending Publication Date: 2025-04-08CHINA ACADEMY OF INFORMATION & COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411901945.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The existing integrated computing network testing method is inefficient and has low accuracy when generating test cases.

Method used

By obtaining the test tasks and the corresponding network topology diagram, test cases are automatically generated closely around the test tasks and the network under test, and network traffic is monitored during the execution of the test cases to determine the test results.

Benefits of technology

It improves the efficiency and accuracy of test case generation, can more accurately evaluate the performance of the computing network integrated network, identify potential performance bottlenecks, and ensure stable business operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788573A_ABST
    Figure CN119788573A_ABST
Patent Text Reader

Abstract

The invention discloses a testing method, device and equipment for an integrated computing network, and a storage medium, and relates to the technical field of testing. The method comprises the following steps: acquiring a test task and a network topological graph corresponding to the test task; generating a test case of the test task according to the test task and the network topological graph corresponding to the test task; sending the test case to the tested computing network integrated network so as to enable the computing network integrated network to execute the test case; and obtaining the flow of the calculation network integrated network monitored in the process of executing the test case, obtaining the monitoring flow, and determining the test result of the calculation network integrated network according to the monitoring flow. According to the technical scheme of the embodiment of the invention, the testing efficiency and accuracy of the computing network integrated network can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of testing technology, and in particular to a testing method, device, equipment and storage medium for a computing-network integration network. Background Art

[0002] With the rapid development of information technology, the integrated computing and network network, as a new type of network architecture, is gradually becoming a key technology in the fields of data centers, cloud computing, edge computing, etc. The integrated computing and network network achieves the coordinated optimization of computing and network by deeply integrating computing resources and network resources, thereby improving the overall performance and resource utilization of the system. Given the significant advantages of the integrated computing and network network in improving system performance and resource utilization, its reliable operation is crucial to ensuring business continuity and promoting the sustainable development of related fields. Therefore, testing the integrated computing and network network to ensure its stable and efficient operation has become an indispensable part.

[0003] However, the existing testing methods for integrated computing networks mainly rely on manual methods to determine test cases, which has problems of low efficiency and low accuracy.

[0004] Therefore, it is urgent to propose a new method to solve the above problems. Summary of the invention

[0005] The present invention provides a testing method, device, equipment and storage medium for a computing-network integrated network, which can improve the testing efficiency and accuracy of the computing-network integrated network.

[0006] In a first aspect, an embodiment of the present invention provides a method for testing a computing-network integration network, including:

[0007] Obtain the test task and the network topology diagram corresponding to the test task;

[0008] Generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task;

[0009] Sending the test case to the computing-network integration network under test so that the computing-network integration network executes the test case;

[0010] The traffic of the integrated computing and network network monitored during the execution of the test case is obtained to obtain the monitored traffic, and the test result of the integrated computing and network network is determined according to the monitored traffic.

[0011] The technical solution of the present invention obtains the test task and the network topology map corresponding to the test task; generates a test case for the test task according to the test task and the network topology map corresponding to the test task; sends the test case to the computing-network integration network under test, so that the computing-network integration network executes the test case; obtains the traffic of the computing-network integration network monitored during the execution of the test case, obtains the monitored traffic, and determines the test result of the computing-network integration network according to the monitored traffic. The above technical solution first obtains the test task and the network topology map corresponding to the test task, which provides a data basis for the subsequent generation of test cases for the test task. Then, the test case for the test task is generated according to the test task and the network topology map corresponding to the test task, which can not only automatically generate the test case, but also improve the efficiency of generating the test case, and the generated test case is closely built around the test task and the network under test, which improves the accuracy of generating the test case. Then, the test case is sent to the computing-network integration network under test, so that the computing-network integration network executes the test case. Finally, the traffic of the integrated computing network monitored during the execution of the test case is obtained, and the monitored traffic is obtained. The network performance index parameters and computing power performance index parameters of multiple integrated computing networks can be accurately calculated, thereby obtaining a more accurate test result of the integrated computing network. Based on the aforementioned test results, the network performance and computing power performance of the integrated computing network can be accurately evaluated, and the performance bottleneck links that may exist in the integrated computing network can be determined, thereby troubleshooting hidden dangers in advance and ensuring the stable operation of the services of the integrated computing network. Therefore, the technical solution of the present invention can solve the problems of low efficiency and low accuracy in the generation of test cases in the prior art.

[0012] In a second aspect, an embodiment of the present invention further provides a testing device for a computing-network integration network, the device comprising:

[0013] An acquisition module is used to acquire the test task and the network topology diagram corresponding to the test task;

[0014] A generating module, used to generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task;

[0015] A sending module, used for sending the test case to the computing-network integration network under test, so that the computing-network integration network executes the test case;

[0016] The determination module is used to obtain the traffic of the integrated computing and network monitored during the execution of the test case, obtain the monitored traffic, and determine the test result of the integrated computing and network based on the monitored traffic.

[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0018] at least one processor; and a memory communicatively coupled to the at least one processor;

[0019] Among them, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can implement any of the testing methods for the integrated computing and networking network described in the first aspect.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium including computer executable instructions,

[0021] The computer executable instructions, when executed by a computer processor, implement any of the methods for testing the computing-network integrated network described in the first aspect.

[0022] It should be noted that the above-mentioned computer instructions can be stored in whole or in part on a computer-readable storage medium. Among them, the computer-readable storage medium can be packaged together with the processor of the test device of the computing-network integrated network, or the processor of the test device of the computing-network integrated network can be packaged separately, and this application does not limit this.

[0023] The description of the second, third and fourth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third and fourth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0024] In this application, the name of the test device for the above-mentioned computing-network integration network does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0025] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1a A flowchart of a method for testing a computing-network integration network provided by an embodiment of the present invention;

[0028] Figure 1b An example diagram of a test environment provided by an embodiment of the present invention;

[0029] Figure 2 A flowchart of another method for testing a computing-network integration network provided by an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of the structure of a test device for a computing-network integration network provided by an embodiment of the present invention;

[0031] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0033] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0034] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0035] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0036] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0037] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0038] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0039] Figure 1a The flowchart of a method for testing a computing-network integration network provided in an embodiment of the present invention is applicable to situations where the computing-network integration network needs to be tested. The method can be executed by a testing device for the computing-network integration network, and the testing device for the computing-network integration network can be implemented in hardware / software. The device can be integrated into an electronic device, for example, it can be installed in a tester, and the embodiment of the present invention does not limit this. Figure 1a As shown, the steps include:

[0040] Step 110: Obtain the test task and the network topology diagram corresponding to the test task.

[0041] Specifically, a test task refers to a work item set for testing the integrated computing network. For example: a test task may include type (such as image processing, numerical calculation or simulation data), packet length, target address, network protocol, priority, cycle, and sending rate model (such as uniform sending, probabilistic sending or random sending). A network topology diagram refers to a structural diagram that graphically represents the various devices in a computer network and the connection relationship between them. The network topology diagram corresponding to the test task is a graph data structure that uses graphical means to intuitively display the connection relationship, execution order and overall layout structure between the various nodes (such as routers, gateways and / or cloud servers) through which the test task flows in the integrated computing network. This graphical display also includes link information (such as bandwidth) between each node and attribute information of each node.

[0042] In the specific implementation, first, the test task can be received and determined through the user interaction page provided by the tester. Then, the acquired test task can be sent to the computing network controller in the computing network integration network by using the northbound interface connected to the computing network controller in the computing network integration network under test. The computing network controller is a software or device that globally manages the network and computing power, and is responsible for receiving and processing these test tasks (such as determining the network topology corresponding to the test task). Finally, the network topology corresponding to the test task returned by the computing network controller is obtained through the northbound interface to obtain the network topology corresponding to the test task.

[0043] It should be noted that before obtaining the test task and the corresponding network topology diagram, the tester can first check the test environment (such as checking whether the time of the tester and the tested computing network integration network is synchronized and whether all nodes of the tested computing network integration network are online) to ensure the stability and security of the test environment, and thus ensure the accuracy of subsequent tests. Figure 1b As shown, it can be found that the test environment includes a tester and an integrated computing network. The tester includes a test card, a northbound interface connected to the computing network controller, and a sending port and a monitoring port connected to the integrated computing network. The integrated computing network includes a computing network controller, a network controller, a router, and an edge computing server.

[0044] In this embodiment, by acquiring the test task and the network topology diagram corresponding to the test task, a data basis is provided for subsequently generating a test case for the test task.

[0045] Step 120: Generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task.

[0046] Specifically, the test case of a test task refers to a set of test inputs, execution conditions, and expected output results designed for a specific test goal (such as verifying a certain function, performance indicator, etc.). For example, the test case of a test task includes the application type, packet length, traffic, sending rate model, transmission path, test data payload, monitoring port, and filtering conditions of the monitoring port of the computing task.

[0047] In the specific implementation, first, the test target (such as performance test or stress test) can be received and determined through the user interaction page provided by the tester. Then, according to the test target, the corresponding table of test target and test case generation rule is searched to obtain the required test case generation rule, and then the test case of the test task is generated based on the test case generation rule, the test task and the network topology diagram corresponding to the test task.

[0048] It should be noted that the correspondence table between test objectives and test case generation rules is determined in advance based on actual conditions or requirements.

[0049] Exemplarily, if the test target is performance testing, the test case generation rule for performance testing is that the sending port is interface 1 and the monitoring port is interface 2. The content of the network topology diagram is that the data of the test task starts from the terminal device A of the branch office, converges through the switch B of the local network, and then is transmitted to the video server D of the cloud data center through the core router C. The test case for the test task generated based on the test case generation rule, the test task and the network topology diagram corresponding to the test task is: the transmission path of the test task data is terminal device A→switch B→core router C→video server D. And deploy monitoring points connected to the monitoring interface at each key node, specifically: set a monitoring point connected to interface 2 on the terminal device A to collect user experience related data such as the freeze time of video playback and the change of picture clarity; set a monitoring point connected to interface 2 on switch B to collect the inbound and outbound traffic of the switch port; set a monitoring point connected to interface 2 on the core router C to collect network transmission data such as the traffic size, packet loss, and delay of the video stream; set a monitoring point connected to interface 2 on the video server end D to collect the integrity, processing time, and resource consumption data of the received data. The determined test cases are then sent to the computing-network integration network through interface 1, and the monitoring data of the four monitoring points are obtained through interface 2.

[0050] In this embodiment, test cases for test tasks are generated based on the test tasks and the network topology diagram corresponding to the test tasks. Not only can test cases be automatically generated, thereby improving the efficiency of generating test cases, but the generated test cases are also closely constructed around the test tasks and the network under test, thereby improving the accuracy of generating test cases.

[0051] Step 130: Send the test case to the computing-network integration network under test so that the computing-network integration network executes the test case.

[0052] Specifically, the computing-network integration network refers to a new network architecture that deeply integrates computing resources with network resources. For example, the computing-network integration network includes at least a computing network controller, a network controller, a forwarding device (such as a router and a gateway), and a computing server (a cloud server or an edge computing server).

[0053] In the specific implementation process, the test case can first be converted into a format that can be transmitted through the network and parsed by the integrated computing network according to the preset network protocol (such as the transmission control protocol) and the network configuration information of the integrated computing network under test, and then the converted test case can be sent to the integrated computing network under test through the sending port according to the sending port in the test case, so that the integrated computing network executes the test case.

[0054] In this embodiment, the test case is sent to the computing-network integration network under test, so that the computing-network integration network executes the test case.

[0055] Step 140: Obtain the traffic of the integrated computing and network monitored during the execution of the test case, obtain the monitored traffic, and determine the test result of the integrated computing and network based on the monitored traffic.

[0056] Specifically, monitoring traffic refers to the data information obtained by real-time observation and recording of the traffic conditions of data transmission in the network (such as the amount of data passing through a node per unit time and the proportion of different business traffic) during the execution of test cases in the computing-network integration network. Test results refer to the conclusions obtained after analyzing the relevant monitoring data (such as monitoring traffic) obtained during the execution of test cases in the computing-network integration network. For example, the test results can be the latency, jitter, packet loss rate and bandwidth of the test task.

[0057] In a specific implementation, the monitoring interface in the test case can be used to obtain the traffic of the computing-network integration network monitored during the execution of the test case, obtain the monitoring traffic, and determine the test result of the computing-network integration network based on the monitoring traffic. For example, if the monitoring traffic includes the timestamp information of the test task, the delay of the test task can be obtained by calculating the difference between the receiving timestamp and the sending timestamp.

[0058] In this embodiment, by obtaining the monitoring traffic, the network performance index parameters and computing power performance index parameters of multiple computing-network integration networks can be accurately calculated, thereby obtaining more accurate test results of the computing-network integration network. Based on the aforementioned test results, the network performance and computing power performance of the computing-network integration network can be accurately evaluated, and the performance bottlenecks that may exist in the computing-network integration network can be determined, thereby troubleshooting hidden dangers in advance and ensuring the stable operation of the computing-network integration network services.

[0059] In an embodiment of the present invention, a test task and a network topology diagram corresponding to the test task are first obtained, providing a data basis for generating test cases for the test task later. Then, a test case for the test task is generated according to the test task and the network topology diagram corresponding to the test task, which can not only automatically generate the test case, but also improve the efficiency of generating the test case, and the generated test case is closely built around the test task and the network under test, which improves the accuracy of generating the test case. Then, the test case is sent to the measured computing network integrated network so that the computing network integrated network executes the test case. Finally, the flow of the computing network integrated network monitored in the process of executing the test case is obtained, and the monitoring flow is obtained, and the network performance index parameters and computing power performance index parameters of multiple computing network integrated networks can be accurately calculated, so as to obtain a more accurate test result of the computing network integrated network. Based on the above test results, the network performance and computing power performance of the computing network integrated network can be accurately evaluated, and the performance bottleneck link that may exist in the computing network integrated network can be determined, so as to check the hidden dangers in advance and ensure the stable operation of the business of the computing network integrated network. Therefore, the technical solution of the present invention can solve the problems of low efficiency and low accuracy in generating test cases in the prior art.

[0060] Figure 2 A flowchart of another method for testing a computing-network integration network provided by an embodiment of the present invention is a specific embodiment based on the above embodiment. In this embodiment, the method may also include:

[0061] Step 210: Obtain the test task and the network topology diagram corresponding to the test task.

[0062] Step 211: Establish a first preset number of computing tasks according to the test task.

[0063] Specifically, the first preset number refers to the number of computing tasks set in advance according to actual conditions or needs. A computing task refers to a task unit with a specific type (such as image processing, numerical calculation or simulation data) and related attributes (such as transmission path, test data load and monitoring port) created for testing the computing network integration network.

[0064] In a specific implementation, the number of test tasks may be determined first, then the number may be determined as the first preset number, and then the first preset number of computing tasks may be established. It should be noted that the type of computing task needs to correspond to the type of test task one by one.

[0065] In this embodiment, a first preset number of computing tasks are established according to the test tasks, which provides a data basis for subsequent generation of test cases.

[0066] Step 212: Determine the transmission path of the computing task according to the network topology diagram corresponding to the test task.

[0067] Specifically, the transmission path refers to the complete route that a computing task takes from a source node (such as a terminal device or a terminal device simulated by a tester), through a series of intermediate nodes (such as switches or routers) defined in the network topology diagram, and finally to a destination node (such as a cloud server). The transmission path includes the source Media Access Control (MAC) address, destination MAC address, source Internet Protocol (IP) address, destination IP address, and application port number of each node passed through.

[0068] In the specific implementation, first determine the nodes (such as cloud servers, routers, switches and terminal devices), links (such as wired links or wireless links) and link attribute information (such as direction, bandwidth and delay) contained in the network topology map corresponding to the test task. Then determine the source node (starting point) and destination node (end point) of the computing task according to the requirements of the test task. For example: if the test task is to simulate the data analysis application of the branch office employees accessing the headquarters data center, then the source node of the computing task is the terminal device of the branch office, and the destination node is the data center server of the headquarters. Then, starting from the source node of the computing task, along the links in the network topology map, according to the connection relationship and direction of the links, gradually determine the intermediate nodes passed by the computing task until the destination node is reached. If there are multiple paths to reach the destination node, the optimal path can be determined according to the attribute information of the link (such as bandwidth, delay and load). For example: if there are two paths to reach the destination node, one link has a higher bandwidth but a larger delay, and the other link has a lower bandwidth but a smaller delay, then for computing tasks with high real-time requirements, the link with a smaller delay can be selected as the transmission path. Finally, the determined computing task transmission path is recorded to obtain the computing task transmission path (such as source node, intermediate node, target node, and the passed links and related attribute information).

[0069] In this embodiment, since the network topology diagram serves as an intuitive display of the network structure and can accurately reflect the connection relationship between nodes, the link direction, and the relevant attribute information of each link, the transmission path of the computing task is determined according to the network topology diagram corresponding to the test task, which not only improves the accuracy of the determined transmission path, but also further improves the accuracy of the test case.

[0070] Step 213: Determine the sending port and monitoring port of the computing task according to the preset port rule, and determine the filtering rule of the monitoring port according to the transmission path of the computing task.

[0071] Specifically, the preset port rules refer to the rules for determining the sending and monitoring ports of computing tasks set in advance according to actual conditions or needs. The sending port refers to the port that sends computing tasks to the computing network integration network, and the monitoring port refers to the port that monitors and records the data traffic in the computing network integration network. The filtering rules of the monitoring port refer to the rules for screening and filtering the data traffic in the computing network integration network. The number of sending ports and monitoring ports is not less than one.

[0072] Exemplarily, if the preset port rule is to randomly select any interface of any test card in the tester as the sending port and monitoring port of the computing task, the tester has test card A and test card B, test card A has interface A1 and interface A2, test card B has interface B1 and interface B2, and the data transmission protocol type of each node in the transmission path of the computing task is transmission control protocol and the application port number is 80, then the sending port and monitoring port of the computing task can both be interface A1, and the filtering rule of monitoring port A1 is to filter out all data packets whose network protocol is transmission control protocol and port number is 80. This method of using one interface as both a monitoring port and a sending port can save interface resources and help reduce the complexity and power consumption of the device.

[0073] Exemplarily, if the preset port rule is to randomly select two interfaces from the interfaces of the test card in the tester as the sending port and monitoring port of the computing task, and the sending port and the monitoring port are different, there is a test card A in the tester, and the test card A has an interface A1 and an interface A2, and the data transmission protocol type of the source node and the target node in the transmission path of the computing task is the transmission control protocol, the IP address of the source node is 192.168.1.10, and the IP address of the target node is 192.168.1.11, then the sending port of the computing task can be interface A1, and the monitoring port can be interface A2, and the filtering rule of the monitoring port A2 can be to filter out all data packets whose network protocol is the transmission control protocol and whose source IP address is 192.168.1.10 and destination IP address is 192.168.1.11. This method of setting the monitoring port and the sending port as different interfaces can avoid mutual interference between the sending data and the monitoring data, ensure the purity of the monitoring data, and avoid misoperation and misjudgment caused by data confusion.

[0074] Exemplarily, if the preset port rule is to randomly assign different sending ports and monitoring ports to each computing task, and the sending ports and monitoring ports are different, there are test cards A and test cards B in the tester, test card A has interface A1 and interface A2, test card B has interface B1 and interface B2, the data transmission protocol type of the source node and the target node in the transmission path of computing task 1 is the transmission control protocol, the IP address of the source node is 192.168.1.10, and the IP address of the target node is 192.168.1.11, the data transmission protocol type of the source node and the target node in the transmission path of computing task 2 is the transmission control protocol, and the IP address of the source node is 192.168.2.10 , the IP address of the target node is 192.168.2.11, then the sending port of computing task 1 can be interface A1, the monitoring port can be interface A2, and the filtering rule of monitoring port A2 can be to filter out all packets whose network protocol is transmission control protocol, whose source IP address is 192.168.1.10, and whose destination IP address is 192.168.1.11. The sending port of computing task 2 can be interface B1, the monitoring port can be interface B2, and the filtering rule of monitoring port B2 can be to filter out all packets whose network protocol is transmission control protocol, whose source IP address is 192.168.2.10, and whose destination IP address is 192.168.2.11. This method of setting the monitoring port and sending port of each task to different interfaces can achieve complete isolation between tasks.

[0075] In this embodiment, the sending port and monitoring port of the computing task are determined according to the preset port rules, which can save the time of determining the sending port and the monitoring port, thereby improving the efficiency of generating test cases, and the filtering rules of the monitoring port are determined according to the transmission path of the computing task, which can reduce unnecessary network load and monitoring overhead, ensure that the data collected during the test is closely related to the computing task, and help obtain accurate test results.

[0076] Step 214: determine the flow of the computing task according to the flow model corresponding to the test task, and determine the test load of the computing task according to the flow model corresponding to the test task.

[0077] Specifically, the traffic model refers to a mathematical or logical model used to describe and simulate data traffic in the computing-network integration network. For example, traffic models include performance test models, stress test models, and simulation test models. The traffic of a computing task refers to the amount of data transmitted in the computing-network integration network. The test load refers to the data content and data size carried by the computing task for testing the network.

[0078] In a specific implementation, you can first obtain the traffic model corresponding to the test task through the user interaction page, and then determine the traffic determination method of the test task based on the determined traffic model from the correspondence table between the traffic model and the traffic determination method, and then determine the traffic of the computing task according to the traffic determination method of the test task (such as the traffic determination method is determined according to the bandwidth of the integrated computing network). At the same time, based on the determined traffic model, determine the load determination method of the test task from the correspondence table between the traffic model and the load determination method, and then determine the test load of the computing task according to the load determination method of the test task (such as the load determination method is determined according to the traffic of the integrated computing network).

[0079] It should be noted that the correspondence table between the flow model and the flow determination method and the correspondence table between the flow model and the load determination method are both set in advance according to actual conditions or needs.

[0080] In this embodiment, the flow of the computing task is determined according to the flow model corresponding to the test task, and the test load of the computing task is determined according to the flow model corresponding to the test task, which provides a data basis for subsequent generation of test cases.

[0081] Furthermore, when the traffic model is a performance test model or a stress test model, the traffic of the computing task is determined according to the traffic model corresponding to the test task, and the test load of the computing task is determined according to the traffic model corresponding to the test task, including: extracting the bandwidth between each node in the computing-network integrated network and the attribute information of each node in the tested computing-network integrated network from the network topology diagram corresponding to the test task, and determining the computing power information of each node based on the attribute information of each node in the computing-network integrated network; determining the traffic of the computing task according to the transmission path of the computing task, the bandwidth between each node in the computing-network integrated network, and the computing power information of each node; extracting the data traffic between each node in the computing-network integrated network from the network topology diagram corresponding to the test task, and determining the test load of the computing task based on the data traffic between each node in the computing-network integrated network.

[0082] Specifically, the performance test model refers to a traffic model that focuses on evaluating the performance indicators of the computing network integration network under normal or regular business load conditions (such as network throughput, latency, packet loss rate, and node computing power performance). The stress test model refers to a traffic model that focuses on evaluating the performance of the computing network integration network in extreme or high-load, high-stress business scenarios. The bandwidth between nodes refers to the maximum data transmission rate that the link between two nodes can support. The attribute information of the node refers to the characteristic information of each node in the network topology diagram. For example: the attribute information of the node includes the type of node (such as server, router, switch, etc.), hardware configuration (such as CPU model, memory size, storage capacity, etc.), network interface information (such as the number of interfaces and interface type), computing power information, IP address and MAC address. The data flow between each node refers to the amount of data transmitted between each node. The computing power information of the node refers to the information related to the computing processing capability of each node (such as server, terminal equipment, etc.) in the computing network integration network (such as the number of cores and frequency of the CPU).

[0083] In a specific implementation, after determining that the traffic model is a performance test model or a stress test model, the bandwidth between each node in the computing-network integration network and the attribute information of each node in the computing-network integration network being tested can be extracted from the network topology diagram corresponding to the test task, and then the computing power information of each node can be extracted from the attribute information of each node in the computing-network integration network. Then, the traffic of the computing task is determined according to the transmission path of the computing task, the bandwidth between each node in the computing-network integration network, and the computing power information of each node. For example: the transmission path of the computing task is from node A to node B, and the nodes of the computing-network integration network are node A, node B, and node C. The bandwidth from node A to node B is 10 gigabits per second (Gbps), that is, 1.25 gigabytes (GB) of data is generated per second, and the bandwidth from node B to node C is 20 Gbps. The computing power information of node A is to process 1GB of data per second, the computing power information of node B is to process 2GB of data per second, and the computing power information of node C is to process 5GB of data per second. Then, the traffic of the computing task can be 1GB per second, that is, the minimum value of the bandwidth and computing power information is selected.

[0084] At the same time, the data flow between each node in the computing-network integration network can be extracted from the network topology diagram corresponding to the test task, and the test load of the computing task can be determined according to the data flow between each node in the computing-network integration network. For example: the transmission path of the computing task is from node A to node B, the nodes of the computing-network integration network are node A, node B and node C, the data flow between node A and node B is 10 megabytes (MB), and the data flow between node B and node C is 20MB, then the test load of the computing task can be 10MB, that is, the minimum value of the data flow is selected as the test load.

[0085] In this embodiment, through the above steps, the accuracy of the flow rate and test load of the determined computing task is improved.

[0086] Furthermore, when the traffic model is a simulation test model, the traffic of the computing task is determined according to the traffic model corresponding to the test task, and the test load of the computing task is determined according to the traffic model corresponding to the test task, including: determining the industrial scenario of the computing task according to the type of test task; determining the traffic of the computing task according to the bandwidth and computing power of the industrial scenario; determining the test load of the computing task according to the historical production data of the industrial scenario.

[0087] Specifically, the simulation test model is used to simulate the network traffic and computing task execution in a specific business scenario. The type of test task refers to the different types of tasks defined according to the test purpose and objectives. The industrial scenario refers to the actual application scenario corresponding to the type of test task. The historical production data of the industrial scenario refers to the actual production activity data recorded in a specific industrial scenario over a period of time (such as days, weeks, months or years) in the past.

[0088] In a specific implementation, after determining that the traffic model is a simulation test model, the industrial scenario of the computing task can be determined in the correspondence table between the test task type and the industrial scenario according to the type of the test task, and then the bandwidth and computing power of the industrial scenario can be determined in the correspondence table between the industrial scenario and the characteristic information (bandwidth and computing power) of the industrial scenario. Then, the traffic of the computing task can be determined according to the bandwidth and computing power of the industrial scenario; the test load of the computing task can be determined according to the historical production data of the industrial scenario. For example: if the minimum value of the data traffic in each historical production data of the industrial scenario is 40MB, the test load of the computing task can be 40MB.

[0089] It should be noted that the correspondence table between test task types and industrial scenarios and the correspondence table between industrial scenarios and characteristic information of industrial scenarios are determined in advance based on actual conditions or needs.

[0090] In this embodiment, through the above steps, the accuracy of the flow rate and test load of the determined computing task is improved.

[0091] Step 215: Generate a test case for the test task according to the transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task.

[0092] In the specific implementation, after obtaining the transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task, the type, packet length and sending rate model of the test task can be determined as the type, packet length and sending rate model of the computing task, and then the test case of the test task is constructed according to the type, packet length, sending rate model, transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task.

[0093] In addition, the network protocol, priority and period of the test task can also be determined as the network protocol, priority and period of the computing task, and then the test case of the test task can be constructed according to the network protocol, priority, period, type, packet length, sending rate model, transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task.

[0094] On the other hand, after the test cases of the test task are determined, the generated test cases of the test task can be displayed to the user through the user interaction page so that the user can make personalized modifications.

[0095] In this embodiment, test cases for the test tasks are generated according to the transmission path, flow, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task, thereby improving the accuracy and efficiency of the determined test cases.

[0096] Furthermore, when the traffic model is a simulation test model, before generating a test case for the test task based on the transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task, it also includes: determining the data initialization rule of the computing task according to the type of the test task; initializing the data of the computing task according to the data initialization rule of the computing task.

[0097] Specifically, the data initialization rule refers to a rule set in advance so that the computing task has a data state that meets the test requirements when the test starts.

[0098] In a specific implementation, the data initialization rule of the computing task can be determined in the correspondence table between the type and the data initialization rule according to the type of the test task, and then the data of the computing task can be initialized according to the data initialization rule of the computing task. For example, if the type of the test task is image processing, the corresponding data initialization rule can be to convert the image resolution to 1280×720 pixels and the image type to JPG format. For example, if the type of the test task is industrial control equipment, the corresponding data initialization rule can be to convert the data format to JSON format.

[0099] It should be noted that the correspondence table between types and data initialization rules is determined in advance based on actual conditions or requirements.

[0100] In this embodiment, through the above steps, the same starting conditions can be provided for each test, thereby ensuring the repeatability and consistency of the test.

[0101] Step 216: Send the test case to the computing-network integration network under test so that the computing-network integration network executes the test case.

[0102] Step 217: Obtain the traffic of the integrated computing and network monitored during the execution of the test case, obtain the monitored traffic, and determine the test result of the integrated computing and network based on the monitored traffic.

[0103] Furthermore, the test results of the integrated computing and network are determined based on the monitoring traffic, including: filtering out the monitoring traffic of each test task from the monitoring traffic based on the monitoring port of the computing task corresponding to each test task; determining the computing power test result of each test task based on the monitoring traffic of each test task, and determining the computing power test result of the integrated computing and network based on the computing power test result of each test task; determining the network test result of each test task based on the monitoring traffic of each test task and the transmission path of the computing task corresponding to each test task, and determining the network test result of the integrated computing and network based on the network test result of each test task.

[0104] Specifically, the test results of the integrated computing network include the computing power test results of the integrated computing network and the network test results of the integrated computing network. The computing power test results of the integrated computing network refer to the overall evaluation conclusion given on the computing power of the integrated computing network. For example: the computing power test results include the latency, jitter, packet loss rate and bandwidth of all computing tasks and a single computing task. The network test results refer to the overall evaluation of the network transmission performance of the integrated computing network. For example: the network test results include the latency, jitter, packet loss rate and bandwidth of a single transmission (transmission between only two nodes) process of each computing task.

[0105] For example, if the monitoring port of test task 1 is 1, and the monitoring port of test task 2 is 2, the monitoring traffic includes the monitoring traffic of monitoring port 1 (the total traffic captured in 1 hour is 500MB, that is, the average traffic per second of the corresponding computing task is about 143362.9 bytes / second, and the number of lost data packets is 100), the monitoring traffic of monitoring port 2 (the total traffic captured in 1 hour is 300MB, that is, the average traffic per second of the corresponding computing task is about 86017.7 bytes / second, and the number of lost data packets is 50), the link bandwidth between the two nodes passed by test task 1 is 10Mbps, that is, 1310720bytes / s, and the link bandwidth between the two nodes passed by test task 2 is 100Mbps, that is, 12884901.8bytes / s, and the computing power test results include the loss of all computing tasks and a single computing task. The network test results include the bandwidth utilization of a single transmission (transmission between only two nodes) of each computing task. The packet loss rate of test task one is 100÷(500×1024×1024÷1500)×100%=0.029%, and the packet loss rate of test task two is 50÷(300×1024×1024÷1500)×100%=0.024%. The packet loss rate is 150÷(500×1024×1024÷1500+300×1024×1024÷1500)×100%=0.027%, the bandwidth utilization of test task one is: 143362.9 / 1310720×100%=10.94%, and the bandwidth utilization of test task two is: 86017.7 / 12884901.8×100%=0.67%.

[0106] In this embodiment, through the above steps, the accuracy of the determined network test results and computing power test results is improved.

[0107] Furthermore, when the traffic model is a stress test model, after determining the test result of the computing-network integration network based on the monitored traffic, it also includes: determining whether the test result shows that the computing task performance is qualified; if the computing task performance is qualified, establishing a second preset number of computing tasks based on the test task, and returning to execute the step of determining the transmission path of the computing task based on the network topology diagram corresponding to the test task, until the response time of at least one computing task exceeds the preset time.

[0108] Specifically, qualified computing task performance means that the test results of the computing task meet the pre-set standard requirements. For example: the test results of the computing task include the delay of all computing tasks and a single computing task and the delay of a single transmission process of each computing task. The qualified computing task performance can mean that the delay of all computing tasks is less than 5 seconds, the delay of a single computing task is less than 3 seconds, and the delay of a single transmission process of each computing task is less than 1 second. The second preset number refers to the number determined in advance according to actual conditions or needs. The response time of a computing task refers to the total time from the time the computing task is initiated (such as initiating a data query request) to the time when the task obtains the corresponding result feedback (such as the return of the queried data). The preset time refers to the time threshold set in advance according to actual conditions or needs.

[0109] In a specific implementation, after obtaining the test results of the computing-network integration network, it is possible to determine whether the test results are qualified for the computing task performance based on the pre-set performance qualification evaluation rules; if the computing task performance is qualified, a second preset number is established according to the test task (e.g., the original test task number is n, and the second preset number is n). 2 -n) computing tasks, and returns to the step of determining the transmission path of the computing tasks according to the network topology corresponding to the test tasks, until the response time of at least one computing task exceeds the preset time. Once the response time of at least one computing task exceeds the preset time, a binary search method is used to determine the maximum number of computing tasks that the tested computing-network integration network supports running in parallel. If the initial test result does not meet the computing task performance requirements, a binary search method is directly used to obtain the maximum number of computing tasks that the tested computing-network integration network supports running in parallel.

[0110] In this embodiment, through the above steps, the performance of the integrated computing and networking network under the stress test model can be comprehensively evaluated, which helps to understand the stability, response speed and resource utilization of the network under high load, ensure that the network can continuously and stably provide services in actual applications, and avoid service interruptions or performance degradation due to excessive load.

[0111] Therefore, the technical solution of the present invention first obtains the test task and the network topology map corresponding to the test task, which provides a data basis for generating test cases for the test task later. Then, a first preset number of computing tasks are established according to the test task, which provides a data basis for generating test cases later. The transmission path of the computing task is determined according to the network topology map corresponding to the test task, and the accuracy of the test case is improved while improving the accuracy of the determined transmission path. The sending port and monitoring port of the computing task are determined according to the preset port rules, which can save the time of determining the sending port and the monitoring port, thereby improving the efficiency of generating test cases, and the filtering rules of the monitoring port are determined according to the transmission path of the computing task, which can reduce unnecessary network load and monitoring overhead, ensure that the data collected during the test is closely related to the computing task, and help to obtain accurate test results. The flow of the computing task is determined according to the flow model corresponding to the test task, and the test load of the computing task is determined according to the flow model corresponding to the test task, which provides a data basis for generating test cases later. The test case of the test task is generated according to the transmission path, flow, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task, which improves the accuracy and efficiency of the determined test cases. Afterwards, the test case is sent to the computing-network integration network under test, so that the computing-network integration network executes the test case. Finally, the traffic of the computing-network integration network monitored during the execution of the test case is obtained to obtain the monitored traffic, and the network performance index parameters and computing power performance index parameters of multiple computing-network integration networks can be accurately calculated, thereby obtaining a more accurate test result of the computing-network integration network. Based on the aforementioned test results, the network performance and computing power performance of the computing-network integration network can be accurately evaluated, and the performance bottleneck links that may exist in the computing-network integration network can be determined, thereby troubleshooting hidden dangers in advance and ensuring the stable operation of the services of the computing-network integration network. Therefore, the technical solution of the present invention can solve the problems of low efficiency and low accuracy in the generation of test cases in the prior art.

[0112] Figure 3 A structural schematic diagram of a testing device for an integrated computing network provided in an embodiment of the present invention. The device and the testing methods for an integrated computing network in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiments of the testing device for an integrated computing network, reference can be made to the embodiments of the testing methods for an integrated computing network in the above-mentioned embodiments.

[0113] like Figure 3 As shown, the device comprises:

[0114] An acquisition module 310 is used to acquire a test task and a network topology diagram corresponding to the test task;

[0115] A generating module 320, configured to generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task;

[0116] A sending module 330, configured to send the test case to the computing-network integration network under test, so that the computing-network integration network executes the test case;

[0117] The determination module 340 is used to obtain the traffic of the integrated computing and network monitored during the execution of the test case, obtain the monitored traffic, and determine the test result of the integrated computing and network based on the monitored traffic.

[0118] Based on the above embodiment, the generating module 320 is specifically used for:

[0119] Establishing a first preset number of computing tasks according to the test task;

[0120] Determining a transmission path of the computing task according to a network topology diagram corresponding to the test task;

[0121] Determine the sending port and the monitoring port of the computing task according to the preset port rule, and determine the filtering rule of the monitoring port according to the transmission path of the computing task, and the number of the sending port and the monitoring port is not less than one;

[0122] Determine the flow of the computing task according to the flow model corresponding to the test task, and determine the test load of the computing task according to the flow model corresponding to the test task;

[0123] A test case for the test task is generated according to the transmission path, flow, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task.

[0124] On the basis of the above embodiment, when the traffic model is a performance test model or a stress test model, the generation module 320 determines the traffic of the computing task according to the traffic model corresponding to the test task, and determines the test load of the computing task according to the traffic model corresponding to the test task, including:

[0125] Extracting the bandwidth between each node in the computing-network integration network and the attribute information of each node in the computing-network integration network to be tested from the network topology diagram corresponding to the test task, and determining the computing power information of each node in the computing-network integration network according to the attribute information of each node in the computing-network integration network;

[0126] Determine the flow of the computing task according to the transmission path of the computing task, the bandwidth between the nodes of the computing network integration network and the computing power information of each node;

[0127] The data flow between each node in the computing-network integration network is extracted from the network topology diagram corresponding to the test task, and the test load of the computing task is determined according to the data flow between each node in the computing-network integration network.

[0128] On the basis of the above embodiment, when the flow model is a pressure test model, the device further includes:

[0129] The checking module is used to determine whether the test result of the computing-network integration network is qualified after determining the test result according to the monitoring traffic; if the computing task performance is qualified, establish a second preset number of computing tasks according to the test task, and return to execute the step of determining the transmission path of the computing task according to the network topology diagram corresponding to the test task, until the response time of at least one computing task exceeds the preset time.

[0130] On the basis of the above embodiment, when the traffic model is a simulation test model, the generation module 320 determines the traffic of the computing task according to the traffic model corresponding to the test task, and determines the test load of the computing task according to the traffic model corresponding to the test task, including:

[0131] Determining the industrial scenario of the computing task according to the type of the test task;

[0132] Determine the flow of the computing task according to the bandwidth and computing power of the industrial scenario;

[0133] The test load of the computing task is determined according to the historical production data of the industrial scenario.

[0134] On the basis of the above embodiment, when the traffic model is a simulation test model, the device further includes:

[0135] An initialization module is used to determine the data initialization rule of the computing task according to the type of the test task before generating the test case of the test task according to the transmission path, traffic, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task; and initialize the data of the computing task according to the data initialization rule of the computing task.

[0136] On the basis of the above embodiment, the test result of the computing-network integration network includes the computing power test result of the computing-network integration network and the network test result of the computing-network integration network. The determination module 340 determines the test result of the computing-network integration network according to the monitoring traffic, including:

[0137] Filtering the monitoring traffic of each test task from the monitoring traffic according to the monitoring port of the computing task corresponding to each test task;

[0138] Determine the computing power test results of each test task according to the monitoring traffic of each test task, and determine the computing power test results of the computing-network integration network according to the computing power test results of each test task;

[0139] The network test results of each test task are determined based on the monitoring traffic of each test task and the transmission path of the computing task corresponding to each test task, and the network test results of the computing-network integration network are determined based on the network test results of each test task.

[0140] The testing device for the integrated computing and network network provided in the embodiment of the present invention can execute the testing method for the integrated computing and network network provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0141] It is worth noting that in the embodiment of the above-mentioned test device for the integrated computing network, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0142] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary electronic device 4 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 4 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0143] like Figure 4 As shown, the electronic device 4 is in the form of a general purpose computing electronic device. The components of the electronic device 4 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0144] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0145] The electronic device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 4, including volatile and non-volatile media, removable and non-removable media.

[0146] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a VD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0147] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0148] The electronic device 4 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 4, and / or any device that enables the electronic device 4 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 4 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the electronic device 4 via the bus 18. It should be understood that although Figure 4Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 4, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0149] The processing unit 16 executes various functional applications and page displays by running the programs stored in the system memory 28, for example, implementing the test method of the computing-network integration network provided in the embodiment of the present invention, the method comprising:

[0150] Obtain the test task and the network topology diagram corresponding to the test task;

[0151] Generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task;

[0152] Sending the test case to the computing-network integration network under test so that the computing-network integration network executes the test case;

[0153] The traffic of the integrated computing and network network monitored during the execution of the test case is obtained to obtain the monitored traffic, and the test result of the integrated computing and network network is determined according to the monitored traffic.

[0154] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the power regulation method of the energy storage device provided in any embodiment of the present invention.

[0155] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, a method for testing a computing-network integration network provided by an embodiment of the present invention is implemented. The method includes:

[0156] Obtain the test task and the network topology diagram corresponding to the test task;

[0157] Generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task;

[0158] Sending the test case to the computing-network integration network under test so that the computing-network integration network executes the test case;

[0159] The traffic of the integrated computing and network network monitored during the execution of the test case is obtained to obtain the monitored traffic, and the test result of the integrated computing and network network is determined according to the monitored traffic.

[0160] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0161] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0162] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0163] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0164] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0165] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.

[0166] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for testing a computing-network integration network, characterized in that: The method comprises: Obtain the test task and the network topology diagram corresponding to the test task; Generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task; Sending the test case to the computing-network integration network under test so that the computing-network integration network executes the test case; The traffic of the integrated computing and network network monitored during the execution of the test case is obtained to obtain the monitored traffic, and the test result of the integrated computing and network network is determined according to the monitored traffic.

2. The method for testing the computing-network integration network according to claim 1, characterized in that: Generating a test case for the test task according to the test task and the network topology diagram corresponding to the test task includes: Establishing a first preset number of computing tasks according to the test task; Determining a transmission path of the computing task according to a network topology diagram corresponding to the test task; Determine the sending port and the monitoring port of the computing task according to the preset port rule, and determine the filtering rule of the monitoring port according to the transmission path of the computing task, and the number of the sending port and the monitoring port is not less than one; Determine the flow of the computing task according to the flow model corresponding to the test task, and determine the test load of the computing task according to the flow model corresponding to the test task; A test case for the test task is generated according to the transmission path, flow, test load, sending port, monitoring port and filtering rules of the monitoring port of the computing task.

3. The method for testing the computing-network integration network according to claim 2, characterized in that: When the traffic model is a performance test model or a stress test model, determining the traffic of the computing task according to the traffic model corresponding to the test task, and determining the test load of the computing task according to the traffic model corresponding to the test task, including: Extracting the bandwidth between each node in the computing-network integration network and the attribute information of each node in the computing-network integration network to be tested from the network topology diagram corresponding to the test task, and determining the computing power information of each node in the computing-network integration network according to the attribute information of each node in the computing-network integration network; Determine the flow of the computing task according to the transmission path of the computing task, the bandwidth between the nodes of the computing network integration network and the computing power information of each node; The data flow between each node in the computing-network integration network is extracted from the network topology diagram corresponding to the test task, and the test load of the computing task is determined according to the data flow between each node in the computing-network integration network.

4. The method for testing the computing-network integration network according to claim 3, characterized in that: When the traffic model is a stress test model, after determining the test result of the computing-network integration network according to the monitored traffic, the method further includes: Determining whether the test result indicates that the computing task performance is qualified; If the computing task performance is qualified, a second preset number of computing tasks is established based on the test task, and the step of determining the transmission path of the computing task based on the network topology diagram corresponding to the test task is returned to execution until the response time of at least one computing task exceeds the preset time.

5. The method for testing the computing-network integration network according to claim 2, characterized in that: When the traffic model is a simulation test model, determining the traffic of the computing task according to the traffic model corresponding to the test task, and determining the test load of the computing task according to the traffic model corresponding to the test task, including: Determining the industrial scenario of the computing task according to the type of the test task; Determine the flow of the computing task according to the bandwidth and computing power of the industrial scenario; The test load of the computing task is determined according to the historical production data of the industrial scenario.

6. The method for testing the computing-network integration network according to claim 2, characterized in that: When the traffic model is a simulation test model, before generating a test case of the test task according to the transmission path, traffic, test load, sending port, monitoring port and filtering rule of the monitoring port of the computing task, it also includes: Determining a data initialization rule for the computing task according to the type of the test task; The data of the computing task is initialized according to the data initialization rule of the computing task.

7. The method for testing the computing-network integration network according to claim 2, characterized in that: The test result of the computing-network integration network includes a computing power test result of the computing-network integration network and a network test result of the computing-network integration network. The test result of the computing-network integration network is determined according to the monitoring traffic, including: Filtering the monitoring traffic of each test task from the monitoring traffic according to the monitoring port of the computing task corresponding to each test task; Determine the computing power test results of each test task according to the monitoring traffic of each test task, and determine the computing power test results of the computing-network integration network according to the computing power test results of each test task; The network test results of each test task are determined based on the monitoring traffic of each test task and the transmission path of the computing task corresponding to each test task, and the network test results of the computing-network integration network are determined based on the network test results of each test task.

8. A test device for a computing-network integration network, characterized in that: The device comprises: An acquisition module is used to acquire the test task and the network topology diagram corresponding to the test task; A generating module, used to generate a test case for the test task according to the test task and the network topology diagram corresponding to the test task; A sending module, used for sending the test case to the computing-network integration network under test, so that the computing-network integration network executes the test case; The determination module is used to obtain the traffic of the integrated computing and network monitored during the execution of the test case, obtain the monitored traffic, and determine the test result of the integrated computing and network based on the monitored traffic.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; Among them, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the testing method of the integrated computing network described in any one of claims 1-7.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, implement the testing method for the computing-network integration network described in any one of claims 1-7.