CN114338448A - Performance test method and device, electronic equipment and storage medium - Google Patents
Performance test method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114338448A CN114338448A CN202111639408.XA CN202111639408A CN114338448A CN 114338448 A CN114338448 A CN 114338448A CN 202111639408 A CN202111639408 A CN 202111639408A CN 114338448 A CN114338448 A CN 114338448A
- Authority
- CN
- China
- Prior art keywords
- target
- information
- variable
- interface
- initial
- 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
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000011056 performance test Methods 0.000 title description 3
- 238000012360 testing method Methods 0.000 claims abstract description 91
- 230000006870 function Effects 0.000 claims description 111
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 abstract description 5
- 238000004891 communication Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 33
- 230000008569 process Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 8
- 230000003068 static effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 241000596871 Ixia Species 0.000 description 1
- 101100513046 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) eth-1 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a performance testing method, a performance testing device, electronic equipment and a storage medium, and relates to the technical field of communication networks. The method comprises the following steps: generating an initial information group based on a target interface function in a target network card, wherein the initial information group is used for recording a plurality of network interfaces for receiving and sending a target message; determining target information when the target message is processed based on the initial information group; determining a sending mode of a target message based on the target information; and testing the forwarding performance of the target message based on the sending mode to obtain a test result. According to the method and the device, the information group capable of recording the network interface is arranged, so that the corresponding network interface information is determined when the target message is processed on the basis, the sending mode of the target message can be determined according to the network interface information, the performance detection is performed on the basis of the sending mode, and the performance problem is accurately and quickly detected in a driving layer or a protocol layer of an upper layer network when the linear speed cannot be reached.
Description
Technical Field
The present application relates to the field of communications network technologies, and in particular, to a performance testing method and apparatus, an electronic device, and a storage medium.
Background
With the development of network hardware becoming faster and faster, the network throughput of a single interface becomes higher and higher, and the network throughput also becomes popular in a large amount from 10M at the beginning to 100G at present. Although the performance of the network card hardware is higher and higher, after the system software is added, the network performance of the whole software and hardware integrated system often cannot reach the upper limit of the performance of the network card.
In order to make the network forwarding performance of the whole system software reach the line speed of the network card without packet loss, the line speed, i.e. a standard of the switching forwarding capability of the network device, is the maximum data volume that can be handled between the interface processor or interface card of the switch and the data bus. Usually, a network card driver is first located to determine whether the line speed of the network card can be reached when the network card driver performs message transceiving processing under a system. Under the premise that the bottom layer driver is required to reach the linear speed when the linear speed of the network card is reached, the situation of an upper layer protocol stack is added, but the problem that the performance of the bottom layer driver or the upper layer protocol stack in the network card cannot be determined in the prior art causes that the network card cannot reach the linear speed, so that the forwarding performance of the current message data is poor.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a performance testing method, an apparatus, an electronic device, and a storage medium, so as to solve the problem in the prior art that the forwarding performance of message data is poor.
In order to solve the above problem, in a first aspect, the present application provides a performance testing method, including:
generating an initial information group based on a target interface function in a target network card, wherein the initial information group is used for recording a plurality of network interfaces for receiving and sending a target message;
determining target information when the target message is processed based on the initial information group;
determining a sending mode of the target message based on the target information;
and testing the forwarding performance of the target message based on the sending mode to obtain a test result.
In the implementation manner, a corresponding initial information group for recording a network interface for receiving and sending a target message is generated through a target interface function set in a target network card, so as to determine corresponding target information when the target message is processed in different manners on the basis of the initial information group, determine a sending manner of the target message according to the target information, and test the forwarding performance of the target message sent in different sending manners, so that when the forwarding performance of the target message in forwarding the system cannot reach the linear speed, whether the performance problem is a network card driving layer reason or an upper network processing target message untimely reason is judged. The method and the device do not need to change the overall logic and the driving structure for receiving and sending the messages in the whole system, and can accurately and quickly test and position the performance problem, so that a user can conveniently process the performance problem based on the detection result, and the forwarding performance of the system for forwarding the messages is effectively improved.
Optionally, the generating an initial information group based on a target interface function in the target network card includes:
when the target network card is initialized, calling a first interface function of the target network card;
registering the target interface function in the target network card based on the first interface function, wherein the target interface function comprises a read function and a write function;
generating a trigger file based on the first interface function and the target interface function;
and generating the initial information group in the trigger file, wherein each item of initial information in the initial information group is used for recording one network interface in a plurality of network interfaces for receiving or sending the target message, and each item of initial information in the initial information group is an initial value.
In the implementation manner, when the target network card is initialized, the first interface function in the system kernel can be called, the target interface function is registered on the basis of the first interface function, and the read function and the write function when the network interface is triggered to process the target message are implemented in the target interface function. The method comprises the steps of generating a corresponding trigger file in a system by calling a first interface function and a second interface function, generating an initial information group with a plurality of items of initial information and initial information as initial values in the trigger file to record a plurality of network interfaces for receiving or sending a target message, and recording the processed network interfaces when the network interfaces in the network card are triggered to process the target message, so as to record the processing mode of the target message in a network card driving layer.
Optionally, the target information includes first interface information and second interface information; determining target information when the target message is processed based on the initial information group, wherein the determining comprises:
receiving input network interface data if a trigger command is received, wherein the network interface data comprises first interface data of a first network interface and second interface data of a second network interface;
writing the first interface data into first initial information in the initial information group according to the write function to obtain first interface information for recording the first network interface;
and writing the second interface data into second initial information in the initial information group according to the write function to obtain second interface information for recording the second network interface.
In the implementation manner, when the network interface in the network card is triggered to process the target message, the corresponding trigger command can be received, and the network receiving data of the pair of network interfaces input during triggering is received based on the trigger command. Triggering a target interface function through a trigger command to enable a read function in the target interface function to be called, writing the received two interface data into two initial information in an initial information group respectively, assigning values to the two initial information according to two network interfaces respectively to obtain first interface information and second interface information which record the two network interfaces respectively, and forming target information when a target message is processed by the two interface information. When the network interface is triggered to process the target message at the drive layer of the network card, the used network interface is recorded in real time in the initial information group to obtain corresponding target information, and the processing mode of the target message in the drive layer of the network card is recorded by the target information.
Optionally, the method further comprises:
and if the trigger command is not received, taking the first initial information and the second initial information as the target information.
In the implementation manner, when the trigger command is not received, the target packet is processed through a protocol stack in a protocol layer in an upper layer network in the system, the target packet is not processed by using a network interface, and two pieces of initial information in the initial information group are directly used as target information when the target packet is processed, so as to express a corresponding network interface state when the target packet is processed by the protocol layer.
Optionally, the determining the sending mode of the target packet based on the target information includes:
determining variable information when the target message is received based on the target information;
and determining a sending mode of the target message according to the variable information.
In the above implementation manner, variable information that can represent a structure of a network interface in a system kernel when the target packet is received can be determined on the basis of the acquired target information when the target packet is processed, so that whether the target packet is sent by a driver layer of a network card or a protocol layer in an upper layer network is determined according to the variable information, and thus, two sending manners of the driver layer and the protocol layer are processed respectively.
Optionally, the determining, based on the target information, variable information when the target packet is received includes:
when the target message is received, setting an initial variable corresponding to a target structure of the target network card, wherein the initial variable comprises a first variable and a second variable, and the first variable and the second variable are default values;
updating the initial variable based on the target information, and determining the variable information when the target message is received.
In the implementation manner, in the process of receiving the target message, two static variables representing the change of the network interface structure by the kernel in the system can be set as initial variables, two variables in the initial variables are both default null values, and after corresponding target information is obtained when the target message is processed, the two variables in the initial variables are updated according to the target information, so that the change in the structure of the network interface is updated, variable information representing the current state of the network interface structure when the system receives the target message can be determined, and the effectiveness and the real-time performance of the variable information are improved.
Optionally, the updating the initial variable based on the target information, and determining the variable information when the target packet is received, includes:
when the target information is the first initial information and the second initial information, taking the first variable and the second variable in the initial variables as the variable information;
when the target information is the first interface information and the second interface information, calling a target function to calculate based on the first interface information and the second interface information to obtain a first return value and a second return value;
updating the numerical value of the first variable from the default value to the first return value to obtain a third variable; and updating the numerical value of the second variable from the default value to the second return value to obtain a fourth variable, and taking the third variable and the fourth variable as the variable information.
In the above implementation, the initial variable is subjected to different update processes according to the specific situation of the target information. When the target information is the first initial information and the second initial information, it means that the target message is processed by using a protocol layer of an upper network, and the target message is processed without using a network interface in a driving layer, and two static variable first variables and second variables of the initial variables which are default values are directly used as variable information. When the target information is the first interface information and the second interface information, the target message is processed by using a network interface in a driving layer of the network card, a target function is called, the first interface information and the second interface information are respectively used as parameters to be calculated to obtain two return values, the numerical values of two static variables which are default values in the initial variables are respectively updated according to the calculated return values, and a third variable and a fourth variable are obtained to be used as variable information. The corresponding variable information which can represent the state of the network interface structure body in the kernel can be obtained according to different processing modes of the target message.
Optionally, the determining, according to the variable information, a sending manner of the target packet includes:
when the variable information comprises the first variable and the second variable, calling a receiving function when receiving the target message to send the target message to a protocol stack of an upper network;
sending the target message based on the protocol stack;
when the variable information comprises the third variable and the fourth variable, acquiring receiving interface information for receiving the target message;
when the receiving interface information is matched with the third variable, calling a sending function of the fourth variable in a driving layer of the target network card to send the target message;
and when the receiving interface information is matched with the fourth variable, calling a sending function of the third variable in the driving layer to send the target message.
In the implementation manner, since the acquired variable information can represent the state of the network interface structure in the kernel, the sending manner when the target packet is sent can be determined according to the variable information. And judging whether the variable information is a first variable and a second variable or a third variable and a fourth variable, and judging the numerical value in the variable information. When the variable information is a first variable and a second variable, if the value of the variable is a default null value, the target message is processed by using a protocol layer in an upper network, so that a receiving function when the target message is received is directly called to upload the target message to a protocol stack in the upper network for processing, the protocol stack sends the target message, and the sending return value is the actual number of the target message. When the variable information is a third variable and a fourth variable, the numerical value of the variable is not controlled in a default mode, a network interface in a driving layer of the network card is used for processing the target message, information of a receiving interface in the process of receiving the target message is acquired and matched with the third variable and the fourth variable, when matching is successful, a sending function of the other variable is called respectively to send the target message, a sending return value is a null value, and a protocol layer in an upper layer network can be informed of not needing to process the target message. The corresponding transmission mode can be determined according to the variable information, so that two transmission modes in the driving layer and the protocol layer can be processed respectively.
Optionally, the testing the forwarding performance of the target packet based on the sending manner to obtain a test result includes:
testing the forwarding performance of the target message when the target message is sent in the sending mode based on a testing instrument;
when the forwarding performance is tested to be failed, the test result is that the performance problem of the forwarding performance is in the driving layer of the target network card;
and when the forwarding performance is tested to be passed, the performance problem of which the test result is the forwarding performance is in the protocol stack.
In the above implementation manner, after the target packet is forwarded in the sending manner, the forwarding performance of the target packet in the sending manner may be tested according to the test instrument, and when the test forwarding performance fails, the performance problem of the forwarding performance as a test result is located in the driving layer of the target network card, so that the forwarding performance cannot reach the linear speed. When the test forwarding performance passes, the performance problem of the forwarding performance is the test result in the protocol layer of the upper network, and the forwarding performance can reach the linear speed only if the protocol layer also has a promotion space. The method and the device can facilitate the user to adaptively adjust the driving layer of the network card and the protocol layer of the upper network in the system according to the test result, so that the forwarding performance of the system can reach the linear speed, and the forwarding performance of the system when forwarding the message data is improved.
In a second aspect, the present application also provides a performance testing apparatus, the apparatus comprising:
the system comprises an initial module, a target network card and a control module, wherein the initial module is used for generating an initial information group based on a target interface function in the target network card, and the initial information group is used for recording a plurality of network interfaces for receiving and sending a target message;
a determining module, configured to determine, based on the initial information group, target information when the target packet is processed;
the sending module is used for determining a sending mode of the target message based on the target information;
and the test module is used for testing the forwarding performance of the target message based on the sending mode to obtain a test result.
In the implementation mode, the initial module generates a corresponding initial information group for recording a network interface for receiving and sending the target message according to a target interface function set in the target network card; determining corresponding target information when the target message is processed in different modes on the basis of the initial information group through a determining module; determining a sending mode of a target message according to target information in different processing modes through a sending module; the forwarding performance of the target message sent by different sending modes is tested through the test module, so that when the forwarding performance of the target message cannot reach the linear speed in the system, whether the performance problem is the reason of a driving layer of a network card or the reason that the target message is not processed by an upper layer network in time is judged. The method can accurately and quickly test and position the performance problem, thereby facilitating the user to process the performance problem based on the detection result and effectively improving the forwarding performance when the system forwards the message.
In a third aspect, the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores program instructions, and the processor executes the steps in any one of the foregoing implementation manners when reading and executing the program instructions.
In a fourth aspect, the present application further provides a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps in any of the above implementation manners are performed.
In summary, the present application provides a performance testing method, apparatus, electronic device, and storage medium, which can determine a sending mode of a target packet according to record information of a network interface by recording the network interface during a packet processing process, perform performance detection on the basis of the sending mode, and accurately and quickly detect that a performance problem is in a protocol layer of a driver layer or an upper layer network when the line speed cannot be reached, so as to improve the forwarding performance of a system according to a performance testing result.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a performance testing method according to an embodiment of the present application;
fig. 3 is a detailed flowchart of a step S200 according to an embodiment of the present disclosure;
fig. 4 is a detailed flowchart of a step S300 according to an embodiment of the present disclosure;
fig. 5 is a detailed flowchart of a step S400 provided in an embodiment of the present application;
fig. 6 is a detailed flowchart of step S410 according to an embodiment of the present disclosure;
fig. 7 is a detailed flowchart of step S420 according to an embodiment of the present disclosure;
fig. 8 is a detailed flowchart of a step S500 according to an embodiment of the present disclosure;
fig. 9 is a schematic structural module diagram of a performance testing apparatus according to an embodiment of the present disclosure.
Icon: 100-an electronic device; 111-a memory; 112-a memory controller; 113-a processor; 114-peripheral interfaces; 115-input-output unit; 116-a display unit; 600-a performance testing device; 610-initial module; 620-a determination module; 630-a sending module; 640-test module.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the embodiments of the present application.
In the prior art, in order to make the network forwarding performance of the whole system software reach the line speed of the network card (one standard of the switching forwarding capability of the network device, which is the maximum data volume that can be handled between the interface processor or interface card of the switch and the data bus) without packet loss. Usually, a network card driver is first located to determine whether the line speed of the network card can be reached when the network card driver performs message transceiving processing under a system. And adding an upper protocol stack on the premise that the linear speed of the network card can be reached by the bottom layer driver. When the processing performance in the system is positioned, the system can be tested through Netperf (a network performance testing tool) at present, but in a system which is closer to the linear speed than the forwarding performance, for example, the packet loss rate is lower than 0.001%, the forwarding performance is 99% or more, but the linear speed cannot be reached, the reason that the performance problem is the driving layer of the network card or the reason that the protocol layer of the upper network cannot process the message timely enough can not be positioned, the performance problem that whether the bottom layer driving in the network card or the upper layer passes through the protocol stack can not be determined, so that the network card cannot reach the linear speed, the performance problem can not be quickly and accurately positioned and solved, and the forwarding performance of the current message data is poor.
In order to solve the above problem, an embodiment of the present application provides a performance testing method, which is applied to an electronic device, where the electronic device may be an electronic device with a logic computing function, such as a server, a Personal Computer (PC), a tablet Computer, a smart phone, a Personal Digital Assistant (PDA), and the like, and can quickly and accurately test a performance problem when a system forwards a packet.
Optionally, referring to fig. 1, fig. 1 is a block schematic diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input-output unit 115, and a display unit 116. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely exemplary and is not intended to limit the structure of the electronic device 100. For example, electronic device 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The above-mentioned elements of the memory 111, the memory controller 112, the processor 113, the peripheral interface 114, the input/output unit 115 and the display unit 116 are electrically connected to each other directly or indirectly, so as to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute the executable modules stored in the memory.
The Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 111 is configured to store a program, and the processor 113 executes the program after receiving an execution instruction, and the method executed by the electronic device 100 defined by the process disclosed in any embodiment of the present application may be applied to the processor 113, or implemented by the processor 113.
The processor 113 may be an integrated circuit chip having signal processing capability. The Processor 113 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 114 couples various input/output devices to the processor 113 and memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 115 is used to provide input data to the user. The input/output unit 115 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 116 provides an interactive interface (e.g., a user operation interface) between the electronic device 100 and the user or is used for displaying image data to the user for reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing. In the embodiment of the present application, the display unit 116 may display various processing flows and various related information of the message.
The electronic device in this embodiment may be configured to execute each step in each performance testing method provided in this embodiment. The implementation of the performance testing method is described in detail below by way of several examples.
Referring to fig. 2, fig. 2 is a schematic flow chart of a performance testing method according to an embodiment of the present application, where the method includes the following steps:
and step S200, generating an initial information group based on a target interface function in the target network card.
The corresponding initial information group is generated and added according to the target interface function called in the target network card, and a plurality of network interfaces during message processing can be recorded without modifying the drive and hardware of the system. The initial information group may include a plurality of pieces of initial information, which are respectively used to record a plurality of different network interfaces for receiving and sending the target packet. Optionally, the initial information group may be recorded in a form of a string array, and may record various data such as interface names, serial numbers, interface states, and the like of a plurality of related network interfaces when processing the target packet.
Step S300, based on the initial information group, determining the target information when the target message is processed.
The corresponding target information when the target message is processed in different modes can be determined on the basis of the initial information group. The different processing modes may include processing the target packet in a network interface mode in a driver layer in the target network card, or processing the target packet in a protocol stack mode in a protocol layer of an upper layer network of the system.
Step S400, determining the sending mode of the target message based on the target information.
And determining a sending mode when the target message is sent according to the target information for processing the target message. The sending mode may include sending through a driver layer in the target network card to drive a network interface, or sending through a protocol layer of an upper layer network of the system, where the system may be a Linux system or other operating systems.
Step S500, the forwarding performance of the target message is tested based on the sending mode, and a test result is obtained.
The forwarding performance of the target message after being sent in a determined sending mode is tested, when the forwarding performance of the target message in the system cannot reach the linear speed, the performance problem can be quickly and accurately positioned, and the test result of whether the performance problem is the reason of a driving layer of a network card or the reason of untimely processing of the target message by an upper layer network is obtained through the test.
Optionally, after the corresponding test result is obtained, the driver layer of the target network card or the protocol layer of the upper network in the system may be adjusted or modified according to the performance problem located in the test result, so as to adjust and solve the performance problem, so that when the system forwards the message data, the forwarding performance can reach the linear speed, thereby effectively improving the forwarding performance of the system.
In the embodiment shown in fig. 2, when the forwarding performance of the system for forwarding the message data does not reach the linear speed, the performance problem can be accurately and quickly tested and located.
Optionally, referring to fig. 3, fig. 3 is a detailed flowchart of step S200 according to an embodiment of the present application, and step S200 may further include steps S210 to S240.
Step S210, when initializing the target network card, calling a first interface function of the target network card.
When the target network card is initialized, the initialization function probe function in the calling target network card can be initialized. During initialization, a corresponding interface function of a PROC file system (a mechanism for accessing an internal data structure of a kernel and changing kernel settings during operation, and providing an interface for an operation of accessing kernel data of the system in a file system mode) may be set in a probe function to obtain a relationship between interfaces passing information in a kernel mode and an application mode. A first interface function in the PROC file system is called, which may be an interface function of the kernel interface of PROC _ create.
Step S220, registering the target interface function in the target network card based on the first interface function.
And the target interface function comprises a read function and a write function so as to realize the functions of reading and writing data, and is respectively used for inputting and acquiring the related information of the current network interface to be forwarded from an application state.
Step S230, generating a trigger file based on the first interface function and the target interface function.
After the first interface function and the target interface function are called, the information of the network interface transmitted from the application state can be received according to the first interface function and the target interface function, and a trigger file which can be triggered by a specific trigger state is generated in a related directory of a corresponding PROC file system in the system. Alternatively, the directory of the PROC file system may be/PROC/net, and the trigger file may be named a netbypass file.
Step S240, generating the initial information group in the trigger file.
The method comprises the steps of generating an initial information group capable of recording a plurality of network interfaces for receiving and sending a target message in a trigger file. Each item of initial information in the initial information group is used for recording one network interface in a plurality of network interfaces for receiving or sending the target message, and each item of initial information in the initial information group is an initial value.
Optionally, the initial information group may include two initial information, which are respectively denoted as recv _ dev [0] and recv _ dev [1], and the initial value of the initial information is a character string array with null value, and no relevant network interface is recorded.
In the embodiment shown in fig. 3, the processing procedure of the message can be recorded by setting and recording the initial information of the network interface without changing the overall logic and driving structure for receiving and sending the message in the whole system.
Optionally, referring to fig. 4, fig. 4 is a detailed flowchart of step S300 according to an embodiment of the present disclosure, and step S300 may further include steps S310 to S340.
In step S310, if a trigger command is received, the input network interface data is received.
When the driver layer of the target network card is used to call a network interface to process the target message, the system can generate and respond to a trigger command for triggering the state, where the trigger command may be an echo command, and can generate a corresponding trigger command according to a response Protocol based on a TCP (Transmission Control Protocol) or a UDP (User data packet Protocol). When a trigger command is received, a read function in a target interface function is triggered by responding to the trigger command, and input network interface data of a pair of network interfaces are received, wherein the network interface data comprise a pair of network interface data of first interface data of a first network interface and second interface data of a second network interface.
Optionally, the first interface data and the second interface data may also be two character string arrays, which respectively include the interface names, numbers, states, and other related data of the first network interface and the second network interface, and the first interface data and the second interface data may be respectively denoted as eth0 and eth 1.
Step S320, writing the first interface data into the first initial information in the initial information group according to the write function, to obtain the first interface information recorded on the first network interface.
The triggering command can trigger a writing function in the target interface function, the received first interface data is written into first initial information which is an initial value in an initial information group by calling the writing function, and the first initial information is assigned through the first interface data, so that first interface information capable of recording a first network interface is obtained.
Step S330, writing the second interface data into the second initial information in the initial information group according to the write function, to obtain the second interface information recorded on the second network interface.
The received second interface data can be written into second initial information which is an initial value in the initial information group by calling the write function, and the second initial information is assigned through the second interface data, so that second interface information capable of recording a second network interface is obtained.
It should be noted that, when receiving and responding to the trigger command, the two interface information, namely the first interface information and the second interface information, can form target information when processing a target message, and when triggering a network interface to process the target message at a driver layer of the network card, the network interface used in the initial information group is recorded in real time to obtain corresponding target information, and the target information is recorded in a processing manner of the target message in the driver layer of the network card.
Or, in step S340, if the trigger command is not received, the first initial information and the second initial information are used as the target information.
When the trigger command is not received, the target message is processed through a protocol stack in a protocol layer in an upper network in the system, the target message is not processed by using a network interface, two pieces of initial information in the initial information group are directly used as target information when the target message is processed, the target message is processed by the protocol layer, and a corresponding state which is not processed by using the network interface is expressed.
In the embodiment shown in fig. 4, different target information can be determined according to different processing modes to indicate the state during processing.
Optionally, referring to fig. 5, fig. 5 is a detailed flowchart of step S400 provided in the present embodiment, and step S400 may further include steps S410 to S420.
Step S410, determining variable information when receiving the target packet based on the target information.
On the basis of the acquired target information when the target message is processed, a specific numerical value of variable information which can represent a structure body of a network interface in a system kernel when the target message is received can be determined, so that the state of the structure body of the network interface in the system kernel can be acquired according to the variable information.
Step S420, determining a sending mode of the target packet according to the variable information.
The variable information can represent the interface state of a structure body of a network interface in a system kernel when the target message is processed, so that whether the target message is sent by a driving layer of a network card or a protocol layer in an upper layer network can be determined on the basis of the variable information, and the two sending modes of the driving layer and the protocol layer can be processed respectively.
In the embodiment shown in fig. 5, a static variable can be defined to represent the state of the structure of the network interface, so as to determine the sending mode when sending the target packet on the basis.
Optionally, referring to fig. 6, fig. 6 is a detailed flowchart of step S410 provided in the present embodiment, and step S410 may further include steps S411 to S412.
Step S411, when receiving the target packet, setting an initial variable corresponding to a target structure of the target network card.
The method includes defining corresponding initial variables based on a target structure, wherein the target structure can be a struct net _ device structure and can represent a structure of a network interface in a system kernel, the initial variables are static variables and can include a first variable and a second variable, the first variable and the second variable are default values, the default values are null values, and the first variable and the second variable can be recorded as dev1 and dev 2.
Step S412, updating the initial variable based on the target information, and determining the variable information when receiving the target packet.
After the target message corresponding to the target message is acquired, since the initial variable is a default null value, when the target message is received, the values of the two variables in the initial variable need to be updated according to the target message, so that the change in the structure of the network interface in the initial variable is updated, and the variable information when the target message is received is obtained.
Optionally, because the target information includes different information, the initial variable may be updated in different manners according to the different target information, and the updating manner may include: and when the target information is the first initial information and the second initial information, taking the first variable and the second variable in the initial variables as variable information.
When the target information is the first initial information and the second initial information, the target information is null, which indicates that the system processes the target message by using a protocol layer of an upper network and does not process the target message by using a network interface in a driving layer, so that when the target message is received, the state of a structural body of the network interface is not changed, and a first variable and a second variable of static variables of which two are default values in the initial variables can be directly used as variable information.
Optionally, the updating method may further include: when the target information is first interface information and second interface information, calling a target function to calculate based on the first interface information and the second interface information to obtain a first return value and a second return value; updating the numerical value of the first variable from a default value to a first return value to obtain a third variable; and updating the numerical value of the second variable from the default value to a second return value to obtain a fourth variable, and taking the third variable and the fourth variable as variable information.
When the target information is the first interface information and the second interface information, the target information is not a null value, the target message is processed by using a network interface in a driving layer of the network card, a target function is called, the first interface information and the second interface information are respectively used as parameters for calculation to obtain two return values, values of two static variables which are default values in the initial variables are respectively updated according to the return values obtained by calculation, and the first variable and the second variable of the default values are respectively assigned according to the first return value and the second return value to obtain a third variable and a fourth variable which are variable information. For example, the target function called when performing the calculation may be a dev _ get _ by _ name or other value-reducing function.
It should be noted that, for different target information, corresponding variable information capable of representing the state of the network interface structure in the kernel can be obtained according to different processing modes of the target packet.
In the embodiment shown in fig. 6, the variable information indicating the current state of the network interface structure when the system receives the target packet can be determined, so that the validity and the real-time performance of the variable information are improved.
Optionally, referring to fig. 7, fig. 7 is a detailed flowchart illustrating a step S420 according to an embodiment of the present application, and the step S420 may further include steps S421 to S425.
It should be noted that, the target packet is normally received and processed based on the variable information, and when the target packet needs to be sent, the values of the two variables in the variable information are determined, so as to obtain the state of the structure of the network interface, and determine the corresponding sending mode.
Step S421, when the variable information includes the first variable and the second variable, the receiving function when receiving the target packet is called to send the target packet to a protocol stack of an upper network.
When the variable information is a first variable and a second variable, the numerical value of the variable is a default null value, the state of the structural body of the network interface is not changed, and the processing mode is that a protocol layer in an upper network is used for processing the target message, so that a receiving function when the target message is received is directly called to upload the target message to a protocol stack in the upper network for processing.
Illustratively, the receiving function may be a netif _ receive _ skb or the like receiving function.
Step S422, the target message is sent based on the protocol stack.
After receiving the target message, the protocol stack of the upper layer network can send one or more target messages in the protocol layer by the protocol stack.
Optionally, after the target packet is sent in the protocol layer, the corresponding sending return value may be fed back, and the sending return value may be the actual number of the target packet.
Step S423, when the variable information includes the third variable and the fourth variable, acquiring receiving interface information for receiving the target packet.
When the variable information is the third variable and the fourth variable, the value of the variable is not controlled by default, the state of the structural body of the network interface changes, and the processing mode is to process the target message by using the network interface in the driving layer of the network card, so that the target message does not need to be sent by a protocol layer of an upper network, information of a receiving interface in the process of receiving the target message is acquired, and the acquired receiving interface information may include related information such as the interface name, the number, the state and the like of the network interface when the message is received.
Step S424, when the receiving interface information matches the third variable, a sending function of the fourth variable is called in a driving layer of the target network card to send the target message.
And when the information of the receiving interface is successfully matched with the third variable, for example, the name of the receiving interface is the same as the name of the corresponding first network interface in the third variable, the first network interface is the receiving interface when receiving the target message, the second network interface corresponding to the fourth variable is used as a sending interface, and a sending function of the second network interface corresponding to the fourth variable is called to send one or more target messages.
Step S425, when the receiving interface information matches the fourth variable, a sending function of the third variable is called in the driver layer to send the target packet.
And when the information of the receiving interface is successfully matched with the fourth variable, for example, the name of the receiving interface is the same as the name of a second network interface corresponding to the fourth variable, the second network interface is the receiving interface when receiving the target message, the first network interface corresponding to the third variable is used as a sending interface, and a sending function of the first network interface corresponding to the third variable is called to send one or more target messages.
Optionally, after the target packet is sent by using the network interface in the driver layer, a corresponding sending return value may be fed back, and the sending return value may be a null value, so as to notify a protocol layer of an upper layer network that the target packet does not need to be processed.
In the embodiment shown in fig. 7, the corresponding transmission method can be determined according to the variable information, so as to process the two transmission methods in the driver layer and the protocol layer respectively.
Optionally, referring to fig. 8, fig. 8 is a detailed flowchart of step S500 provided in the present embodiment, and step S500 may further include steps S510 to S530.
Step S510, testing the forwarding performance of the target packet when the target packet is sent in the sending manner based on a testing instrument.
After the target message is forwarded in the sending mode, the forwarding performance of the target message in the sending mode can be tested according to the testing instrument, and the testing instrument can be various testing instruments such as an IXIA network tester or a sbalance network tester.
Step S520, when the forwarding performance is tested to fail, the test result is that the performance problem of the forwarding performance is in the driving layer of the target network card.
When the test instrument detects that the forwarded target message cannot completely pass through, the forwarding performance is not passed, and the test result shows that the performance problem of the forwarding performance is located in the driving layer of the target network card, so that the forwarding performance cannot reach the linear speed.
Step S530, when the forwarding performance is tested to be passed, the performance problem of which the test result is the forwarding performance is in the protocol stack.
When the test instrument detects that the forwarded target message can completely pass through, the forwarding performance passes through, the test result is that the performance problem of the forwarding performance is in a protocol layer of an upper layer network, and the forwarding performance can reach the linear speed only if the protocol layer also has a promotion space.
In the embodiment shown in fig. 8, the position of the performance problem can be quickly and accurately located on the basis of the separately processed sending mode, so that the user can adaptively adjust the driving layer of the network card and the protocol layer of the upper network in the system according to the test result, the forwarding performance of the system can reach the linear speed, and the forwarding performance of the system when forwarding the message data is improved.
Referring to fig. 9, fig. 9 is a schematic block diagram of a structure of a performance testing apparatus according to an embodiment of the present disclosure, where the performance testing apparatus 600 includes:
an initial module 610, configured to generate an initial information group based on a target interface function in a target network card, where the initial information group is used to record multiple network interfaces for receiving and sending a target packet;
a determining module 620, configured to determine, based on the initial information group, target information when the target packet is processed;
a sending module 630, configured to determine a sending method of the target packet based on the target information;
the testing module 640 is configured to test the forwarding performance of the target packet based on the sending manner, so as to obtain a testing result.
In an optional embodiment, the initiating module 610 may further include a calling sub-module, a registering sub-module, and a generating sub-module;
the calling submodule is used for calling a first interface function of the target network card when the target network card is initialized;
the registration submodule is used for registering the target interface function in the target network card based on the first interface function, wherein the target interface function comprises a read function and a write function;
the generation submodule is used for generating a trigger file based on the first interface function and the target interface function; and generating the initial information group in the trigger file, wherein each item of initial information in the initial information group is used for recording one network interface in a plurality of network interfaces for receiving or sending the target message, and each item of initial information in the initial information group is an initial value.
In an optional embodiment, the determining module 620 may further include a triggering sub-module and a non-triggering sub-module;
the trigger submodule is used for receiving input network interface data if a trigger command is received, wherein the network interface data comprises first interface data of a first network interface and second interface data of a second network interface; writing the first interface data into first initial information in the initial information group according to the write function to obtain first interface information for recording the first network interface; and writing the second interface data into second initial information in the initial information group according to the write function to obtain second interface information for recording the second network interface.
And the non-trigger self-module is used for taking the first initial information and the second initial information as the target information if the trigger command is not received.
In an optional embodiment, the sending module 630 may further include a variable submodule and a sending submodule;
the variable submodule is used for determining variable information when the target message is received based on the target information;
and the sending submodule is used for determining a sending mode of the target message according to the variable information.
In an optional embodiment, the variable submodule may further include a setting unit and an updating unit;
the setting unit is used for setting an initial variable corresponding to a target structure of the target network card when the target message is received, wherein the initial variable comprises a first variable and a second variable, and the first variable and the second variable are default values;
and the updating unit is used for updating the initial variable based on the target information and determining the variable information when the target message is received.
In an optional embodiment, the updating unit is further configured to, when the target information is the first initial information and the second initial information, use the first variable and the second variable of the initial variables as the variable information;
in an optional implementation manner, the updating unit is further configured to, when the target information is the first interface information and the second interface information, call a target function to perform calculation based on the first interface information and the second interface information to obtain a first return value and a second return value; updating the numerical value of the first variable from the default value to the first return value to obtain a third variable; and updating the numerical value of the second variable from the default value to the second return value to obtain a fourth variable, and taking the third variable and the fourth variable as the variable information.
In an optional embodiment, the sending submodule further includes a protocol unit and a driving unit;
a protocol unit, configured to, when the variable information includes the first variable and the second variable, call a receiving function when receiving the target packet to send the target packet to a protocol stack of an upper network; sending the target message based on the protocol stack;
the driving unit is configured to acquire receiving interface information for receiving the target packet when the variable information includes the third variable and the fourth variable; when the receiving interface information is matched with the third variable, calling a sending function of the fourth variable in a driving layer of the target network card to send the target message; and when the receiving interface information is matched with the fourth variable, calling a sending function of the third variable in the driving layer to send the target message.
In an optional embodiment, the test module 640 may further include a test sub-module, a pass sub-module, and a fail sub-module;
the test submodule is used for testing the forwarding performance of the target message when the target message is sent in the sending mode based on a test instrument;
the passing submodule is used for testing the forwarding performance as failed, and the test result is that the performance problem of the forwarding performance is in the driving layer of the target network card;
and the failed sub-module is used for testing the performance problem of which the test result is the forwarding performance in the protocol stack when the forwarding performance is tested to be passed.
Since the principle of the apparatus in the embodiment of the present application for solving the problem is similar to that in the embodiment of the performance testing method, the implementation of the performance testing apparatus 600 in the embodiment of the present application may refer to the description in the embodiment of the performance testing method, and repeated details are not repeated.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores program instructions, and when the processor reads and runs the program instructions, the processor executes the steps in any one of the performance test methods provided in this embodiment.
It should be understood that the electronic device may be a server, a personal computer, a tablet computer, a smart phone, a personal digital assistant, etc. electronic devices with logical computing functionality.
The embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps in any one of the performance testing methods provided in this embodiment are executed.
To sum up, the embodiments of the present application provide a performance testing method and apparatus, an electronic device, and a storage medium, where a network interface in a message processing process is recorded, a sending method of a target message can be determined according to recording information of the network interface, performance detection is performed on the basis of the sending method, and when a line speed cannot be reached, a performance problem is accurately and quickly detected in a driver layer or a protocol layer of an upper layer, so as to improve forwarding performance of a system according to a performance testing result.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices according to various embodiments of the present application. In this regard, each block in the block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams, and combinations of blocks in the block diagrams, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Therefore, the present embodiment further provides a readable storage medium, in which computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the computer program instructions perform the steps of any of the block data storage methods. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RanDom Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (12)
1. A method of performance testing, comprising:
generating an initial information group based on a target interface function in a target network card, wherein the initial information group is used for recording a plurality of network interfaces for receiving and sending a target message;
determining target information when the target message is processed based on the initial information group;
determining a sending mode of the target message based on the target information;
and testing the forwarding performance of the target message based on the sending mode to obtain a test result.
2. The method of claim 1, wherein generating the initial set of information based on the target interface function in the target network card comprises:
when the target network card is initialized, calling a first interface function of the target network card;
registering the target interface function in the target network card based on the first interface function, wherein the target interface function comprises a read function and a write function;
generating a trigger file based on the first interface function and the target interface function;
and generating the initial information group in the trigger file, wherein each item of initial information in the initial information group is used for recording one network interface in a plurality of network interfaces for receiving or sending the target message, and each item of initial information in the initial information group is an initial value.
3. The method of claim 2, wherein the target information comprises first interface information and second interface information; determining target information when the target message is processed based on the initial information group, wherein the determining comprises:
receiving input network interface data if a trigger command is received, wherein the network interface data comprises first interface data of a first network interface and second interface data of a second network interface;
writing the first interface data into first initial information in the initial information group according to the write function to obtain first interface information for recording the first network interface;
and writing the second interface data into second initial information in the initial information group according to the write function to obtain second interface information for recording the second network interface.
4. The method of claim 3, further comprising:
and if the trigger command is not received, taking the first initial information and the second initial information as the target information.
5. The method of claim 4, wherein the determining the sending mode of the target packet based on the target information comprises:
determining variable information when the target message is received based on the target information;
and determining a sending mode of the target message according to the variable information.
6. The method of claim 5, wherein the determining variable information when receiving the target packet based on the target information comprises:
when the target message is received, setting an initial variable corresponding to a target structure of the target network card, wherein the initial variable comprises a first variable and a second variable, and the first variable and the second variable are default values;
updating the initial variable based on the target information, and determining the variable information when the target message is received.
7. The method of claim 6, wherein the updating the initial variable based on the target information and determining the variable information when receiving the target packet comprises:
when the target information is the first initial information and the second initial information, taking the first variable and the second variable in the initial variables as the variable information;
when the target information is the first interface information and the second interface information, calling a target function to calculate based on the first interface information and the second interface information to obtain a first return value and a second return value;
updating the numerical value of the first variable from the default value to the first return value to obtain a third variable; and updating the numerical value of the second variable from the default value to the second return value to obtain a fourth variable, and taking the third variable and the fourth variable as the variable information.
8. The method according to claim 7, wherein the determining the sending mode of the target packet according to the variable information includes:
when the variable information comprises the first variable and the second variable, calling a receiving function when receiving the target message to send the target message to a protocol stack of an upper network;
sending the target message based on the protocol stack;
when the variable information comprises the third variable and the fourth variable, acquiring receiving interface information for receiving the target message;
when the receiving interface information is matched with the third variable, calling a sending function of the fourth variable in a driving layer of the target network card to send the target message;
and when the receiving interface information is matched with the fourth variable, calling a sending function of the third variable in the driving layer to send the target message.
9. The method according to claim 8, wherein the testing the forwarding performance of the target packet based on the sending manner to obtain a test result comprises:
testing the forwarding performance of the target message when the target message is sent in the sending mode based on a testing instrument;
when the forwarding performance is tested to be failed, the test result is that the performance problem of the forwarding performance is in the driving layer of the target network card;
and when the forwarding performance is tested to be passed, the performance problem of which the test result is the forwarding performance is in the protocol stack.
10. A performance testing apparatus, the apparatus comprising:
the system comprises an initial module, a target network card and a control module, wherein the initial module is used for generating an initial information group based on a target interface function in the target network card, and the initial information group is used for recording a plurality of network interfaces for receiving and sending a target message;
a determining module, configured to determine, based on the initial information group, target information when the target packet is processed;
the sending module is used for determining a sending mode of the target message based on the target information;
and the test module is used for testing the forwarding performance of the target message based on the sending mode to obtain a test result.
11. An electronic device comprising a memory having stored therein program instructions and a processor that, when executed, performs the steps of the method of any of claims 1-9.
12. A computer-readable storage medium having computer program instructions stored thereon for execution by a processor to perform the steps of the method of any of claims 1-9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111639408.XA CN114338448B (en) | 2021-12-29 | 2021-12-29 | Performance test method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111639408.XA CN114338448B (en) | 2021-12-29 | 2021-12-29 | Performance test method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114338448A true CN114338448A (en) | 2022-04-12 |
| CN114338448B CN114338448B (en) | 2024-02-20 |
Family
ID=81016466
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111639408.XA Active CN114338448B (en) | 2021-12-29 | 2021-12-29 | Performance test method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114338448B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005015837A1 (en) * | 2003-08-07 | 2005-02-17 | Huawei Technologies Co., Ltd. | A method and system for implementing the transmission of the data packet |
| US20080181254A1 (en) * | 2007-01-25 | 2008-07-31 | Inventec Corporation | Data transmission method |
| CN103236956A (en) * | 2013-04-18 | 2013-08-07 | 神州数码网络(北京)有限公司 | Method and switch for testing throughput of communication equipment |
| CN107360056A (en) * | 2017-06-30 | 2017-11-17 | 中国航空无线电电子研究所 | AFDX performance test methods based on RFC2544 |
| WO2018107433A1 (en) * | 2016-12-15 | 2018-06-21 | 华为技术有限公司 | Information processing method and device |
| WO2019205280A1 (en) * | 2018-04-24 | 2019-10-31 | 平安科技(深圳)有限公司 | Server testing method, apparatus, and device, and computer readable storage medium |
| CN110708250A (en) * | 2019-08-26 | 2020-01-17 | 广州市高科通信技术股份有限公司 | Method for improving data forwarding performance, electronic equipment and storage medium |
| WO2020119430A1 (en) * | 2018-12-14 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Protocol interface test method, device, computer device and storage medium |
| CN112883007A (en) * | 2021-02-20 | 2021-06-01 | 杭州迪普科技股份有限公司 | Native protocol message processing method and device for Linux system |
| WO2021189898A1 (en) * | 2020-10-09 | 2021-09-30 | 平安科技(深圳)有限公司 | Protocol conversion method and system for data, and electronic device and storage medium |
-
2021
- 2021-12-29 CN CN202111639408.XA patent/CN114338448B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005015837A1 (en) * | 2003-08-07 | 2005-02-17 | Huawei Technologies Co., Ltd. | A method and system for implementing the transmission of the data packet |
| US20080181254A1 (en) * | 2007-01-25 | 2008-07-31 | Inventec Corporation | Data transmission method |
| CN103236956A (en) * | 2013-04-18 | 2013-08-07 | 神州数码网络(北京)有限公司 | Method and switch for testing throughput of communication equipment |
| WO2018107433A1 (en) * | 2016-12-15 | 2018-06-21 | 华为技术有限公司 | Information processing method and device |
| CN107360056A (en) * | 2017-06-30 | 2017-11-17 | 中国航空无线电电子研究所 | AFDX performance test methods based on RFC2544 |
| WO2019205280A1 (en) * | 2018-04-24 | 2019-10-31 | 平安科技(深圳)有限公司 | Server testing method, apparatus, and device, and computer readable storage medium |
| WO2020119430A1 (en) * | 2018-12-14 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Protocol interface test method, device, computer device and storage medium |
| CN110708250A (en) * | 2019-08-26 | 2020-01-17 | 广州市高科通信技术股份有限公司 | Method for improving data forwarding performance, electronic equipment and storage medium |
| WO2021189898A1 (en) * | 2020-10-09 | 2021-09-30 | 平安科技(深圳)有限公司 | Protocol conversion method and system for data, and electronic device and storage medium |
| CN112883007A (en) * | 2021-02-20 | 2021-06-01 | 杭州迪普科技股份有限公司 | Native protocol message processing method and device for Linux system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114338448B (en) | 2024-02-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
| CN107783898B (en) | Test method and test equipment for mobile application | |
| US9280451B2 (en) | Testing device | |
| CN110737887B (en) | Malicious code detection method and device, electronic equipment and storage medium | |
| US20170104835A1 (en) | Intelligent notifications to devices with multiple applications | |
| CN113778878A (en) | Interface testing method and device, electronic equipment and storage medium | |
| US12293394B2 (en) | Programming verification rulesets visually | |
| CN112839047B (en) | Asset vulnerability scanning method, device, equipment and medium on cloud platform | |
| CN108574721A (en) | A login method, device, server, user terminal, and readable storage medium | |
| CN107844645B (en) | BIM-based collaboration initiating method and device | |
| US8984403B2 (en) | Bringing user attention to guidance information presented on a display device | |
| CN109710476B (en) | System interface robustness testing method and device | |
| CN113111713B (en) | Image detection method and device, electronic equipment and storage medium | |
| CN113031814B (en) | Touch event reporting method, device, terminal and storage medium | |
| CN114338448A (en) | Performance test method and device, electronic equipment and storage medium | |
| CN116225576B (en) | Application program data environment switching method and device, electronic equipment and medium | |
| CN112860566A (en) | Applet detection method, device, electronic equipment and readable medium | |
| CN107168776B (en) | Event statistical method, device, equipment and storage medium | |
| CN112532602A (en) | Gray scale publishing method, equipment and server | |
| CN112214389B (en) | Crowd measurement method, device, terminal and storage medium | |
| CN114282198A (en) | Verification code implementation method, electronic device and computer-readable storage medium | |
| CN109936586B (en) | Communication processing method and device | |
| CN111258899A (en) | Use case generation method, apparatus, electronic device, and computer-readable storage medium | |
| CN108255593B (en) | Task coordination method, device, medium and electronic equipment based on shared resources | |
| US20190057017A1 (en) | Correlation Of Function Calls To Functions In Asynchronously Executed Threads |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |