CN108632110A - Equipment performance test method, system, computer equipment and storage medium - Google Patents
Equipment performance test method, system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108632110A CN108632110A CN201810244418.5A CN201810244418A CN108632110A CN 108632110 A CN108632110 A CN 108632110A CN 201810244418 A CN201810244418 A CN 201810244418A CN 108632110 A CN108632110 A CN 108632110A
- Authority
- CN
- China
- Prior art keywords
- performance test
- cloud server
- equipment under
- test
- under test
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual 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
This application involves a kind of equipment performance test method, system, computer equipment and storage mediums.The method includes:After cloud server receives the performance test request of the equipment under test of virtual switch forwarding, cloud server internal process is established to the communication link between virtual switch based on DPDK, there is the test data bag that virtual switch forwarding cloud server is sent to equipment under test again, operation result is forwarded to cloud server, the data packet that cloud server receives and processing returns by equipment under test by virtual switch.The communication between Cloud Server and equipment under test is carried out based on DPDK and virtual switch, the equipment performance test of high-performance data exchange may be implemented.
Description
Technical field
This application involves field of computer technology, are set more particularly to a kind of equipment performance test method, system, computer
Standby and storage medium.
Background technology
With the development of computer technology, there is Performance Testing Technology, each network equipment vendor product is from gigabit product
Upgrading waits for 10,000,000,000 products, and the performance for weighing these equipment and service just needs high performance tester.
About ability meter, there are two schemes at present:One is hardware plans, but hardware plan is expensive, flexibly
Property is poor.One is software scenarios, are based on operating system nucleus network protocol stack, are tested for the property the granting and reception of data,
But software scenario carries out data exchange poor performance using kernel network protocol stack, cannot be satisfied the demand of big flow.
Therefore a kind of equipment performance test method that the high-performance data that may be implemented based on software exchanges how is provided, just
The technical issues of as urgent need to resolve.
Invention content
Based on this, it is necessary in view of the above technical problems, provide a kind of high performance test method, device, computer and set
Standby and storage medium.
A kind of equipment performance test method, the method includes:Cloud server is sent using DPDK technologies, received and located
Manage data packet;According to user performance test request, the cloud server generates testing procedure and test data bag, the cloud clothes
Business device internal process passes through the data link between DPDK foundation and virtual switch;The cloud server internal process
Corresponding performance test data packet is sent to the virtual switch, so that the virtual switch by the data link
The performance test data packet is forwarded to the equipment under test by machine;The cloud server receives the virtual switch and passes through
The operation result for the performance test data packet that the equipment under test of the communication link forwarding returns;Operation result is institute
Equipment under test is stated to performance test data packet, is modified or is not changed according to the equipment under test working mechanism, then into
What row was made after forwarding the performance test data packet or the equipment under test to receive the performance test data packet returns
It answers, which embodies the business function of equipment under test;The cloud server is repeatedly adjusted according to user performance test request
The quantity and parameter of test data bag are run multiple times according to what the equipment under test returned as a result, generating the equipment under test
The performance test results.
The cloud server internal process is sent by the data link and is corresponded in one of the embodiments,
Performance test data packet to the virtual switch the step of before include:The cloud server is asked according to performance test
And the identity information of equipment under test, generate corresponding performance test data packet and testing process.
The cloud server receives the virtual switch and is turned by the communication link in one of the embodiments,
Hair the equipment under test return the performance test data packet operation result the step of include:If the cloud server
Reception is forwarding performance test request, then generates corresponding forwarding performance test data bag and testing scheme.
The cloud server is asked according to the performance test of reception in one of the embodiments, generates corresponding property
Can include the step of test data bag:If the cloud server reception is service feature test request, generate corresponding
Service feature test data bag and testing process.
If the cloud server reception is forwarding performance test request in one of the embodiments, give birth to
Include at the step of corresponding forwarding performance test data bag and testing scheme:If the cloud server reception is defense
Energy test request, then generate corresponding attack test data packet.
A kind of equipment performance test method, the method includes:User performance test request is sent to cloud server,
The cloud server generates performance test data bag, is based on DPDK transmission data packets, and the data communication chain for passing through structure
Road is sent to equipment under test;The performance test packet is sent to the equipment under test by virtual switch, and described be tested is set
The operation result of the standby performance test data packet returned is forwarded to the cloud server, and the cloud server is flowed according to test
Journey adjusts test data bag parameter and frequency, and according to the operation result of return, generates the performance test of the equipment under test
Report.
The user performance test request is sent to cloud server, the high in the clouds clothes in one of the embodiments,
Be engaged in device generate performance test data bag, be based on DPDK transmission data packets, and by the data link of structure be sent to by
The step of measurement equipment includes:The performance test of the logical forwarding user of the virtual machine is asked to cloud server, and by described
PASSTHOUGH interfaces cloud server passes through the performance test data packet that is sent based on DPDK;Or the virtual machine forwarding
The performance test of user is asked to cloud server, and by the SR-IOV interfaces cloud server by being based on DPDK
The performance test data packet of transmission.
The performance test packet is sent to the equipment under test by the virtual switch in one of the embodiments,
And the step of operation result for the performance test data packet that the equipment under test returns is forwarded to cloud server, includes:Virtually
The performance test packet is sent to equipment under test by interchanger by PASSTHOUGH interfaces, and is connect by the PASSTHOUGH
The operation result for the performance test data packet that the equipment under test of reception returns is forwarded to cloud server by mouth;Or virtual switch
The performance test packet is sent to equipment under test, and being tested reception by the SR-IOV interfaces by SR-IOV interfaces
The operation result for the performance test data packet that equipment returns is forwarded to cloud server.
A kind of equipment performance test system, the system comprises:.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor
The step of computer program, the processor realizes above equipment performance test methods when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of above-mentioned equipment performance test method is realized when row.
Above equipment performance test methods method, apparatus, computer equipment and storage medium, when cloud server receives
After the performance test request of the equipment under test of virtual switch forwarding, testing process is generated, and is generated based on DPDK technologies, hair
Test data bag is sent, establishes the communication link between cloud server and virtual switch, then high in the clouds is forwarded by virtual switch
Operation result is forwarded to high in the clouds clothes by the test data bag that server is sent to equipment under test, equipment under test by virtual switch
Business device, cloud server receive operation result by DPDK.Cloud server adjusts test data bag content according to testing process
And transmission frequency, above steps may be repeated multiple times, obtains the operation result of test data bag, generates the performance test knot of equipment under test
Fruit.The communication between Cloud Server and equipment under test is carried out based on DPDK and virtual switch, high-performance data friendship may be implemented
The equipment performance test changed.
Description of the drawings
Fig. 1 is the applied environment figure of equipment performance test method in one embodiment;
Fig. 2 is the flow diagram of equipment performance test method in one embodiment;
Fig. 3 is the flow diagram of appliance services performance test methods in another embodiment;
Fig. 4 is the signaling diagram of equipment performance test method in another embodiment;
Fig. 5 is the internal structure schematic diagram of another embodiment Computer equipment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
A kind of method of equipment performance test provided by the present application, can be applied in application environment as shown in Figure 1.Its
In, cloud server 101 is communicated with equipment under test 103 by network by network.Wherein, cloud server 101 can be with
It is realized with the server cluster of the either multiple server compositions of independent server, equipment under test 103 can be, but not limited to
Networks or the safety equipments such as router, interchanger, fire wall, Web fire walls, DDoS equipment, and run certain service
Server either third party provide Internet service or cloud service.Wherein, cloud server 101 and equipment under test 103
Between pass through virtual switch 102 forward data.
A kind of method of equipment performance test provided by the present application, illustrated in fig. 2 provided with one embodiment of the invention
A kind of equipment performance test method flow chart, network apparatus test or safety equipment forwarding data packet performance survey
Examination.Wherein, this method comprises the following steps:
Step S201, cloud server send using DPDK technologies, receive and handle data packet.It is tested according to user performance
Request, cloud server generate testing procedure and test data bag, and Cloud Server internal process is established and the void by DPDK
Data link between quasi- interchanger.
Cloud server receives the test request of virtual switch forwarding, and testing process and test are generated based on test request
Data packet, based on DPDK (Data Plane Development Kit, data plane development kit) transmission data packets to virtual
Interchanger, wherein test request is that user submits to cloud server by network.
Further, it in test request can include the link request for being detected measurement equipment and the basic letter for detecting object
Breath, such as:Device name, device attribute etc..Equipment under test can be router, fire wall, safety equipment etc..
DPDK be based on data plane development kit, full name be Data Plane Development Kit, DPDK be by
6WIN, Intel Deng Duo companies develop, and are based primarily upon linux system operation, the function library for the processing of rapid data packet and drive
Dynamic set, can be greatly improved data processing performance and handling capacity, improve the working efficiency of application program.DPDK is applied to base
Test software in high in the clouds, to improve the data processing performance and handling capacity of test software.
Step S202, the cloud server internal process send corresponding performance test by the data link
Data packet is set to the virtual switch so that the performance test data packet is forwarded to described be tested by the virtual switch
It is standby.Equipment under test is router, interchanger, these network equipments of fire wall or safety equipment, they receive test data bag
Data packet is detected afterwards, data packet is modified or remained unchanged according to its role, then forwards these data again
Wrap back virtual switch.
Step S203, the cloud server receive the quilt that the virtual switch is forwarded by the communication link
The operation result for the performance test data packet that measurement equipment returns;Operation result can be equipment under test to performance test data packet root
It modifies or does not change according to equipment under test working mechanism, be then forwarded the performance test data packet, or tested
Equipment receives the response made after performance test data packet, which embodies the business function of equipment under test.
Step S204, the cloud server repeatedly adjust the quantity of test data bag according to user performance test request
And parameter, it is run multiple times according to what equipment under test returned as a result, generating the performance test results of equipment under test.Specific high in the clouds clothes
Business device receives the operation result of equipment under test, and the performance test results of equipment under test are generated according to the operation result.
Optionally, since the type of equipment under test is different or testing requirement is different, the performance test results of generation can be with
It is router handling capacity, can also be the delay of interchanger, can also be the session management ability of fire wall.
In one embodiment, the cloud server internal process sends corresponding property by the data link
Can include before the step of test data bag to the virtual switch:The cloud server according to performance test ask and
The identity information of equipment under test generates corresponding performance test data packet and testing process.
Cloud server receives outside test request, the identity information of equipment under test can also be received, according to equipment under test
Identity information generates testing scheme and corresponding performance test packet.Identity information can be the title of equipment under test, equipment under test
Function, the brand of equipment under test etc., for identifying the information for distinguishing different equipment under tests.Cloud server is according to tested identity
Information generates testing procedure and corresponding performance test data packet.
In one embodiment, the cloud server receives what the virtual switch was forwarded by the communication link
The step of operation result for the performance test data packet that the equipment under test returns includes:If the cloud server reception is
Forwarding performance test request then generates corresponding forwarding performance test data bag and testing scheme.
If the performance test request of the equipment under test for the virtual switch forwarding that cloud server receives is that forwarding performance is asked
It asks, then generate forwarding performance data packet and is sent to equipment under test.Forwarding performance data packet is test equipment under test as network
The transmitting data flow ability that communication apparatus or safety equipment are provided, such as:Three layers of handling capacity of router, interchanger
Two layers of transfer capability, session management ability of fire wall etc..
In one embodiment, the cloud server is asked according to the performance test of reception, is generated corresponding performance and is surveyed
Try data packet the step of include:If the cloud server reception is service feature test request, corresponding business is generated
Performance test data packet and testing process.
If the performance test request of the equipment under test for the virtual switch forwarding that cloud server receives is that service feature is asked
It asks, then generate service feature data packet and is sent to equipment under test.Service feature data packet is equipment under test as network service
The service provided is provided, such as:Service feature data packet can test the access speed of Web classes website, can also be file clothes
The speed of download of device of being engaged in or the storage speed etc. of storage server.
In one embodiment, if cloud server reception is forwarding performance test request, generation pair
The step of forwarding performance test data bag and testing scheme for answering includes:If the cloud server reception is that defending performance is surveyed
Examination request, then generate corresponding attack test data packet.
If the performance test request of the equipment under test for the virtual switch forwarding that cloud server receives is that defending performance is asked
It asks, then generate attack test data packet and is sent to equipment under test.Defending performance request is the defensive ability of test equipment, when
Performance is resisted when equipment is attacked.Defending performance data packet can be simulated virus attack message, and test fire wall is to virus
Killing and attack defending performance.
A kind of method of equipment performance test provided by the present application, illustrated in fig. 3 provided with one embodiment of the invention
A kind of appliance services performance test method flow chart.Wherein, this method comprises the following steps:
Step S301, user performance test request are sent to cloud server, and cloud server generates performance test number
According to packet, DPDK transmission data packets are based on, and equipment under test is sent to by the data link of structure.
User proposes test request to cloud server, and cloud server generates testing scheme and test according to test request
Data packet, while passing through the communication link sending performance test data bag of DPDK structures to virtual switch.
The performance test packet is sent to equipment under test by step S302, virtual switch, and equipment under test is returned
The operation result of performance test data packet is forwarded to cloud server, and cloud server adjusts test data bag according to testing process
Parameter and frequency, and according to the operation result of return, generate the performance test report of equipment under test.
Equipment under test is sent to after virtual switch receptivity test bag, equipment under test is given birth to based on service feature test bag
At operation result, and it is sent to virtual switch, virtual switch is forwarded to cloud server, and cloud server is tied according to operation
Fruit generates the result of service feature test.
In one embodiment, the user performance test request is sent to cloud server, and cloud server generates
Performance test data packet is based on DPDK transmission data packets, and is sent to equipment under test by the data link of structure
Step includes:The performance test of the logical forwarding user of the virtual machine is asked to cloud server, and passes through the PASSTHOUGH
Interface cloud server passes through the performance test data packet that is sent based on DPDK;Or the performance of the virtual machine forwarding user
Test request passes through the performance that is sent based on DPDK to cloud server, and by the SR-IOV interfaces cloud server
Test data bag.
Virtual switch can be selected when receiving and forwarding cloud to come cloud server and the data of equipment under test transmission
PASSTHOUGH (the direct distribution technique of equipment) interfaces or SR-IOV (Single-root I/Ovirtualization, single I/
O is virtualized) interface.
PASSTHOUGH interface modes are that physical network card is distributed directly to virtual machine, allow virtual machine that can directly access object
Equipment is managed without by virtual machine monitor or virtual machine monitor intercepting and capturing, that is, the direct distribution technique of equipment.It uses
PASSTHROUGH interface modes can promote the processing data packets performance for improving test software.
SR-IOV interface modes are a kind of standards, can be by single PCIE device (be known as physical function) to operating system and void
Quasi- machine management program is rendered as multiple independent PCIE devices (each equipment becomes virtual functions), establishes more equipment transmission.
The physical network card of virtual switch can be invented independent network interface card using SR-IOV interface modes, distribute to virtual machine use,
To improve the processing data packets performance of test software.
In one embodiment, the performance test packet is sent to equipment under test by the virtual switch, and will be tested
The step of operation result of performance test data packet that equipment returns is forwarded to cloud server include:Virtual switch passes through
The performance test packet is sent to equipment under test by PASSTHOUGH interfaces, and by the PASSTHOUGH interfaces by reception
The operation result for the performance test data packet that equipment under test returns is forwarded to cloud server;Or virtual switch passes through SR-IOV
The performance test packet is sent to equipment under test by interface, and returned to the equipment under test of reception by the SR-IOV interfaces
The operation result of performance test data packet is forwarded to cloud server.
Fig. 4 is that a kind of signaling diagram of equipment performance test method, this method comprise the following steps in one embodiment:
Step S401:User's sending performance test request is to virtual switch.
Step S402:Cloud server sending performance test data bag is to virtual switch.
Step S403:Virtual switch forwarding performance test data bag is to equipment under test.
Step S404:Equipment under test sends operation result to virtual switch.
Step S405:Virtual switch forwards operation result to cloud server.
Step S406:Cloud server adjusts test parameter, S402 to S405 is repeated several times, according to multiple test run knot
Fruit generates the performance test results of equipment under test to user.
The method for the equipment performance test that the present embodiment proposes forwards cloud server to be set with tested by virtual switch
Communication data between standby realizes that cloud server, equipment under test, the mutual cooperative cooperating of virtual switch three are completed to tested
The test of equipment performance.
It should be understood that although each step in the flow chart of Fig. 2-3 is shown successively according to the instruction of arrow,
These steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3
Part steps may include that either these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can either the sub-step of other steps or at least part in stage be in turn or alternately with other steps
It executes.
A kind of equipment performance test system, the system comprises:Acquisition module, processing module, wherein acquisition module, cloud
Server is held to send, receive using DPDK technologies and processing data packet;According to user performance test request, cloud server generates
Testing procedure and test data bag, Cloud Server internal process is established by DPDK to be led to the data between the virtual switch
Believe link;Processing module, the cloud server internal process send corresponding performance test by the data link
Data packet is set to the virtual switch so that the performance test data packet is forwarded to described be tested by the virtual switch
It is standby;The cloud server receives the property that the virtual switch is returned by the equipment under test that the communication link forwards
The operation result of energy test data bag;Operation result can be equipment under test to performance test data packet, according to equipment under test work
It modifies or does not change as mechanism, be then forwarded the performance test data packet or equipment under test receives performance
The response made after test data bag, the response embody the business function of equipment under test;The cloud server is according to user
Performance test is asked, and the quantity and parameter of test data bag are repeatedly adjusted, and is run multiple times as a result, raw according to what equipment under test returned
At the performance test results of equipment under test.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 5.The computer equipment include the processor connected by system bus, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storing test data.The network interface of the computer equipment is used to pass through network with external terminal
Connection communication.To realize a kind of equipment performance test method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 5, is only tied with the relevant part of application scheme
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
May include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize following steps when executing computer program:Cloud server
Data packet is sent, receives and handled using DPDK technologies;According to user performance test request, cloud server generates testing procedure
And test data bag, Cloud Server internal process establish the data link between the virtual switch by DPDK;
The cloud server internal process sends corresponding performance test data packet to described virtual by the data link
Interchanger, so that the performance test data packet is forwarded to the equipment under test by the virtual switch;The cloud service
Device receives the performance test data packet that the equipment under test that the virtual switch is forwarded by the communication link returns
Operation result;Operation result can be equipment under test to performance test data packet, be modified according to equipment under test working mechanism
Or do not change, be then forwarded the performance test data packet or equipment under test receive performance test data packet after make
The response gone out, the response embody the business function of equipment under test;The cloud server is more according to user performance test request
The quantity and parameter of secondary adjustment test data bag, are run multiple times according to what equipment under test returned as a result, generating the property of equipment under test
It can test result.
In one embodiment, following steps are also realized when processor executes computer program:In the cloud server
Portion's process sends corresponding performance test data packet to before the step of the virtual switch by the data link
Including:The cloud server generates corresponding performance test according to performance test request and the identity information of equipment under test
Data packet and testing process.
In one embodiment, following steps are also realized when processor executes computer program:The cloud server connects
Receive the operation for the performance test data packet that the virtual switch is returned by the equipment under test that the communication link forwards
As a result the step of includes:If the cloud server reception is forwarding performance test request, corresponding forwarding performance is generated
Test data bag and testing scheme.
In one embodiment, following steps are also realized when processor executes computer program:The cloud server root
It is asked according to the performance test of reception, the step of generating corresponding performance test data packet includes:If the cloud server receives
It is service feature test request, then generates corresponding service feature test data bag and testing process.
In one embodiment, following steps are also realized when processor executes computer program:If the high in the clouds clothes
The step of business device reception is forwarding performance test request, then generates corresponding forwarding performance test data bag and testing scheme is wrapped
It includes:If the cloud server reception is defending performance test request, corresponding attack test data packet is generated.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize following steps when executing computer program:User performance is surveyed
Examination request is sent to cloud server, and cloud server generates performance test data bag, is based on DPDK transmission data packets, and
It is sent to equipment under test by the data link of structure;The performance test packet is sent to tested set by virtual switch
It is standby, and the operation result for the performance test data packet that equipment under test returns is forwarded to cloud server, cloud server foundation
Testing process adjusts test data bag parameter and frequency, and according to the operation result of return, and the performance for generating equipment under test is surveyed
Examination report.
In one embodiment, following steps are also realized when processor executes computer program:The user performance test
Request is sent to cloud server, and cloud server generates performance test data bag, is based on DPDK transmission data packets, and lead to
Crossing the step of data link built is sent to equipment under test includes:The performance test of the logical forwarding user of the virtual machine is asked
It asks to cloud server, and is surveyed by the performance sent based on DPDK by the PASSTHOUGH interfaces cloud server
Try data packet;Or the performance test of the virtual machine forwarding user is asked to cloud server, and pass through the SR-IOV interfaces
It receives cloud server and passes through the performance test data packet that is sent based on DPDK.
In one embodiment, following steps are also realized when processor executes computer program:The virtual switch will
The performance test packet is sent to equipment under test, and the operation result for the performance test data packet that equipment under test returns is forwarded to
The step of cloud server includes that the performance test packet is sent to tested set by virtual switch by PASSTHOUGH interfaces
It is standby, and the operation result for the performance test data packet for being returned to the equipment under test of reception by the PASSTHOUGH interfaces forwards
To cloud server;Or the performance test packet is sent to equipment under test by virtual switch by SR-IOV interfaces, and pass through
The operation result for the performance test data packet that the equipment under test of reception returns is forwarded to cloud server by the SR-IOV interfaces.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes following steps when being executed by processor:Cloud server sends using DPDK technologies, receives and handles data packet;
According to user performance test request, cloud server generates testing procedure and test data bag, Cloud Server internal process pass through
DPDK establishes the data link between the virtual switch;The cloud server internal process passes through the data
Communication link sends corresponding performance test data packet to the virtual switch, so that the virtual switch is by the performance
Test data bag is forwarded to the equipment under test;The cloud server receives the virtual switch and passes through the communication link
The operation result for the performance test data packet that the equipment under test of forwarding returns;Operation result can be equipment under test to performance
Test data bag is modified according to equipment under test working mechanism or is not changed, is then forwarded the performance test data
Packet or equipment under test receive the response made after performance test data packet, which embodies the business work(of equipment under test
Energy;The cloud server repeatedly adjusts the quantity and parameter of test data bag according to user performance test request, according to tested
What equipment returned is run multiple times as a result, generating the performance test results of equipment under test.
In one embodiment, following steps are also realized when computer program is executed by processor:The cloud server
Internal process by the data link send corresponding performance test data packet to the step of the virtual switch it
Before include:The cloud server generates corresponding performance and surveys according to performance test request and the identity information of equipment under test
Try data packet and testing process.
In one embodiment, following steps are also realized when computer program is executed by processor:The cloud server
Receive the fortune for the performance test data packet that the virtual switch is returned by the equipment under test that the communication link forwards
The step of row result includes:If the cloud server reception is forwarding performance test request, corresponding forwarding is generated
It can test data bag and testing scheme.
In one embodiment, following steps are also realized when computer program is executed by processor:The cloud server
It is asked according to the performance test of reception, the step of generating corresponding performance test data packet includes:If the cloud server connects
Receipts are service feature test request, then generate corresponding service feature test data bag and testing process.
If the cloud server reception is forwarding performance test request in one of the embodiments, give birth to
Include at the step of corresponding forwarding performance test data bag and testing scheme:If the cloud server reception is defense
Energy test request, then generate corresponding attack test data packet.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes following steps when being executed by processor:User performance test request is sent to cloud server, cloud service
Device generates performance test data bag, is based on DPDK transmission data packets, and is sent to by the data link of structure tested
Equipment;The performance test packet is sent to equipment under test, and the performance test data that equipment under test is returned by virtual switch
The operation result of packet is forwarded to cloud server, and cloud server adjusts test data bag parameter and frequency according to testing process,
And according to the operation result of return, generate the performance test report of equipment under test.
In one embodiment, following steps are also realized when computer program is executed by processor:The user performance is surveyed
Examination request is sent to cloud server, and cloud server generates performance test data bag, is based on DPDK transmission data packets, and
The step of being sent to equipment under test by the data link of structure include:The performance test of the logical forwarding user of the virtual machine
Request passes through the performance that is sent based on DPDK to cloud server, and by the PASSTHOUGH interfaces cloud server
Test data bag;Or the performance test of the virtual machine forwarding user is asked to cloud server, and connect by the SR-IOV
Mouthful receiving cloud server passes through the performance test data packet that is sent based on DPDK.
In one embodiment, following steps are also realized when computer program is executed by processor:The virtual switch
The performance test packet is sent to equipment under test, and the operation result for the performance test data packet that equipment under test is returned forwards
Include to the step of cloud server:The performance test packet is sent to tested by virtual switch by PASSTHOUGH interfaces
Equipment, and the operation result for the performance test data packet for being returned to the equipment under test of reception by the PASSTHOUGH interfaces turns
It is sent to cloud server;Or the performance test packet is sent to equipment under test by virtual switch by SR-IOV interfaces, and lead to
It crosses the SR-IOV interfaces and the operation result for the performance test data packet that the equipment under test of reception returns is forwarded to cloud service
Device
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein,
Any reference to memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
In one embodiment, a kind of equipment performance test device, acquisition module, processing module are provided, wherein
Acquisition module, cloud server send using DPDK technologies, receive and handle data packet;It is tested according to user performance
Request, cloud server generate testing procedure and test data bag, and Cloud Server internal process is established and the void by DPDK
Data link between quasi- interchanger;Processing module, the cloud server internal process pass through the data communication chain
Road sends corresponding performance test data packet to the virtual switch, so that the virtual switch is by the performance test number
It is forwarded to the equipment under test according to packet;The cloud server receives what the virtual switch was forwarded by the communication link
The operation result for the performance test data packet that the equipment under test returns;Operation result can be equipment under test to performance test number
It according to packet, is modified or is not changed according to equipment under test working mechanism, be then forwarded the performance test data packet, or
It is that equipment under test receives the response made after performance test data packet, which embodies the business function of equipment under test;It is described
Cloud server repeatedly adjusts the quantity and parameter of test data bag, is returned according to equipment under test according to user performance test request
That returns is run multiple times as a result, generating the performance test results of equipment under test.
Specific about equipment performance test device limits the limit that may refer to above for equipment performance test method
Fixed, details are not described herein.Modules in above equipment performance testing device can fully or partially through software, hardware and its
It combines to realize.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment, can also
It is stored in a software form in the memory in computer equipment, in order to which processor calls the above modules of execution corresponding
Operation.
Each technical characteristic of above example can be combined arbitrarily, to keep description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (11)
1. a kind of equipment performance test method, which is characterized in that the method includes:
Cloud server sends using DPDK technologies, receives and handles data packet;
According to user performance test request, the cloud server generates testing procedure and test data bag, the Cloud Server
Internal process establishes the data link between virtual switch by DPDK;
The cloud server internal process sends corresponding performance test data packet to described by the data link
Virtual switch, so that the performance test data packet is forwarded to the equipment under test by the virtual switch;
The cloud server receives what the virtual switch was returned by the equipment under test that the communication link forwards
The operation result of the performance test data packet;Operation result is the equipment under test to performance test data packet, according to described
Equipment under test working mechanism is modified or is not changed, and the performance test data packet or described is then forwarded
Equipment under test receives the response made after the performance test data packet, which embodies the business function of equipment under test;
The cloud server repeatedly adjusts the quantity and parameter of test data bag, according to institute according to user performance test request
State being run multiple times as a result, generating the performance test results of the equipment under test for equipment under test return.
2. according to the method described in claim 1, it is characterized in that, the cloud server internal process is logical by the data
Letter link sends corresponding performance test data packet:
The cloud server generates corresponding performance test number according to performance test request and the identity information of equipment under test
According to packet and testing process.
3. according to the method described in claim 2, it is characterized in that, the cloud server reception virtual switch passes through
The step of operation result for the performance test data packet that the equipment under test of communication link forwarding returns includes:
If cloud server reception is forwarding performance test request, generate corresponding forwarding performance test data bag and
Testing scheme.
4. according to the method described in claim 2, it is characterized in that, the cloud server is asked according to the performance test of reception
The step of asking, generating corresponding performance test data packet include:
If cloud server reception is service feature test request, generate corresponding service feature test data bag and
Testing process.
5. if according to the method described in claim 2, it is characterized in that, cloud server reception is forwarding performance
Test request, then the step of generating corresponding forwarding performance test data bag and testing scheme include:
If the cloud server reception is defending performance test request, corresponding attack test data packet is generated.
6. a kind of equipment performance test method, which is characterized in that the method includes:
User performance test request is sent to cloud server, and the cloud server generates performance test data bag, is based on
DPDK transmission data packets, and equipment under test is sent to by the data link of structure;
The performance test packet is sent to the equipment under test by virtual switch, and the performance that the equipment under test is returned is surveyed
The operation result of examination data packet is forwarded to the cloud server, and the cloud server adjusts test data according to testing process
Bag parameter and frequency, and according to the operation result of return, generate the performance test report of the equipment under test.
7. according to the method described in claim 6, it is characterized in that, the user performance test request is sent to cloud service
Device, the cloud server generate performance test data bag, are based on DPDK transmission data packets, and communicate by the data of structure
Link is sent to the step of equipment under test and includes:
The performance test of the logical forwarding user of the virtual machine is asked to cloud server, and is connect by the PASSTHOUGH interfaces
It receives cloud server and passes through the performance test data packet that is sent based on DPDK;
Or the performance test of the virtual machine forwarding user is asked to cloud server, and pass through the SR-IOV interfaces cloud
End server passes through the performance test data packet that is sent based on DPDK.
8. according to the method described in claim 6, it is characterized in that, the performance test packet is sent to by the virtual switch
The equipment under test, and the operation result for the performance test data packet that the equipment under test returns is forwarded to cloud server
Step includes:
The performance test packet is sent to equipment under test by virtual switch by PASSTHOUGH interfaces, and by described
The operation result for the performance test data packet that the equipment under test of reception returns is forwarded to cloud server by PASSTHOUGH interfaces;
Or the performance test packet is sent to equipment under test by virtual switch by SR-IOV interfaces, and pass through the SR-IOV
The operation result for the performance test data packet that the equipment under test of reception returns is forwarded to cloud server by interface.
9. a kind of equipment performance tests system, which is characterized in that the system comprises:Acquisition module, processing module, wherein
Acquisition module, cloud server send using DPDK technologies, receive and handle data packet, are asked according to user performance test
Ask, the cloud server generates testing procedure and test data bag, the Cloud Server internal process by DPDK establish with
Data link between virtual switch;
Processing module, the cloud server internal process send corresponding performance test data by the data link
Packet is to the virtual switch, so that the performance test data packet is forwarded to the equipment under test by the virtual switch;
The cloud server receives described in the equipment under test that the virtual switch is forwarded by the communication link returns
The operation result of performance test data packet;Operation result is the equipment under test to performance test data packet, according to described tested
Equipment working mechanism is modified or is not changed, and the performance test data packet or described tested is then forwarded
Equipment receives the response made after the performance test data packet, which embodies the business function of equipment under test;The cloud
It holds server according to user performance test request, the quantity and parameter of test data bag is repeatedly adjusted, according to the equipment under test
What is returned is run multiple times as a result, generating the performance test results of the equipment under test.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claim 1 to 7 institute when executing the computer program
The step of stating equipment performance test.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of equipment performance test described in any one of claim 1 to 7 is realized when being executed by processor.
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 true CN108632110A (en) | 2018-10-09 |
CN108632110B 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) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542712A (en) * | 2018-11-02 | 2019-03-29 | 平安科技(深圳)有限公司 | Server stress test method, device, computer equipment and storage medium |
CN109995672A (en) * | 2019-03-22 | 2019-07-09 | 烽火通信科技股份有限公司 | Virtual home gateway bandwidth dispatch control method and system based on DPDK |
CN110672949A (en) * | 2019-09-30 | 2020-01-10 | 成都恒锐智科数字技术有限公司 | High-voltage electrical test digital-connection test system and test method |
CN110932936A (en) * | 2019-11-28 | 2020-03-27 | Oppo广东移动通信有限公司 | Test method, test device, storage medium and test equipment |
CN111130917A (en) * | 2018-10-31 | 2020-05-08 | 北京国双科技有限公司 | Line testing method, device and system |
CN111752680A (en) * | 2020-06-28 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | 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 |
CN111901187A (en) * | 2020-06-19 | 2020-11-06 | 浪潮电子信息产业股份有限公司 | Test method, device, equipment and storage medium |
CN114205274A (en) * | 2021-11-02 | 2022-03-18 | 北京百度网讯科技有限公司 | Network equipment testing method and device |
CN115061886A (en) * | 2022-05-20 | 2022-09-16 | 北京百度网讯科技有限公司 | Performance data processing method, device, equipment and storage medium |
CN117014341A (en) * | 2023-04-07 | 2023-11-07 | 北京勤慕数据科技有限公司 | Virtual switch testing method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102684942A (en) * | 2012-04-18 | 2012-09-19 | 汉柏科技有限公司 | Method for testing performance of network equipment |
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 |
-
2018
- 2018-03-23 CN CN201810244418.5A patent/CN108632110B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102684942A (en) * | 2012-04-18 | 2012-09-19 | 汉柏科技有限公司 | Method for testing performance of network equipment |
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 |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111130917A (en) * | 2018-10-31 | 2020-05-08 | 北京国双科技有限公司 | 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 |
CN109542712A (en) * | 2018-11-02 | 2019-03-29 | 平安科技(深圳)有限公司 | Server stress test method, device, computer equipment and storage medium |
CN109995672A (en) * | 2019-03-22 | 2019-07-09 | 烽火通信科技股份有限公司 | Virtual home gateway bandwidth dispatch control method and system based on DPDK |
CN110672949A (en) * | 2019-09-30 | 2020-01-10 | 成都恒锐智科数字技术有限公司 | High-voltage electrical test digital-connection test system and test method |
CN110932936A (en) * | 2019-11-28 | 2020-03-27 | 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 |
CN111901187A (en) * | 2020-06-19 | 2020-11-06 | 浪潮电子信息产业股份有限公司 | Test method, device, equipment and storage medium |
CN111752680A (en) * | 2020-06-28 | 2020-10-09 | 重庆紫光华山智安科技有限公司 | IPC simulation method, device, storage medium and equipment based on KVM |
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 |
CN114205274A (en) * | 2021-11-02 | 2022-03-18 | 北京百度网讯科技有限公司 | Network equipment testing method and device |
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 |
CN117014341A (en) * | 2023-04-07 | 2023-11-07 | 北京勤慕数据科技有限公司 | Virtual switch testing method and system |
CN117014341B (en) * | 2023-04-07 | 2024-05-10 | 北京勤慕数据科技有限公司 | Virtual switch testing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108632110B (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108632110A (en) | Equipment performance test method, system, computer equipment and storage medium | |
CN109639521B (en) | Block chain performance testing method, device, equipment and storage medium | |
CN105518611B (en) | A kind of remote direct data access method, equipment and system | |
CN108777625A (en) | Verification method, device and system, storage medium, the electronic device of signature | |
CN104852934A (en) | Method for realizing flow distribution based on front-end scheduling, device and system thereof | |
CN108804336A (en) | Interactive system test method, device, computer equipment and storage medium | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN109726016A (en) | A kind of link tracing methods, devices and systems for distributed system | |
CN110034972B (en) | Server pressure testing method and device | |
CN110677383B (en) | Firewall wall opening method and device, storage medium and computer equipment | |
CN104767655B (en) | A kind of analog result detection method and device | |
CN108063712A (en) | The sending method and device of a kind of network request | |
CN108259642A (en) | Public service virtual machine access method and device based on private clound | |
CN110519127B (en) | Network delay detection method, device and storage medium | |
CN108063714A (en) | A kind of processing method and processing device of network request | |
CN110224897A (en) | Vulnerable network test method, device, mobile device and the storage medium of application program | |
CN108536484A (en) | Parameter amending method, device, terminal device and storage medium | |
CN107547346A (en) | A kind of message transmitting method and device | |
US20060176821A1 (en) | Network bandwidth utilization verification method and apparatus through reciprocating and multiplicative message distribution | |
CN116056126A (en) | Simulation test method, simulation test device, computer equipment and computer readable storage medium | |
CN109417507A (en) | The message of section retards accesses | |
CN107979627A (en) | A kind of processing method and processing device of network request | |
CN109067922A (en) | A kind of data transmission method and device | |
CN111526028B (en) | Data processing method, device and equipment | |
CN110365649A (en) | Data transmission method, data insertion equipment, data output apparatus and system |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |