CN116614409A - Performance test method, apparatus, device, storage medium, and program product - Google Patents

Performance test method, apparatus, device, storage medium, and program product Download PDF

Info

Publication number
CN116614409A
CN116614409A CN202310555725.6A CN202310555725A CN116614409A CN 116614409 A CN116614409 A CN 116614409A CN 202310555725 A CN202310555725 A CN 202310555725A CN 116614409 A CN116614409 A CN 116614409A
Authority
CN
China
Prior art keywords
server
test
network
switch
port
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.)
Pending
Application number
CN202310555725.6A
Other languages
Chinese (zh)
Inventor
张欢
王卫钢
郭庆
丁磊
王学智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202310555725.6A priority Critical patent/CN116614409A/en
Publication of CN116614409A publication Critical patent/CN116614409A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to a performance testing method, apparatus, device, storage medium and program product. The method comprises the following steps: sending a mode setting instruction to a switch in a target test network; the target test network comprises an exchanger, a first server and a second server, wherein a network card in the first server is in communication connection with the exchanger through a first port of the exchanger, and a network card in the second server is in communication connection with the exchanger through a second port of the exchanger; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction; sending a test instruction to a first server, wherein the test instruction is used for indicating the first server to send test data to a second server through a switch; the method has higher universality by receiving the test result output by the second server based on the test data and determining the network performance of the target test network according to the test result.

Description

Performance test method, apparatus, device, storage medium, and program product
Technical Field
The present application relates to the field of server technologies, and in particular, to a performance testing method, apparatus, device, storage medium, and program product.
Background
When the network performance in the network environment is low, a large number of data packets are lost in the data transmission process in the network environment, and in order to avoid the problem, network performance test needs to be performed on the network environment.
In the conventional technology, network performance tests are performed by special instruments, such as testing network FEC (Forward Error Correction, forward error correction coding) performance with N4891a400GBASE FEC.
However, under the condition of no instrument for testing network performance, the network performance cannot be tested, so that the method for testing the network performance in the traditional technology has low universality.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a performance test method, apparatus, device, storage medium, and program product that are highly versatile.
In a first aspect, the present application provides a performance testing method. The method comprises the steps of sending a mode setting instruction to a switch in a target test network; the target test network comprises an exchanger, a first server and a second server, wherein a network card in the first server is in communication connection with the exchanger through a first port of the exchanger, and a network card in the second server is in communication connection with the exchanger through a second port of the exchanger; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction; sending a test instruction to a first server, wherein the test instruction is used for indicating the first server to send test data to a second server through a switch; and receiving a test result output by the second server based on the test data, and determining the network performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a first mode setting instruction, where the first mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be an FEC on mode, receive a test result output by the second server based on the test data, and determine, according to the test result, network performance of the target test network, where the method includes: and receiving a test result output by the second server based on the test data, and determining the FEC performance of the target test network according to the test result.
In this embodiment, because the network card of the first server and the network card of the second server perform auto-negotiation with the first port and the second port, the switch sets the FEC modes of the first port and the second port to be the FEC on mode through the first mode setting instruction, and the network card of the first server and the network card of the second server automatically adjust their FEC modes to be the FEC on mode, so that the FEC technology is utilized in the transmission process of the test data among the first server, the switch and the second server, and the test result output by the second server based on the test data can be used as the basis for judging the FEC performance of the target test network. The method for realizing FEC performance test of the target test network by sending the first mode setting instruction and the test instruction to the target test network has higher universality compared with the traditional technology.
In one embodiment, the mode setting instruction includes a second mode setting instruction, where the second mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be an FEC off mode, receive a test result output by the second server based on the test data, and determine, according to the test result, network performance of the target test network, where the method includes: and receiving a test result output by the second server based on the test data, and determining the network card transmission performance of the target test network according to the test result.
In this embodiment, because the network card of the first server and the network card of the second server perform auto-negotiation with the first port and the second port, the switch sets the FEC mode of the first port and the FEC mode of the second port to be the FEC off mode through the second mode setting instruction, and the network card of the first server and the network card of the second server automatically adjust the FEC mode of the network card of the first server to be the FEC off mode, so that the problem that whether packet loss occurs in the transmission process of the test data among the first server, the switch and the second server is mainly dependent on the transmission performance of the network card in the first server and the network card in the second server, and the test result output by the second server based on the test data can be used as a basis for judging the network card transmission performance of the target test network. The network card transmission performance of the target test network is tested by sending the second mode setting instruction and the test instruction to the target test network, and compared with the prior art, the network card transmission performance testing method has higher universality.
In one embodiment, the test result includes a Cyclic Redundancy Check (CRC) error count, and determining network performance of the target test network according to the test result includes: and determining the network performance of the target test network according to the CRC error reporting number and a preset threshold value.
In this embodiment, the method of determining the network performance of the target test network according to the number of CRC errors and the preset threshold has the advantage of simplicity and effectiveness.
In one embodiment, before sending the test instruction to the first server, the method further comprises: respectively sending verification instructions to the first server and the second server, wherein the verification instructions are used for indicating the first server and the second server to respectively output negotiation results after auto-negotiation with the switch; correspondingly, sending a test instruction to the first server, including: after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port, a test instruction is sent to the first server.
In this embodiment, verification instructions are sent to the first server and the second server respectively, so as to ensure that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port, and ensure that corresponding test results are obtained in different FEC modes, thereby ensuring accurate determination of test results for judging FEC performance and network card transmission performance.
In one embodiment, the test instruction carries a test duration, where the test duration is used to instruct the first server to continuously send test data to the second server through the switch during the test duration.
In a second aspect, the application further provides a performance testing device. The device comprises: the first sending module is used for sending a mode setting instruction to a switch in the target test network; the target test network comprises an exchanger, a first server and a second server, wherein a network card in the first server is in communication connection with the exchanger through a first port of the exchanger, and a network card in the second server is in communication connection with the exchanger through a second port of the exchanger; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction; the second sending module is used for sending a test instruction to the first server, and the test instruction is used for indicating the first server to send test data to the second server through the switch; and the determining module is used for receiving the test result output by the second server based on the test data and determining the network performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a first mode setting instruction, where the first mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be FEC on modes, and the determining module is further configured to receive a test result output by the second server based on the test data, and determine FEC performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a second mode setting instruction, where the second mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be FEC off mode, and the determining module is further configured to receive a test result output by the second server based on the test data, and determine a network card transmission performance of the target test network according to the test result.
In one embodiment, the test result includes a cyclic redundancy check, CRC, error reporting number, and a determining module, configured to determine network performance of the target test network according to the CRC, error reporting number and a preset threshold.
In one embodiment, the device further includes a third sending module, where the third sending module is configured to send a verification instruction to the first server and the second server, where the verification instruction is configured to instruct the first server and the second server to output negotiation results after auto-negotiation with the switch, respectively;
Correspondingly, the second sending module is specifically configured to send a test instruction to the first server after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port.
In one embodiment, the test instruction carries a test duration, where the test duration is used to instruct the first server to continuously send test data to the second server through the switch during the test duration.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method according to any of the first aspects above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the first aspects above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to any of the first aspects above.
According to the performance test method, the device, the equipment, the storage medium and the program product, the mode setting instruction is sent to the switch in the target test network, the target test network comprises the switch, the first server and the second server, the network card in the first server is in communication connection with the switch through the first port of the switch, the network card in the second server is in communication connection with the switch through the second port of the switch, the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction, the test instruction is sent to the first server, the test instruction is used for instructing the first server to send test data to the second server through the switch, then the second server receives the test result output based on the test data, and the network performance of the target test network is determined according to the test result.
Drawings
FIG. 1 is a diagram of an application environment for a performance testing method in one embodiment;
FIG. 2 is a flow chart of a method of testing properties in one embodiment;
FIG. 3 is a flow chart of another performance testing method according to one embodiment;
FIG. 4 is a block diagram of a device for testing properties in another embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The problem that a large number of data packets are lost in the data transmission process in the network environment is often caused, and the problems are particularly expressed in that the optical signal is degraded due to other factors in the transmission process, so that the receiving end is misjudged, the 1 signal is misjudged to be the 0 signal or the 0 signal is misjudged to be the 1 signal, and the problem is closely related to the transmission performance of the network card and the FEC performance of the network, so that the network environment is required to be tested for network performance, the network performance test comprises the network card transmission performance test and the network FEC performance test, wherein the network card transmission performance is related to the hardware performance of the network card, and the FEC performance of the network is related to the FEC technology in the network, namely software. The FEC technology refers to a technology that, before a signal is sent to a transmission channel, a coding process is performed in advance according to a certain algorithm, a redundancy code with a characteristic of the signal is added, and a receiving end decodes the received signal according to a corresponding algorithm, so as to find out an Error code generated in the transmission process and correct the Error code, that is, a technology capable of reducing BER (Bit Error Ratio) of the signal received by the receiving end.
At present, a special instrument is used to perform network performance test, such as an N4891a400GBASE FEC interactive physical layer receiver test solution, which can characterize and quantitatively evaluate the actual BER (Bit Error Ratio) and FEC performance of a silicon communication device. However, this solution relies on special instruments and equipment, which is less versatile, and therefore it is necessary to propose effective technical means to solve this problem.
The performance test method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the target test network 104 through a network, and the target test network 104 includes a switch, a first server, and a second server. The terminal 102 sends a test instruction to the first server, instructs the first server to send test data to the second server through the switch, and then the terminal 102 receives a test result output by the second server based on the test data, and determines the network performance of the target test network according to the test result. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like. The first server and the second server may be implemented as separate servers or as a server cluster formed by a plurality of servers, respectively.
In one embodiment, as shown in fig. 2, a flow chart of a performance testing method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step 201, a mode setting instruction is sent to a switch in a target test network; the target test network comprises an exchanger, a first server and a second server, wherein a network card in the first server is in communication connection with the exchanger through a first port of the exchanger, and a network card in the second server is in communication connection with the exchanger through a second port of the exchanger; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction.
The switch includes an optical module supporting FEC technology, a first port, a second port, and a control module, where the first port and the second port are both in duplex mode and are both ports supporting FEC technology.
The first Server and the second Server are respectively provided with the iperf software, the first Server is used as a Client (Client), and the second Server is used as a service providing end (Server). The network card is a server network card supporting the FEC technology, and the network cards are of various types including 10G, 25G, 40G and 100G network cards. The FEC modes include an FEC on mode and an FEC off mode.
The data transmission principle in the target test network is as follows: the network card in the first server packages the data to be transmitted by using an FEC technology, the data is sent to the optical module through the first port, the optical module performs electro-optical conversion, the data to be transmitted is sent to the network card of the second server in an optical signal mode, and the second server network card unpacks the packaged data to be transmitted by using the FEC technology to obtain the data to be transmitted.
Optionally, the terminal remotely logs in the control module of the switch, sends a mode setting instruction to the control module, and after receiving the mode setting instruction, the control module sets the FEC modes of the first port and the second port according to the mode setting instruction, and when the network card of the first server and the network card of the second server send data to each other through the switch, the control module automatically negotiates the FEC modes of the first port and the second port respectively, so as to change the FEC modes of the control module.
Step 202, a test instruction is sent to a first server, where the test instruction is used to instruct the first server to send test data to a second server through a switch.
Illustratively, the test data is binary data consisting of 0, 1.
Optionally, the terminal sends an "IP erf-c IP" test instruction to the IP erf in the first Server, so that the first Server is a Client, where IP is an IP address of the second service, and then sends an "IP erf-s" enable instruction to the IP erf in the second Server, so that the second Server is a Server.
After the iperf in the first server receives the test instruction, the test data is output, the network card of the first server carries out FEC technical processing or does not carry out FEC technical processing on the test data according to the self-negotiated FEC mode, and then the processed or unprocessed test data is sent to the second server through the switch.
And 203, receiving a test result output by the second server based on the test data, and determining the network performance of the target test network according to the test result.
Optionally, after the iperf in the second server receives the test data, performing CRC (Cyclic Redundancy Check ) on the test data, processing the data with CRC errors, obtaining a test result, outputting the test result to the terminal, and then determining the network performance of the target test network according to the test result by the terminal.
The CRC is a channel coding technique for generating a short fixed bit check code according to data such as network data packets or computer files, and is mainly used for detecting or checking errors possibly occurring after data transmission or storage, and particularly for performing error detection by utilizing the principles of division and remainder.
In summary, by sending a mode setting instruction to the switch in the target test network, where the target test network includes the switch, the first server and the second server, the network card in the first server is communicatively connected to the switch through the first port of the switch, and the network card in the second server is communicatively connected to the switch through the second port of the switch, the mode setting instruction is used to instruct the switch to set the FEC modes of the first port and the second port according to the mode setting instruction, and then send a test instruction to the first server, the test instruction is used to instruct the first server to send test data to the second server through the switch, and then receive a test result output by the second server based on the test data, and determine the network performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a first mode setting instruction, where the first mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be an FEC on mode, receive a test result output by the second server based on the test data, and determine, according to the test result, network performance of the target test network, where the method includes: and receiving a test result output by the second server based on the test data, and determining the FEC performance of the target test network according to the test result.
Illustratively, the switch is a Mellanox and the first mode setting instruction is "fec-override rs-fec force".
Optionally, the terminal remotely logs in the control module of the switch, sends a first mode setting instruction to the control module, and after receiving the first mode setting instruction, the control module sets the FEC modes of the first port and the second port to be FEC on mode according to the first mode setting instruction. The network card of the first server and the network card of the second server respectively carry out auto-negotiation with the first port and the second port, and the self FEC mode is automatically adjusted to be the FEC starting mode according to the auto-negotiated FEC starting mode.
The method comprises the steps that a terminal sends a test instruction to the iperf in a first server, after the iperf in the first server receives the test instruction, test data are output, a network card in the first server packages the test data through FEC technology, then the packaged test data are sent to a network card of a second server through a switch, the network card of the second server unpacks the packaged test data through FEC technology to obtain the test data, after the iperf in the second server receives the test data, CRC is conducted on the test data, data with CRC errors are processed, test results are obtained and are output to the terminal, and then the terminal determines FEC performance of a target test network according to the test results.
In this embodiment, because the network card of the first server and the network card of the second server perform auto-negotiation with the first port and the second port, the switch sets the FEC modes of the first port and the second port to be the FEC on mode through the first mode setting instruction, and the network card of the first server and the network card of the second server automatically adjust their FEC modes to be the FEC on mode, so that the FEC technology is utilized in the transmission process of the test data among the first server, the switch and the second server, and the test result output by the second server based on the test data can be used as the basis for judging the FEC performance of the target test network. The method for realizing FEC performance test of the target test network by sending the first mode setting instruction and the test instruction to the target test network has higher universality compared with the traditional technology.
In one embodiment, the mode setting instruction includes a second mode setting instruction, where the second mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be an FEC off mode, receive a test result output by the second server based on the test data, and determine, according to the test result, network performance of the target test network, where the method includes: and receiving a test result output by the second server based on the test data, and determining the network card transmission performance of the target test network according to the test result.
Illustratively, the switch is a Mellanox and the second mode setting instruction is "fec-override no-fec force".
Optionally, the terminal remotely logs in the control module of the switch, sends a second mode setting instruction to the control module, and after receiving the second mode setting instruction, the control module sets the FEC modes of the first port and the second port to be FEC closing modes according to the second mode setting instruction. The network card of the first server and the network card of the second server respectively carry out auto-negotiation with the first port and the second port, and the self FEC mode is automatically adjusted to be the FEC closing mode according to the auto-negotiated FEC closing mode.
The method comprises the steps that a terminal sends a test instruction to the iporf in a first server, after the test instruction is received by the iporf in the first server, test data are output, a network card in the first server does not carry out FEC technology packaging on the test data, namely ordinary packaging, then the packaged test data are sent to a network card of a second server through a switch, the network card of the second server unpacks the packaged test data, namely ordinary unpacking, the test data are obtained, CRC is carried out on the test data after the test data are received by the iporf in the second server, the data with CRC errors are processed, test results are obtained and output to the terminal, and then the terminal determines the transmission performance of the network card of a target test network according to the test results.
In this embodiment, because the network card of the first server and the network card of the second server perform auto-negotiation with the first port and the second port, the switch sets the FEC mode of the first port and the FEC mode of the second port to be the FEC off mode through the second mode setting instruction, and the network card of the first server and the network card of the second server automatically adjust the FEC mode of the network card of the first server to be the FEC off mode, so that the problem that whether packet loss occurs in the transmission process of the test data among the first server, the switch and the second server is mainly dependent on the transmission performance of the network card in the first server and the network card in the second server, and the test result output by the second server based on the test data can be used as a basis for judging the network card transmission performance of the target test network. The network card transmission performance of the target test network is tested by sending the second mode setting instruction and the test instruction to the target test network, and compared with the prior art, the network card transmission performance testing method has higher universality.
In one embodiment, the test instruction carries a test duration, where the test duration is used to instruct the first server to continuously send test data to the second server through the switch during the test duration.
The test instruction sent to the first server is "iperf-c IP-t", where t represents a test duration in microseconds, which may be set as needed.
Optionally, after the FEC mode of the general network card is turned on, a long time of testing is required to determine the FEC performance of the general network card, for example, if a first mode setting instruction is sent to the switch, the test instruction sent to the first server may be "iperf-c IP-43200"; if the second mode setting instruction is sent to the switch, the test instruction sent to the first server may be "iperf-c IP-100".
In one embodiment, the test result includes a Cyclic Redundancy Check (CRC) error count, and determining network performance of the target test network according to the test result includes: and determining the network performance of the target test network according to the CRC error reporting number and a preset threshold value.
Illustratively, after the test data is received by the iperf in the second server, the test data is subjected to CRC, and the number of "CRC ERROR", that is, the number of CRC ERRORs, is counted after outputting or marking "CRC ERROR" for the data of the CRC ERRORs.
Optionally, if the FEC performance of the target test network is tested, the preset threshold is 0, that is, after the first mode setting instruction is sent to the switch and the test instruction carrying the test duration is sent to the first server, if the number of CRC errors received from the second server is 0, it indicates that the FEC performance of the target test network is good, that is, the FEC performance of the target test network passes the test, or else the FEC performance of the target test network does not pass the test.
Optionally, if the FEC performance of the target test network is tested, the preset threshold is determined according to the type of the network card, for example, the preset threshold corresponding to the 25G network card is 250, the preset threshold corresponding to the 100G (4×25G) network card is 1000, and the preset threshold corresponding to the 100G (2×50G) network card is 100000. Namely, after a first mode setting instruction is sent to the switch and a test instruction carrying test duration is sent to the first server, if the number of CRC errors is smaller than 250 for the 25G network card, the network card transmission performance of the target test network is good; for a 100G (4 x 25G) network card, if the number of CRC errors is smaller than 1000, the network card transmission performance of the target test network is good; for a 100G (2 x 50G) network card, if the number of CRC errors is less than 100000, the network card transmission performance of the target test network is good, namely, the test is passed, otherwise, the test is not passed.
In this embodiment, the method of determining the network performance of the target test network according to the number of CRC errors and the preset threshold has the advantage of simplicity and effectiveness.
In one embodiment, before sending the test instruction to the first server, the method further comprises: respectively sending verification instructions to the first server and the second server, wherein the verification instructions are used for indicating the first server and the second server to respectively output negotiation results after auto-negotiation with the switch; correspondingly, sending a test instruction to the first server, including: after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port, a test instruction is sent to the first server.
The Linux OS operating system is installed on the first server and the second server, so that the FEC mode of the network card can be directly checked by using a etkool tool carried by the Linux OS operating system, and specifically, the FEC modes of the first server and the second server can be checked by using a "etkool-show-FEC ethx" verification instruction.
Optionally, after sending the first mode setting instruction to the switch, then sending the verification instruction to the first server and the second server respectively, if the FEC modes of the first server and the second server are both the FEC on mode, which indicates that the first server and the second server auto-negotiate the FEC on mode of the first port and the second port of the switch respectively, then sending the test instruction to the first server.
Optionally, after sending the second mode setting instruction to the switch, then sending the verification instruction to the first server and the second server respectively, if the FEC modes of the first server and the second server are both the FEC closing mode, which indicates that the first server and the second server auto-negotiate the FEC closing mode of the first port and the second port of the switch respectively, then sending the test instruction to the first server.
In this embodiment, verification instructions are sent to the first server and the second server respectively, so as to ensure that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port, and ensure that corresponding test results are obtained in different FEC modes, thereby ensuring accurate determination of test results for judging FEC performance and network card transmission performance.
In summary, as shown in fig. 3, a flow chart of another performance testing method is provided, which is a most detailed embodiment of the present application. The network performance test of the target test network is divided into two aspects, namely FEC performance test and network card transmission performance test, wherein the network card in the first server is in communication connection with the switch through a first port of the switch, and the network card in the second server is in communication connection with the switch through a second port of the switch:
(1) For FEC performance testing:
step S1, a first mode setting instruction is sent to a switch in a target test network, the first mode setting instruction is used for instructing the switch to set the FEC modes of a first port and a second port to be FEC on mode,
Step S2, the first server and the second server respectively send verification instructions, and the verification instructions are used for indicating the first server and the second server to respectively output negotiation results after auto-negotiation with the switch.
Step S3, after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC starting mode of the first port and the second port, a test instruction carrying test duration is sent to the first server, and the test instruction carrying test duration is used for indicating the first server to continuously send test data to the second server in the test duration through the switch.
And S4, receiving the number of CRC errors output by the second server based on the test data, if the number of CRC errors is 0, the FEC performance of the target test network passes the test, otherwise, the test fails.
(2) For network card transmission performance test:
step S1, a second mode setting instruction is sent to a switch in the target test network, the second mode setting instruction is used for instructing the switch to set the FEC mode of the first port and the second port to be an FEC closing mode,
step S2, the first server and the second server respectively send verification instructions, and the verification instructions are used for indicating the first server and the second server to respectively output negotiation results after auto-negotiation with the switch.
Step S3, after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC closing mode of the first port and the second port, a test instruction carrying test duration is sent to the first server, and the test instruction carrying test duration is used for indicating the first server to continuously send test data to the second server in the test duration through the switch.
And S4, receiving the CRC error number output by the second server based on the test data, and if the CRC error number is smaller than a preset threshold, the network card transmission performance of the target test network passes the test, otherwise, the test fails, wherein the preset threshold is determined according to the type of the network card.
The application can realize FEC performance test by sending the first mode setting instruction and the test instruction to the target test network, and can realize network card transmission performance test by sending the second mode setting instruction and the test instruction.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a performance testing device for realizing the performance testing method. The implementation of the solution provided by the device is similar to that described in the above method, so the specific limitation of one or more embodiments of the performance testing device provided below may be referred to above for limitation of the performance testing method, and will not be repeated here.
In one embodiment, as shown in fig. 4, there is provided a block diagram of a performance testing apparatus, the performance testing apparatus comprising: a first sending module 401, a second sending module 402, and a determining module 403, wherein:
a first sending module 401, configured to send a mode setting instruction to a switch in a target test network; the target test network comprises an exchanger, a first server and a second server, wherein a network card in the first server is in communication connection with the exchanger through a first port of the exchanger, and a network card in the second server is in communication connection with the exchanger through a second port of the exchanger; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction.
The second sending module 402 is configured to send a test instruction to the first server, where the test instruction is configured to instruct the first server to send test data to the second server through the switch.
And the determining module 403 is configured to receive a test result output by the second server based on the test data, and determine network performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a first mode setting instruction, where the first mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be FEC on mode, and the determining module 403 is further configured to receive a test result output by the second server based on the test data, and determine FEC performance of the target test network according to the test result.
In one embodiment, the mode setting instruction includes a second mode setting instruction, where the second mode setting instruction is configured to instruct the switch to set the FEC modes of the first port and the second port to be FEC off mode, and the determining module 403 is further configured to receive a test result output by the second server based on the test data, and determine the network card transmission performance of the target test network according to the test result.
In one embodiment, the test result includes a cyclic redundancy check CRC error number, and the determining module 403 is specifically configured to determine the network performance of the target test network according to the CRC error number and a preset threshold.
In one embodiment, the device further includes a third sending module, where the third sending module is configured to send a verification instruction to the first server and the second server, where the verification instruction is configured to instruct the first server and the second server to output negotiation results after auto-negotiation with the switch, respectively;
correspondingly, the second sending module 402 is specifically configured to send a test instruction to the first server after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port.
In one embodiment, the test instruction carries a test duration, where the test duration is used to instruct the first server to continuously send test data to the second server through the switch during the test duration.
The various modules in the performance testing apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a performance testing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of performance testing, the method comprising:
sending a mode setting instruction to a switch in a target test network; the target test network comprises the switch, a first server and a second server, wherein a network card in the first server is in communication connection with the switch through a first port of the switch, and a network card in the second server is in communication connection with the switch through a second port of the switch; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction;
Sending a test instruction to the first server, wherein the test instruction is used for instructing the first server to send test data to the second server through the switch;
and receiving a test result output by the second server based on the test data, and determining the network performance of the target test network according to the test result.
2. The method of claim 1, wherein the mode setting instruction includes a first mode setting instruction, the first mode setting instruction being configured to instruct the switch to set the FEC modes of the first port and the second port to an FEC on mode, the receiving the test result output by the second server based on the test data, and determining the network performance of the target test network according to the test result, including:
and receiving a test result output by the second server based on the test data, and determining the FEC performance of the target test network according to the test result.
3. The method of claim 1, wherein the mode setting instructions include a second mode setting instruction for instructing the switch to set the FEC modes of the first port and the second port to an FEC off mode, the receiving the test result output by the second server based on the test data, and determining the network performance of the target test network according to the test result, comprising:
And receiving a test result output by the second server based on the test data, and determining the network card transmission performance of the target test network according to the test result.
4. A method according to any of claims 1-3, wherein the test result comprises a cyclic redundancy check, CRC, error count, and wherein the determining the network performance of the target test network based on the test result comprises:
and determining the network performance of the target test network according to the CRC error number and a preset threshold value.
5. A method according to any of claims 1-3, wherein prior to said sending of test instructions to said first server, said method further comprises:
respectively sending verification instructions to the first server and the second server, wherein the verification instructions are used for indicating the first server and the second server to respectively output negotiation results after auto-negotiation with the switch;
correspondingly, the sending the test instruction to the first server includes:
and after the negotiation result indicates that the first server and the second server auto-negotiate to the FEC mode of the first port and the second port, sending a test instruction to the first server.
6. The method of claim 5, wherein the test instruction carries a test duration, the test duration being used to instruct the first server to send the test data to the second server for the test duration through the switch.
7. A performance testing apparatus, the apparatus comprising:
the first sending module is used for sending a mode setting instruction to a switch in the target test network; the target test network comprises the switch, a first server and a second server, wherein a network card in the first server is in communication connection with the switch through a first port of the switch, and a network card in the second server is in communication connection with the switch through a second port of the switch; the mode setting instruction is used for instructing the switch to set the FEC modes of the first port and the second port according to the mode setting instruction;
the second sending module is used for sending a test instruction to the first server, and the test instruction is used for indicating the first server to send test data to the second server through the switch;
And the determining module is used for receiving the test result output by the second server based on the test data and determining the network performance of the target test network according to the test result.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310555725.6A 2023-05-16 2023-05-16 Performance test method, apparatus, device, storage medium, and program product Pending CN116614409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310555725.6A CN116614409A (en) 2023-05-16 2023-05-16 Performance test method, apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310555725.6A CN116614409A (en) 2023-05-16 2023-05-16 Performance test method, apparatus, device, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN116614409A true CN116614409A (en) 2023-08-18

