CN112882773A - Network performance detection method, device, test terminal and storage medium - Google Patents

Network performance detection method, device, test terminal and storage medium Download PDF

Info

Publication number
CN112882773A
CN112882773A CN202110470609.5A CN202110470609A CN112882773A CN 112882773 A CN112882773 A CN 112882773A CN 202110470609 A CN202110470609 A CN 202110470609A CN 112882773 A CN112882773 A CN 112882773A
Authority
CN
China
Prior art keywords
test
nodes
network performance
node information
tested
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
Application number
CN202110470609.5A
Other languages
Chinese (zh)
Other versions
CN112882773B (en
Inventor
刘永恒
陈鸿基
丁振兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
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 Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202110470609.5A priority Critical patent/CN112882773B/en
Publication of CN112882773A publication Critical patent/CN112882773A/en
Application granted granted Critical
Publication of CN112882773B publication Critical patent/CN112882773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network performance detection method, which is applied to a test end and comprises the steps of receiving first starting parameters sent by a plurality of nodes to be tested in preset test nodes; obtaining result starting time based on the first starting parameter and a second starting parameter of the test end; based on the selected node information of the plurality of nodes to be tested, the result starting time is sent to the plurality of nodes to be tested, so that when the result starting time is reached, the plurality of nodes to be tested simultaneously execute a target test script to obtain a network performance test result; and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result. The invention also discloses a network performance detection device, a test end and a computer readable storage medium. By utilizing the network performance detection method, the accuracy rate of obtaining the test report is higher.

Description

Network performance detection method, device, test terminal and storage medium
Technical Field
The present invention relates to the field of network detection technologies, and in particular, to a network performance detection method, apparatus, test end, and computer-readable storage medium.
Background
When the IO500 test is performed under a bare metal cluster of a cloud platform, the health state of software and hardware of each node (physical node and virtual node) in the cluster and the network performance of the cluster both have great influence on the IO500 test score. Therefore, before the IO500 test is performed, the state, the network bandwidth and the delay of each node need to be detected, the problem node or the problem network needs to be checked, useless tests on the problem node and the problem network are prevented, and computing resources are wasted.
Meanwhile, in order to exploit the bandwidth performance of 100G networks, more and more clusters (or cloud platforms) start to utilize network devices based on the roce (rdma over converted ethernet) network card for data transmission. Generally, in order to efficiently utilize the characteristics of the RoCE network card, masks of the network card and the switch are set to be 30 bits to form point-to-point communication, and the tasks of whole network switching are finished by the switch, so that the forwarding pressure of the nodes is relieved, and each node can obtain more effective computing resources.
In the related art, a network performance detection technology is disclosed, in which a network performance test result of nodes and nodes is obtained by performing data transmission on each two nodes to be tested in a network cluster, and the network performance test result is determined as the network performance test result of the network cluster.
However, the accuracy of the network performance test result of the network cluster obtained by adopting the existing network performance detection technology is low.
Disclosure of Invention
The invention mainly aims to provide a network performance detection method, a network performance detection device, a network performance detection terminal and a computer readable storage medium, and aims to solve the technical problem that the accuracy of obtaining a network performance test result of a network cluster is low by adopting the existing network performance detection technology in the prior art.
In order to achieve the above object, the present invention provides a network performance detection method, which is applied to a test end, and the method includes the following steps:
receiving first starting parameters sent by a plurality of nodes to be tested in preset testing nodes;
obtaining result starting time based on the first starting parameter and a second starting parameter of the test end;
based on the selected node information of the plurality of nodes to be tested, the result starting time is sent to the plurality of nodes to be tested, so that when the result starting time is reached, the plurality of nodes to be tested simultaneously execute a target test script to obtain a network performance test result;
and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result.
Optionally, before the step of receiving the first start parameter sent by the multiple nodes to be tested in the preset testing node, the method further includes:
obtaining a test configuration file based on the selected node information;
and sending the test configuration file to the multiple nodes to be tested based on the selected node information so that the multiple nodes to be tested configure a preset test script by using the test configuration file to obtain the target test script, and acquiring the first starting parameter after the target test script is obtained.
Optionally, the preset test node is divided into a first node and a second node; before the step of obtaining a test configuration file based on the selected node information, the method further includes:
based on the node information of the first node, communicating with the first node to obtain first selected node information corresponding to a first selected node meeting a first preset condition in the first node;
sending a test instruction to the first selected node based on the first selected node information, so that the first selected node communicates with the second node based on the test instruction to obtain second selected node information of a second selected node meeting a second preset condition in the second node;
receiving the second selected node information fed back by the first selected node;
merging the first selected node information and the second selected node information to obtain preselected node information;
and obtaining the selected node information based on the preselected node information.
Optionally, before the step of obtaining the selected node information based on the preselected node information, the method further includes:
sending a system environment detection script to a preselected node corresponding to the preselected node information in the preset test nodes so that the preselected node executes the system environment detection script to obtain a system environment detection result;
receiving the system environment detection result fed back by the preselected node;
obtaining reselected node information based on the system environment detection result and the preselected node information;
the step of obtaining the selected node information based on the preselected node information comprises:
and obtaining the selected node information based on the reselected node information.
Optionally, the step of obtaining the selected node information based on the reselected node information includes:
sending a basic hardware detection script to a reselecting node corresponding to the reselecting node information in the preset test nodes so that the reselecting node executes the basic hardware detection script to obtain a basic hardware detection result;
receiving the basic hardware detection result fed back by the reselecting node;
and obtaining the selected node information based on the basic hardware detection result and the reselected node information.
Optionally, when receiving the network performance test result fed back by the multiple nodes to be tested, the step of obtaining a detection report based on the network performance test result includes:
when the network performance test results fed back by the nodes to be tested are received, obtaining expected test results;
comparing the network performance test result with the expected test result to obtain a comparison result;
and obtaining the detection report based on the comparison result.
Optionally, the preset test script is a UCX-based test script, and the preset test node and the test end are both based on RoCE.
In addition, in order to achieve the above object, the present invention further provides a network performance detecting apparatus, which is applied to a testing end, and the apparatus includes:
the receiving module is used for receiving first starting parameters sent by a plurality of nodes to be tested in the preset testing nodes;
a first obtaining module, configured to obtain result starting time based on the first starting parameter and a second starting parameter of the test end;
the sending module is used for sending the result starting time to the multiple nodes to be tested based on the selected node information of the multiple nodes to be tested so as to enable the multiple nodes to be tested to execute a target test script simultaneously when the result starting time is reached, and thus a network performance test result is obtained;
and the second obtaining module is used for obtaining a detection report based on the network performance test result when the network performance test result fed back by the plurality of nodes to be tested is received.
In addition, in order to achieve the above object, the present invention further provides a testing terminal, including: a memory, a processor and a network performance detection program stored on the memory and running on the processor, the network performance detection program when executed by the processor implementing the steps of the network performance detection method as claimed in any one of the above.
Furthermore, to achieve the above object, the present invention also provides a computer-readable storage medium having a network performance detection program stored thereon, where the network performance detection program, when executed by a processor, implements the steps of the network performance detection method according to any one of the above.
The technical scheme of the invention provides a network performance detection method, which is applied to a test end and comprises the steps of receiving first starting parameters sent by a plurality of nodes to be tested in preset test nodes; obtaining result starting time based on the first starting parameter and a second starting parameter of the test end; based on the selected node information of the plurality of nodes to be tested, the result starting time is sent to the plurality of nodes to be tested, so that when the result starting time is reached, the plurality of nodes to be tested simultaneously execute a target test script to obtain a network performance test result; and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result. The existing network performance detection technology carries out network performance test on some two nodes to be tested in preset test nodes to obtain network performance test results of the two nodes to be tested, and determines the test results as the network performance test results of a network cluster corresponding to the preset test nodes; in the invention, the test end sends the result starting time to the plurality of nodes to be tested, so that the plurality of nodes to be tested execute the target test script simultaneously when the result starting time is reached, so as to obtain the network performance test result, and the network performance test result can reflect the network performance when all the nodes to be tested in the network cluster corresponding to the plurality of nodes to be tested are concurrent, so that the accuracy of the network performance test result is higher.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram of a test end of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a network performance detection method according to the present invention;
fig. 3 is a block diagram of a network performance detecting apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a test end structure of a hardware operating environment according to an embodiment of the present invention.
The test terminal may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a Mobile Station (MS), or the like. The test terminal may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.
Typically, the test end includes: at least one processor 301, a memory 302, and a network performance detection program stored on the memory and executable on the processor, the network performance detection program configured to implement the steps of the network performance detection method as previously described.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. Processor 301 may also include an AI (Artificial Intelligence) processor for processing relevant network performance measurement method operations such that the network performance measurement method model may be trained and learned autonomously, improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the network performance detection method provided by the method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the test end, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a network performance detection program is stored on the computer-readable storage medium, and when the network performance detection program is executed by a processor, the network performance detection program implements the steps of the network performance detection method described above. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. Determining by way of example, program instructions may be deployed to be executed on one test side or on multiple test sides at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the hardware structure, the embodiment of the network performance detection method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a network performance detection method according to the present invention, where the method is applied to a test end, and the method includes the following steps:
step S11: receiving first starting parameters sent by a plurality of nodes to be tested in preset testing nodes.
It should be noted that the execution main body of the invention is a testing end, the testing end is provided with a network performance detection program, and when the testing end executes the network performance detection program, the network performance detection method of the invention is realized.
Generally, the test end is a main control computer of a target network cluster (target network topology structure), and the main control computer can configure each node and switch in the target network cluster; the switches may comprise a root switch and sub-switches, for example, a target network cluster comprising 512 nodes, each 32 nodes connected to the same sub-switch, 16 sub-switches in total, 16 sub-switches connected to one root switch, the structure of the target network cluster also being referred to as a fat tree structure. The preset test node and the test end can be RoCE-based electronic equipment.
Further, before step S11, the method further includes: obtaining a test configuration file based on the selected node information; and sending the test configuration file to the multiple nodes to be tested based on the selected node information so that the multiple nodes to be tested configure a preset test script by using the test configuration file to obtain the target test script, and acquiring the first starting parameter after the target test script is obtained.
It should be noted that the node information of the present invention mainly refers to a network address (IP address) of a node, manages the node information, and mainly manages the network address of the node, where one node to be tested corresponds to one selected node information, and the node information is usually directly obtained by a testing end and stored in a memory of the testing end.
When the target network cluster further includes a switch, the selected node information of one node to be tested includes a network address of the node to be tested, location information of a sub-switch where the node to be tested is located (for example, the node is node number 6 of the sub-switch), location information of a root switch where the sub-switch is located (for example, the sub-switch is sub-switch number 14 of the root switch), and the like. And obtaining a test configuration file based on all selected node information of all nodes to be tested.
In order to test a target network cluster, nodes to be tested need to be divided into a test sending end and a test receiving end so as to obtain a plurality of pairs of test groups, and the test sending end and the test receiving end in one test group are usually nodes under different sub-switches; usually, the transmission paths corresponding to the test sending end and the test receiving end in one test group are the farthest paths in the target network cluster.
For example, the target network cluster comprises 512 nodes, 32 nodes are connected with the same sub-switch, and 16 sub-switches are provided, namely sub-switches 1 to 16; the test sending end in one test group is a 14 # node under the 1 # sub-switch, and the corresponding test receiving end is a 9 # node corresponding to the 8 # sub-switch.
It can be understood that the test end divides the selected node information into two groups according to the selected node information: testing sending end node information corresponding to a sending end and testing receiving end node information corresponding to a receiving end; the simultaneous test configuration files include two types of configuration files: the sending end configuration file and the receiving end configuration file, generally, the sending end configuration file of the testing sending end can be the same, and the receiving end configuration file of the testing receiving end can be the same. And sending the sending end configuration file to the test sending end based on the sending end node information, and sending the receiving end configuration file to the test receiving end based on the receiving end node information.
Specifically, a preset test script is preset at both the test sending end and the test receiving end, and the preset test script can be a test script based on UCX; when the test sending end receives the sending end configuration file, the preset test script is configured by the sending end configuration file to obtain the configured test sending end, the configured test sending end can execute the function of the sending end, and meanwhile, when the test receiving end receives the receiving end configuration file, the preset test script is configured by the receiving end configuration file to obtain the configured test receiving end, and the configured test receiving end can execute the function of the receiving end. It will be appreciated that data communication may be performed between the same test group, and not between different test groups.
In addition, after the target test script is obtained by the multiple nodes to be tested (the test sending end and the test receiving end), the multiple nodes to be tested need to obtain respective first start information, and the first start information includes the timing start time of each node to be tested.
Further, the preset test node is divided into a first node and a second node; before the step of obtaining a test configuration file based on the selected node information, the method further includes: based on the node information of the first node, communicating with the first node to obtain first selected node information corresponding to a first selected node meeting a first preset condition in the first node; sending a test instruction to the first selected node based on the first selected node information, so that the first selected node communicates with the second node based on the test instruction to obtain second selected node information of a second selected node meeting a second preset condition in the second node; receiving the second selected node information fed back by the first selected node; merging the first selected node information and the second selected node information to obtain preselected node information; and obtaining the selected node information based on the preselected node information.
It should be noted that all the preset test nodes in the preset test nodes are not to-be-tested nodes to be tested, and the to-be-tested nodes need to be screened out from the preset test nodes.
Sending a test instruction to the first node through the test end through the steps; for any first node, when the first node receives a test instruction or receives the test instruction within a preset time (usually 3 s), the first node is a first selected node (the first preset condition is that the test instruction is received or the test instruction is received within the preset time), and the first selected node sends a test packet to all second nodes based on the test instruction, and when one second node receives the test packet or receives the test packet within the preset time, the second node is a second selected node (the second preset condition is that the test packet is received or the test packet is received within the preset time). And traversing all the first nodes and the second nodes to obtain all the first selected nodes and the second selected nodes, screening the node information of the first selected nodes out of the node information of the first nodes, and screening the node information of the second selected nodes out of the node information of the second nodes to obtain final preselected node information.
Generally, after a first node communicates with a testing end, the obtained feedback information content may be: experiment id, node IP, network connectivity test, pass, None, and after a first node communicates with a second node, the obtained feedback information content may be: experiment id, node IP, network connectivity test, fail, failure information.
It can be understood that the first selected node satisfying the first preset condition is a first node capable of communicating with the test end, and the second selected node satisfying the second preset condition is a second node capable of communicating with the first selected node. The node information of the first node except the first selected node information can be deleted and no longer has a utilization value, and the node information of the second node except the second selected node information can be deleted and no longer has a utilization value. The node information and the corresponding feedback content of the first node which does not satisfy the first preset condition may also be stored, and the node information and the corresponding feedback content of the second node which does not satisfy the second preset condition may also be stored, so as to obtain the first feedback information.
Further, all the preselected nodes in the preselected nodes are not to-be-tested nodes, and the reselected nodes need to be screened out from the preselected nodes, and the information corresponding to the reselected nodes is reselected node information, wherein the screening step is as follows:
before the step of obtaining the selected node information based on the preselected node information, the method further comprises: sending a system environment detection script to a preselected node corresponding to the preselected node information in the preset test nodes so that the preselected node executes the system environment detection script to obtain a system environment detection result; receiving the system environment detection result fed back by the preselected node; obtaining reselected node information based on the system environment detection result and the preselected node information; correspondingly, the step of obtaining the selected node information based on the preselected node information comprises: and obtaining the selected node information based on the reselected node information.
At this time, the preselected node is required to execute the system environment detection script to obtain a system environment detection result, and generally, the system environment detection result may include detection results of a plurality of objects such as an operating system type, a kernel version, and a RoCE environment. When all the detection objects are normal, the system environment detection result is passing detection, and when an abnormal object exists in the detection objects, the system environment detection result is failing detection. When the system environment detection result of one preselected node is passing detection, the preselected node is determined as the reselected node, the corresponding preselected node information is also determined as the reselected node information, and when the system environment detection result of one preselected node is failing detection, the preselected node information corresponding to the preselected node is not valuable, and is deleted. Meanwhile, when the system environment detection result of the preselected node is the failed detection, the node information of the preselected node which fails to pass the detection and the corresponding system environment detection result can be stored as the second feedback information.
Generally, the system environment detection result is expressed as: experiment id, node IP, system environment detection, pass and None; when the system environment detection result is failed, the detection result is expressed as: experiment id, node IP, system environment detection, fail, failure information.
Further, all reselected nodes in the reselected nodes are not to-be-tested nodes, the to-be-tested nodes need to be screened out, information corresponding to the to-be-tested nodes is selected node information, and the screening step is as follows:
sending a basic hardware detection script to a reselecting node corresponding to the reselecting node information in the preset test nodes so that the reselecting node executes the basic hardware detection script to obtain a basic hardware detection result; receiving the basic hardware detection result fed back by the reselecting node; and obtaining the selected node information based on the basic hardware detection result and the reselected node information.
At this time, the reselected node needs to execute the basic hardware detection script to obtain a basic hardware detection result, and the basic hardware detection result may generally include detection results of multiple objects such as a cpu, a memory, a hard disk, and a network card. When all the detection objects are normal, the detection result of the basic hardware is passing detection, and when the abnormal object exists in the detection objects, the detection result of the basic hardware is failing detection. When the basic hardware detection result of a certain reselected node is passing detection, the reselected node is determined as a node to be tested, the corresponding reselected node information is also determined as selected node information, and when the basic hardware detection result of a certain reselected node is failing detection, the reselected node information corresponding to the reselected node is not valuable, and is deleted. The reselected node information that fails to pass the detection and the corresponding basic hardware detection result may also be stored as the third feedback information.
In general, the basic hardware detection result is expressed as: experiment id, node IP, basic hardware detection, pass and None; when the detection result of the basic hardware is failed, the detection result is expressed as: experiment id, node IP, basic hardware detection, fail, failure information.
At this time, the obtained nodes to be tested can normally communicate, the system environment detection is passed, the basic hardware detection is passed, the obtained nodes can be used as effective nodes, and the network performance test is continued.
Step S12: and obtaining result starting time based on the first starting parameter and the second starting parameter of the test end.
It should be noted that the first start parameter includes a first timing start time of each node to be tested, the second start parameter includes a second timing start time of the testing end, and the first timing start time and the second timing start time are required to be processed to obtain a common result start time, that is, when a result, that is, the start time arrives, all the nodes to be tested can execute the target test script, so as to test the network performance when all the nodes to be tested are concurrent. In the testing end, a second starting parameter may be prestored, where the second timing starting time of the second starting parameter is a preset starting time for the testing end to execute the network performance detection method of the present invention, and the preset starting time may be a time set by a user based on a requirement, which is not limited in the present invention.
Generally, the test end judges whether a first timing starting time of some (or a certain) node to be tested exists in the first starting parameter; if the result starting time does not exist, the current time (namely the second starting time in the second starting parameter) is determined as the result starting time, and if the result starting time exists, the delay time and the current time are added to obtain the result starting time, wherein the delay time is the time difference between the first timing starting time and the current time. And simultaneously, all the nodes to be tested are blocked, and the target test script is started by all the nodes to be tested at the same time until the result starting time is reached.
Step S13: and sending the result starting time to the multiple nodes to be tested based on the selected node information of the multiple nodes to be tested, so that the multiple nodes to be tested execute a target test script simultaneously when the result starting time is reached, and a network performance test result is obtained.
Step S14: and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result.
It should be noted that the detection report may include the first feedback information, the second feedback information, and the third feedback information in addition to the network performance test result. It can be understood that the detection report may include a network performance test result of the node to be tested in the target network cluster, and may further include fault information of the node not to be tested in the target network cluster, where the fault information indicates that the node not to be tested fails to communicate when the fault information is the first feedback information, indicates that the system environment detection of the node not to be tested fails when the fault information is the second feedback information, and indicates that the basic hardware detection of the node not to be tested fails when the fault information is the third feedback information.
Further, step S14 further includes: when the network performance test results fed back by the nodes to be tested are received, obtaining expected test results; comparing the network performance test result with the expected test result to obtain a comparison result; and obtaining the detection report based on the comparison result.
At this time, the detection report further includes a comparison result, for example, the comparison result indicates that the network performance of the node to be tested is lower than expected, or the network performance of the node to be tested is higher than expected, etc.; wherein the expected test result is determined based on the specific situation of the target network cluster, and the invention is not limited.
The technical scheme of the invention provides a network performance detection method, which is applied to a test end and comprises the steps of receiving first starting parameters sent by a plurality of nodes to be tested in preset test nodes; obtaining result starting time based on the first starting parameter and a second starting parameter of the test end; based on the selected node information of the plurality of nodes to be tested, the result starting time is sent to the plurality of nodes to be tested, so that when the result starting time is reached, the plurality of nodes to be tested simultaneously execute a target test script to obtain a network performance test result; and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result. The existing network performance detection technology carries out network performance test on some two nodes to be tested in preset test nodes to obtain network performance test results of the two nodes to be tested, and determines the test results as the network performance test results of a network cluster corresponding to the preset test nodes; in the invention, the test end sends the result starting time to the plurality of nodes to be tested, so that the plurality of nodes to be tested execute the target test script simultaneously when the result starting time is reached, so as to obtain the network performance test result, and the network performance test result can reflect the network performance when all the nodes to be tested in the network cluster corresponding to the plurality of nodes to be tested are concurrent, so that the accuracy of the network performance test result is higher.
Meanwhile, the detection method only tests the nodes to be tested in the target network cluster (namely the effective nodes, the effective nodes have normal network communication, the software environment detection is passed, and the basic hardware detection is passed), and the invalid nodes are not required to be tested, so that the test time is saved, the test efficiency is improved, the invalid network performance test result of the invalid nodes does not exist in the test report, and the accuracy of the test report is higher.
Referring to fig. 3, fig. 3 is a block diagram of a first embodiment of a network performance detecting apparatus according to the present invention, where the apparatus is applied to a testing end, and the apparatus includes:
the system comprises a receiving module 10, a sending module and a processing module, wherein the receiving module is used for receiving first starting parameters sent by a plurality of nodes to be tested in preset testing nodes;
a first obtaining module 20, configured to obtain a result starting time based on the first starting parameter and the second starting parameter of the test end;
a sending module 30, configured to send the result starting time to the multiple nodes to be tested based on selected node information of the multiple nodes to be tested, so that when the result starting time arrives, the multiple nodes to be tested execute a target test script at the same time to obtain a network performance test result;
a second obtaining module 40, configured to, when receiving the network performance test result fed back by the multiple nodes to be tested, obtain a detection report based on the network performance test result.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network performance detection method is applied to a test end, and comprises the following steps:
receiving first starting parameters sent by a plurality of nodes to be tested in preset testing nodes;
obtaining result starting time based on the first starting parameter and a second starting parameter of the test end;
based on the selected node information of the plurality of nodes to be tested, the result starting time is sent to the plurality of nodes to be tested, so that when the result starting time is reached, the plurality of nodes to be tested simultaneously execute a target test script to obtain a network performance test result;
and when the network performance test result fed back by the plurality of nodes to be tested is received, obtaining a detection report based on the network performance test result.
2. The method of claim 1, wherein before the step of receiving the first initiation parameter sent by the plurality of nodes to be tested in the predetermined testing nodes, the method further comprises:
obtaining a test configuration file based on the selected node information;
and sending the test configuration file to the multiple nodes to be tested based on the selected node information so that the multiple nodes to be tested configure a preset test script by using the test configuration file to obtain the target test script, and acquiring the first starting parameter after the target test script is obtained.
3. The method of claim 2, wherein the predetermined test node is divided into a first node and a second node; before the step of obtaining a test configuration file based on the selected node information, the method further includes:
based on the node information of the first node, communicating with the first node to obtain first selected node information corresponding to a first selected node meeting a first preset condition in the first node;
sending a test instruction to the first selected node based on the first selected node information, so that the first selected node communicates with the second node based on the test instruction to obtain second selected node information of a second selected node meeting a second preset condition in the second node;
receiving the second selected node information fed back by the first selected node;
merging the first selected node information and the second selected node information to obtain preselected node information;
and obtaining the selected node information based on the preselected node information.
4. The method of claim 3, wherein said step of obtaining said selected node information based on said preselected node information is preceded by the step of:
sending a system environment detection script to a preselected node corresponding to the preselected node information in the preset test nodes so that the preselected node executes the system environment detection script to obtain a system environment detection result;
receiving the system environment detection result fed back by the preselected node;
obtaining reselected node information based on the system environment detection result and the preselected node information;
the step of obtaining the selected node information based on the preselected node information comprises:
and obtaining the selected node information based on the reselected node information.
5. The method of claim 4, wherein the step of obtaining the selected node information based on the reselected node information comprises:
sending a basic hardware detection script to a reselecting node corresponding to the reselecting node information in the preset test nodes so that the reselecting node executes the basic hardware detection script to obtain a basic hardware detection result;
receiving the basic hardware detection result fed back by the reselecting node;
and obtaining the selected node information based on the basic hardware detection result and the reselected node information.
6. The method of claim 5, wherein the step of obtaining a detection report based on the network performance test result when receiving the network performance test result fed back by the plurality of nodes to be tested comprises:
when the network performance test results fed back by the nodes to be tested are received, obtaining expected test results;
comparing the network performance test result with the expected test result to obtain a comparison result;
and obtaining the detection report based on the comparison result.
7. The method of claim 6, wherein the predetermined test script is a UCX-based test script, and wherein the predetermined test nodes and the test terminals are both RoCE-based.
8. A network performance detection apparatus, applied to a test end, the apparatus comprising:
the receiving module is used for receiving first starting parameters sent by a plurality of nodes to be tested in the preset testing nodes;
a first obtaining module, configured to obtain result starting time based on the first starting parameter and a second starting parameter of the test end;
the sending module is used for sending the result starting time to the multiple nodes to be tested based on the selected node information of the multiple nodes to be tested so as to enable the multiple nodes to be tested to execute a target test script simultaneously when the result starting time is reached, and thus a network performance test result is obtained;
and the second obtaining module is used for obtaining a detection report based on the network performance test result when the network performance test result fed back by the plurality of nodes to be tested is received.
9. A test tip, comprising: memory, a processor and a network performance detection program stored on the memory and running on the processor, the network performance detection program when executed by the processor implementing the steps of the network performance detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having a network performance detection program stored thereon, which when executed by a processor, implements the steps of the network performance detection method of any one of claims 1 to 7.
CN202110470609.5A 2021-04-29 2021-04-29 Network performance detection method, device, test terminal and storage medium Active CN112882773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110470609.5A CN112882773B (en) 2021-04-29 2021-04-29 Network performance detection method, device, test terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110470609.5A CN112882773B (en) 2021-04-29 2021-04-29 Network performance detection method, device, test terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112882773A true CN112882773A (en) 2021-06-01
CN112882773B CN112882773B (en) 2021-07-30

Family

ID=76040228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110470609.5A Active CN112882773B (en) 2021-04-29 2021-04-29 Network performance detection method, device, test terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112882773B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824613A (en) * 2021-09-22 2021-12-21 深圳创维数字技术有限公司 Network reliability test method, test system and storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937165A (en) * 1996-09-10 1999-08-10 Ganymede Software, Inc Systems, methods and computer program products for applications traffic based communications network performance testing
US6397359B1 (en) * 1999-01-19 2002-05-28 Netiq Corporation Methods, systems and computer program products for scheduled network performance testing
CN1725718A (en) * 2005-04-04 2006-01-25 杭州华为三康技术有限公司 Network QoS test method and system
CN1980159A (en) * 2005-12-08 2007-06-13 信息产业部电信传输研究所 Internet protocol network end-to-end performance monitoring system and method
CN101022374A (en) * 2007-03-06 2007-08-22 中兴通讯股份有限公司 Method and system for on-line testing data network quality
CN102118773A (en) * 2011-03-21 2011-07-06 华为技术有限公司 Method for detecting link connection state between network nodes and relevant device
CN103220715A (en) * 2013-04-28 2013-07-24 大唐移动通信设备有限公司 Method and device for reporting network performance testing result
CN104077222A (en) * 2014-07-03 2014-10-01 上海斐讯数据通信技术有限公司 Method for automated testing of wireless router throughput
CN104486167A (en) * 2014-12-31 2015-04-01 无锡儒安科技有限公司 Concurrence network performance and network trending direction testing method based on MESH network
CN104661246A (en) * 2015-03-10 2015-05-27 太仓市同维电子有限公司 Performance testing method and device of novel wireless network products
CN107368396A (en) * 2017-08-22 2017-11-21 北京计算机技术及应用研究所 A kind of automatization test system and method towards production domesticization computer
CN108234246A (en) * 2018-01-22 2018-06-29 郑州云海信息技术有限公司 A kind of method and system of multidirectional server network performance
CN109218136A (en) * 2018-09-30 2019-01-15 广州掌动智能科技有限公司 WIFI switching performance test method, device, computer equipment and storage medium
CN110572280A (en) * 2019-08-22 2019-12-13 北京新宇航星科技有限公司 network monitoring method and system
CN111130924A (en) * 2019-11-30 2020-05-08 苏州浪潮智能科技有限公司 Test method, test device and test equipment for Ethernet port of equipment
CN111585845A (en) * 2020-05-15 2020-08-25 苏州浪潮智能科技有限公司 Method, device and equipment for detecting network card node performance and readable medium
US20200304391A1 (en) * 2019-03-19 2020-09-24 Huawei Technologies Co., Ltd. Network Performance Detection Method and Related Apparatus
CN111817913A (en) * 2020-06-30 2020-10-23 北京红山信息科技研究院有限公司 Distributed network performance test method, system, server and storage medium
CN112653600A (en) * 2020-12-26 2021-04-13 苏州浪潮智能科技有限公司 Network card performance testing method and device based on USB network card and electronic equipment

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5937165A (en) * 1996-09-10 1999-08-10 Ganymede Software, Inc Systems, methods and computer program products for applications traffic based communications network performance testing
US6397359B1 (en) * 1999-01-19 2002-05-28 Netiq Corporation Methods, systems and computer program products for scheduled network performance testing
CN1725718A (en) * 2005-04-04 2006-01-25 杭州华为三康技术有限公司 Network QoS test method and system
CN1980159A (en) * 2005-12-08 2007-06-13 信息产业部电信传输研究所 Internet protocol network end-to-end performance monitoring system and method
CN101022374A (en) * 2007-03-06 2007-08-22 中兴通讯股份有限公司 Method and system for on-line testing data network quality
CN102118773A (en) * 2011-03-21 2011-07-06 华为技术有限公司 Method for detecting link connection state between network nodes and relevant device
CN103220715A (en) * 2013-04-28 2013-07-24 大唐移动通信设备有限公司 Method and device for reporting network performance testing result
CN104077222A (en) * 2014-07-03 2014-10-01 上海斐讯数据通信技术有限公司 Method for automated testing of wireless router throughput
CN104486167A (en) * 2014-12-31 2015-04-01 无锡儒安科技有限公司 Concurrence network performance and network trending direction testing method based on MESH network
CN104661246A (en) * 2015-03-10 2015-05-27 太仓市同维电子有限公司 Performance testing method and device of novel wireless network products
CN107368396A (en) * 2017-08-22 2017-11-21 北京计算机技术及应用研究所 A kind of automatization test system and method towards production domesticization computer
CN108234246A (en) * 2018-01-22 2018-06-29 郑州云海信息技术有限公司 A kind of method and system of multidirectional server network performance
CN109218136A (en) * 2018-09-30 2019-01-15 广州掌动智能科技有限公司 WIFI switching performance test method, device, computer equipment and storage medium
US20200304391A1 (en) * 2019-03-19 2020-09-24 Huawei Technologies Co., Ltd. Network Performance Detection Method and Related Apparatus
CN110572280A (en) * 2019-08-22 2019-12-13 北京新宇航星科技有限公司 network monitoring method and system
CN111130924A (en) * 2019-11-30 2020-05-08 苏州浪潮智能科技有限公司 Test method, test device and test equipment for Ethernet port of equipment
CN111585845A (en) * 2020-05-15 2020-08-25 苏州浪潮智能科技有限公司 Method, device and equipment for detecting network card node performance and readable medium
CN111817913A (en) * 2020-06-30 2020-10-23 北京红山信息科技研究院有限公司 Distributed network performance test method, system, server and storage medium
CN112653600A (en) * 2020-12-26 2021-04-13 苏州浪潮智能科技有限公司 Network card performance testing method and device based on USB network card and electronic equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
RIMVYDAS BANIULIS ET AL.: "《An Analysis of the Performance and Coordinates Time Series of CORS Network LitPOS》", 《 2017 BALTIC GEODETIC CONGRESS (BGC GEOMATICS)》 *
何冰慧: "《分布式应用系统性能测试》", 《万方智搜在线平台》 *
岳守春 等: "《局域网规划设计应用与实践》", 31 August 2015 *
李倩: "《基于SDN的端到端网络性能监测系统设计与实现》", 《万方智搜》 *
蒋涛等: "基于移动Agent网络性能测试系统模型的研究", 《长沙大学学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824613A (en) * 2021-09-22 2021-12-21 深圳创维数字技术有限公司 Network reliability test method, test system and storage medium
CN113824613B (en) * 2021-09-22 2023-04-18 深圳创维数字技术有限公司 Network reliability test method, test system and storage medium

Also Published As

Publication number Publication date
CN112882773B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
EP3965454A1 (en) Measurement method, configuration method, terminal, and network side device
CN111343699B (en) Icon display method and device, storage medium and electronic equipment
CN110831041B (en) Cell beam failure processing method, mobile communication terminal and network equipment
US11641606B2 (en) Resource configuration method, mobile terminal, network-side device, and medium
KR20210147051A (en) Measurement method, measurement configuration method, terminal and network device
US20220015002A1 (en) Transmission path selection method, information configuration method, terminal, and network device
KR20220076485A (en) Cell management method, cell management setting method, terminal and network-side device
US11800494B2 (en) State detection method and configuration method for network communication, terminal, and network device
KR20210103565A (en) Information instruction method, information acquisition method, terminal and network node
US20200351860A1 (en) Beam Failure Recovery Method And Terminal
CN112882773B (en) Network performance detection method, device, test terminal and storage medium
CN112351456A (en) Network connection method, device, storage medium and electronic equipment
CN112351097A (en) Device control method, device, sending end and storage medium
CN110381603A (en) A kind of accidental access method and terminal
US20230378767A1 (en) Charging control method and apparatus, electronic device, and charger
KR102589491B1 (en) Data transmission methods, information organization methods, terminals and network devices
CN105657701B (en) A kind of call method and device based on eSIM card
CN113824613B (en) Network reliability test method, test system and storage medium
CN113824612B (en) Network equipment compatibility testing method, terminal equipment and storage medium
CN113225234B (en) Asset detection method, device, terminal equipment and computer readable storage medium
CN112399515B (en) Communication processing method and device
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN114299534A (en) Method and device for detecting circuit schematic diagram, terminal equipment and storage medium
CN113098902A (en) Method and device for managing vulnerability of network equipment, management terminal equipment and storage medium
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium

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