CN114245415B - Network testing method, device, electronic equipment and medium - Google Patents

Network testing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN114245415B
CN114245415B CN202111573394.6A CN202111573394A CN114245415B CN 114245415 B CN114245415 B CN 114245415B CN 202111573394 A CN202111573394 A CN 202111573394A CN 114245415 B CN114245415 B CN 114245415B
Authority
CN
China
Prior art keywords
client
network performance
ratio
network
transmission channel
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
CN202111573394.6A
Other languages
Chinese (zh)
Other versions
CN114245415A (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 Sinobry Electronic Ltd
Original Assignee
Shenzhen Sinobry Electronic 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 Sinobry Electronic Ltd filed Critical Shenzhen Sinobry Electronic Ltd
Priority to CN202111573394.6A priority Critical patent/CN114245415B/en
Publication of CN114245415A publication Critical patent/CN114245415A/en
Application granted granted Critical
Publication of CN114245415B publication Critical patent/CN114245415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Landscapes

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

Abstract

The application relates to a network testing method, a device, electronic equipment and a medium, which relate to the technical field of wireless network communication, wherein the method comprises the steps of sending a first data packet to a client through a transmission channel so that the client receives the first data packet through the transmission channel, and the client comprises a client 1, a client 2 and a client 3; receiving a second data packet sent by the client; if the second data packet is received, acquiring data in the transmission channel, wherein the data comprises a sending data stream and a receiving data stream, the sending data stream is a data stream formed in the process of sending the first data packet, and the receiving data stream is a data stream formed in the process of receiving the second data packet; the total network speed is calculated based on the data. The method and the device are convenient to test the speed of the three-frequency ten-thousand-megabyte wireless network.

Description

Network testing method, device, electronic equipment and medium
Technical Field
The present application relates to the field of wireless network communication technologies, and in particular, to a network testing method, apparatus, electronic device, and medium.
Background
With the development of wireless network technology, a gigabit wireless network and a gigabit wireless network appear together, and in order to meet the demand of differentiated markets, a situation of the ten-gigabit cooperative development is formed.
For testing the speed of a wireless network with a high amount of bandwidth, there are two current testing methods: the first method is to adopt a streaming tool to independently test the single-frequency wireless network, and the test method is to realize the throughput test of the sixth generation wireless network technology by sending a data packet through an open software tool ixchariot (application layer performance test software); the second method is to conduct the test with some high-end precision network analyzers. The test method only realizes the wireless throughput performance test of a single-frequency and gigabit wireless network, and is difficult to test the speed of the tri-frequency gigabit wireless network.
Disclosure of Invention
In order to enable the speed of a three-frequency ten-gigabit wireless network to be tested conveniently, the application provides a network testing method, a device, electronic equipment and a medium.
In a first aspect, the present application provides a network testing method, which adopts the following technical scheme:
a network testing method, comprising:
sending a first data packet to a client through a transmission channel so that the client receives the first data packet through the transmission channel, wherein the client comprises a client 1, a client 2 and a client 3;
receiving a second data packet sent by the client;
If the second data packet is received, acquiring data in the transmission channel, wherein the data comprises a sending data stream and a receiving data stream, the sending data stream is a data stream formed in the process of sending the first data packet, and the receiving data stream is a data stream formed in the process of receiving the second data packet;
a total network speed is calculated based on the data.
By adopting the technical scheme, the electronic equipment sends a first data packet to the client through the transmission channel so that the client receives the first data packet through the transmission channel, the client comprises a client 1, a client 2 and a client 3 which respectively send the first data packet to three clients, a sending data stream can be formed in the process of sending the first data packet by the electronic equipment, the three clients respectively and simultaneously send a second data packet to the electronic equipment after receiving the first data packet, the electronic equipment receives the second data packet, if the electronic equipment receives the second data packet, the data in the transmission channel is obtained, a receiving data stream can be formed in the process of receiving the second data packet by the electronic equipment, the sending of the first data packet and the receiving of the second data packet are carried out simultaneously, so that the electronic equipment runs all the data streams at the same time so as to form the maximum bandwidth, the method enables the three-frequency ten-thousand-million wireless network to achieve the highest performance, and the total network speed is calculated based on the data acquired in the transmission channel, so that the test result is obtained.
In another possible implementation manner, the calculating the total network speed based on the data includes:
calculating a first network speed based on data within the first transmission channel;
calculating a second network speed based on data in the second transmission channel;
calculating a third network speed based on data in the third transmission channel;
calculating a total network speed based on the first network speed, the second network speed, and the third network speed.
By adopting the technical scheme, the electronic equipment sends the first data packet and obtains data in the transmission channel after receiving the second data packet, the first transmission channel corresponds to the client 1, the second transmission channel corresponds to the client 2, and the third transmission channel corresponds to the client 3, the electronic equipment obtains the first network speed based on the flow calculation of the data in the first transmission channel in unit time, obtains the second network speed based on the flow calculation of the data in the second transmission channel in unit time, obtains the third network speed based on the flow calculation of the data in the third transmission channel in unit time, and adds the first network speed, the second network speed and the third network speed to obtain the total network speed, so that whether the current total network speed reaches ten thousands of megabytes is determined, and the test result is obtained.
In another possible implementation, the calculating a total network speed based on the data then includes:
circularly executing to judge whether the current total network speed is less than the preset total network speed; if the current total network speed is lower than the preset total network speed, sending a restart signal to the client to restart the client, sending the first data packet to the client through the transmission channel, receiving the second data packet sent by the client, if the second data packet is received, acquiring data in the transmission channel, calculating the current total network speed based on the data until a preset condition is met,
the preset conditions include:
the number of times of sending the restart signal reaches a preset number of times;
the current total network speed reaches the preset total network speed;
and if the number of times of sending the restart signal reaches a preset number of times and the total network speed of the current restart time does not reach the preset total network speed, outputting prompt information.
By adopting the technical scheme, the electronic equipment sends a restart signal to the client when detecting that the total network speed does not reach the preset network speed so as to restart the client, the electronic equipment sends the first data packet to the client through the transmission channel again and simultaneously receives the second data packet sent by the client, acquires data in the transmission channel after receiving the second data packet, calculates the total network speed of the current restart time based on the data, and executes the steps again if judging that the total network speed still does not reach the preset total network speed, the circulation measurement of the total network speed effectively reduces the occurrence of the condition that the test result is influenced by the instability of the network speed caused by external interference, executes the circulation steps until the number of times that the electronic equipment sends the restart signal reaches the preset number of times or the total network speed reaches the preset total network speed, if the number of times of sending the restart signal by the electronic equipment reaches the preset number of times but the total network speed does not reach the preset total network speed, the abnormality exists in the test process, and the electronic equipment outputs prompt information to inform relevant personnel of the current test state.
In another possible implementation manner, the method further includes:
acquiring a first network performance image, wherein the first network performance image comprises the network speed condition of the client 1;
acquiring a second network performance image, wherein the second network performance image comprises the network speed condition of the client 2;
acquiring a third network performance image, wherein the third network performance image comprises the network speed condition of the client 3;
merging the first network performance image, the second network performance image and the third network performance image to obtain a total network performance image, wherein the total network performance image comprises a total network speed condition;
outputting the total network performance image.
By adopting the technical scheme, the electronic equipment acquires a first network performance image, the first network performance image comprises the network speed condition of the client 1, the electronic equipment acquires a second network performance image, the second network performance image comprises the network speed condition of the client 2, the electronic equipment acquires a third network performance image, the third network performance image comprises the network speed condition of the client 3, the acquired first network performance image, the acquired second network performance image and the acquired third network performance image are combined to obtain a total network performance image after combination, the total network speed condition is displayed, and the electronic equipment outputs the total network performance image, so that the user side can acquire the image, and a test result of the performance of the total network speed is obtained.
In another possible implementation manner, the method further includes:
acquiring a fourth network performance image, wherein the fourth network performance image is a total network performance image within the first preset time;
calculating a total network performance ratio, wherein the total network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the fourth network performance image;
and outputting the total network performance ratio.
By adopting the technical scheme, the electronic equipment acquires the fourth network performance image, the fourth network image is the total network performance image within the first preset time, the total network performance ratio is obtained by the time occupied by the network speed jitter condition and the time occupied by the network speed stability condition in the fourth network performance image, and the current total network performance stability and jitter condition can be judged according to the total network performance ratio.
In another possible implementation manner, the method further includes:
if the total network performance ratio is larger than a preset ratio, calculating a first network performance ratio, a second network performance ratio and a third network performance ratio, wherein the first network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the first network performance image, the second network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the second network performance image, and the third network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the third network performance image;
Determining a first ratio based on the first network performance ratio, the second network performance ratio, and the third network performance ratio, the first ratio being a maximum of the first network performance ratio, the second network performance ratio, and the third network performance ratio;
determining a transmission channel to be detected based on the first ratio, wherein the transmission channel to be detected is a transmission channel corresponding to the first ratio;
detecting whether a suspicious client exists in the transmission channel to be detected, wherein the suspicious client comprises clients except the client;
and if the suspicious client exists, controlling the suspicious client to be disconnected with the transmission channel to be detected.
By adopting the technical scheme, if the total network performance ratio is greater than the preset ratio, the current total network speed is determined to be unstable, and a transmission channel with the most unstable network speed in the first transmission channel, the second transmission channel and the third transmission channel is determined by calculating the first network performance ratio, the second network performance ratio and the third network performance ratio, so as to detect whether a suspicious client exists in the transmission channel with the most unstable network speed.
In another possible implementation manner, the calculating a total network speed based on the test data then includes:
calculating difference information, wherein the difference information is the difference information between the total network speed and the preset total network speed;
judging whether the difference information is larger than a preset difference value or not;
if the difference information is larger than the preset difference, determining a first client based on the first ratio, wherein the first client is a client corresponding to the first ratio;
and acquiring data in a transmission channel corresponding to the first client until a second preset time threshold is reached.
By adopting the technical scheme, after the electronic equipment tests the total network speed, the difference value information of the total network speed and the preset total network speed is calculated, whether the difference value information is larger than the preset difference value or not is judged, if the difference value information is larger than the preset difference value, the current network speed is determined not to reach tera, the client with the most unstable network speed in the current client 1, the client 2 and the client 3 is determined based on the maximum value of the first network performance ratio, the second network performance ratio and the third network performance ratio, the data in the transmission channel corresponding to the client are continuously obtained until the data reaches the second preset time threshold value, so that the network speed of the client is stable, the total network speed is calculated after the network speed of the current client is stable, and the occurrence of the condition that the total network speed has deviation due to external interference is reduced.
In a second aspect, the present application provides a network testing apparatus, which adopts the following technical solutions:
a network test apparatus, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first data packet to a client through a transmission channel so that the client receives the first data packet through the transmission channel, and the client comprises a client 1, a client 2 and a client 3;
the receiving module is used for receiving a second data packet sent by the client;
a first obtaining module, configured to obtain, when the second data packet is received, data in the transmission channel, where the data includes a sending data stream and a receiving data stream, the sending data stream is a data stream formed in a process of sending the first data packet, and the receiving data stream is a data stream formed in a process of receiving the second data packet;
a first calculation module to calculate a total network speed based on the data.
By adopting the technical scheme, the sending module sends a first data packet to the client through the transmission channel so that the client receives the first data packet through the transmission channel, the client comprises a client 1, a client 2 and a client 3 which respectively send the first data packet to three clients, a sending data stream can be formed in the process of sending the first data packet, the three clients respectively and simultaneously send a second data packet after receiving the first data packet, the receiving module receives the second data packet, if the second data packet is received, the first obtaining module obtains data in the transmission channel, a receiving data stream can be formed in the process of receiving the second data packet, the sending of the first data packet and the receiving of the second data packet are simultaneously carried out so that all data streams run at the same time, thereby forming the maximum bandwidth and enabling the triple-gigabit wireless network to achieve the highest performance, the total network speed is calculated through the first calculation module based on the data acquired in the transmission channel, so that a test result is obtained, and the device is more convenient to test the speed of the three-frequency ten-gigabit wireless network.
In another possible implementation manner, the transmission channels include a first transmission channel corresponding to the client 1, a second transmission channel corresponding to the client 2, and a third transmission channel corresponding to the client 3, and the first calculation module is specifically configured to, when calculating the total network speed based on the data:
calculating a first network speed based on data within the first transmission channel;
calculating a second network speed based on data in the second transmission channel;
calculating a third network speed based on data in the third transmission channel;
calculating a total network speed based on the first network speed, the second network speed, and the third network speed.
In another possible implementation manner, the apparatus further includes:
the circulating module is used for circularly executing and judging whether the current total network speed is less than the preset total network speed; if the current total network speed is less than the preset total network speed, sending a restart signal to the client to restart the client, sending the first data packet to the client through the transmission channel, receiving the second data packet sent by the client, if the second data packet is received, acquiring data in the transmission channel, calculating the current total network speed based on the data until a preset condition is met,
The preset conditions include:
the number of times of sending the restart signal reaches a preset number of times;
the current total network speed reaches the preset total network speed;
and the first output module is used for outputting prompt information when the number of times of sending the restart signal reaches a preset number of times and the total network speed of the current restart time does not reach the preset total network speed.
In another possible implementation manner, the apparatus further includes:
a second obtaining module, configured to obtain a first network performance image, where the first network performance image includes a network speed condition of the client 1;
a third obtaining module, configured to obtain a second network performance image, where the second network performance image includes a network speed condition of the client 2;
a fourth obtaining module, configured to obtain a third network performance image, where the third network performance image includes a network speed condition of the client 3;
a merging module, configured to merge the first network performance image, the second network performance image, and the third network performance image to obtain a total network performance image, where the total network performance image includes a total network speed condition;
And the second output module is used for outputting the total network performance image.
In another possible implementation manner, the apparatus further includes:
a fifth obtaining module, configured to obtain a fourth network performance image, where the fourth network performance image is a total network performance image within a first preset time;
a second calculation module, configured to calculate a total network performance ratio, where the total network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the fourth network performance image;
and the third output module is used for outputting the total network performance ratio.
In another possible implementation manner, the apparatus further includes:
a third calculating module, configured to calculate a first network performance ratio, a second network performance ratio, and a third network performance ratio when the total network performance ratio is greater than the preset ratio, where the first network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the first network performance image, the second network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the second network performance image, and the third network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the third network performance image;
A first determining module, configured to determine a first ratio based on the first network performance ratio, the second network performance ratio, and the third network performance ratio, where the first ratio is a maximum value of the first network performance ratio, the second network performance ratio, and the third network performance ratio;
a second determining module, configured to determine, based on the first ratio, a transmission channel to be detected, where the transmission channel to be detected is a transmission channel corresponding to the first ratio;
the detection module is used for detecting whether a suspicious client exists in the transmission channel to be detected, wherein the suspicious client comprises clients except the client;
and the control module is used for controlling the suspicious client to be disconnected with the transmission channel to be detected when the suspicious client exists.
In another possible implementation manner, the apparatus further includes:
a fourth calculating module, configured to calculate difference information, where the difference information is difference information between the total network speed and the preset total network speed;
the judging module is used for judging whether the difference information is larger than a preset difference;
a third determining module, configured to determine, when the difference information is greater than the preset difference, a first client based on the first ratio, where the first client is a client corresponding to the first ratio;
And the sixth acquisition module is used for acquiring the data in the transmission channel corresponding to the first client until a second preset time threshold is reached.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a method of network testing as shown in any one of the possible implementations of the first aspect is performed.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and which performs a method of network testing as shown in any of the possible implementations of the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the electronic equipment sends a first data packet to the client through the transmission channel so that the client receives the first data packet through the transmission channel, the client comprises a client 1, a client 2 and a client 3, the first data packet is respectively sent to three clients, a sending data stream can be formed in the process of sending the first data packet by the electronic equipment, the three clients respectively and simultaneously send a second data packet to the electronic equipment after receiving the first data packet, the electronic equipment receives the second data packet, if the electronic equipment receives the second data packet, data in the transmission channel is obtained, a receiving data stream can be formed in the process of receiving the second data packet by the electronic equipment, the sending of the first data packet and the receiving of the second data packet are simultaneously carried out, so that the electronic equipment runs all the data streams at the same time, the maximum bandwidth is formed, and the triple-trillion wireless network achieves the highest performance, the total network speed is calculated based on the data acquired in the transmission channel, so that a test result is obtained, and the method is more convenient for testing the speed of the three-frequency ten-gigabit wireless network;
2. The electronic equipment sends a first data packet and obtains data in a transmission channel after receiving a second data packet, the first transmission channel corresponds to the client 1, the second transmission channel corresponds to the client 2, and the third transmission channel corresponds to the client 3, the electronic equipment obtains a first network speed based on flow calculation of the data in the first transmission channel in unit time, obtains a second network speed based on flow calculation of the data in the second transmission channel in unit time, obtains a third network speed based on flow calculation of the data in the third transmission channel in unit time, and adds the first network speed, the second network speed and the third network speed to obtain a total network speed, so that whether the current total network speed reaches ten thousands of megabytes is determined, and a test result is obtained.
Drawings
Fig. 1 is a schematic flowchart of a network testing method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a network test apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1-3.
A person skilled in the art, after reading the present specification, may make modifications to the present embodiments as necessary without inventive contribution, but only within the scope of the claims of the present application are protected by patent laws.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
The embodiment of the application provides a network testing method, which is executed by an electronic device, wherein the electronic device can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto, the terminal device and the server may be directly or indirectly connected through a wired or wireless communication manner, and the embodiment of the present application is not limited thereto, as shown in fig. 1, the method includes step S101, step S102, step S103 and step S104, wherein,
Step S101, sending a first data packet to the client through the transmission channel, so that the client receives the first data packet through the transmission channel.
The client comprises a client 1, a client 2 and a client 3.
For the embodiment of the application, the electronic device tests the total network speed through the application layer performance testing software, the electronic device sends first data packets to the client 1, the client 2 and the client 3 through the transmission channels, and the first data packets are software packets integrated in advance by the application layer performance testing software installed in the electronic device. The client 1, the client 2, and the client 3 may be computers, mobile phones, or other electronic devices using a network.
And step S102, receiving a second data packet sent by the client.
For the embodiment of the application, the electronic device sends the first data packet to the client, the client sends the second data packet to the electronic device after receiving the first data packet, and the electronic device receives the second data packet and sends the first data packet simultaneously, so that the maximum bandwidth is formed in the transmission channel, and the total network achieves the highest performance.
Step S103, if the second data packet is received, acquiring data in the transmission channel.
The data includes a sending data stream and a receiving data stream, the sending data stream is a data stream formed in the process of sending the first data packet, and the receiving data stream is a data stream formed in the process of receiving the second data packet.
For the embodiment of the application, after the electronic device receives the second data packet, it is determined that the electronic device is successfully connected with the client, the electronic device starts to acquire data in the transmission channel, the electronic device forms a transmission data stream in the process of transmitting the first data packet, the electronic device forms a reception data stream in the process of receiving the second data packet, because the transmission of the first data packet and the reception of the second data packet are performed simultaneously, the transmission data stream and the reception data stream are also formed at the same time, and the data in the transmission channel forms the maximum bandwidth, so that the highest performance of the total network is achieved, and the transmission data stream and the reception data stream form data in the transmission channel in the embodiment of the application.
Step S104, calculating the total network speed based on the data.
For the embodiment of the application, after the electronic equipment acquires the data through the transmission channel, the network speed is calculated based on the acquired data, so that the test result is obtained.
In a possible implementation manner of the embodiment of the present application, the step S104 of calculating the total network speed based on the data specifically includes a step S1041 (not shown in the figure), a step S1042 (not shown in the figure), a step S1043 (not shown in the figure), and a step S1044 (not shown in the figure), wherein,
the transmission channels include a first transmission channel corresponding to the client 1, a second transmission channel corresponding to the client 2, and a third transmission channel corresponding to the client 3.
Step S1041, calculating a first network speed based on the data in the first transmission channel.
For the embodiment of the application, the influence of external interference on the network speed needs to be isolated in the network speed testing process, the interference signal needs to be shielded by using the shielding box, the network speed adopted by the shielding box network port used in the embodiment of the application is 10Gbps, so that the requirement for testing the speed of a gigabit network is met, the shielding box is provided with 10 radio frequency interfaces and 10 groups of radio frequency wires, and the 10 radio frequency interfaces of the shielding box respectively correspond to four interfaces of 5G-1 WIFI, two interfaces of 2.4G WIFI and four interfaces of 5G-2 WIFI.
The measured three frequency bands respectively correspond to 2.4G WIFI, 5G-1 WIFI and 5G-2 WIFI, the working bandwidth and the service set identification of the three frequency bands to be measured are configured, the WiFi (wireless network communication technology) rate all adopts the 802.11ax (sixth generation wireless network technology) with the highest specification or the mixed protocol containing the 802.11ax, the 802.11ax mixed protocol refers to the 802.11a/b/G/n/ac/ax specification for mixing, the WiFi rate is the highest in the ax specification and is downward compatible with the 802.11a/b/G/n/ac specification, the electronic equipment is provided with a ten-gigabit network port and is connected with a shielding box through a gigabit network cable, so that wired connection is established, and application layer performance testing software and a remote program thereof are installed on the electronic equipment.
When the electronic device starts to measure the network speed, the application layer performance testing software installed on the electronic device and the remote program thereof are run, so as to obtain a first network speed, for example:
the method comprises the steps that a client 1 corresponds to a first transmission channel, 4x4 antennae are installed on the client 1, the antennae are connected to a radio frequency interface corresponding to a shielding box to be connected with 5G-1 WIFI, application layer performance testing software and a remote program 1 thereof are installed at the same time, the network speed of the client 1 is tested through the first transmission channel, wherein the 5G-1 works in the state of 802.11AX 1024QAM and 160MHz, electronic equipment runs the application layer performance testing software and the remote program thereof and sends a first data packet to the client 1, the client 1 runs the application layer performance testing software and the remote program 1 thereof, the client 1 sends a second data packet to the electronic equipment after receiving the first data packet, the client 1 corresponds to the first transmission channel due to the fact that the client 1 is provided with the 4x4 antennae, after the electronic equipment is connected with the client, the electronic equipment simultaneously sends four first data packets through the first transmission channel, and simultaneously receiving four second data packets sent by the client 1, so that the electronic device runs all the data streams at the same time, thereby forming a maximum bandwidth, and calculating the total flow of the sending data stream and the receiving data stream of the first transmission channel in unit time, thereby obtaining a first network speed.
Step S1042, calculating a second network speed based on the data in the second transmission channel.
For the embodiment of the application, the client 2 corresponds to the second transmission channel, the 2x2 antenna is installed on the client 2, the antenna is connected to the radio frequency interface corresponding to the shielding box for connecting 2.4G WIFI, the application layer performance testing software and the remote program 2 thereof are installed at the same time, the network speed of the client 2 is tested through the second transmission channel, wherein 2.4G works in the state of 1024 QAM and 40MHz, the electronic device runs the application layer performance testing software and the remote program thereof, sends the first data packet to the client 2, the client 2 runs the application layer performance testing software and the remote program 2 thereof, the client 2 sends the second data packet to the electronic device after receiving the first data packet, because the 2x2 antenna is installed on the client 2, the client 2 corresponds to the second transmission channel, after the electronic device establishes connection with the client, the electronic device sends two first data packets through the second transmission channel at the same time, and simultaneously receive two second data packets sent by the client 2, so that the electronic device runs full of all data streams at the same time, thereby forming a maximum bandwidth, and calculate the total flow of the sending data stream and the receiving data stream of the second transmission channel in unit time, thereby obtaining a second network speed.
Step S1043, calculating a third network speed based on the data in the third transmission channel.
For the embodiment of the application, the client 3 corresponds to a third transmission channel, 4x4 antennas are installed on the client 3, the antennas are connected to a radio frequency interface corresponding to a shielding box for connecting 5G-2 WIFI, and simultaneously, application layer performance testing software and a remote program 3 thereof are installed, the network speed of the client 3 is tested through the third transmission channel, wherein 5G-2 works in a state of 802.11AX 1024QAM and 160MHz, the electronic device runs the application layer performance testing software and the remote program thereof, sends a first data packet to the client 3, the client 3 runs the application layer performance testing software and the remote program 3 thereof, the client 3 sends a second data packet to the electronic device after receiving the first data packet, since the client 3 is installed with a 4x4 antenna, the client 3 corresponds to the third transmission channel, and after the electronic device establishes connection with the client, the electronic device simultaneously sends four first data packets through the third transmission channel, and simultaneously receive four second data packets sent by the client 3, so that the electronic device runs full of all data streams at the same time, thereby forming a maximum bandwidth, and calculate a total flow of sending data streams and receiving data streams of the third transmission channel in unit time, thereby obtaining a third network speed.
In this embodiment, the execution sequence of step S1041, step S1042, and step S1043 is not limited herein.
Step S1044, a total network speed is calculated based on the first network speed, the second network speed, and the third network speed.
For the embodiment of the present application, the application layer performance test software in the client 1 and the remote program 1 thereof, the application layer performance test software in the client 2 and the remote program 2 thereof, and the application layer performance test software in the client 3 and the remote program 3 thereof operate simultaneously, and the first network speed, the second network speed, and the third network speed are obtained simultaneously based on the data of the transmission channel, and the electronic device adds the first network speed, the second network speed, and the third network speed to obtain the total network speed, for example:
the first network speed is 600 Mbps;
the second network speed is 4.8 Gbps;
the third network speed is 4.8 Gbps;
total network speed = first network speed + second network speed + third network speed;
1Gbps=1000Mbps;
600Mbps+4.8Gbps+4.8Gbps=10200Mbps;
the total network speed obtained is 10200 Mbps.
In a possible implementation manner of the embodiment of the present application, the method further includes step S105 (not shown in the figure) and step S106 (not shown in the figure), and the step S105 may be executed after the step S104, wherein,
Step S105, circularly executing and judging whether the current total network speed is less than the preset total network speed; if the current total network speed is less than the preset total network speed, sending a restart signal to the client to restart the client, sending a first data packet to the client through a transmission channel, receiving a second data packet sent by the client, if the second data packet is received, acquiring data in the transmission channel, and calculating the current total network speed based on the data until a preset condition is met.
Wherein the preset conditions include:
the number of times of sending the restart signal reaches the preset number of times;
the total network speed of the current restart reaches the preset total network speed.
For the embodiment of the application, if the electronic device detects that the current total network speed is 9990Mbps, the total network speed is judged to be lower than the preset total network speed 10100Mbps, the electronic device sends a restart signal to the client, the client 1, the client 2 and the client 3 are all restarted, the electronic device sends a first data packet to the client through the transmission channel after the restart, simultaneously receives a second data packet sent by the client, acquires data in the transmission channel, calculates the total network speed of the current restart based on the data, if the total network speed of the current restart is 9998Mbps through calculation, the total network speed is judged to be lower than the preset total network speed 10100Mbps, the electronic device sends the restart signal to the client again, the client restarts again, reacquires the data in the transmission channel, calculates the total network speed of the current restart based on the data, if the total network speed of the current restart time is 10000Mbps through calculation, the total network speed is judged to be less than the preset total network speed 10100Mbps, the electronic device sends the restart signal to the client again, the client restarts again, data in the transmission channel is obtained again, the total network speed of the current restart time is calculated based on the data, if the total network speed of the current restart time is 10150Mbps through calculation, the total network speed is judged to be greater than the preset total network speed 10100Mbps, and the electronic device does not send the restart signal to the client any more. When the current total network speed does not reach the preset total network speed, the electronic equipment judges whether the current total network speed is smaller than the preset total network speed or not through circulation, if the current total network speed is smaller than the preset total network speed, a restarting signal is sent to the client, the client reestablishes connection with the electronic equipment through restarting, and the situation that the total network speed is unstable due to abnormity when the electronic equipment and the client are established is reduced due to repeated connection reestablishment.
And step S106, if the number of times of sending the restart signal reaches the preset number of times and the total network speed of the current restart time does not reach the preset total network speed, outputting prompt information.
For the embodiment of the application, assuming that the preset number of times is three, assuming that the current electronic device has sent a third restart signal to the client, the client is restarted, the electronic device reacquires the data in the transmission channel, calculates the total network speed of the current restart number based on the data, if the total network speed of the current restart number is 9980Mbps, the total network speed does not reach the preset total network speed of 10100Mbps, and the number of times of sending the restart signal reaches three times, the electronic device outputs the prompt information, wherein the prompt information can be text information of unstable network speed displayed on a display screen controlled by the electronic device, text information of unstable network speed sent by the electronic device to a terminal device corresponding to a worker, or voice information of unstable network speed sent by a speaker device, other forms of prompting messages are also possible, and are not limited herein.
In a possible implementation manner of the embodiment of the present application, the method further includes step S107 (not shown in the figure), step S108 (not shown in the figure), step S109 (not shown in the figure), step S110 (not shown in the figure), and step S111 (not shown in the figure), and step S107 may be executed after step S104, wherein,
Step S107, a first network performance image is acquired.
Wherein the first network performance image comprises client 1 network speed conditions.
For the embodiment of the application, the client 1 corresponds to the first transmission channel, the client 1 detects the sending data stream and the receiving data stream in the first transmission channel, the client 1 obtains the network speed based on the fluctuation condition of the sending data stream and the receiving data stream in unit time, and the client 1 generates the first network performance image based on the network speed, so that the electronic device obtains the first network performance image through the client 1.
Step S108, a second network performance image is obtained.
Wherein the second network performance image comprises client 2 network speed conditions.
For the embodiment of the application, the client 2 corresponds to the second transmission channel, the client 2 detects the sending data stream and the receiving data stream in the second transmission channel, based on the fluctuation condition of the sending data stream and the receiving data stream in unit time, the client 2 obtains the network speed, and the client 2 generates the second network performance image based on the network speed, so that the electronic device obtains the second network performance image through the client 2.
Step S109, a third network performance image is acquired.
Wherein the third network performance image comprises client 3 network speed conditions.
For the embodiment of the application, the client 3 corresponds to the third transmission channel, the client 3 detects the sending data stream and the receiving data stream in the third transmission channel, the client 3 obtains the network speed based on the fluctuation condition of the sending data stream and the receiving data stream in unit time, and the client 3 generates the third network performance image based on the network speed, so that the electronic device obtains the third network performance image through the client 3.
In the embodiment of the present application, the execution sequence of step S107, step S108, and step S109 is not limited herein.
Step S110, the first network performance image, the second network performance image, and the third network performance image are merged to obtain a total network performance image.
Wherein the total network performance image includes a total network speed condition.
For the embodiment of the application, the electronic device acquires a first network performance image, a second network performance image and a third network performance image, network speeds corresponding to the first network performance image, the second network performance image and the third network performance image at the same moment are added to obtain a total network speed, a total network performance image is generated based on the added total network speed, and the total network speeds corresponding to each moment are connected through a smooth curve to obtain the total network performance image.
And step S111, outputting the total network performance image.
For the embodiment of the application, the electronic device obtains the total network performance image and then outputs the total network performance image, and the outputting of the total network performance image may be that the electronic device stores the network image in a specific folder, or may be that the network image is sent to a display screen, and the total network performance image is displayed through the display screen, which is not limited herein.
In a possible implementation manner of the embodiment of the present application, the method further includes step S112 (not shown in the figure), step S113 (not shown in the figure), and step S114 (not shown in the figure), and step S112 may be executed after step S111, wherein,
step S112, a fourth network performance image is acquired.
And the fourth network performance image is the total network performance image in the first preset time.
For the embodiment of the application, the total network performance image within the first preset time is intercepted and analyzed, and whether the network performance within the first preset time is stable is detected, so that the situation of the network performance in the overall measurement process is inferred, for example, the first preset time is assumed to be 12 seconds.
Step S113, a total network performance ratio is calculated.
Wherein, the total network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the fourth network performance image.
For the embodiment of the present application, taking step S112 as an example, the total network performance image in 12 seconds is obtained, and the total network performance image in 12 seconds is analyzed to obtain:
the time occupied by the jitter situation is 3 seconds;
the time taken for the steady state was 9 seconds.
That is, the total network performance ratio = jitter case occupied time ÷ stability case occupied time = 1/3.
And step S114, outputting the total network performance ratio.
For the embodiment of the application, the electronic device calculates the total network performance ratio and outputs the total network performance ratio, and the mode of outputting the total network performance ratio may be that the electronic device stores the total network performance ratio in a specific folder, or may be that the electronic device controls a display screen to display the total network performance ratio, which is not limited herein.
In a possible implementation manner of the embodiment of the present application, the method further includes step S115 (not shown in the figure), step S116 (not shown in the figure), step S117 (not shown in the figure), step S118 (not shown in the figure), and step S119 (not shown in the figure), wherein,
step S115, if the total network performance ratio is greater than the preset ratio, calculate a first network performance ratio, a second network performance ratio, and a third network performance ratio.
The first network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the first network performance image, the second network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the second network performance image, and the third network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the third network performance image.
For the embodiment of the present application, taking step S113 as an example, assuming that the total network performance ratio is 1/3 and is greater than the preset ratio 1/50, the first network performance ratio, the second network performance ratio and the third network performance ratio are calculated,
acquiring a first network performance image within 12 seconds, and analyzing the first network performance image within 12 seconds to obtain:
the time occupied by the jitter situation is 3 seconds;
the time taken for the steady state was 9 seconds.
That is, the first network performance ratio = jitter case time ÷ stability case time = 1/3;
acquiring a second network performance image within 12 seconds, and analyzing the second network performance image within 12 seconds to obtain:
the time occupied by the jitter condition is 1 second;
the time taken for the stable condition was 11 seconds.
That is, the second network performance ratio = jitter case time ÷ stability case time = 1/11;
Acquiring a third network performance image within 12 seconds, and analyzing the third network performance image within 12 seconds to obtain:
the time occupied by the jitter situation is 1 second;
the time taken for the steady state was 11 seconds.
That is, the third network performance ratio = jitter case occupied time ÷ stability case occupied time = 1/11.
Step S116, determining a first ratio based on the first network performance ratio, the second network performance ratio and the third network performance ratio.
The first ratio is the maximum value among the first network performance ratio, the second network performance ratio and the third network performance ratio.
For the embodiment of the present application, taking step S115 as an example, the first network performance ratio is 1/3, the second network performance ratio is 1/11, and the third network performance ratio is 1/11;
1/3>1/11=1/11;
first network performance ratio > second network performance ratio = third network performance ratio;
and if the first network performance ratio is the maximum, determining that the first ratio is the first network performance ratio, and accordingly determining that the network speed jitter of the transmission channel corresponding to the first network ratio is the most severe.
And step S117, determining a transmission channel to be detected based on the first ratio.
And the transmission channel to be detected is a transmission channel corresponding to the first ratio.
For the embodiment of the present application, taking step S116 as an example, if the first ratio is a first network performance ratio, and the first network performance ratio corresponds to the first transmission channel, the channel to be detected is the first transmission channel.
Step S118, detecting whether there is a suspicious client in the transmission channel to be detected.
Wherein the suspicious client comprises a client other than the client.
For the embodiment of the present application, taking step S117 as an example, determining that the channel to be detected is the first transmission channel, and detecting an IP address connected to the first transmission channel, for example:
the electronic equipment detects that the IP address existing in the first transmission channel is as follows:
192.168.1.70 and 192.168.1.100;
the IP address corresponding to the client 1 is 192.168.1.70, it is determined that the first transmission channel currently has clients other than the client 1, and the IP address of the suspicious client is 192.168.1.100, and the suspicious client is connected to the first transmission channel, occupies data in the first transmission channel, and causes inaccurate and unstable first network speed.
And step S119, if the suspicious client exists, controlling the suspicious client to be disconnected with the transmission channel to be detected.
For the embodiment of the present application, taking step S118 as an example, if it is detected that the IP address 192.168.1.100 exists in the first transmission channel, the electronic device controls the suspicious client with the IP address 192.168.1.100 to be disconnected from the first transmission channel, so that only the client 1 exists in the first transmission channel, thereby enabling the first network speed to be more stable, and enabling the total network speed to be more accurate.
In a possible implementation manner of the embodiment of the present application, the method further includes step S120 (not shown in the figure), step S121 (not shown in the figure), step S122 (not shown in the figure), and step S123 (not shown in the figure), and step S120 may be executed after step S104, wherein,
step S120, difference information is calculated.
The difference information is the difference information between the total network speed and the preset total network speed.
For the embodiment of the application, if the electronic device detects that the current total network speed is 9990Mbps, the preset total network speed is 10100Mbps,
10100Mbps-9990Mbps=110Mbps。
that is, the difference information is 110 Mbps.
Step S121, determining whether the difference information is greater than a preset difference.
For the embodiment of the present application, taking step S120 as an example, assuming that the preset difference is 100Mbps, and the difference information 110Mbps is greater than the preset difference 100Mbps, it indicates that the current total network speed does not reach ten thousand megabits.
In step S122, if the difference information is greater than the preset difference, the first client is determined based on the first ratio.
The first client is a client corresponding to the first ratio.
For the embodiment of the present application, taking step S116 as an example, the current difference information 110Mbps is greater than the preset difference 100Mbps, and the first ratio is the first network performance ratio, so as to determine the client 1 corresponding to the first network ratio.
Step S123, obtaining data in the transmission channel corresponding to the first client until reaching a second preset time threshold.
For the embodiment of the present application, taking step S122 as an example, assuming that the second preset time is 15 seconds, it is determined that the first client is the client 1, and the client 1 corresponds to the first transmission channel, and acquires data in the first transmission channel until 15 seconds are reached, and the total network speed is measured again within 15 seconds, thereby reducing the occurrence of unstable total network speed due to external interference.
The foregoing embodiments describe a network testing method from the perspective of a method flow, and the following embodiments describe a network testing apparatus from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
An embodiment of the present application provides a network test apparatus 20, as shown in fig. 2, the network test apparatus 20 may specifically include:
a sending module 201, configured to send the first data packet to the client through the transmission channel, so that the client receives the first data packet through the transmission channel.
The client comprises a client 1, a client 2 and a client 3.
A receiving module 202, configured to receive a second data packet sent by the client;
The first obtaining module 203 is configured to obtain data in the transmission channel when the second data packet is received.
The data comprises a sending data stream and a receiving data stream, wherein the sending data stream is a data stream formed in the process of sending a first data packet, and the receiving data stream is a data stream formed in the process of receiving a second data packet;
the first calculation module 204 calculates a total network speed based on the data.
For the embodiment of the application, the sending module 201 sends a first data packet to a client through a transmission channel, so that the client receives the first data packet through the transmission channel, the client includes a client 1, a client 2 and a client 3, and sends the first data packet to three clients respectively, a sending data stream is formed in the process of sending the first data packet, the three clients receive the first data packet and then send a second data packet to the client respectively, the receiving module 202 receives the second data packet, if the second data packet is received, the first obtaining module 203 obtains data in the transmission channel, a receiving data stream is formed in the process of receiving the second data packet, the sending of the first data packet and the receiving of the second data packet are performed simultaneously, so that all data streams are operated at the same time, thereby forming a maximum bandwidth, and enabling a triple-gigabit wireless network to achieve the highest performance, the total network speed is calculated through the first calculation module 204 based on the data acquired in the transmission channel, so that a test result is obtained, and the device is more convenient to test the speed of the three-frequency ten-gigabit wireless network.
In a possible implementation manner of the embodiment of the present application, when the first calculating module 204 calculates the total network speed based on data, it is specifically configured to:
calculating a first network speed based on data in the first transmission channel;
calculating a second network speed based on data in the second transmission channel;
calculating a third network speed based on data in the third transmission channel;
a total network speed is calculated based on the first network speed, the second network speed, and the third network speed.
The transmission channels include a first transmission channel corresponding to the client 1, a second transmission channel corresponding to the client 2, and a third transmission channel corresponding to the client 3.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes:
the circulating module is used for circularly executing and judging whether the current total network speed is less than the preset total network speed; if the current total network speed is less than the preset total network speed, sending a restart signal to the client to restart the client, sending a first data packet to the client through a transmission channel, receiving a second data packet sent by the client, if the second data packet is received, acquiring data in the transmission channel, and calculating the current total network speed based on the data until a preset condition is met.
Wherein the preset conditions include:
the number of times of sending the restart signal reaches the preset number of times;
the total network speed of the current restart reaches the preset total network speed.
And the first output module is used for outputting prompt information when the number of times of sending the restart signal reaches a preset number of times and the total network speed of the current restart time does not reach the preset total network speed.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes:
and the second acquisition module is used for acquiring the first network performance image.
Wherein the first network performance image comprises client 1 network speed conditions.
And the third acquisition module is used for acquiring a second network performance image.
Wherein the second network performance image comprises client 2 network speed conditions.
And the fourth acquisition module is used for acquiring a third network performance image.
Wherein the third network performance image comprises client 3 network speed conditions.
And the merging module is used for merging the first network performance image, the second network performance image and the third network performance image to obtain a total network performance image.
Wherein the total network performance image includes a total network speed condition.
And the second output module is used for outputting the total network performance image.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes:
and the fifth acquisition module is used for acquiring a fourth network performance image.
And the fourth network performance image is the total network performance image in the first preset time.
And the second calculation module is used for calculating the total network performance ratio.
Wherein, the total network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the fourth network performance image.
And the third output module is used for outputting the total network performance ratio.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes:
and the third calculating module is used for calculating the first network performance ratio, the second network performance ratio and the third network performance ratio when the total network performance ratio is larger than the preset ratio.
The first network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the first network performance image, the second network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the second network performance image, and the third network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stability condition in the third network performance image.
A first determination module to determine a first ratio based on the first network performance ratio, the second network performance ratio, and the third network performance ratio.
The first ratio is the maximum value among the first network performance ratio, the second network performance ratio and the third network performance ratio.
And the second determining module is used for determining the transmission channel to be detected based on the first ratio.
And the transmission channel to be detected is a transmission channel corresponding to the first ratio.
And the detection module is used for detecting whether the suspicious client exists in the transmission channel to be detected.
Wherein the suspicious client comprises a client other than the client.
And the control module is used for controlling the suspicious client to be disconnected with the transmission channel to be detected when the suspicious client exists.
In a possible implementation manner of the embodiment of the present application, the apparatus 20 further includes:
and the fourth calculation module is used for calculating the difference value information.
The difference information is the difference information between the total network speed and the preset total network speed.
The judging module is used for judging whether the difference information is larger than a preset difference or not;
the third determining module is used for determining a first client based on the first ratio when the difference information is larger than the preset difference, wherein the first client is a client corresponding to the first ratio;
And the sixth acquisition module is used for acquiring the data in the transmission channel corresponding to the first client until a second preset time threshold is reached.
In this embodiment, the first obtaining module 203, the second obtaining module, the third obtaining module, the fourth obtaining module, the fifth obtaining module, and the sixth obtaining module may be the same obtaining module, may also be different obtaining modules, and may also be partially the same obtaining module. The first calculation module 204, the second calculation module, the third calculation module, and the fourth calculation module may be the same calculation module, may be different calculation modules, or may be partially the same calculation module. The first determining module, the second determining module and the third determining module may be the same determining module, may be different determining modules, or may be partially the same determining module. The first output module, the second output module and the third output module may be the same output module, may be different output modules, or may be partially the same output module.
The embodiment of the present application provides a network testing apparatus 20, which is suitable for the above method embodiments and is not described herein again.
In an embodiment of the present application, an electronic device is provided, and as shown in fig. 3, an electronic device 30 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein processor 301 is coupled to memory 303, such as via bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that the transceiver 304 is not limited to one in practical applications, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The Processor 301 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 301 may also be a combination implementing a computing function. E.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, etc.
Bus 302 may include a path that carries information between the aforementioned components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 303 is used for storing application program codes for executing the scheme of the application, and the processor 301 controls the execution. The processor 301 is configured to execute application program code stored in the memory 303 to implement the aspects illustrated in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the related art, in the embodiment of the application, the electronic device sends the first data packet to the client through the transmission channel, so that the client receives the first data packet through the transmission channel, the client comprises a client 1, a client 2 and a client 3, the first data packet is respectively sent to the three clients, a sending data stream is formed in the process of sending the first data packet by the electronic device, the three clients simultaneously send the second data packet to the electronic device after receiving the first data packet, the electronic device receives the second data packet, if the electronic device receives the second data packet, the data in the transmission channel is obtained, a receiving data stream is formed in the process of receiving the second data packet by the electronic device, the sending of the first data packet and the receiving of the second data packet are performed simultaneously, so that the electronic device runs all the data streams at the same time, therefore, the maximum bandwidth is formed, the three-frequency ten-thousand-million wireless network achieves the highest performance, the total network speed is calculated based on the data acquired in the transmission channel, and therefore the test result is obtained.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (6)

1. A network testing method, comprising:
sending a first data packet to a client through a transmission channel so that the client receives the first data packet through the transmission channel, wherein the client comprises a client 1, a client 2 and a client 3;
Receiving a second data packet sent by the client;
if the second data packet is received, acquiring data in the transmission channel, wherein the data comprises a sending data stream and a receiving data stream, the sending data stream is a data stream formed in the process of sending the first data packet, and the receiving data stream is a data stream formed in the process of receiving the second data packet;
calculating a total network speed based on the data;
acquiring a first network performance image, wherein the first network performance image comprises the network speed condition of the client 1;
acquiring a second network performance image, wherein the second network performance image comprises the network speed condition of the client 2;
acquiring a third network performance image, wherein the third network performance image comprises the network speed condition of the client 3;
merging the first network performance image, the second network performance image and the third network performance image to obtain a total network performance image, wherein the total network performance image comprises a total network speed condition;
outputting the total network performance image;
acquiring a fourth network performance image, wherein the fourth network performance image is a total network performance image within a first preset time;
Calculating a total network performance ratio, wherein the total network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the fourth network performance image;
outputting the total network performance ratio;
if the total network performance ratio is larger than a preset ratio, calculating a first network performance ratio, a second network performance ratio and a third network performance ratio, wherein the first network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the first network performance image, the second network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the second network performance image, and the third network performance ratio is the ratio of the time occupied by the jitter condition to the time occupied by the stable condition in the third network performance image;
determining a first ratio based on the first network performance ratio, the second network performance ratio, and the third network performance ratio, the first ratio being a maximum of the first network performance ratio, the second network performance ratio, and the third network performance ratio;
determining a transmission channel to be detected based on the first ratio, wherein the transmission channel to be detected is a transmission channel corresponding to the first ratio;
Detecting whether a suspicious client exists in the transmission channel to be detected, wherein the suspicious client comprises clients except the client;
if the suspicious client exists, controlling the suspicious client to be disconnected with the transmission channel to be detected;
calculating difference information, wherein the difference information is the difference information between the total network speed and a preset total network speed;
judging whether the difference information is larger than a preset difference value or not;
if the difference information is larger than the preset difference, determining a first client based on the first ratio, wherein the first client is a client corresponding to the first ratio;
and acquiring data in a transmission channel corresponding to the first client until a second preset time threshold is reached, and calculating the total network speed again.
2. The network testing method according to claim 1, wherein the transmission channels include a first transmission channel corresponding to the client 1, a second transmission channel corresponding to the client 2, and a third transmission channel corresponding to the client 3, and the calculating the total network speed based on the data includes:
calculating a first network speed based on data within the first transmission channel;
Calculating a second network speed based on data in the second transmission channel;
calculating a third network speed based on data in the third transmission channel;
calculating a total network speed based on the first network speed, the second network speed, and the third network speed.
3. A network test method as claimed in claim 2, wherein said calculating a total network speed based on said data thereafter comprises:
circularly executing to judge whether the current total network speed is less than the preset total network speed; if the current total network speed is less than the preset total network speed, sending a restart signal to the client to restart the client, sending the first data packet to the client through the transmission channel, receiving the second data packet sent by the client, if the second data packet is received, acquiring data in the transmission channel, calculating the current total network speed based on the data until a preset condition is met,
the preset conditions include:
the number of times of sending the restart signal reaches a preset number of times;
the current total network speed reaches the preset total network speed;
And if the number of times of sending the restart signal reaches a preset number of times and the total network speed of the current restart time does not reach the preset total network speed, outputting prompt information.
4. A network test apparatus, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first data packet to a client through a transmission channel so that the client receives the first data packet through the transmission channel, and the client comprises a client 1, a client 2 and a client 3;
the receiving module is used for receiving a second data packet sent by the client;
a first obtaining module, configured to obtain, when the second data packet is received, data in the transmission channel, where the data includes a sending data stream and a receiving data stream, the sending data stream is a data stream formed in a process of sending the first data packet, and the receiving data stream is a data stream formed in a process of receiving the second data packet;
a first calculation module that calculates a total network speed based on the data;
a second obtaining module, configured to obtain a first network performance image, where the first network performance image includes a network speed condition of the client 1;
A third obtaining module, configured to obtain a second network performance image, where the second network performance image includes a network speed condition of the client 2;
a fourth obtaining module, configured to obtain a third network performance image, where the third network performance image includes a network speed condition of the client 3;
a merging module, configured to merge the first network performance image, the second network performance image, and the third network performance image to obtain a total network performance image, where the total network performance image includes a total network speed condition;
a second output module for outputting the total network performance image;
a fifth obtaining module, configured to obtain a fourth network performance image, where the fourth network performance image is a total network performance image within a first preset time;
a second calculation module, configured to calculate a total network performance ratio, where the total network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the fourth network performance image;
a third output module, configured to output the total network performance ratio;
a third calculating module, configured to calculate a first network performance ratio, a second network performance ratio, and a third network performance ratio when the total network performance ratio is greater than the preset ratio, where the first network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the first network performance image, the second network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the second network performance image, and the third network performance ratio is a ratio of time occupied by a jitter condition to time occupied by a stable condition in the third network performance image;
A first determining module, configured to determine a first ratio based on the first network performance ratio, the second network performance ratio, and the third network performance ratio, where the first ratio is a maximum value of the first network performance ratio, the second network performance ratio, and the third network performance ratio;
a second determining module, configured to determine, based on the first ratio, a transmission channel to be detected, where the transmission channel to be detected is a transmission channel corresponding to the first ratio;
the detection module is used for detecting whether a suspicious client exists in the transmission channel to be detected, wherein the suspicious client comprises clients except the client;
the control module is used for controlling the suspicious client to be disconnected with the transmission channel to be detected when the suspicious client exists;
a fourth calculating module, configured to calculate difference information, where the difference information is difference information between the total network speed and the preset total network speed;
the judging module is used for judging whether the difference information is larger than a preset difference;
a third determining module, configured to determine, when the difference information is greater than the preset difference, a first client based on the first ratio, where the first client is a client corresponding to the first ratio;
And the sixth acquisition module is used for acquiring the data in the transmission channel corresponding to the first client until a second preset time threshold is reached, and calculating the total network speed again.
5. An electronic device, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one program configured to: a method of performing a network test according to any one of claims 1 to 3.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a network testing method according to any one of claims 1 to 3.
CN202111573394.6A 2021-12-21 2021-12-21 Network testing method, device, electronic equipment and medium Active CN114245415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111573394.6A CN114245415B (en) 2021-12-21 2021-12-21 Network testing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111573394.6A CN114245415B (en) 2021-12-21 2021-12-21 Network testing method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114245415A CN114245415A (en) 2022-03-25
CN114245415B true CN114245415B (en) 2022-07-29

Family

ID=80760532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111573394.6A Active CN114245415B (en) 2021-12-21 2021-12-21 Network testing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114245415B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11063849B1 (en) * 2020-01-15 2021-07-13 Sas Institute Inc. Techniques for automated software testing
CN113259196A (en) * 2021-05-11 2021-08-13 四川九州电子科技股份有限公司 WiFi6 router throughput test system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10880196B2 (en) * 2018-01-25 2020-12-29 Charter Communications Operating, Llc Bi-directional speed test method and system for customer premises equipment (CPE) devices
CN109218133B (en) * 2018-09-27 2022-04-01 深圳市网心科技有限公司 Network speed testing system, method, device and computer readable storage medium
CN110730112A (en) * 2019-10-28 2020-01-24 上海移远通信技术股份有限公司 Method, system, equipment and storage medium for testing network running speed
CN111464378B (en) * 2020-03-13 2021-12-07 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system
CN111447640A (en) * 2020-04-08 2020-07-24 东莞信宝电子产品检测有限公司 Method and device for testing throughput of WIFI product and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11063849B1 (en) * 2020-01-15 2021-07-13 Sas Institute Inc. Techniques for automated software testing
CN113259196A (en) * 2021-05-11 2021-08-13 四川九州电子科技股份有限公司 WiFi6 router throughput test system

Also Published As

Publication number Publication date
CN114245415A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US20180091990A1 (en) Apparatus, mobile terminal, and method to estimate quality of experience of application
US11870673B2 (en) Intercepting and examining a packet header or trailer
US20220150678A1 (en) Communication method and apparatus, computer-readable medium, and electronic device
US7272394B2 (en) Location estimation of wireless terminals in a multi-story environment
CN107624233B (en) VPN transmission tunnel scheduling method and device and VPN client server
US10743252B2 (en) Method for identifying access point and hotspot and terminal
CN106102143B (en) Application processing method and device
CN110620738B (en) Bandwidth allocation method, device, equipment and storage medium
US9781595B2 (en) Wireless communication device
US20170163505A1 (en) Application centric network experience monitoring
CN114245415B (en) Network testing method, device, electronic equipment and medium
CN108886381A (en) CM degree of being disturbed measurement method, device and system
US9692685B2 (en) Heterogeneous network system, network apparatus, and rendezvous path selection method thereof
CN103338131A (en) Method and equipment for testing log transmitting loss rate
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
US10104571B1 (en) System for distributing data using a designated device
CN111010245A (en) Method and device for reporting reference signal receiving power value and mobile terminal
CN114338386B (en) Network configuration method and device, electronic equipment and storage medium
US11606282B2 (en) Method and device for detecting network reliability
CN111490907A (en) Method and device for determining VX L AN network performance parameters
CN111628902A (en) Rate testing method and apparatus, electronic device, and computer-readable storage medium
CN113742110A (en) Message transmission method and device, electronic equipment and storage medium
CN115134855A (en) Network slice performance measurement method and device
CN114610437A (en) Cloud desktop access method and device and electronic equipment
CN108833214A (en) A kind of methods, devices and systems of industry control network detection

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