[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108632110B - Device performance testing method, system, computer device and storage medium - Google Patents

Device performance testing method, system, computer device and storage medium Download PDF

Info

Publication number
CN108632110B
CN108632110B CN201810244418.5A CN201810244418A CN108632110B CN 108632110 B CN108632110 B CN 108632110B CN 201810244418 A CN201810244418 A CN 201810244418A CN 108632110 B CN108632110 B CN 108632110B
Authority
CN
China
Prior art keywords
performance test
cloud server
data packet
tested
performance
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
CN201810244418.5A
Other languages
Chinese (zh)
Other versions
CN108632110A (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.)
Beijing Nettest Technology Co ltd
Original Assignee
Beijing Nettest Technology 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 Beijing Nettest Technology Co ltd filed Critical Beijing Nettest Technology Co ltd
Priority to CN201810244418.5A priority Critical patent/CN108632110B/en
Publication of CN108632110A publication Critical patent/CN108632110A/en
Application granted granted Critical
Publication of CN108632110B publication Critical patent/CN108632110B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a device performance testing method, a system, a computer device and a storage medium. The method comprises the following steps: after the cloud server receives a performance test request of the tested equipment forwarded by the virtual switch, a communication link from an internal process of the cloud server to the virtual switch is established based on DPDK, the virtual switch forwards a test data packet sent by the cloud server to the tested equipment, the tested equipment forwards an operation result to the cloud server through the virtual switch, and the cloud server receives and processes the returned data packet. Communication between the cloud server and the tested device is carried out based on the DPDK and the virtual switch, and the device performance test of high-performance data exchange can be realized.

Description

Device performance testing method, system, computer device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a system for testing device performance, a computer device, and a storage medium.
Background
With the development of computer technology, performance testing technology appears, and products of network equipment manufacturers are upgraded from gigabit products to gigabit products, and a high-performance tester is required for measuring the performance of the equipment and services.
There are currently two approaches to performance testers: one is a hardware solution, but the hardware solution is expensive and has poor flexibility. One is a software scheme, which is based on an operating system kernel network protocol stack to send and receive performance test data, but the software scheme uses the kernel network protocol stack to exchange data with poor performance, and cannot meet the requirement of large flow.
Therefore, how to provide a device performance testing method capable of realizing high-performance data exchange based on software becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
In view of the above, it is necessary to provide a high-performance testing method, system, computer device and storage medium for solving the above technical problems.
A method of device performance testing, the method comprising: the cloud server transmits, receives and processes data packets by adopting a data plane development kit technology; according to the performance test request, the cloud server generates a test step and a performance test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through a data plane development kit; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall; the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test; the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the data communication link; the operation result is that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; and the cloud server adjusts the number and parameters of the performance test data packets for multiple times according to the performance test request, and generates the performance test result of the tested equipment according to multiple operation results returned by the tested equipment.
In one embodiment, the step of generating, by the cloud server, a test flow and a performance test data packet according to the performance test request includes: and if the request received by the cloud server is the forwarding performance test request, generating a corresponding forwarding performance test data packet and a corresponding test flow.
In one embodiment, the step of generating, by the cloud server, a test flow and a performance test data packet according to the performance test request includes: and if the service performance test request is received by the cloud server, generating a corresponding service performance test data packet and a corresponding test flow.
In one embodiment, the step of generating, by the cloud server, a test flow and a performance test data packet according to the performance test request includes: and if the cloud server receives the defense performance test request, generating a corresponding attack performance test data packet.
A method of device performance testing, the method comprising: the performance test request is sent to a cloud server, the cloud server generates a performance test data packet, sends the data packet based on a data plane development kit, and sends the data packet to the tested equipment through a constructed data communication link; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall; the performance test request and the identity information of the tested equipment are generated into a corresponding performance test data packet and a corresponding test flow by the cloud server; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test; the virtual switch sends the performance test data packet to the tested equipment, and forwards an operation result of the performance test data packet returned by the tested equipment to the cloud server, and the cloud server adjusts the parameters and frequency of the performance test data packet according to a test flow and generates a performance test report result of the tested equipment according to the returned operation result; and the performance test result is the session management capability of the protective wall.
In one embodiment, the step of sending the performance test request to a cloud server, the cloud server generating a performance test data packet, sending the data packet based on a data plane development kit, and sending the data packet to the device under test through a constructed data communication link includes: the virtual machine forwards a performance test request of a user to the cloud server, and receives a performance test data packet sent by the cloud server through a data plane development kit through the equipment direct distribution technology interface; or the virtual machine forwards a performance test request of a user to the cloud server and receives a performance test data packet sent by the cloud server through the data plane-based development kit through the single I/O virtualization interface.
In one embodiment, the step of sending, by the virtual switch, the performance test packet to the device under test, and forwarding the operation result of the performance test packet returned by the device under test to the cloud server includes: the virtual switch sends the performance test packet to the tested equipment through an equipment direct distribution technology interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the equipment direct distribution technology interface; or the virtual switch sends the performance test packet to the tested equipment through the single I/O virtualization interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the single I/O virtualization interface.
A device performance testing system, the system comprising: a cloud server and a virtual switch, wherein,
the cloud server sends, receives and processes data packets by adopting a data plane development kit technology, generates a test flow and a performance test data packet according to a performance test request, and establishes a data communication link with the virtual switch through a data plane development kit in an internal process of the cloud server; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall;
the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test;
the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the data communication link; the operation result is that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; the cloud server adjusts the number and parameters of the performance test data packets for multiple times according to the performance test request, and generates the performance test result of the tested equipment according to multiple operation results returned by the tested equipment; and the performance test result is the session management capability of the protective wall.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the device performance testing method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned device performance testing method.
According to the device performance testing method, the system, the computer device and the storage medium, after the cloud server receives the performance testing request of the tested device forwarded by the virtual switch, a testing flow is generated, the testing data packet is generated and sent based on the data plane development kit technology, a communication link between the cloud server and the virtual switch is established, the virtual switch forwards the testing data packet sent by the cloud server to the tested device, the tested device forwards the operation result to the cloud server through the virtual switch, and the cloud server receives the operation result through the data plane development kit. And the cloud server adjusts the content and the sending frequency of the test data packet according to the test flow, repeats the steps for multiple times, obtains the operation result of the test data packet, and generates the performance test result of the tested equipment. The communication between the cloud server and the tested equipment is carried out based on the data plane development kit and the virtual switch, and the equipment performance test of high-performance data exchange can be realized.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a device performance testing method;
FIG. 2 is a flow chart illustrating a method for testing device performance according to an embodiment;
fig. 3 is a schematic flow chart of a device service performance testing method in another embodiment;
FIG. 4 is a signaling diagram of a device performance testing method in another embodiment;
fig. 5 is a schematic diagram showing an internal configuration of a computer device according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for testing the performance of the equipment can be applied to the application environment shown in fig. 1. The cloud server 101 communicates with the device under test 103 via a network. The cloud server 101 may be implemented by an independent server or a server cluster formed by a plurality of servers, and the device under test 103 may be, but is not limited to, a router, a switch, a firewall, a Web firewall, a DDoS device, and other network or security devices, a server running a certain service, or an internet service or a cloud service provided by a third party. The cloud server 101 and the device under test 103 forward data through the virtual switch 102.
Fig. 2 is a flowchart illustrating a method for testing device performance according to an embodiment of the present invention, and is used for testing performance of a network device or a security device forwarding data packet. The method comprises the following steps:
in step S201, the cloud server transmits, receives, and processes a data packet by using a DPDK technique. According to the user performance test request, the cloud server generates a test step and a test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through the DPDK.
The cloud server receives a test request forwarded by the virtual switch, generates a test flow and a test Data packet based on the test request, and sends the Data packet to the virtual switch based on a DPDK (Data Plane Development Kit), wherein the test request is submitted to the cloud server by a user through a network.
Further, the test request may include a link request of the device to be detected and basic information of the object to be detected, such as: device name, device attributes, etc. The device under test may be a router, firewall, security device, etc.
The DPDK is a Development Kit based on a Data Plane, is fully called a Data Plane Development Kit, is developed by multiple companies such as 6WIN, Intel and the like, is mainly operated based on a Linux system, is used for a function library and a drive set for rapidly processing Data packets, can greatly improve the Data processing performance and throughput and improve the working efficiency of application programs. The DPDK is applied to the cloud-based test software to improve the data processing performance and throughput of the test software.
Step S202, the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the device under test. The tested devices are network devices or safety devices such as a router, a switch and a firewall, detect the data packets after receiving the test data packets, modify or keep the data packets unchanged according to the roles of the data packets, and then forward the data packets back to the virtual switch.
Step S203, the cloud server receives the operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link; the operation result can be that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device.
And step S204, the cloud server adjusts the number and parameters of the test data packets for multiple times according to the user performance test request, and generates the performance test result of the tested equipment according to multiple operation results returned by the tested equipment. The specific cloud server receives the operation result of the tested equipment and generates the performance test result of the tested equipment according to the operation result.
Optionally, the generated performance test result may be the throughput capability of the router, the delay of the switch, or the session management capability of the firewall, because the types of the devices to be tested are different or the test requirements are different.
In one embodiment, the step of sending the corresponding performance test packet to the virtual switch by the cloud server internal process through the data communication link includes: and the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment.
The cloud server can receive the identity information of the tested equipment besides the test request, and generates a test scheme and a corresponding performance test package according to the identity information of the tested equipment. The identity information may be the name of the device under test, the function of the device under test, the brand of the device under test, etc. used to identify information that distinguishes different devices under test. And the cloud server generates a test step and a corresponding performance test data packet according to the tested identity information.
In one embodiment, the step of receiving, by the cloud server, the operation result of the performance test packet returned by the device under test and forwarded by the virtual switch through the communication link includes: and if the request is received by the cloud server, generating a corresponding forwarding performance test data packet and a test scheme.
And if the performance test request of the tested equipment forwarded by the virtual switch, which is received by the cloud server, is a forwarding performance request, generating a forwarding performance data packet and sending the forwarding performance data packet to the tested equipment. Forwarding performance data packets are used to test the capability of forwarding data streams provided by the device under test as a network communication device or a security device, for example: three-layer throughput capability of the router, two-layer forwarding capability of the switch, session management capability of the firewall, and the like.
In one embodiment, the step of generating, by the cloud server, a corresponding performance test data packet according to the received performance test request includes: and if the service performance test request is received by the cloud server, generating a corresponding service performance test data packet and a corresponding test flow.
And if the performance test request of the tested equipment forwarded by the virtual switch, which is received by the cloud server, is a service performance request, generating a service performance data packet and sending the service performance data packet to the tested equipment. The service performance data packet is a service provided by the device under test as a network service end, for example: the service performance data packet may be used for testing the access speed of the Web site, or may be used for downloading the file server, or storing the storage server.
In one embodiment, the step of generating the corresponding forwarding performance test data packet and the test scheme if the forwarding performance test request is received by the cloud server includes: and if the cloud server receives the defense performance test request, generating a corresponding attack test data packet.
And if the performance test request of the tested equipment forwarded by the virtual switch, which is received by the cloud server, is a defense performance request, generating an attack test data packet and sending the attack test data packet to the tested equipment. The defense performance request is to test the defense performance of the device, the defense performance when the device is attacked. The defense performance data packet can be a simulated virus attack message, and the virus killing and attack defense performance of the firewall is tested.
Fig. 3 is a flowchart illustrating a method for testing service performance of a device according to an embodiment of the present invention. The method comprises the following steps:
step S301, a user performance test request is sent to a cloud server, the cloud server generates a performance test data packet, sends the data packet based on DPDK, and sends the data packet to a device to be tested through a constructed data communication link.
The user puts forward a test request to the cloud server, the cloud server generates a test scheme and a test data packet according to the test request, and meanwhile, the performance test data packet is sent to the virtual switch through a communication link constructed by the DPDK.
Step S302, the virtual switch sends the performance test packet to the tested equipment, and forwards the operation result of the performance test data packet returned by the tested equipment to the cloud server, and the cloud server adjusts the parameters and frequency of the test data packet according to the test flow and generates a performance test report of the tested equipment according to the returned operation result.
The virtual switch receives the performance test packet and then sends the performance test packet to the tested equipment, the tested equipment generates an operation result based on the service performance test packet and sends the operation result to the virtual switch, the virtual switch forwards the operation result to the cloud server, and the cloud server generates a service performance test result according to the operation result.
In one embodiment, the step of sending the user performance test request to the cloud server, the cloud server generating a performance test data packet, sending the data packet based on DPDK, and sending the performance test data packet to the device under test through the constructed data communication link includes: the virtual machine forwards a performance test request of a user to a cloud server, and receives a performance test data packet sent by the cloud server based on DPDK through the PASTHOUGH interface; or the virtual machine forwards a performance test request of a user to the cloud server and receives a performance test data packet sent by the cloud server based on the DPDK through the SR-IOV interface.
When the virtual switch receives and forwards data transmitted by the cloud server and the device to be tested, a PASTHUGH (device direct distribution technology) interface or an SR-IOV (Single-root I/O virtualization) interface can be selected.
The bosthogh interface mode is to directly allocate a physical network card to a virtual machine, so that the virtual machine can directly access a physical device without being intercepted by a virtual machine monitor or a virtual machine monitor, namely, a device direct allocation technology. The use of the PASTHROUGH interface mode can improve the data packet processing performance of the test software.
SR-IOV interface mode is a standard that can present a single PCIE device (referred to as a physical function) to the operating system and hypervisor as multiple independent PCIE devices (each device becomes a virtual function), establishing multi-device transport. The physical network card of the virtual switch can be virtualized into an independent network card by using the SR-IOV interface mode and is distributed to a virtual machine, so that the data packet processing performance of the test software is improved.
In one embodiment, the step of sending the performance test packet to the device under test by the virtual switch, and forwarding the operation result of the performance test data packet returned by the device under test to the cloud server includes: the virtual switch sends the performance test packet to the tested device through the PASTHUGH interface, and forwards the received operation result of the performance test data packet returned by the tested device to the cloud server through the PASTHUGH interface; or the virtual switch sends the performance test packet to the tested equipment through the SR-IOV interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the SR-IOV interface.
Fig. 4 is a signaling diagram of a device performance testing method in one embodiment, the method comprising the following steps:
step S401: the user sends a performance test request to the virtual switch.
Step S402: and the cloud server sends the performance test data packet to the virtual switch.
Step S403: and the virtual switch forwards the performance test data packet to the tested device.
Step S404: and the tested device sends the operation result to the virtual switch.
Step S405: and the virtual switch forwards the operation result to the cloud server.
Step S406: and the cloud server adjusts the test parameters, repeats S402 to S405 for multiple times, and generates the performance test result of the tested equipment to the user according to the test operation results for multiple times.
According to the method for testing the performance of the device, the communication data between the cloud server and the tested device is forwarded through the virtual switch, and the cloud server, the tested device and the virtual switch are cooperated with each other to complete the performance test of the tested device.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
A device performance testing system, the system comprising: the system comprises a cloud server and a virtual switch, wherein the cloud server transmits, receives and processes data packets by adopting a DPDK technology; according to the user performance test request, the cloud server generates a test step and a test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through a DPDK; the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of a performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link; the operation result can be that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; and the cloud server adjusts the number and parameters of the test data packets for multiple times according to the user performance test request, and generates a performance test result of the tested equipment according to multiple operation results returned by the tested equipment.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing test data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a device performance testing method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: the cloud server transmits, receives and processes the data packet by adopting a DPDK technology; according to the user performance test request, the cloud server generates a test step and a test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through a DPDK; the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of a performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link; the operation result can be that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; and the cloud server adjusts the number and parameters of the test data packets for multiple times according to the user performance test request, and generates a performance test result of the tested equipment according to multiple operation results returned by the tested equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step of sending the corresponding performance test data packet to the virtual switch by the internal process of the cloud server through the data communication link comprises the following steps: and the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step that the cloud server receives the operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link comprises the following steps: and if the request is received by the cloud server, generating a corresponding forwarding performance test data packet and a test scheme.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the cloud server generates a corresponding performance test data packet according to the received performance test request, and the steps comprise: and if the service performance test request is received by the cloud server, generating a corresponding service performance test data packet and a corresponding test flow.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the request for the forwarding performance test is received by the cloud server, the step of generating the corresponding forwarding performance test data packet and the test scheme comprises the following steps: and if the cloud server receives the defense performance test request, generating a corresponding attack test data packet.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: the user performance test request is sent to a cloud server, the cloud server generates a performance test data packet, the data packet is sent based on DPDK, and the performance test data packet is sent to the tested equipment through a constructed data communication link; the virtual switch sends the performance test packet to the tested equipment, the running result of the performance test data packet returned by the tested equipment is forwarded to the cloud server, the cloud server adjusts the parameters and the frequency of the test data packet according to the test flow, and a performance test report of the tested equipment is generated according to the returned running result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the user performance test request is sent to a cloud server, the cloud server generates a performance test data packet, the data packet is sent based on DPDK, and the performance test data packet is sent to the tested device through a constructed data communication link, wherein the steps of the user performance test request are as follows: the virtual machine forwards a performance test request of a user to a cloud server, and receives a performance test data packet sent by the cloud server based on DPDK through the PASTHOUGH interface; or the virtual machine forwards a performance test request of a user to the cloud server and receives a performance test data packet sent by the cloud server based on the DPDK through the SR-IOV interface.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the virtual switch sends the performance test packet to the tested device and forwards the operation result of the performance test data packet returned by the tested device to the cloud server; or the virtual switch sends the performance test packet to the tested equipment through the SR-IOV interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the SR-IOV interface.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: the cloud server transmits, receives and processes the data packet by adopting a DPDK technology; according to the user performance test request, the cloud server generates a test step and a test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through a DPDK; the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of a performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link; the operation result can be that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; and the cloud server adjusts the number and parameters of the test data packets for multiple times according to the user performance test request, and generates a performance test result of the tested equipment according to multiple operation results returned by the tested equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step of sending the corresponding performance test data packet to the virtual switch by the internal process of the cloud server through the data communication link comprises the following steps: and the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step that the cloud server receives the operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the communication link comprises the following steps: and if the request is received by the cloud server, generating a corresponding forwarding performance test data packet and a test scheme.
In one embodiment, the computer program when executed by the processor further performs the steps of: the cloud server generates a corresponding performance test data packet according to the received performance test request, and the steps comprise: and if the service performance test request is received by the cloud server, generating a corresponding service performance test data packet and a corresponding test flow.
In one embodiment, the step of generating the corresponding forwarding performance test data packet and the test scheme if the forwarding performance test request is received by the cloud server includes: and if the cloud server receives the defense performance test request, generating a corresponding attack test data packet.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: the user performance test request is sent to a cloud server, the cloud server generates a performance test data packet, the data packet is sent based on DPDK, and the performance test data packet is sent to the tested equipment through a constructed data communication link; the virtual switch sends the performance test packet to the tested equipment, the running result of the performance test data packet returned by the tested equipment is forwarded to the cloud server, the cloud server adjusts the parameters and the frequency of the test data packet according to the test flow, and a performance test report of the tested equipment is generated according to the returned running result.
In one embodiment, the computer program when executed by the processor further performs the steps of: the user performance test request is sent to a cloud server, the cloud server generates a performance test data packet, the data packet is sent based on DPDK, and the performance test data packet is sent to the tested device through a constructed data communication link, wherein the steps of the user performance test request are as follows: the virtual machine forwards a performance test request of a user to a cloud server, and receives a performance test data packet sent by the cloud server based on DPDK through the PASTHOUGH interface; or the virtual machine forwards a performance test request of a user to the cloud server and receives a performance test data packet sent by the cloud server based on the DPDK through the SR-IOV interface.
In one embodiment, the computer program when executed by the processor further performs the steps of: the virtual switch sends the performance test packet to the tested equipment, and the step of forwarding the operation result of the performance test data packet returned by the tested equipment to the cloud server comprises the following steps: the virtual switch sends the performance test packet to the tested device through the PASTHUGH interface, and forwards the received operation result of the performance test data packet returned by the tested device to the cloud server through the PASTHUGH interface; or the virtual switch sends the performance test packet to the tested equipment through the SR-IOV interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the SR-IOV interface.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
For the specific definition of the device performance testing system, reference may be made to the above definition of the device performance testing method, which is not described herein again. The various components of the device performance testing system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above parts may be embedded in hardware or independent from a processor in the computer device, or may be stored in a memory in the computer device in software, so that the processor can call and execute operations corresponding to the above parts.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing device performance, the method comprising:
the cloud server transmits, receives and processes data packets by adopting a data plane development kit technology;
according to the performance test request, the cloud server generates a test flow and a performance test data packet, and a data communication link between the internal process of the cloud server and the virtual switch is established through a data plane development kit; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall;
the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test;
the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment;
the cloud server receives an operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the data communication link; the operation result is that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device;
the cloud server adjusts the number and parameters of the performance test data packets for multiple times according to the performance test request, and generates the performance test result of the tested equipment according to multiple operation results returned by the tested equipment; and the performance test result is the session management capability of the protective wall.
2. The method of claim 1, wherein the step of generating the test flow and the performance test data packet by the cloud server according to the performance test request comprises:
and if the request received by the cloud server is the forwarding performance test request, generating a corresponding forwarding performance test data packet and a corresponding test flow.
3. The method of claim 1, wherein the step of generating the test flow and the performance test data packet by the cloud server according to the performance test request comprises:
and if the service performance test request is received by the cloud server, generating a corresponding service performance test data packet and a corresponding test flow.
4. The method of claim 1, wherein the step of generating the test flow and the performance test data packet by the cloud server according to the performance test request comprises:
and if the cloud server receives the defense performance test request, generating a corresponding attack performance test data packet.
5. A method for testing device performance, the method comprising:
the performance test request is sent to a cloud server, the cloud server generates a performance test data packet, sends the data packet based on a data plane development kit, and sends the data packet to the tested equipment through a constructed data communication link; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall;
the performance test request and the identity information of the tested equipment are generated into a corresponding performance test data packet and a corresponding test flow by the cloud server; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test;
the virtual switch sends the performance test data packet to the tested equipment, and forwards an operation result of the performance test data packet returned by the tested equipment to the cloud server, and the cloud server adjusts the parameters and the frequency of the performance test data packet according to a test flow and generates the performance test result of the tested equipment according to the returned operation result; and the performance test result is the session management capability of the protective wall.
6. The method of claim 5, wherein the step of sending the capability test request to a cloud server, the cloud server generating a capability test packet, sending the packet based on a data plane development kit, and sending the packet to the device under test over the constructed data communication link comprises:
the virtual switch forwards a performance test request of a user to the cloud server, and receives a performance test data packet sent by the cloud server through a data plane development kit through a device direct distribution technology interface;
or the virtual switch forwards a performance test request of a user to the cloud server and receives a performance test data packet sent by the cloud server through the data plane development kit through the single I/O virtualization interface.
7. The method according to claim 5, wherein the step of sending the performance test packet to the device under test by the virtual switch, and forwarding the operation result of the performance test packet returned by the device under test to a cloud server comprises:
the virtual switch sends the performance test data packet to the tested equipment through an equipment direct distribution technology interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to a cloud server through the equipment direct distribution technology interface;
or the virtual switch sends the performance test data packet to the tested equipment through the single I/O virtualization interface, and forwards the received operation result of the performance test data packet returned by the tested equipment to the cloud server through the single I/O virtualization interface.
8. An apparatus performance testing system, the system comprising: a cloud server and a virtual switch, wherein,
the cloud server sends, receives and processes data packets by adopting a data plane development kit technology, generates a test flow and a performance test data packet according to a performance test request, and establishes a data communication link with the virtual switch through a data plane development kit in an internal process of the cloud server; the performance test request is submitted to a cloud server through a network by a user, the performance test request comprises a link request of the tested device and basic information including a device name and a device attribute of the tested device, and the tested device is a firewall;
the cloud server generates a corresponding performance test data packet and a corresponding test flow according to the performance test request and the identity information of the tested equipment; wherein the identity information comprises the name of the device under test, the function of the device under test, and the brand of the device under test;
the internal process of the cloud server sends a corresponding performance test data packet to the virtual switch through the data communication link, so that the virtual switch forwards the performance test data packet to the tested equipment; the cloud server receives an operation result of the performance test data packet returned by the tested device and forwarded by the virtual switch through the data communication link; the operation result is that the tested device modifies or does not modify the performance test data packet according to the working mechanism of the tested device, and then the performance test data packet is forwarded, or the tested device makes a response after receiving the performance test data packet, and the response reflects the service function of the tested device; the cloud server adjusts the number and parameters of the performance test data packets for multiple times according to the performance test request, and generates the performance test result of the tested equipment according to multiple operation results returned by the tested equipment; and the performance test result is the session management capability of the protective wall.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements a method of performance testing of the device of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of device performance testing of any one of claims 1 to 7.
CN201810244418.5A 2018-03-23 2018-03-23 Device performance testing method, system, computer device and storage medium Active CN108632110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810244418.5A CN108632110B (en) 2018-03-23 2018-03-23 Device performance testing method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810244418.5A CN108632110B (en) 2018-03-23 2018-03-23 Device performance testing method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108632110A CN108632110A (en) 2018-10-09
CN108632110B true CN108632110B (en) 2020-06-19

Family

ID=63696214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810244418.5A Active CN108632110B (en) 2018-03-23 2018-03-23 Device performance testing method, system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN108632110B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130917B (en) * 2018-10-31 2022-04-26 北京国双科技有限公司 Line testing method, device and system
CN109542712B (en) * 2018-11-02 2023-04-07 平安科技(深圳)有限公司 Server pressure testing method and device, computer equipment and storage medium
CN109995672B (en) * 2019-03-22 2022-03-25 烽火通信科技股份有限公司 DPDK-based virtual home gateway bandwidth scheduling control method and system
CN110672949A (en) * 2019-09-30 2020-01-10 成都恒锐智科数字技术有限公司 High-voltage electrical test digital-connection test system and test method
CN110932936B (en) * 2019-11-28 2021-09-07 Oppo广东移动通信有限公司 Test method, test device, storage medium and test equipment
CN111901187B (en) * 2020-06-19 2022-07-22 浪潮电子信息产业股份有限公司 Test method, device, equipment and storage medium
CN111752680B (en) * 2020-06-28 2022-11-15 重庆紫光华山智安科技有限公司 IPC simulation method, device, storage medium and equipment based on KVM
CN111786853A (en) * 2020-07-01 2020-10-16 公安部第三研究所 System and method for realizing throughput and delay index test aiming at safety isolation and information exchange product
CN114205274B (en) * 2021-11-02 2024-06-11 北京百度网讯科技有限公司 Network equipment testing method and device
CN115061886A (en) * 2022-05-20 2022-09-16 北京百度网讯科技有限公司 Performance data processing method, device, equipment and storage medium
CN117014341B (en) * 2023-04-07 2024-05-10 北京勤慕数据科技有限公司 Virtual switch testing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207954A (en) * 2015-08-25 2015-12-30 东软集团股份有限公司 Transmitting data packet and throughput test method and device
CN105357151A (en) * 2015-11-19 2016-02-24 成都科来软件有限公司 DPDK-based packet capture and mirror image flow forwarding method
CN105610646A (en) * 2015-12-30 2016-05-25 山石网科通信技术有限公司 Testing method, device and system based on distributed virtual network equipment
KR20170097615A (en) * 2014-12-22 2017-08-28 인텔 코포레이션 Techniques for power management associated with processing received packets at a network device
CN107181738A (en) * 2017-04-25 2017-09-19 中国科学院信息工程研究所 A kind of software implementation intruding detection system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684942A (en) * 2012-04-18 2012-09-19 汉柏科技有限公司 Method for testing performance of network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170097615A (en) * 2014-12-22 2017-08-28 인텔 코포레이션 Techniques for power management associated with processing received packets at a network device
CN105207954A (en) * 2015-08-25 2015-12-30 东软集团股份有限公司 Transmitting data packet and throughput test method and device
CN105357151A (en) * 2015-11-19 2016-02-24 成都科来软件有限公司 DPDK-based packet capture and mirror image flow forwarding method
CN105610646A (en) * 2015-12-30 2016-05-25 山石网科通信技术有限公司 Testing method, device and system based on distributed virtual network equipment
CN107181738A (en) * 2017-04-25 2017-09-19 中国科学院信息工程研究所 A kind of software implementation intruding detection system and method

Also Published As

Publication number Publication date
CN108632110A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN108632110B (en) Device performance testing method, system, computer device and storage medium
CN113326228B (en) Message forwarding method, device and equipment based on remote direct data storage
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN110602169B (en) Service calling method and device, computer equipment and storage medium
US9749354B1 (en) Establishing and transferring connections
CN112153013B (en) Socket data forwarding method and device, electronic equipment and storage medium
CN108900324B (en) Method and device for checking communication performance of virtual machine
CN112583618B (en) Method, device and computing equipment for providing network service for business
CN112398781B (en) Attack testing method, host server and control server
US11223576B2 (en) Providing and using a distributed forwarding service
JP2018525948A (en) Method and apparatus for onboarding network service descriptors
CN111181850B (en) Data packet flooding suppression method, device and equipment and computer storage medium
CN114281263A (en) Storage resource processing method, system and equipment of container cluster management system
WO2023193513A1 (en) Honeypot network operation method and apparatus, device, and storage medium
US11636198B1 (en) System and method for cybersecurity analyzer update and concurrent management system
CN110691139B (en) Data transmission method, device, equipment and storage medium
CN111818081A (en) Virtual encryption machine management method and device, computer equipment and storage medium
Lee et al. The impact of container virtualization on network performance of IoT devices
CN107979627A (en) A kind of processing method and processing device of network request
CN109818912B (en) Method and device for preventing flooding attack, load balancing equipment and storage medium
US20160261719A1 (en) Information processing system, control program, and control method
CN113162922B (en) Client data acquisition method and device, storage medium and electronic equipment
CN109347766A (en) A kind of method and device of scheduling of resource
US10715590B2 (en) Non-transitory computer-readable storage medium, process distribution apparatus and process distribution method
US11422845B2 (en) Native cloud live traffic migration to counter suspected harmful traffic

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
CB02 Change of applicant information

Address after: 310, floor 3, building 9, No. 5 (Xiyuan), Jiuxianqiao South Road, Chaoyang District, Beijing 100000

Applicant after: Beijing nettest Technology Co., Ltd

Address before: 510663 self compiled A4 building, 3 research road, Science City, Guangzhou, Guangdong (INKTIME Chong Chuang space)

Applicant before: GUANGZHOU NETITEST.COM TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant