CN111431758B - Cloud network equipment testing method and device, storage medium and computer equipment - Google Patents

Cloud network equipment testing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111431758B
CN111431758B CN202010104333.4A CN202010104333A CN111431758B CN 111431758 B CN111431758 B CN 111431758B CN 202010104333 A CN202010104333 A CN 202010104333A CN 111431758 B CN111431758 B CN 111431758B
Authority
CN
China
Prior art keywords
information
cloud network
data packet
flow
network equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010104333.4A
Other languages
Chinese (zh)
Other versions
CN111431758A (en
Inventor
张齐国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010104333.4A priority Critical patent/CN111431758B/en
Publication of CN111431758A publication Critical patent/CN111431758A/en
Priority to PCT/CN2020/119065 priority patent/WO2021164261A1/en
Application granted granted Critical
Publication of CN111431758B publication Critical patent/CN111431758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses a testing method and device of cloud network equipment, a storage medium and computer equipment, relates to the technical field of information, and mainly aims to establish a session through a communication protocol with an incomplete simulation function so as to complete testing of the cloud network equipment and avoid cluster deployment, thereby reducing testing cost, shortening testing time and improving testing efficiency. The method comprises the following steps: analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through the cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.

Description

Cloud network equipment testing method and device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of information, in particular to a method and a device for testing cloud network equipment, a storage medium and computer equipment.
Background
When the performance of the data center network is managed and optimized, a flow scene needs to be tested firstly to estimate whether the cloud network equipment can meet the requirements of dealing with a real scene, so that the follow-up decision is facilitated. As the use of virtualization and Cloud applications becomes more and more widespread, more Virtual local area network (vlan) traffic under a Virtual Public Cloud (vpc) enters Cloud network devices, and testing for the Cloud network devices becomes more important.
At present, the existing cloud network testing method is mainly to establish a session through a complete simulation communication protocol to complete the testing of cloud network equipment.
However, when the cloud network device is tested at present, because the complexity of a communication protocol stack causes that an enough session cannot be established to simulate a real environment, the cloud network device needs to be implemented by cluster deployment, but the cluster deployment needs to consume a large amount of manpower, financial resources and material resources, so that the test cost of the cloud network device test work is increased, and the cloud network device test work time is long and the efficiency is low.
Disclosure of Invention
In view of this, the present invention provides a method for testing a cloud network device, and mainly aims to establish a session through a communication protocol having an incomplete simulation function to complete a test on the cloud network device and avoid cluster deployment, thereby reducing a test cost, shortening a test time, and improving a test efficiency.
According to an aspect of the present invention, there is provided a method for testing a cloud network device, including:
analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure;
setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested;
under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet;
and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
Optionally, the creating a session data packet includes:
establishing a session table according to a preset session flow range;
and creating a session data packet according to the session table and the communication protocol of the incomplete simulation function.
Optionally, after receiving and analyzing the traffic feedback information forwarded by the server through the cloud network device, the method further includes:
generating original data information according to the analyzed flow feedback information and a preset statistical algorithm;
and calculating the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
Further, the generating of the original data information according to the analyzed flow feedback information and a preset statistical algorithm includes:
extracting received flow information, sending flow information and lost flow information in all flow feedback information;
accumulating the received traffic information, the sending traffic information and the lost traffic information respectively to obtain total received traffic information, total sending traffic information and total lost traffic information;
determining the total received traffic information, the total sent traffic information and the total lost traffic information as original data information;
calculating a standard deviation of session service quality according to the original data information and a preset session service quality algorithm, wherein the calculation comprises the following steps:
carrying out weighted average calculation by using the original data information;
and determining the calculated result as the standard deviation of the session service quality.
Further, the simulating a test environment of the cloud network device to be tested based on the network traffic characteristics of the multi-tenant network structure includes:
and sending the session data packet to the cloud network equipment through different virtual local area networks.
According to a second aspect of the present invention, there is provided a method for testing a cloud network device, including:
receiving a session data packet forwarded by a client through cloud network equipment, wherein the session data packet is established by the client based on a communication protocol with an incomplete simulation function;
generating flow feedback information according to the session data packet;
and forwarding the flow feedback information to the client through the cloud network equipment.
Optionally, generating flow feedback information according to the session data packet includes:
searching a source address, a destination address, a source port number and a destination port number in the session data packet;
exchanging the source address and the destination address, and exchanging the source port number and the destination port number;
and confirming the session data packet after the exchange processing as the flow feedback information.
According to a third aspect of the present invention, there is provided a testing apparatus for a cloud network device, including:
8. a testing device of a cloud network device is characterized by comprising:
the acquiring unit is used for analyzing the network traffic sample so as to acquire the network traffic characteristics of the multi-tenant network structure;
the simulation unit is used for setting environment test parameters based on different network flow characteristics and simulating the test environment of the cloud network equipment to be tested;
a creating unit configured to create, in a simulated test environment, a session packet based on a communication protocol having an incomplete simulation function, the session packet being created based on the communication protocol having the incomplete simulation function;
the forwarding unit is used for forwarding the session data packet to a server through cloud network equipment, and the server is used for generating flow feedback information according to the session data packet;
and the receiving unit is used for receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
Optionally, the creating unit includes: a building module and a creating module, wherein,
the establishing module is used for establishing a session table according to a preset session flow range;
and the creating module is used for creating a session data packet according to the session table and the communication protocol of the incomplete simulation function.
Optionally, the apparatus further comprises: a generating unit and a calculating unit, wherein the generating unit is used for generating a plurality of data,
the generating unit is used for generating original data information according to the analyzed flow feedback information and a preset statistical algorithm;
and the calculating unit is used for calculating the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
Further, the generation unit includes: an extraction module, an accumulation module and a first determination module,
the extraction module is used for extracting received flow information, sent flow information and lost flow information in all the flow feedback information;
the accumulation module is configured to accumulate the received traffic information, the sent traffic information, and the lost traffic information respectively to obtain total received traffic information, total sent traffic information, and total lost traffic information;
the first determining module is configured to determine the total received traffic information, the total sent traffic information, and the total lost traffic information as original data information;
the calculation unit includes: a calculation module and a second determination module,
the calculation module is used for performing weighted average calculation by using the original data information;
and the second determining module is used for determining the calculated result as the standard deviation of the session service quality.
Optionally, the apparatus further comprises: an acquisition unit and a simulation unit, wherein,
the acquiring unit is used for acquiring network traffic characteristics of a multi-tenant network structure;
the simulation unit is used for simulating a test environment of the cloud network equipment to be tested based on the network traffic characteristics;
the creating unit is further configured to create a session data packet based on a communication protocol with an incomplete simulation function in a simulated test environment.
Further, the analog unit includes: a sending module for sending the data to the client,
the sending module is used for sending the session data packet to the cloud network equipment through different virtual local area networks.
According to a fourth aspect of the present invention, there is provided a testing apparatus for a cloud network device, including:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a session data packet forwarded by a client through cloud network equipment, and the session data packet is established by the client based on a communication protocol with an incomplete simulation function;
the generating unit is used for generating flow feedback information according to the session data packet;
and the forwarding unit is used for forwarding the flow feedback information to the client through the cloud network equipment.
Optionally, the generating unit includes: a search module, an exchange module and a confirmation module,
the searching module is used for searching a source address, a destination address, a source port number and a destination port number in the session data packet;
the switching module is configured to switch the source address and the destination address, and switch the source port number and the destination port number;
and the confirming module is used for confirming the session data packet after the exchange processing as the flow feedback information.
According to a fifth aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform the steps of: analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
According to a sixth aspect of the present invention, there is provided a computer device comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus, and the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following steps: analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
According to a seventh aspect of the present invention, there is provided another storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform the steps of: receiving a session data packet forwarded by a client through cloud network equipment, wherein the session data packet is established by the client based on a communication protocol with an incomplete simulation function; generating flow feedback information according to the session data packet; and forwarding the flow feedback information to the client through the cloud network equipment.
According to an eighth aspect of the present invention, there is provided another computer device, including a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus, and the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to perform the following steps: receiving a session data packet forwarded by a client through cloud network equipment, wherein the session data packet is established by the client based on a communication protocol with an incomplete simulation function; generating flow feedback information according to the session data packet; and forwarding the flow feedback information to the client through the cloud network equipment.
Compared with the prior art that a session is established through a complete simulation communication protocol to complete the test of the cloud network equipment, the method provided by the invention can analyze the network traffic sample to obtain the network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment. Therefore, the cloud network equipment can be tested, cluster deployment is avoided, testing cost is reduced, testing time is shortened, and testing efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a testing method for cloud network devices according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another testing method for cloud network devices according to an embodiment of the present invention;
fig. 3 is a diagram illustrating a deployment mode of a cloud network device testing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating a testing apparatus of a cloud network device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating another testing apparatus for a cloud network device according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating an example of a physical structure of a computer device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating a testing apparatus of a cloud network device according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram illustrating a testing apparatus of a cloud network device according to another embodiment of the present invention;
fig. 9 is a schematic physical structure diagram of another computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As described in the background art, currently, when a cloud network device is tested, because the complexity of a communication protocol stack causes that an adequate session cannot be established to simulate a real environment, the cloud network device needs to be implemented by cluster deployment, but the cluster deployment needs to consume a large amount of manpower, financial resources and material resources, so that the test cost of the cloud network device test work is increased, and the cloud network device test work time is long and the efficiency is low.
In order to solve the above problem, an embodiment of the present invention provides a method for testing a cloud network device, where as shown in fig. 1, the method includes:
101. and analyzing the network traffic sample to obtain the network traffic characteristics of the multi-tenant network structure.
Specifically, a received network traffic sample is analyzed, load data of the network traffic sample is obtained, and traffic features are extracted from the load data.
102. Setting environment test parameters based on different network flow characteristics, and simulating the test environment of the cloud network equipment to be tested.
For the embodiment of the present invention, the cloud network device may be a network device based on a virtual public cloud (vpc), the vpc may be a multi-tenant architecture, and each tenant realizes physical isolation through a virtual local area network (vlan) or an extensible virtual local area network (vxlan). The client side obtains the network flow characteristics of the cloud network equipment and can simulate the testing environment of the cloud network equipment to be tested according to the network flow characteristics. The network traffic characteristics may specifically include characteristics of network segmentation based on vlan and vxlan. Because the existing multi-vpc environment of the cloud computing data center generally uses the techniques of vlan, vxlan and the like as a large two-layer network structure, the traffic output and monitoring device can send the created session data packet to the cloud network device through a plurality of different vlans or vxlans, so that the test environment of the cloud network device to be tested is simulated based on the network traffic characteristics of multiple tenants.
103. Under the simulated test environment, creating a session data packet based on the communication protocol with the incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function.
For the embodiment of the present invention, the execution subject may be a client, and specifically may be a traffic output and supervision device disposed at the client. The communication protocol may be the TCP protocol. The communication protocol with the incomplete simulation function may be an incomplete simulation of the communication protocol, that is, loss of features that are not concerned by the cloud network device, such as features that consume performance resources, such as a congestion algorithm of the TCP protocol; characteristics of the cloud network equipment which are focused on are reserved, for example, characteristics that three-step handshake, sequence number consistency and the like of the TCP protocol only occupy a small amount of resources are reserved, and therefore the process of establishing a session based on the communication protocol is simplified.
104. And forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet.
Specifically, the client may forward the session data packet to the server through a cloud network device, and the server may process the session data packet to generate the traffic feedback information.
105. And receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
Specifically, after receiving traffic feedback information forwarded by the server through the cloud network device, the traffic feedback information may be analyzed, so as to extract each item of data in the traffic feedback information.
Further, in order to better describe the process of the test method of the cloud network device, as a refinement and an extension of the above embodiment, the embodiment of the present invention provides several alternative embodiments, but is not limited to this, and specifically shown as follows:
in an optional embodiment of the present invention, the step 103 may specifically include: establishing a session table according to preset session flow range information; and creating a session data packet according to the session table and the communication protocol of the incomplete simulation function. The session flow range may be set according to actual requirements of the cloud network device test. The process of creating a session packet based on a communication protocol having a partial simulation function may include: and establishing a session table according to the configured session flow range, wherein the session table can be used for recording quintuple information of the session data packet and the state of a session table item, and distributing the session table to a CPU protocol stack, and the CPU protocol stack sends the session data packet to the cloud network equipment to be tested after initiating a three-way handshake process to the cloud network equipment to be tested according to the session table to establish connection.
In another alternative embodiment of the present invention, the step 105 may specifically include: generating original data information according to the analyzed flow feedback information and a preset statistical algorithm; and calculating the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
Specifically, after receiving the traffic feedback information, the client searches for session information corresponding to the traffic feedback information locally, and the client locally stores the correspondence between the traffic feedback information and the session information. From the session information, raw data statistics is performed, and various indexes of each session, such as reachability, delay, and functionality judgment of the session, can be obtained. According to the original data information, the standard deviation of the service quality of the conversation can be calculated, and therefore the stability characteristic of the conversation is measured.
Further, the generating of the original data information according to the analyzed flow feedback information and a preset statistical algorithm may specifically include: extracting received flow information, sending flow information and lost flow information in all flow feedback information; accumulating the received traffic information, the sending traffic information and the lost traffic information respectively to obtain total received traffic information, total sending traffic information and total lost traffic information; and determining the total received flow information, the total sent flow information and the total lost flow information as original data information.
After receiving and analyzing the traffic feedback information, the client may extract traffic information included in the traffic feedback information, such as received traffic information, sent traffic information, lost traffic information, and the like, and calculate the original data information according to all received traffic feedback information and a preset statistical algorithm. The preset statistical algorithm may be that the received traffic information, the sent traffic information, and the lost traffic information in all the traffic feedback information are accumulated respectively, and the obtained total received traffic information, total sent traffic information, and total lost traffic information may be used as the original data information.
For the embodiment of the present invention, the calculating a standard deviation of session service quality according to the original data information and a preset session service quality algorithm may specifically include: carrying out weighted average calculation by using the original data information; and determining the calculated result as the standard deviation of the session service quality.
After the original data information is determined, weighted average calculation is performed according to the original data information, so that the standard deviation of the session service quality can be obtained, and the standard deviation of the session service quality can be used for measuring the session stability under each vpc.
Further, the simulating a test environment of the cloud network device to be tested based on the network traffic characteristics may specifically include: and sending the session data packet to the cloud network equipment through different virtual local area networks.
For the embodiment of the present invention, when creating a session data packet, a session table of each vpc may be created according to configuration information of a virtual public cloud (vpc) in a cloud network device obtained in advance, the session table is allocated to each CPU protocol stack under different vlans, and the CPU protocol stack initiates a three-way handshake process to the cloud network device to be tested according to the session table to establish a connection, and then may send the session data packet to the cloud network device to be tested through different vlans or vxlans.
Further, correspondingly, an embodiment of the present invention provides another method for testing a cloud network device, as shown in fig. 2, where the method includes:
201. receiving a session data packet forwarded by a client through cloud network equipment, wherein the session data packet is established by the client based on a communication protocol with an incomplete simulation function.
For the embodiment of the present invention, the execution subject may be a server. The server can receive a session data packet forwarded by the client through the cloud network device.
202. And generating flow feedback information according to the session data packet.
As shown in fig. 3, a deployment mode diagram of a cloud network device testing apparatus is provided, where the client and the server may be deployed according to a standard client-server mode, a traffic feedback apparatus may be set at the server, and a traffic output and monitoring apparatus may be set at the client. After receiving the session data packet sent by the client, the traffic feedback device may process the session data packet and generate traffic feedback information.
203. And forwarding the flow feedback information to the client through the cloud network equipment.
For the embodiment of the present invention, after generating the traffic feedback information, the server may forward the traffic feedback information to the client through the cloud network device.
Further, in order to better describe the process of the test method of the cloud network device, as a refinement and an extension of the above embodiment, the embodiment of the present invention provides several alternative embodiments, but is not limited to this, and specifically shown as follows:
in an optional embodiment of the present invention, the step 202 may specifically include: searching a source address, a destination address, a source port number and a destination port number in the session data packet; exchanging the source address and the destination address, and exchanging the source port number and the destination port number; and confirming the session data packet after the exchange processing as the flow feedback information.
For the embodiment of the present invention, a traffic feedback device disposed in a server may receive a session data packet, search for a source address, a destination address, a source port number, and a destination port number in the session data packet, and further perform operations of exchanging the source address and the destination address and exchanging the source port number and the destination port number, where the session data packet after the exchange processing may be used as traffic feedback information and forwarded to the client through a cloud network device.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a testing apparatus for a cloud network device, and as shown in fig. 4, the apparatus includes: an acquisition unit 31, a simulation unit 32, a creation unit 33, a forwarding unit 34 and a receiving unit 35.
An obtaining unit 31, configured to analyze a network traffic sample to obtain network traffic characteristics of a multi-tenant network structure;
the simulation unit 32 is configured to set environment test parameters based on different network traffic characteristics, and simulate a test environment of the cloud network device to be tested;
the creating unit 33 may be configured to create, in the simulated test environment, a session data packet based on the communication protocol with the incomplete simulation function, where the session data packet is created based on the communication protocol with the incomplete simulation function;
the forwarding unit 34 may be configured to forward the session data packet to a server through a cloud network device, where the server is configured to generate flow feedback information according to the session data packet;
the receiving unit 35 may be configured to receive and analyze the traffic feedback information forwarded by the server through the cloud network device.
The creating unit 33 includes: an establishing module 331 and a creating module 332, as shown in fig. 5.
The establishing module 331 may be configured to establish a session table according to a preset session traffic range;
the creating module 332 may be configured to create a session data packet according to the session table and the communication protocol of the incomplete simulation function.
For the embodiment of the present invention, in order to generate raw data information and calculate a standard deviation of session quality of service, the apparatus may further include: a generating unit 36 and a calculating unit 37.
The generating unit 36 may be configured to generate original data information according to the analyzed flow feedback information and a preset statistical algorithm;
the calculating unit 37 may be configured to calculate a standard deviation of the session quality of service according to the raw data information and a preset session quality of service algorithm.
Further, the generating unit 36 may include: an extraction module 361, an accumulation module 362 and a first determination module 363.
The extracting module 361 may be configured to extract received traffic information, sent traffic information, and lost traffic information from all the traffic feedback information;
an accumulation module 362, configured to accumulate the received traffic information, the sent traffic information, and the lost traffic information respectively to obtain total received traffic information, total sent traffic information, and total lost traffic information;
a first determining module 363, configured to determine the total received traffic information, the total sent traffic information, and the total lost traffic information as original data information;
the calculation unit 37 may include: a calculation module 371 and a second determination module 372.
A calculating module 371, configured to perform a weighted average calculation using the raw data information;
a second determining module 372, configured to determine the calculated result as the standard deviation of the session quality of service.
Further, the analog unit 32 may include: a sending module 321.
The sending module 321 may be configured to send the session data packet to the cloud network device through a different virtual local area network.
It should be noted that other corresponding descriptions of the functional modules related to the testing apparatus of the cloud network device provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a storage medium, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform the following steps: analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 4, the embodiment of the present invention further provides a computer device, as shown in fig. 6, including a processor (processor)41, a communication Interface (communication Interface)42, a memory (memory)43, and a communication bus 44. Wherein: the processor 41, the communication interface 42, and the memory 43 communicate with each other via a communication bus 44. A communication interface 44 for communicating with network elements of other devices, such as clients or other servers. The processor 41 is configured to execute a program, and may specifically execute relevant steps in the foregoing test method embodiment of the cloud network device. In particular, the program may include program code comprising computer operating instructions. The processor 41 may be a central processing unit CPU or a Specific Integrated circuit asic (application Specific Integrated circuit) or one or more Integrated circuits configured to implement an embodiment of the invention.
The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs. And a memory 43 for storing a program. The memory 43 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The program may specifically be adapted to cause the processor 41 to perform the following operations: analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
Further, as a specific implementation of fig. 2, an embodiment of the present invention provides another testing apparatus for a cloud network device, as shown in fig. 7, the apparatus includes: a receiving unit 51, a generating unit 52 and a forwarding unit 53.
The receiving unit 51 may be configured to receive a session data packet forwarded by a client through a cloud network device, where the session data packet is established by the client based on a communication protocol with an incomplete simulation function;
the generating unit 52 may be configured to generate traffic feedback information according to the session data packet;
the forwarding unit 53 may be configured to forward the traffic feedback information to the client through a cloud network device.
The generating unit 52 may include: a lookup module 521, an exchange module 522, and a confirmation module 523, as shown in fig. 8.
The searching module 521 may be configured to search for a source address, a destination address, a source port number, and a destination port number in the session data packet;
the switching module 522 may be configured to switch the source address and the destination address, and switch the source port number and the destination port number;
the confirming module 523 may be configured to confirm the session data packet after the exchange processing as the traffic feedback information.
Based on the above-mentioned embodiments of the method shown in fig. 2 and the apparatus shown in fig. 7, the embodiment of the present invention further provides a computer device, as shown in fig. 9, including a processor (processor)61, a communication Interface (Communications Interface)62, a memory (memory)63, and a communication bus 64. Wherein: the processor 61, the communication interface 62, and the memory 63 communicate with each other via a communication bus 64. A communication interface 64 for communicating with network elements of other devices, such as clients or other servers. The processor 61 is configured to execute a program, and may specifically execute relevant steps in the foregoing test method embodiment of the cloud network device. In particular, the program may include program code comprising computer operating instructions. The processor 61 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement an embodiment of the invention.
The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs. And a memory 63 for storing programs. The memory 63 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The program may specifically be adapted to cause the processor 61 to perform the following operations: creating a session data packet, the session data packet being established based on a communication protocol having an incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment.
By the technical scheme, the network flow sample can be analyzed to obtain the network flow characteristics of the multi-tenant network structure; setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested; under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is established based on the communication protocol with the incomplete simulation function; forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet; and receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment. Therefore, the cloud network equipment can be tested, cluster deployment is avoided, testing cost is reduced, testing time is shortened, and testing efficiency is improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (13)

1. A testing method of cloud network equipment is characterized by comprising the following steps:
analyzing the network traffic sample to obtain network traffic characteristics of the multi-tenant network structure;
setting environment test parameters based on different network flow characteristics, and simulating a test environment of the cloud network equipment to be tested;
under a simulated test environment, creating a session data packet based on a communication protocol with an incomplete simulation function, wherein the session data packet is created based on the communication protocol with the incomplete simulation function, and the communication protocol with the incomplete simulation function is a communication protocol which loses features which are not concerned by the cloud network equipment and reserves features which are concerned by the cloud network equipment;
forwarding the session data packet to a server through cloud network equipment, wherein the server is used for generating flow feedback information according to the session data packet;
receiving and analyzing flow feedback information forwarded by a server through cloud network equipment;
after receiving and analyzing the traffic feedback information forwarded by the server through the cloud network device, the method further includes:
generating original data information according to the analyzed flow feedback information and a preset statistical algorithm;
generating original data information according to the analyzed flow feedback information and a preset statistical algorithm, wherein the generating original data information comprises the following steps:
extracting received flow information, sending flow information and lost flow information in all flow feedback information;
accumulating the received traffic information, the sending traffic information and the lost traffic information respectively to obtain total received traffic information, total sending traffic information and total lost traffic information;
and determining the total received flow information, the total sent flow information and the total lost flow information as original data information.
2. The method of claim 1, wherein creating a session packet based on a communication protocol having a partial emulation function comprises:
establishing a session table according to a preset session flow range;
and creating a session data packet according to the session table and the communication protocol of the incomplete simulation function.
3. The method of claim 1, wherein after generating the raw data information according to the parsed flow feedback information and a preset statistical algorithm, the method further comprises:
and calculating the standard deviation of the session service quality according to the original data information and a preset session service quality algorithm.
4. The method of claim 3, wherein said calculating a session quality of service standard deviation based on said raw data information and a predetermined session quality of service algorithm comprises:
carrying out weighted average calculation by using the original data information;
and determining the calculated result as the standard deviation of the session service quality.
5. The method of claim 1, wherein simulating the test environment of the cloud network device to be tested based on the environment test parameters of the different network traffic characteristics comprises:
and sending the session data packet to the cloud network equipment through different virtual local area networks.
6. A testing method of cloud network equipment is characterized by comprising the following steps:
receiving a session data packet forwarded by a client through cloud network equipment, wherein the session data packet is established by the client based on a communication protocol with an incomplete simulation function, and the communication protocol with the incomplete simulation function is a communication protocol which loses features which are not concerned by the cloud network equipment and reserves key features which are concerned by the cloud network equipment;
generating flow feedback information according to the session data packet;
forwarding the flow feedback information to the client through cloud network equipment, so that the client generates original data information according to the analyzed flow feedback information and a preset statistical algorithm;
generating original data information according to the analyzed flow feedback information and a preset statistical algorithm, wherein the generating of the original data information comprises:
extracting received flow information, sending flow information and lost flow information in all flow feedback information;
accumulating the received traffic information, the sending traffic information and the lost traffic information respectively to obtain total received traffic information, total sending traffic information and total lost traffic information;
and determining the total received flow information, the total sent flow information and the total lost flow information as original data information.
7. The method of claim 6, wherein generating traffic feedback information from the session data packet comprises:
searching a source address, a destination address, a source port number and a destination port number in the session data packet;
exchanging the source address and the destination address, and exchanging the source port number and the destination port number;
and confirming the session data packet after the exchange processing as the flow feedback information.
8. A testing device of a cloud network device is characterized by comprising:
the acquiring unit is used for analyzing the network traffic sample so as to acquire the network traffic characteristics of the multi-tenant network structure;
the simulation unit is used for setting environment test parameters based on different network flow characteristics and simulating the test environment of the cloud network equipment to be tested;
the device comprises a creating unit, a judging unit and a processing unit, wherein the creating unit is used for creating a session data packet based on a communication protocol with an incomplete simulation function under a simulated test environment, the session data packet is created based on the communication protocol with the incomplete simulation function, and the communication protocol with the incomplete simulation function is a communication protocol which loses the characteristics which are not concerned by the cloud network equipment and reserves the important characteristics which are concerned by the cloud network equipment;
the forwarding unit is used for forwarding the session data packet to a server through cloud network equipment, and the server is used for generating flow feedback information according to the session data packet;
the receiving unit is used for receiving and analyzing the flow feedback information forwarded by the server through the cloud network equipment;
wherein the apparatus further comprises:
the generating unit is used for generating original data information according to the analyzed flow feedback information and a preset statistical algorithm;
the generation unit includes: an extraction module, an accumulation module and a first determination module,
the extraction module is used for extracting received flow information, sent flow information and lost flow information in all the flow feedback information;
the accumulation module is configured to accumulate the received traffic information, the sent traffic information, and the lost traffic information respectively to obtain total received traffic information, total sent traffic information, and total lost traffic information;
the first determining module is configured to determine the total received traffic information, the total sent traffic information, and the total lost traffic information as original data information.
9. A testing device of a cloud network device is characterized by comprising:
the cloud network equipment comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a session data packet forwarded by a client through cloud network equipment, the session data packet is established by the client based on a communication protocol with an incomplete simulation function, and the communication protocol with the incomplete simulation function is a communication protocol which loses features which are not concerned by the cloud network equipment and reserves important features which are concerned by the cloud network equipment;
the generating unit is used for generating flow feedback information according to the session data packet;
the forwarding unit is used for forwarding the flow feedback information to the client through the cloud network equipment so as to enable the generating unit of the client to generate original data information according to the analyzed flow feedback information and a preset statistical algorithm;
wherein the generation unit of the client comprises: an extraction module, an accumulation module and a first determination module,
the extraction module is used for extracting received flow information, sent flow information and lost flow information in all the flow feedback information;
the accumulation module is configured to accumulate the received traffic information, the sent traffic information, and the lost traffic information respectively to obtain total received traffic information, total sent traffic information, and total lost traffic information;
the first determining module is configured to determine the total received traffic information, the total sent traffic information, and the total lost traffic information as original data information.
10. A storage medium having a computer program stored thereon, the storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the testing method of the cloud network device according to any one of claims 1 to 5.
11. A computer device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus, the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the cloud network device testing method according to any one of claims 1-5.
12. A storage medium having a computer program stored thereon, the storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the cloud network device testing method according to any one of claims 6 to 7.
13. A computer device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus, the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the cloud network device testing method according to any one of claims 6-7.
CN202010104333.4A 2020-02-20 2020-02-20 Cloud network equipment testing method and device, storage medium and computer equipment Active CN111431758B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010104333.4A CN111431758B (en) 2020-02-20 2020-02-20 Cloud network equipment testing method and device, storage medium and computer equipment
PCT/CN2020/119065 WO2021164261A1 (en) 2020-02-20 2020-09-29 Method for testing cloud network device, and storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104333.4A CN111431758B (en) 2020-02-20 2020-02-20 Cloud network equipment testing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111431758A CN111431758A (en) 2020-07-17
CN111431758B true CN111431758B (en) 2022-05-31

Family

ID=71547210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104333.4A Active CN111431758B (en) 2020-02-20 2020-02-20 Cloud network equipment testing method and device, storage medium and computer equipment

Country Status (2)

Country Link
CN (1) CN111431758B (en)
WO (1) WO2021164261A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431758B (en) * 2020-02-20 2022-05-31 平安科技(深圳)有限公司 Cloud network equipment testing method and device, storage medium and computer equipment
CN113029223B (en) * 2020-09-15 2023-04-07 山东华科信息技术有限公司 Detection device for batch detection of sensors based on network communication
CN112436982B (en) * 2020-11-23 2022-06-21 苏州浪潮智能科技有限公司 Network flow automatic mixed running test method, system, terminal and storage medium
US11855873B2 (en) * 2021-07-29 2023-12-26 DISH Wireless L.L.C Virtualized cellular network multi-stage test and ticketing environment
CN113645653A (en) * 2021-08-06 2021-11-12 腾讯数码(深圳)有限公司 Network simulation test method and device, electronic equipment and storage medium
CN116233905A (en) * 2021-12-03 2023-06-06 腾讯科技(深圳)有限公司 Test method and device of wireless local area network equipment, medium and electronic equipment
US11928520B2 (en) * 2022-05-13 2024-03-12 Google Llc Change-proposal functions in configuration management systems
CN115002010A (en) * 2022-05-27 2022-09-02 北京天融信网络安全技术有限公司 Test system, method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5931913A (en) * 1997-05-07 1999-08-03 International Business Machines Corporation Methods, system and computer program products for establishing a session between a host and a terminal using a reduced protocol
CN105530654A (en) * 2015-12-24 2016-04-27 北京经纬恒润科技有限公司 Ad hoc network communication device testing method and system
CN110138617A (en) * 2019-05-22 2019-08-16 北京字节跳动网络技术有限公司 Data transmission quality test method, system, electronic equipment and storage medium
CN110651459A (en) * 2017-12-21 2020-01-03 谷歌有限责任公司 Network impairment simulation framework for validating real-time interactive media streaming systems

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10282246B2 (en) * 2014-01-14 2019-05-07 Sk Techx Co., Ltd. Application error detection method for cloud streaming service, and apparatus and system therefor
CN106375142B (en) * 2016-08-26 2019-09-13 腾讯科技(深圳)有限公司 The test method and device of application program
CN108108296B (en) * 2016-11-24 2020-07-28 腾讯科技(北京)有限公司 Cloud testing method, server and client
CN111431758B (en) * 2020-02-20 2022-05-31 平安科技(深圳)有限公司 Cloud network equipment testing method and device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5931913A (en) * 1997-05-07 1999-08-03 International Business Machines Corporation Methods, system and computer program products for establishing a session between a host and a terminal using a reduced protocol
CN105530654A (en) * 2015-12-24 2016-04-27 北京经纬恒润科技有限公司 Ad hoc network communication device testing method and system
CN110651459A (en) * 2017-12-21 2020-01-03 谷歌有限责任公司 Network impairment simulation framework for validating real-time interactive media streaming systems
CN110138617A (en) * 2019-05-22 2019-08-16 北京字节跳动网络技术有限公司 Data transmission quality test method, system, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
μReTi:小尺寸实时嵌入式系统的TCP/IP精简化研究;周海鹰等;《计算机工程与设计》;20120816(第08期);全文 *
基于Nagle算法的嵌入式TCP协议;周志洪等;《浙江大学学报(工学版)》;20060128(第01期);全文 *

Also Published As

Publication number Publication date
CN111431758A (en) 2020-07-17
WO2021164261A1 (en) 2021-08-26

Similar Documents

Publication Publication Date Title
CN111431758B (en) Cloud network equipment testing method and device, storage medium and computer equipment
US9459987B2 (en) Method and system for comparing different versions of a cloud based application in a production environment using segregated backend systems
CN110247784B (en) Method and device for determining network topology structure
CN107070752B (en) Testing method and testing system for long connection capacity
CN113364804B (en) Method and device for processing flow data
US9641595B2 (en) System management apparatus, system management method, and storage medium
CN114697391B (en) Data processing method, device, equipment and storage medium
WO2022057265A1 (en) Test method and device for simulating customer series deployment environment
CN110768870B (en) Quality monitoring method and device for intelligent special line
CN110855528B (en) Message processing method and test equipment
CN105007200A (en) Method and system for analyzing network data packet
CN110601989A (en) Network traffic balancing method and device
CN116436790A (en) Scene target drone network topology detection method and system in network target range
CN110620682B (en) Resource information acquisition method and device, storage medium and terminal
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN115277506B (en) Load balancing equipment testing method and system
CN110830602A (en) Distribution network terminal communication test system and method based on dynamic domain name resolution
CN105516017A (en) Directed acceleration method and device, and terminal equipment
CN115150298B (en) Virtual gateway testing method and device, storage medium and electronic equipment
WO2022227788A1 (en) Method and device for collecting network slice resource information, and storage medium
CN114448841B (en) Network card testing method, device, equipment and medium
CN114338549B (en) Data stream identification processing method, device, server and storage medium
CN113676369B (en) Network quality analysis method, data receiving server and storage medium
CN114679393B (en) Satellite internet bandwidth control method, system and device based on flow analysis
WO2023185533A1 (en) Detection processing method, apparatus and system, and storage medium and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant