CN116346696B - Batch network testing method, device, equipment and storage medium - Google Patents

Batch network testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116346696B
CN116346696B CN202310606788.XA CN202310606788A CN116346696B CN 116346696 B CN116346696 B CN 116346696B CN 202310606788 A CN202310606788 A CN 202310606788A CN 116346696 B CN116346696 B CN 116346696B
Authority
CN
China
Prior art keywords
test
tested
devices
batch
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310606788.XA
Other languages
Chinese (zh)
Other versions
CN116346696A (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.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN202310606788.XA priority Critical patent/CN116346696B/en
Publication of CN116346696A publication Critical patent/CN116346696A/en
Application granted granted Critical
Publication of CN116346696B publication Critical patent/CN116346696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The invention belongs to the technical field of network testing, and discloses a batch network testing method, device, equipment and storage medium. The method comprises the following steps: opening the batch network testing tool; acquiring IP addresses of all devices to be tested in the current local area network through a dgram module of a node in the batch network testing tool; based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end; executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time. By the mode, network testing of a large number of devices to be tested can be conveniently and rapidly completed.

Description

Batch network testing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of network testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for batch network testing.
Background
At present, the network to be tested is to observe whether the network of the test equipment has the phenomenon of packet loss or network disconnection through a PING tool at the PC end, and when more devices to be tested need to be tested in a network test, the devices to be tested need to be tested in PING one by one at the computer end, and the operation is very complicated.
Disclosure of Invention
The invention mainly aims to provide a batch network testing method, device, equipment and storage medium, and aims to solve the technical problem that in the prior art, when a PING tool is adopted to conduct network testing on more equipment to be tested, PING equipment is required to be tested one by one, so that operation is very complicated.
In order to achieve the above object, the present invention provides a batch network testing method, where the batch network testing method is applied to a PC end, and a batch network testing tool is configured on the PC end, and the batch network testing tool is designed based on iperf3 and is developed using electronics, and the batch network testing tool can directly integrate a node API, and the batch network testing tool can directly use a node service in a rendering module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the batch network testing method comprises the following steps:
opening the batch network testing tool;
acquiring IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through a network cable;
based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end;
executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
Optionally, before the performing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time, the method further includes:
and the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool.
Optionally, each group of devices to be tested is connected with one interface to be tested, and the interface to be tested table comprises a plurality of interfaces to be tested; wherein, the liquid crystal display device comprises a liquid crystal display device,
after the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool, the method further comprises the following steps: establishing ssh connection so that the sending end and the receiving end are respectively connected with an ssh connection instance object;
after establishing ssh connection, obtaining the corresponding relation between the sending end and the receiving end;
notifying each interface to be tested in the interface table to be tested of updating data based on the corresponding relation;
the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices to be tested in real time includes:
based on the interface to be tested after updating the data, executing the iperf3 through the child_process calling command of the node module in the batch network testing tool so as to test the network performance of the multiple groups of devices to be tested in real time.
Optionally, the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time includes:
determining a data acquisition interval and a test time;
based on the data acquisition interval and the test time, performing the iperf3 through a child_process calling command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
Optionally, after executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time, the method further includes:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
when the test data is monitored to be larger than a preset value, determining a corresponding equipment group to be tested of the test data, and recording the corresponding equipment group to be tested, the test data and the test state so as to carry out abnormal alarm.
Optionally, after executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time, the method further includes:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
a database is built by means of an index db tool and the test status and the test data are stored in the database.
Optionally, after storing the test state and the test data in the database, the method further includes:
calling test data and test states of all groups of devices to be tested in the database through an Echarts tool;
drawing a visual chart based on the test data and the test state of each group of equipment to be tested;
the visual chart is displayed on the desktop through an Element-UI tool.
The method comprises the following steps:
in addition, in order to achieve the above object, the present invention further provides a batch network testing device, on which a batch network testing tool is configured, the batch network testing tool is designed based on the iperf3 and is developed using electron. Js, the batch network testing tool can directly integrate a node API, and the batch network testing tool can directly use a node service in a rendering module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the batch network testing device comprises:
the opening module is used for opening the batch network testing tools;
the acquisition module is used for acquiring the IP addresses of all the devices to be tested in the current local area network through the dgram module of the node in the batch network test tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to the switch through a network cable;
the determining module is used for carrying out pairwise matching on the equipment to be tested based on the IP addresses of all the equipment to be tested, and determining a plurality of groups of equipment to be tested, wherein each group of equipment to be tested comprises a transmitting end and a receiving end;
and the test module is used for executing the iperf3 through a child process calling command of the node module in the batch network test tool so as to test the network performance of the plurality of groups of devices to be tested in real time.
In addition, to achieve the above object, the present invention also proposes a batch network test apparatus, including: a memory, a processor, and a batch network test program stored on the memory and executable on the processor, the batch network test program configured to implement the steps of the batch network test method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a batch network test program which, when executed by a processor, implements the steps of the batch network test method as described above.
The batch network testing method, the batch network testing device, the batch network testing equipment and the storage medium provided by the invention are characterized in that the batch network testing tool is opened; acquiring IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through a network cable; based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end; executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time. By the mode, the node module can be directly used, and the executable desktop application can be directly packaged without deploying service, so that network performance test of a large number of devices to be tested can be realized.
Drawings
FIG. 1 is a schematic diagram of a batch network test equipment of a hardware runtime environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a batch network testing method according to the present invention;
FIG. 3 is a general topology of a current LAN in a first embodiment of a batch network testing method of the present invention;
FIG. 4 is a diagram showing a connection relationship for establishing ssh connection in a first embodiment of a batch network testing method according to the present invention;
FIG. 5 is a flow chart of a second embodiment of the batch network testing method of the present invention;
FIG. 6 is a schematic diagram of a visual chart of a second embodiment of a batch network testing method of the present invention;
FIG. 7 is a block diagram of a first embodiment of a batch network testing apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
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 invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a batch network test device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the batch network testing apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is not limiting of a batch network testing apparatus and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a batch network test program may be included in the memory 1005 as one type of storage medium.
In the batch network test equipment shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the batch network test apparatus of the present invention may be disposed in the batch network test apparatus, and the batch network test apparatus calls the batch network test program stored in the memory 1005 through the processor 1001 and executes the batch network test method provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the batch network testing method is provided.
Referring to fig. 2, fig. 2 is a flow chart of a first embodiment of a batch network testing method according to the present invention.
In this embodiment, the batch network testing method includes the following steps:
step S10: and opening the batch network testing tool.
It should be noted that, the execution body of the embodiment may be a computing service device with functions of data processing, network communication and program running, such as a mobile phone, a tablet computer, a personal computer, etc., or an electronic device or a batch network test device capable of implementing the above functions. This embodiment and the following embodiments will be described below by taking the batch network test apparatus as an example.
It should be noted that, the batch network testing method is applied to a PC end, and a batch network testing tool is configured on the PC end, and is designed based on the iperf3 and developed by using electronics.
It will be appreciated that the use of electronics. Js to develop a batch network test tool does not require deployment services, and can be packaged directly into an executable desktop application.
Step S20: and acquiring the IP addresses of all the devices to be tested in the current local area network through the dgram modules of the nodes in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through network cables.
It should be noted that, the IP addresses of the devices to be tested may be obtained in batches by broadcasting the dgram modules of the nodes in the batch network testing tool using a UDP multicast protocol.
In a specific implementation, as shown in fig. 3, fig. 3 is an overall topology of the current local area network.
Step S30: and carrying out pairwise matching on the equipment to be tested based on the IP addresses of all the equipment to be tested, and determining a plurality of groups of equipment to be tested, wherein each group of equipment to be tested comprises a transmitting end and a receiving end.
Step S40: executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
It should be noted that, the iperf3 is an open-source network performance testing tool, but only can test one or a pair of devices in real time, and cannot realize batch testing of multiple devices to be tested; the batch network testing tool designed based on the iperf3 can directly integrate the node API, and the rendering module can directly use the node service at vue, so that the network performance of the equipment to be tested can be tested in batch, and the maximum speed, state alarm and the like can be read in real time; because the iporf 3 is a master-slave network structure, a complete iporf 3 test is completed, and at least two IP hosts are usually required, so that the test is completed through at least 2 devices together during operation, for example, the device 1 is a transmitting end, the device 2 is a receiving end, and information such as the maximum bandwidth and the packet loss rate of the device can be checked through a built-in command, and because the iporf 3 also supports the reverse mode operation, roles of the transmitting end and the receiving end in the device group to be tested can be interchanged, thereby ensuring that the bandwidth of the device to be tested is normal in receiving and transmitting.
In an embodiment, before the performing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time, the method further includes:
and the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool.
It should be noted that, each group of test devices uses the weakMap to perform one-to-one correspondence, and because the weakMap has the weak reference function, when the device to be tested is deleted, the sending end and the receiving end in the test device group corresponding to the device to be tested also lose the reference deletion.
In an embodiment, each group of devices to be tested is connected with one interface to be tested, and the interface to be tested table comprises a plurality of interfaces to be tested; wherein, the liquid crystal display device comprises a liquid crystal display device,
after the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool, the method further comprises the following steps: establishing ssh connection so that the sending end and the receiving end are respectively connected with an ssh connection instance object;
after establishing ssh connection, obtaining the corresponding relation between the sending end and the receiving end;
notifying each interface to be tested in the interface table to be tested of updating data based on the corresponding relation;
the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices to be tested in real time includes:
based on the interface to be tested after updating the data, executing the iperf3 through the child_process calling command of the node module in the batch network testing tool so as to test the network performance of the multiple groups of devices to be tested in real time.
It should be noted that, because the weakMap has the weak reference function, when the device to be tested is deleted, the sending end and the receiving end in the test device group corresponding to the device to be tested also lose the reference deletion, so that the ssh instance reference object is also deleted, and the risk of memory leakage can be reduced.
It should be noted that, when the ssh connection is established each time, an ssh connection instance object notifies the corresponding interface to be tested in the interface table to update data by using a publish-subscribe method after receiving the message.
In a specific implementation, as shown in fig. 4, fig. 4 is a connection relationship diagram for establishing an ssh connection.
In an embodiment, the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the plurality of groups of devices under test in real time includes:
determining a data acquisition interval and a test time;
based on the data acquisition interval and the test time, performing the iperf3 through a child_process calling command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
It should be noted that the data acquisition interval refers to a time interval between two adjacent tests of each group of devices under test.
The embodiment opens the batch network testing tool; acquiring IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through a network cable; based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end; executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time. By the mode, the node module can be directly used, and the executable desktop application can be directly packaged without deploying service, so that network performance test of a large number of devices to be tested can be realized.
Referring to fig. 5, fig. 5 is a flowchart of a second embodiment of a batch network testing method according to the present invention.
Based on the above-mentioned first embodiment, the batch network testing method of the present embodiment further includes, after the step S40:
step S50: and monitoring the test states and test data of a plurality of groups of devices to be tested in real time.
Step S60: when the test data is monitored to be larger than a preset value, determining a corresponding equipment group to be tested of the test data, and recording the corresponding equipment group to be tested, the test data and the test state so as to carry out abnormal alarm.
It should be noted that, the test data may include bandwidth, packet loss condition and network disconnection condition; the test states include an unoccupied test state, a normal test state, and an abnormal test state.
It can be understood that, since the batch network testing tool collects the data of the device group to be tested according to the data collection interval, the device group to be tested can be in a state of not starting test or in a normal test, and when the device group to be tested is abnormal in test, the device group to be tested is in an abnormal test state.
It should be noted that, the preset value may be set in advance according to the actual situation.
In an embodiment, after the performing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices under test in real time, the method further includes:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
a database is built by means of an index db tool and the test status and the test data are stored in the database.
In this embodiment, the test data monitored in real time is stored in the database, so that the occurrence of the situation that all the test data are lost due to the abnormal conditions such as power failure or computer crash in the test process can be prevented.
In an embodiment, after storing the test state and the test data in the database, the method further comprises:
calling test data and test states of all groups of devices to be tested in the database through an Echarts tool;
drawing a visual chart based on the test data and the test state of each group of equipment to be tested;
the visual chart is displayed on the desktop through an Element-UI tool.
In a specific implementation, as shown in a visual chart in fig. 6, a sending rate of a sending end, a receiving rate of a receiving end, a packet loss number, a continuous packet loss number, a maximum continuous packet loss time, a test state and the like in the device group to be tested can be directly known from the visual chart.
In this embodiment, the test data of the device to be tested monitored in real time may be obtained from the database, and then a visual chart is generated based on the test data, so that the test data of more devices can be checked through the visual chart, and whether the device to be tested is in a normal state can be directly known according to the visual chart.
The embodiment monitors the test states and the test data of a plurality of groups of devices to be tested in real time; when the test data is monitored to be larger than a preset value, determining a corresponding equipment group to be tested of the test data, and recording the corresponding equipment group to be tested, the test data and the test state so as to carry out abnormal alarm. By the mode, after the batch network testing tools are configured at the PC end, personnel are not required to watch, and when the testing data is larger than a preset value, abnormal nodes, the packet loss number, the maximum packet loss number and the maximum continuous packet loss time are recorded, error warning and early warning can be carried out, and bad equipment to be tested can be found in time.
In addition, the embodiment of the invention also provides a storage medium, wherein a batch network test program is stored on the storage medium, and the batch network test program realizes the steps of the batch network test method when being executed by a processor.
Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of a batch network testing apparatus according to the present invention.
As shown in fig. 7, the batch network testing device provided by the embodiment of the invention includes:
an opening module 10 for opening the batch network testing tool.
The obtaining module 20 is configured to obtain IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, where the current local area network is a computer group formed by interconnecting a PC end and all devices to be tested, and all devices to be tested and the PC end are connected to a switch through a network cable;
a determining module 30, configured to perform pairwise matching on the devices to be tested based on IP addresses of all the devices to be tested, and determine multiple groups of devices to be tested, where each group of devices to be tested includes a transmitting end and a receiving end;
and the test module 40 is configured to execute the iperf3 through the child_process call command of the node module in the batch network test tool, so as to test the network performance of the multiple groups of devices to be tested in real time.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
The embodiment opens the batch network testing tool; acquiring IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through a network cable; based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end; executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time. By the mode, the node module can be directly used, and the executable desktop application can be directly packaged without deploying service, so that network performance test of a large number of devices to be tested can be realized.
In an embodiment, the test module 40 is further configured to:
and the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool.
In an embodiment, each group of devices to be tested is connected with one interface to be tested, and the interface to be tested table comprises a plurality of interfaces to be tested; wherein, the liquid crystal display device comprises a liquid crystal display device,
the test module 40 is further configured to: establishing ssh connection so that the sending end and the receiving end are respectively connected with an ssh connection instance object;
after establishing ssh connection, obtaining the corresponding relation between the sending end and the receiving end;
notifying each interface to be tested in the interface table to be tested of updating data based on the corresponding relation;
the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices to be tested in real time includes:
based on the interface to be tested after updating the data, executing the iperf3 through the child_process calling command of the node module in the batch network testing tool so as to test the network performance of the multiple groups of devices to be tested in real time.
In an embodiment, the test module 40 is further configured to:
determining a data acquisition interval and a test time;
based on the data acquisition interval and the test time, performing the iperf3 through a child_process calling command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
In an embodiment, the test module 40 is further configured to:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
when the test data is monitored to be larger than a preset value, determining a corresponding equipment group to be tested of the test data, and recording the corresponding equipment group to be tested, the test data and the test state so as to carry out abnormal alarm.
In an embodiment, the test module 40 is further configured to:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
a database is built by means of an index db tool and the test status and the test data are stored in the database.
In an embodiment, the test module 40 is further configured to:
calling test data and test states of all groups of devices to be tested in the database through an Echarts tool;
drawing a visual chart based on the test data and the test state of each group of equipment to be tested;
the visual chart is displayed on the desktop through an Element-UI tool.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the batch network testing method provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the above embodiment method may be implemented by means of software plus a necessary general hardware platform, but may of course also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk) and comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The batch network testing method is characterized in that the batch network testing method is applied to a PC end, a batch network testing tool is configured on the PC end, the batch network testing tool is designed based on the IPerf3 and developed by using an electron. Js, the batch network testing tool can directly integrate a node API, and the batch network testing tool can directly use a node service in a rendering module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the batch network testing method comprises the following steps:
opening the batch network testing tool;
acquiring IP addresses of all devices to be tested in a current local area network through a dgram module of a node in the batch network testing tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to a switch through a network cable;
based on IP addresses of all the devices to be tested, carrying out pairwise matching on the devices to be tested, and determining a plurality of groups of devices to be tested, wherein each group of devices to be tested comprises a transmitting end and a receiving end;
executing the iperf3 through a child process call command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
2. The method of claim 1, wherein before the executing of the iperf3 by the child process call command of the node module in the batch network test tool to test the network performance of the plurality of groups of devices under test in real time, further comprises:
and the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool.
3. The method of claim 2, wherein each group of devices under test is connected to an interface under test, the interface under test table comprising a plurality of interfaces under test; wherein, the liquid crystal display device comprises a liquid crystal display device,
after the sending end and the receiving end in each group of equipment to be tested are in one-to-one correspondence through the weakmap in the batch network testing tool, the method further comprises the following steps: establishing ssh connection so that the sending end and the receiving end are respectively connected with an ssh connection instance object;
after establishing ssh connection, obtaining the corresponding relation between the sending end and the receiving end;
notifying each interface to be tested in the interface table to be tested of updating data based on the corresponding relation;
the executing the iperf3 by the child_process call command of the node module in the batch network testing tool to test the network performance of the multiple groups of devices to be tested in real time includes:
based on the interface to be tested after updating the data, executing the iperf3 through the child_process calling command of the node module in the batch network testing tool so as to test the network performance of the multiple groups of devices to be tested in real time.
4. The method of claim 1, wherein the executing the iperf3 via a child process call command of a node module in the batch network test tool to test network performance of the plurality of groups of devices under test in real time comprises:
determining a data acquisition interval and a test time;
based on the data acquisition interval and the test time, performing the iperf3 through a child_process calling command of a node module in the batch network test tool so as to test the network performance of the multiple groups of devices to be tested in real time.
5. The method of claim 1, wherein the executing the iperf3 via the child process call command of the node module in the batch network test tool to test the network performance of the plurality of groups of devices under test in real time further comprises:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
when the test data is monitored to be larger than a preset value, determining a corresponding equipment group to be tested of the test data, and recording the corresponding equipment group to be tested, the test data and the test state so as to carry out abnormal alarm.
6. The method of claim 1, wherein the executing the iperf3 via the child process call command of the node module in the batch network test tool to test the network performance of the plurality of groups of devices under test in real time further comprises:
monitoring the test states and test data of a plurality of groups of devices to be tested in real time;
a database is built by means of an index db tool and the test status and the test data are stored in the database.
7. The method of claim 6, wherein after storing the test status and the test data in the database, further comprising:
calling test data and test states of all groups of devices to be tested in the database through an Echarts tool;
drawing a visual chart based on the test data and the test state of each group of equipment to be tested;
the visual chart is displayed on the desktop through an Element-UI tool.
8. The batch network testing device is characterized in that a batch network testing tool is configured on the batch network testing device, the batch network testing tool is designed based on the iporf 3 and developed by using electronics, js, the batch network testing tool can directly integrate a node API, and the batch network testing tool can directly use a node service in a rendering module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the batch network testing device comprises:
the opening module is used for opening the batch network testing tools;
the acquisition module is used for acquiring the IP addresses of all the devices to be tested in the current local area network through the dgram module of the node in the batch network test tool, wherein the current local area network is a computer group formed by interconnecting a PC end and all the devices to be tested, and all the devices to be tested and the PC end are connected to the switch through a network cable;
the determining module is used for carrying out pairwise matching on the equipment to be tested based on the IP addresses of all the equipment to be tested, and determining a plurality of groups of equipment to be tested, wherein each group of equipment to be tested comprises a transmitting end and a receiving end;
and the test module is used for executing the iperf3 through a child process calling command of the node module in the batch network test tool so as to test the network performance of the plurality of groups of devices to be tested in real time.
9. A batch network testing apparatus, the apparatus comprising: a memory, a processor and a batch network test program stored on the memory and executable on the processor, the batch network test program configured to implement the steps of the batch network test method of any one of claims 1 to 7.
10. A storage medium having stored thereon a batch network test program which when executed by a processor performs the steps of the batch network test method of any one of claims 1 to 7.
CN202310606788.XA 2023-05-26 2023-05-26 Batch network testing method, device, equipment and storage medium Active CN116346696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310606788.XA CN116346696B (en) 2023-05-26 2023-05-26 Batch network testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310606788.XA CN116346696B (en) 2023-05-26 2023-05-26 Batch network testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116346696A CN116346696A (en) 2023-06-27
CN116346696B true CN116346696B (en) 2023-08-04

Family

ID=86882660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310606788.XA Active CN116346696B (en) 2023-05-26 2023-05-26 Batch network testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116346696B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161143A (en) * 2016-07-22 2016-11-23 浪潮电子信息产业股份有限公司 A kind of network performance test method based on ARM server and device
CN112506791A (en) * 2020-12-17 2021-03-16 平安消费金融有限公司 Application program testing method and device, computer equipment and storage medium
CN115687135A (en) * 2022-11-09 2023-02-03 湖南快乐阳光互动娱乐传媒有限公司 User interface testing method and device, electronic equipment and storage medium
CN116074228A (en) * 2022-11-18 2023-05-05 苏州浪潮智能科技有限公司 Network card testing method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070047448A1 (en) * 2005-08-24 2007-03-01 Inventec Corporation Network equipment testing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161143A (en) * 2016-07-22 2016-11-23 浪潮电子信息产业股份有限公司 A kind of network performance test method based on ARM server and device
CN112506791A (en) * 2020-12-17 2021-03-16 平安消费金融有限公司 Application program testing method and device, computer equipment and storage medium
CN115687135A (en) * 2022-11-09 2023-02-03 湖南快乐阳光互动娱乐传媒有限公司 User interface testing method and device, electronic equipment and storage medium
CN116074228A (en) * 2022-11-18 2023-05-05 苏州浪潮智能科技有限公司 Network card testing method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Evolutionary Algorithms in Software Defined Networks: Techniques, Applications, and Issues;LIAO Lingxia;Victor C.M.Leung;LAI Chin-Feng;;ZTE Communications(03);全文 *