Family

ID=87675905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310555725.6A Pending CN116614409A (en) 2023-05-16 2023-05-16 Performance test method, apparatus, device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN116614409A (en)

Similar Documents

Publication Publication Date Title
CN103164523A (en) Inspection method, device and system of data consistency inspection
US10725861B2 (en) Error correction code memory security
CN108881454B (en) File transmission method, mobile terminal and storage medium
CN112367680B (en) External communication test method and device based on intelligent ammeter and computer equipment
CN112380046B (en) Calculation result verification method, system, device, equipment and storage medium
CN104914815A (en) Processor monitoring method, device and system
CN112506798A (en) Performance test method, device, terminal and storage medium of block chain platform
CN112073444A (en) Data set processing method and device and server
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
CN116930727B (en) Chip detection method based on circuit board
US10489350B2 (en) Data compression with inline compression metadata
CN104536884A (en) Code testing method and device
CN112395129A (en) Storage verification method and device, computing chip, computer equipment and storage medium
CN116614409A (en) Performance test method, apparatus, device, storage medium, and program product
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
US20210182135A1 (en) Method and apparatus for fault prediction and management
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
CN115622929B (en) Remote direct data access RDMA (remote direct memory Access) test method and related device
CN115114062B (en) Fault detection method, device, equipment and storage medium for instruction word line
US20240104085A1 (en) Computer system and method for evaluating integrity and parsing of a file system and parsing implementation
CN116737457B (en) Data verification method based on distributed storage
CN113076283B (en) File consistency verification method and device and electronic equipment
CN117240578A (en) Flow integrity verification method and device, computer equipment and storage medium thereof
CN117118740A (en) Network security analysis method, device, communication equipment and storage medium
CN116760745A (en) Network exception handling method, apparatus, device, storage medium and program product

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