Also Published As

Publication number Publication date
CN116346696A (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN107992386A (en) A kind of router memory method for testing pressure and system
CN113518018B (en) Router system stability test system and test method
CN111970166A (en) Test method, device, equipment, system and computer readable storage medium
CN105245379A (en) Method and device for testing network management system through simulating SNMP (simple network management protocol) network element
CN116346696B (en) Batch network testing method, device, equipment and storage medium
CN112685301A (en) Fuzzy test method and device
CN115276844A (en) Communication module testing method and device and electronic equipment
CN112468336B (en) Network quality monitoring and early warning method, device, terminal and storage medium
US11102103B2 (en) Network stabilizing tool
JP3570300B2 (en) Fault management method and method
CN112954725A (en) Test method, communication system and NB-IoT device
CN112929914A (en) System and method for network link simulation auxiliary test
CN111639022A (en) Transaction testing method and device, storage medium and electronic device
CN111526041A (en) Test method and device for centralized control platform
CN113507721B (en) Network state monitoring method, device, system and storage medium
CN115001991B (en) Recording method and device based on performance test and storage medium
CN116489252A (en) Function debugging method, device, equipment and readable storage medium
CN108737220B (en) Test system of routing equipment
CN115794657A (en) Software system testing method, device, equipment and readable storage medium
JPH0844646A (en) Network managing device
CN115509813A (en) Isolation method, device, equipment and medium for abnormal I2C equipment
WO2022167719A1 (en) Testing a network control system
CN113238955A (en) Test method, related device and computer storage medium
CN115086961A (en) Wireless packet capturing method, system, device and medium based on user-defined filtering
CN113434410A (en) Data testing method and device, storage medium and electronic device

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