[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113132182B - Network speed testing method and device - Google Patents

Network speed testing method and device Download PDF

Info

Publication number
CN113132182B
CN113132182B CN202110343506.2A CN202110343506A CN113132182B CN 113132182 B CN113132182 B CN 113132182B CN 202110343506 A CN202110343506 A CN 202110343506A CN 113132182 B CN113132182 B CN 113132182B
Authority
CN
China
Prior art keywords
speed
server
speed measurement
test terminal
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110343506.2A
Other languages
Chinese (zh)
Other versions
CN113132182A (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.)
Xinhuasan Intelligent Terminal Co ltd
Original Assignee
Xinhuasan Intelligent Terminal Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinhuasan Intelligent Terminal Co ltd filed Critical Xinhuasan Intelligent Terminal Co ltd
Priority to CN202110343506.2A priority Critical patent/CN113132182B/en
Publication of CN113132182A publication Critical patent/CN113132182A/en
Application granted granted Critical
Publication of CN113132182B publication Critical patent/CN113132182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link 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 specification provides a network speed testing method and device, and relates to the technical field of communication. A network speed test method is applied to network equipment and comprises the following steps: sending a list request message to a first speed measurement server, wherein the list request message carries a public network IP address of the network equipment; receiving address information of a speed measuring server fed back by a first speed measuring server, and generating a speed measuring server list; periodically sending detection messages to the speed measuring servers contained in the speed measuring server list, and determining a second speed measuring server from the speed measuring server list; and if the list request message sent by the test terminal to the first speed measurement server is monitored, sending the address information of the second speed measurement server to the test terminal so that the test terminal can test the network speed through the second speed measurement server. By the method, the efficiency of the network speed test can be improved.

Description

Network speed testing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a network speed testing method and apparatus.
Background
With the development and progress of science and technology, networks have entered most of households, and the network speed in the households has gradually increased, and users pay more attention to the network speed of the households. Therefore, for the network engineer, the confirmation of the network speed at the user's home becomes a necessary step in the deployment of the network device and the troubleshooting process of the network.
In the current network speed testing process, a network engineer is required to test through an application program on a browser and a terminal. At this time, the network engineer needs to connect to the home network using the test device, detect the speed measurement server that is optimal from the current network through the test device, and determine the network speed of the home network based on the uploading and downloading of the file. However, when the network engineer performs the field test, the browser and the application program of the terminal need to consume a lot of time to determine the optimal speed measurement server, which occupies the time of the user and reduces the work efficiency of the network engineer. Therefore, how to increase the testing speed of the wire speed is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
In order to overcome the problems in the related art, the specification provides a network speed testing method and a network speed testing device.
In combination with the first aspect of the embodiments of the present specification, the present application provides a network speed testing method, applied to a network device, including:
sending a list request message to a first speed measurement server;
receiving address information of a speed measuring server fed back by a first speed measuring server, and generating a speed measuring server list;
periodically sending detection messages to the speed measuring servers contained in the speed measuring server list, and determining a second speed measuring server from the speed measuring server list;
and if the list request message sent by the test terminal to the first speed measurement server is monitored, sending the address information of the second speed measurement server to the test terminal so that the test terminal can test the network speed through the second speed measurement server.
Optionally, after the second speed measurement server is determined from the speed measurement server list, the method further includes:
sending a file request message to a second speed measurement server;
receiving and storing a predicted speed file sent by a second speed measurement server;
after the address information of the second speed measurement server is sent to the test terminal, the method further includes:
and if a list request message sent to the first speed measurement server by the test terminal is monitored, sending the predicted speed file to the test terminal.
Further, periodically sending a detection message to a speed measurement server included in the speed measurement server list, and determining a second speed measurement server from the speed measurement server list, including:
periodically sending detection messages to a speed measuring server contained in a speed measuring server list;
receiving a feedback message of a speed measuring server, determining delay time according to the feedback message and recording the delay time;
calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number;
and determining a second speed measuring server from the speed measuring server list according to the average delay time, wherein the second speed measuring server is the speed measuring server with the minimum average delay time.
Optionally, the method further includes:
if a list request message sent by the test terminal to the first speed measurement server is monitored, switching to a speed measurement mode, and starting timing;
and if the timing exceeds the preset time and the test terminal is not monitored to test the speed through the second speed test server, exiting the speed test mode.
Optionally, the method further includes:
if the network device is in a speed measurement mode, executing one or a combination of the following steps:
forbidding a new terminal to access the network equipment;
and disconnecting terminals, except the test terminal, of which the signal intensity is smaller than the first preset value from the terminals currently accessed to the network equipment.
Optionally, one or a combination of the following steps is performed, further comprising:
if the signal intensity of the test terminal is smaller than a second preset value, adjusting the signal parameters of the network equipment to receive a speed measurement message sent by the test terminal or a feedback message corresponding to the speed measurement message to the test terminal;
modifying the wireless bandwidth into the maximum wireless bandwidth of the network equipment;
the power supply voltage of a processor of the network device is adjusted to an over-clocking voltage that is greater than the rated voltage of the processor.
In combination with the second aspect of the embodiments of the present specification, the present application provides a network speed testing apparatus, applied to a network device, including:
the sending unit is used for sending a list request message to the first speed measurement server;
the receiving unit is used for receiving the address information of the speed measuring server fed back by the first speed measuring server and generating a speed measuring server list;
the determining unit is further configured to periodically send a detection message to a speed measurement server included in the speed measurement server list, and determine a second speed measurement server from the speed measurement server list;
and the monitoring unit is used for sending the address information of the second speed measurement server to the terminal if a list request message sent by the test terminal to the first speed measurement server is monitored, so that the terminal can test the network speed through the second speed measurement server.
Optionally, the sending unit is further configured to send a file request message to the second speed measurement server;
the receiving unit is also used for receiving and storing the predicted speed file sent by the second speed measuring server;
the sending unit is further configured to send the predicted speed file to the test terminal after the monitoring unit sends the address information of the second speed measurement server to the test terminal.
Further, the determination unit includes:
the detection module is used for periodically sending detection messages to the speed measuring servers contained in the speed measuring server list;
the recording module is used for receiving a feedback message of the speed measuring server, determining delay time according to the feedback message and recording the delay time;
the calculating module is used for calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number;
and the determining module is used for determining a second speed measuring server from the speed measuring server list according to the average delay time, wherein the second speed measuring server is the speed measuring server with the minimum average delay time.
Optionally, the apparatus further includes:
a timing unit and a switching unit;
if the monitoring unit monitors the list request message sent by the test terminal to the first speed measurement server, the switching unit switches to a speed measurement mode, and the timing unit starts timing;
and if the timing unit times for more than the preset time and does not monitor that the test terminal tests the speed through the second speed measurement server, exiting the speed measurement mode through the switching unit.
Optionally, the apparatus further includes:
an adjusting unit, configured to, if the network device is in the speed measurement mode, perform one or a combination of the following steps:
forbidding a new terminal to access the network equipment;
and disconnecting terminals, except the test terminal, of which the signal intensity is smaller than the first preset value from the terminals currently accessed to the network equipment.
Optionally, one or a combination of the following steps is performed, further comprising:
if the signal intensity of the test terminal is smaller than a second preset value, adjusting the signal parameters of the network equipment to receive a speed measurement message sent by the test terminal or a feedback message corresponding to the speed measurement message to the test terminal;
modifying the wireless bandwidth into the maximum wireless bandwidth of the network equipment;
the power supply voltage of a processor of the network device is adjusted to an over-clocking voltage that is greater than the rated voltage of the processor.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the specification, the speed measurement server list is obtained from the first speed measurement server in advance through the network device, the optimal speed measurement server is found from the speed measurement server list, and when the network device monitors the list request message of the test terminal for accessing the first speed measurement server, the address information of the optimal speed measurement server is directly fed back to the test terminal, so that the test terminal can directly measure the speed according to the address information of the optimal speed measurement server, and the speed measurement efficiency of the terminal is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of the specification.
Fig. 1 is a networking diagram to which a network speed testing method provided in an embodiment of the present application is applied;
FIG. 2 is a flow chart of a network speed testing method according to the present application;
fig. 3 is a schematic structural diagram of a wire speed testing device according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
In a general home network, as shown in fig. 1, the home network includes a network device and a modem connected to the network device, the network device is connected to a terminal in a wired and wireless manner, and the modem is connected to the internet. In order to realize the network speed test, a global speed measuring server and a plurality of regional speed measuring servers are also deployed on the other side of the Internet. The network device may be a router or a switch with a gateway function, or a router or a switch located in an intranet, and the like, which is not limited herein. In addition, it should be added that the present application is described by taking a simplified home network as an example, but the present application is not limited to the home network, and may be applied to the case of performing the network speed test when the terminal accesses the internet through the network device.
The global speed measuring server is provided with IP (Internet Protocol) addresses of a plurality of regional speed measuring servers. The global speed measuring server can screen a plurality of regional speed measuring servers which are closest to the received public network IP address from the plurality of regional speed measuring servers according to the received public network IP address, and sends the regional speed measuring servers and the IP addresses corresponding to the regional speed measuring servers to the terminal in a list form, so that the terminal can test the network speed of the home network through the regional speed measuring servers which are closest to the terminal. Generally, when the terminal performs the network speed measurement, the speed measurement is performed through speed measurement software installed on the test terminal, or through an address accessed on the browser, where the terminal performing the speed measurement may be referred to as the test terminal. The speed measuring server can be a speed measuring server corresponding to certain speed measuring software, IP addresses of global speed measuring servers stored in the network equipment in advance are different according to different selected speed measuring software, and the terminal can access the corresponding global speed measuring server to start speed measurement through the IP addresses.
When the network speed is tested, the bandwidth of the home network can be determined according to the measured network speed. The modem may be an optical modem and an electrical modem, which is not limited in this application.
The application provides a network speed testing method, which is applied to network equipment, and as shown in fig. 2, the method comprises the following steps:
s100, sending a list request message to the first speed measurement server.
After the network engineer completes the deployment of the home network, the network device first accesses the global speed measurement server (i.e., the first speed measurement server), and at this time, the network device sends a list request message according to the pre-stored IP address of the global speed measurement server, where the list request message carries the IP address of the network device. Because the network device may be a network device with a gateway function or a network device located in an intranet, the IP address carried by the network device when sending the list request message may be a public network IP address or a private network IP address. However, when the list request message sent by the Network device carries its private IP Address, the private IP Address will be converted into a corresponding public IP Address by the gateway due to the NAT (Network Address Translation) function of the gateway. That is to say, the list request message received by the global speed measurement server may carry a public network IP address configured by the network device, or a public network IP address corresponding to the network device after NAT is performed by the gateway.
Thus, the global speed measurement server can search the stored information about the speed measurement server according to the public network IP address of the network device (or the public network IP address corresponding to the network device) carried in the list request message, so as to determine a plurality of speed measurement servers closest to the public network IP address, where the speed measurement servers are the above-mentioned regional speed measurement servers. After that, the global speed measuring server can send the information such as the name and the IP address of the speed measuring server to the network device. The global speed measurement server may carry all the determined names and IP addresses of the speed measurement server in one feedback message, or may feed back related messages to the network device for multiple times, and each feedback message carries the name and IP address of one speed measurement server.
When the test terminal performs speed measurement, the test terminal may be based on an HTTP Protocol (Hypertext Transfer Protocol), an FTP Protocol (File Transfer Protocol), an NFS (Network File System) Protocol, and the like. Based on different speed measuring programs selected by the test terminal, the protocols based on which the speed measurement is carried out may be different. The protocols applied by different speed measurement software may be different, and the messages in the used protocols may also be different, but only the global speed measurement server needs to be able to analyze the messages and to obtain the public network IP address from the message carrying the public network IP address of the network device.
The following description is made taking the HTTP protocol as an example. Based on the HTTP protocol, when downlink speed measurement is carried out, the network equipment can send an HTTP get message, a preset file is downloaded from the global speed measurement server or the regional speed measurement server to carry out downlink speed measurement, and when downlink speed measurement is carried out, the network equipment can send an HTTP post message carrying the preset file to the global speed measurement server or the regional speed measurement server to carry out uplink speed measurement.
Specifically, the list request message sent by the network device may be an HTTP get message in an HTTP Protocol (Hypertext Transfer Protocol), and the subsequent detection messages may be an HTTP get message and an HTTP post message according to a difference in a speed measurement direction.
At this time, if the global speed measurement server determines that the received message is an HTTP get message, the public network IP address of the network device may be obtained from the HTTP get message.
It should be noted that the determination of the speed measurement servers closest to the public network IP address may be implemented in a network segment to which the public network IP address belongs, and the like, where the functions of the global speed measurement server are provided, and the functions are not explained much, and the network device only needs to obtain access information of the speed measurement servers in a plurality of areas determined by the global speed measurement server.
S101, receiving address information of the speed measuring server fed back by the first speed measuring server, and generating a speed measuring server list.
If the network equipment receives the message fed back by the global speed measuring server, the information such as IP addresses (namely address information) of a plurality of speed measuring servers is analyzed from the message. Of course, the speed measurement server list may further include information such as a name of the speed measurement server, which is not limited to this.
And the network equipment generates a speed measuring server list according to the received address information of the speed measuring server. The speed measuring server list at least records an IP address of one speed measuring server.
In addition, the first speed measurement server can also perform message interaction with the network equipment or the test terminal through the encrypted tunnel, so that the safety of the speed measurement process is improved.
S102, periodically sending detection messages to the speed measuring servers contained in the speed measuring server list, and determining a second speed measuring server from the speed measuring server list.
After the network device obtains the speed measurement server list, the network device may periodically send a detection message to the speed measurement server in the speed measurement server list, and the speed measurement server may send a feedback message to the network device for the detection message, so that the network device may determine a second speed measurement server. The second speed measurement server may be the speed measurement server closest to the second speed measurement server in distance, or the speed measurement server with the smallest delay time, or the speed measurement server closest to the second speed measurement server in distance under the condition that the delay time is close to the second speed measurement server in distance, which needs to be set according to actual needs, and is not limited to this.
Further, step S102 specifically includes:
S102A, sending detection messages to the speed measuring server included in the speed measuring server list periodically.
A period, such as 10 minutes, may be set in the network device. When the set period is reached, the network device sends a detection message to a plurality of speed measurement servers in the speed measurement server list. The destination IP address in the detection message is the IP address of one speed measurement server in the speed measurement server list. Specifically, when performing downlink speed measurement, the detection message may be an HTTP get message, and when performing uplink speed measurement, the detection message may be an HTTP post message, and the feedback message is a feedback message for the HTTP get message or the HTTP post message. However, the HTTP get message serving as the probe message and the HTTP get message serving as the list request message sent to the first speed measurement server have different contents, and the different contents are different from the current implementation manner, and a description thereof is not repeated.
Moreover, because the content carried in the HTTP get message is different, the processing performed after the global speed measurement server and the regional speed measurement server receive the HTTP get message is also different, and only the global speed measurement server and the regional speed measurement server need to be able to perform corresponding processing according to the received HTTP get message, which is not limited.
S102B, receiving a feedback message of the speed measuring server, determining delay time according to the feedback message and recording.
When the network device receives the feedback message, the delay time can be determined according to the time difference between the detection message and the feedback message, and the delay time is recorded. For example, the speed measurement server list may correspondingly store the delay time of the speed measurement server.
And S102C, calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number.
When the network device determines the delay time, it may also record a plurality of delay times according to interaction of the multiple detection messages and the multiple feedback messages, for example, the network device records 3 delay times for one speed measurement server. And then, calculating the average delay time by taking the multiple delay times as a basis and recording the average delay time into a speed measurement server list.
Therefore, the network device can determine the delay time of each speed measuring server in the speed measuring server list. The list of the tachometer servers stored in the network device can be as shown in table 1 below, where the delay time recorded in table 1 is the average delay time.
Name(s) IP address Delay time
Speed measuring server 1 113.130.96.0 20ms
Speed measuring server 2 27.192.0.0 5ms
Speed measuring server 3 218.26.0.0 15ms
Speed measuring server 4 61.134.128.0 30ms
TABLE 1
And S102D, determining a second speed measuring server from the speed measuring server list according to the average delay time.
The second speed measuring server is the speed measuring server with the minimum average delay time.
The average delay time of the four speed measuring servers recorded in table 1 can determine that the delay time of the speed measuring server 2 is the minimum, and the average delay time is used as a second speed measuring server to realize speed measurement.
S103, if a list request message sent by the test terminal to the first speed measurement server is monitored, sending the address information of the second speed measurement server to the test terminal so that the test terminal can test the network speed through the second speed measurement server.
By configuring on the network device, the network device continuously monitors the list request message sent by the test terminal (i.e. the HTTP get message is sent to the global speed measurement server), for example, the network device is configured with a function of monitoring the HTTP get message with port number 80 sent to the global speed measurement server. If the network device does not determine the second speed measurement server, the network device monitors the list request message sent by the test terminal, and the network device processes the list request message according to the current flow, namely, the list request message is sent to the global speed measurement server to obtain the address information of the speed measurement servers. And then, after the test terminal confirms the second speed measurement server, the speed measurement is finished through message interaction (namely, through uploading and downloading of a preset file) with the second speed measurement server. In addition, it should be noted that, when performing speed measurement, the test terminal may perform uplink speed measurement and downlink speed measurement within a period of time.
If the network device already determines the second speed measurement server, when the list request message sent by the test terminal is monitored, the address information of the second speed measurement server determined by the network device is sent to the test terminal, and therefore the process that a network engineer needs to wait for the test terminal to determine the second speed measurement server when testing on site is omitted.
In the embodiment of the specification, the speed measurement server list is obtained from the first speed measurement server in advance through the network device, the optimal speed measurement server is found from the speed measurement server list, and when the network device monitors that the test terminal accesses the list request message of the first speed measurement server, the address information of the optimal speed measurement server is directly fed back to the test terminal, so that the test terminal can directly measure the speed according to the address information of the optimal speed measurement server, and the speed measurement efficiency through the terminal is improved.
The speed measurement at the test terminal can be divided into two stages, namely, pre-speed measurement and formal speed measurement. In the speed forecasting process, the test terminal can determine the number of speed testing threads started for forecasting speed based on a speed forecasting file acquired from an area speed testing server (namely, a second speed testing server), and the number of the started speed testing threads can influence the initial speed for formal speed testing; in the formal speed measurement process, the test terminal starts to send speed measurement files to the regional speed measurement server according to the number of threads determined by the preliminary speed measurement and the initial test speed, or downloads the speed measurement files from the regional speed measurement server, and the speed measurement of the network is completed.
Before formal speed measurement is carried out through the test terminal, a predicted speed file needs to be downloaded from the second speed measurement server. Since the number of the speed measurement threads affects the initial speed, in order to increase the initial speed of the test terminal when performing formal speed measurement, the speed of obtaining the predicted speed file needs to be increased. Of course, the process of obtaining the predicted speed file is used for performing the downlink speed measurement, and when the speed measurement is performed in the uplink direction, the predicted speed file is generally stored in the test terminal, so the process of obtaining the predicted speed file can be omitted. If the predicted speed file is not stored in the test terminal in the process of uplink speed measurement, the process of uplink speed measurement can be promoted in the following manner, which is not limited to this.
Further, after step S102, the method further includes:
and S104, sending a file request message to the second speed measurement server.
A preset file (which may be referred to as a predicted speed file) for network speed pretesting, such as a PNG file, may be stored in the second speed measurement server, and of course, according to different speed measurement programs, file types of the selected predicted speed file may also be different.
After the network device determines a second speed measurement server from the speed measurement server list, a file request message is sent to the second speed measurement server based on the IP address of the second speed measurement server, and the file request message is used for requesting to download a predicted speed file.
And S105, receiving and storing the predicted speed file sent by the second speed measurement server.
And the second speed measurement server returns the predicted speed file to the network equipment after receiving the file request message sent by the network equipment. The second tachometer server may store the received predicted tachometer file in its own memory for later use.
After step S104, the method further includes:
and S106, sending the prediction speed file to a test terminal.
After that, when the network device monitors that the test terminal sends a file request message to the second speed measurement server, the network device replaces the second speed measurement server to send a predicted speed file to the test terminal. Therefore, the test terminal receives the predicted speed file at a higher speed, so that the time for the test terminal to acquire the predicted speed file from the second speed measurement server is reduced, and the efficiency of network speed test is improved.
And the test terminal can obtain the predicted speed file after sending the file request message, so that the speed test terminal can start the network speed test by the maximum speed test thread (generally 4 speed test threads, but more or less speed test threads are available), and further, the network speed measured by the speed test terminal is closer to the bandwidth of the home network, so that the network speed measured by a network engineer can more accurately reflect the actual bandwidth.
In addition, in order to further promote the accuracy of carrying out the net speed test. Optionally, the method further includes:
and S107, if a list request message sent to the first speed measurement server by the test terminal is monitored, switching to a speed measurement mode and starting timing.
And S108, if the timing exceeds the preset time and the test terminal is not monitored to test the speed through the second speed test server, exiting the speed test mode.
After the test terminal is accessed to the network device, if the network device monitors that the test terminal sends a list request message to the first speed measurement server, the network device judges that the test terminal starts speed measurement. At this time, the network device switches itself to the speed measurement mode and starts the timer to count time.
A preset time, such as 10 minutes, may be set in advance in the network device for the started timer. And when the speed measuring mode is started for 10 minutes and the speed measuring action performed by the test terminal cannot be received, the speed measuring mode is exited, so that the network equipment is recovered to the normal mode, namely, the data processing and forwarding are performed normally.
It should be noted that, the performing speed measurement (or speed measurement behavior) may include, but is not limited to, the test terminal requesting a predicted speed file from the second speed measurement server, sending a probe message to the second speed measurement server based on the predicted speed file, or sending a file during formal speed measurement to the second speed measurement server.
When the network device performs speed measurement, the measured network speed may not accurately reflect the current bandwidth due to the influence of the current network environment. Optionally, the method further includes:
if the network equipment is in a speed measurement mode, one or a combination of the following steps is executed, so that the receiving and feedback time of the network equipment for the message sent by the test terminal is adjusted, and the speed measurement result can more accurately reflect the bandwidth of the current network.
Mode 1: the new terminal is prohibited from accessing the network device.
In a wireless network environment, the more terminals connected, the signal strength for a certain terminal may be weakened, and therefore, it can be understood that, when the fewer terminals connected on the network device, the closer the tested network speed is to the real bandwidth of the network.
For this reason, when some terminals are already connected to the network device, in order to avoid that data interaction of these connected terminals is affected and to prevent more terminals from being connected to the network device, the network device needs to determine the terminal currently connected to the network device, e.g., the connected terminal may be determined in a formed connection table in the network device. The connection table records information such as a serial number, a private network IP address, and a MAC address of a terminal to which the network device is currently connected.
When the network equipment is switched to a speed measurement mode, a white list is generated through modes such as a connection list, and the connection of terminals outside the white list is set to be forbidden through modes such as an access control list. Therefore, in the mode 1, the network device can refuse the access of a new terminal, so that the reduction of signal strength caused by excessive terminal access is avoided, and the effect of network speed test started by the network device on the accessed test terminal is further improved.
Mode 2: and disconnecting terminals, except the test terminal, of which the signal strength is smaller than the first preset value from the terminals currently accessed into the network equipment.
In a network environment, since a part of terminals are located at an edge position covered by a network device, the network device may have difficulty in accurately processing interactions performed by the terminals, but the terminals are connected with the network device, and therefore, the network device needs to consume more resources to acquire data transmitted by the terminals.
If the network device is in the speed measurement mode, it can be understood that more resources need to be allocated currently to handle the network speed test. Then, a preset value of the signal strength (i.e. a first preset value, which may be set to-75 dbm) may be preconfigured in the network device, and when the network device determines that the signal strength of a certain terminal (non-test terminal) is smaller than the preset value, the terminal is deleted from the connection table to force the terminal to go offline, so that the influence of the terminal with very weak signal strength on the speed measurement performed by the test terminal is avoided.
It should be noted that, for the distinction between the test terminal and the non-test terminal, the private network IP address of the test terminal may be obtained through the list request message sent to the first speed measurement server, and is marked in the connection table by the identifier.
And, on the basis of the mode 2, the mode 1 can also be applied, namely, the off-line non-test terminal is added and removed from the white list, so that the off-line non-test terminal is prevented from being connected with the network equipment again, and the effect of the network speed test is reduced.
Mode 3: and if the signal intensity of the test terminal is smaller than the second preset value, adjusting the signal parameters of the network equipment to receive the speed measurement message sent by the test terminal or send a feedback message corresponding to the speed measurement message to the test terminal.
In addition to processing for non-test terminals or terminals not connected to the network device, the test terminal may also be in the signal dead space of the network device. Therefore, in order to improve the effect of the test terminal on network speed measurement, when the network device determines that the signal strength of the test terminal is smaller than the second preset value, the signal parameter of the network device for the wireless signal may be adjusted. The signal parameters include, but are not limited to, transmit power, DIFS (Distributed Inter-frame Spacing), CCA (Clear Channel Assessment) threshold, signal-to-noise ratio, and the like.
The second preset value may be a non-single value, or a plurality of preset values defined by a range, which is determined according to the actual situation of the network device. For example, in the case where the signal strength is greater than-60 dBm, no adjustment is made, or only the transmission power may be adjusted down to reduce power consumption; reducing DIFS to 75% and improving a CCA threshold of 3dBm or a signal-to-noise ratio of 3dB under the condition that the signal intensity is not more than-60 dBm and more than-80 dBm; and when the signal strength is not more than-80 dBm, reducing the DIFS to 50%, and improving the CCA threshold of 6dBm or the signal-to-noise ratio of 6 dB.
The signal parameters of the wireless signal to be adjusted and the adjusted values of the signal parameters are only used as references, and may be changed according to actual situations, for example, the transmission power, DIFS, CCA, and signal-to-noise ratio may be adjusted together or some of them may be selected to be adjusted, which is not limited.
Mode 4: the wireless bandwidth is modified to the maximum wireless bandwidth of the network device.
The higher the transmission rate of the wireless signal of the network device, the higher the wireless bandwidth (i.e. the wireless frequency bandwidth). Under the condition that the network speed test is carried out by the test terminal, the higher the transmission rate is, the network speed which can be measured can be closer to the actual bandwidth of the network environment. Therefore, when entering the speed measurement mode, the network device may modify the wireless bandwidth to the maximum wireless bandwidth of the current network device, for example, set to 40GHz in case of a 2.4G network and set to 160GHz in case of a 5G network, so as to meet the requirement of accurately determining the current network bandwidth.
Mode 5: the power supply voltage of a processor of the network device is adjusted to an over-frequency voltage that is greater than a rated voltage of the processor.
For the network device itself, the data processing speed of the network device itself may also affect the accuracy of the network speed test, because other terminals may also be running on the network device besides the test terminal, and these terminals also perform data interaction, and the processing of the data of these terminals by the network device may also affect the network speed test result obtained by the test terminal.
Therefore, in the mode 5, the supply voltage of the network device for the processor thereof is increased, so that the processor can be supplied with the overclocking voltage which is greater than the rated voltage, and the processor can enter the overclocking mode to process data with higher processing efficiency. Therefore, the test terminal can obtain the result of the network speed test more quickly, and the efficiency of the network speed test is improved.
Besides the five ways, the result of the wire speed test can be improved by adjusting the signal parameters of the wireless signals in other aspects. For example, when entering the speed measurement mode, the current most idle wireless channel is reselected for the test terminal to avoid the influence of other terminals or other wireless signals in the network environment on the network speed test, or the message forwarding priority of an upload message and a download message for which speed measurement is to be performed in wireless connection and wired connection is adjusted to be the highest, so that the problem of inaccurate network speed test caused by lower priority of the upload message and the download message after forwarding is relatively listed is avoided.
According to the above, since more interference may exist in the wireless network, the test effect of the network speed test can be effectively improved by adjusting the signal parameters of the wireless signals. For wired networks, there are fewer ways to adjust since the network connection is more reliable.
In addition, it is supplementary noted that, because a certain time interval may exist between a first process (i.e., obtaining a speed measurement server list in advance, determining a second speed measurement server, obtaining a predicted speed file, and the like) executed between the network device and the first speed measurement server (global speed measurement server) and a first process (i.e., obtaining a speed measurement server list in advance, determining a second speed measurement server, obtaining a predicted speed file, and the like) executed between the test terminal and the global speed measurement server and the regional speed measurement server, and the first process and the second process (i.e., sending a list request message, sending a probe message, and the like) executed between the test terminal and the global speed measurement server and the regional speed measurement server, the first process and the second process (i.e., a protocol based on which the speed measurement program) executed by the network device may be the same protocol or different protocols. When the selected protocols are different, the network device only needs to monitor the message sent by the protocol selected by the test terminal and can feed back the message.
Correspondingly, the present application further provides a network speed testing apparatus, applied to a network device, as shown in fig. 3, including:
the sending unit is used for sending a list request message to the first speed measurement server;
the receiving unit is used for receiving the address information of the speed measuring server fed back by the first speed measuring server and generating a speed measuring server list;
the determining unit is further configured to periodically send a detection message to a speed measurement server included in the speed measurement server list, and determine a second speed measurement server from the speed measurement server list;
and the monitoring unit is used for sending the address information of the second speed measuring server to the terminal if a list request message sent by the testing terminal to the first speed measuring server is monitored, so that the terminal can test the network speed through the second speed measuring server.
Optionally, the sending unit is further configured to send a file request message to the second speed measurement server;
the receiving unit is also used for receiving and storing the predicted speed file sent by the second speed measuring server;
the sending unit is further configured to send the predicted speed file to the test terminal after the monitoring unit sends the address information of the second speed measurement server to the test terminal.
Further, the determination unit includes:
the detection module is used for periodically sending detection messages to the speed measuring servers contained in the speed measuring server list;
the recording module is used for receiving a feedback message of the speed measuring server, determining delay time according to the feedback message and recording the delay time;
the calculating module is used for calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number;
and the determining module is used for determining a second speed measuring server from the speed measuring server list according to the average delay time, wherein the second speed measuring server is the speed measuring server with the minimum average delay time.
Optionally, the apparatus further includes:
a timing unit and a switching unit;
if the monitoring unit monitors a list request message sent by the test terminal to the first speed measurement server, the switching unit is switched to a speed measurement mode, and timing is started through the timing unit;
and if the timing unit times for more than the preset time and does not monitor that the test terminal tests the speed through the second speed measurement server, exiting the speed measurement mode through the switching unit.
Optionally, the apparatus further includes:
an adjusting unit, configured to, if the network device is in the speed measurement mode, perform one or a combination of the following steps:
forbidding a new terminal to access the network equipment;
and disconnecting terminals, except the test terminal, of which the signal intensity is smaller than the first preset value from the terminals currently accessed to the network equipment.
Optionally, one or a combination of the following steps is performed, further including:
if the signal intensity of the test terminal is smaller than a second preset value, adjusting the signal parameters of the network equipment to receive a speed measurement message sent by the test terminal or a feedback message corresponding to the speed measurement message to the test terminal;
modifying the wireless bandwidth into the maximum wireless bandwidth of the network equipment;
the power supply voltage of a processor of the network device is adjusted to an over-frequency voltage that is greater than a rated voltage of the processor.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the specification, the speed measurement server list is obtained from the first speed measurement server in advance through the network device, the optimal speed measurement server is found from the speed measurement server list, and when the network device monitors that the test terminal accesses the list request message of the first speed measurement server, the address information of the optimal speed measurement server is directly fed back to the test terminal, so that the test terminal can directly measure the speed according to the address information of the optimal speed measurement server, and the speed measurement efficiency of the terminal is improved.
It will be understood that the present description is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A network speed testing method is characterized in that the method is applied to network equipment connected with a terminal, and comprises the following steps:
sending a list request message to a first speed measurement server;
receiving address information of the speed measuring server fed back by the first speed measuring server, and generating a speed measuring server list;
periodically sending a detection message to a speed measurement server contained in the speed measurement server list, and determining a second speed measurement server from the speed measurement server list;
and if a list request message sent by the test terminal to the first speed measurement server is monitored, sending the address information of the second speed measurement server to the test terminal so that the test terminal can test the network speed through the second speed measurement server.
2. The method according to claim 1, further comprising, after determining the second tachometer server from the tachometer server list:
sending a file request message to the second speed measurement server;
receiving and storing the predicted speed file sent by the second speed measurement server;
after the address information of the second speed measurement server is sent to the test terminal, the method further includes:
and sending the predicted speed file to the test terminal.
3. The method according to claim 1, wherein the periodically sending a probe message to the tachometer server included in the tachometer server list and determining a second tachometer server from the tachometer server list comprises:
periodically sending a detection message to a speed measuring server contained in the speed measuring server list;
receiving a feedback message of the speed measuring server, determining delay time according to the feedback message and recording the delay time;
calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number;
and determining a second speed measuring server from the speed measuring server list according to the average delay time, wherein the second speed measuring server is the speed measuring server with the minimum average delay time.
4. The method of claim 1, further comprising:
if a list request message sent to the first speed measurement server by the test terminal is monitored, switching to a speed measurement mode and starting timing;
and if the timing exceeds the preset time and the test terminal is not monitored to test the speed through the second speed test server, exiting the speed test mode.
5. The method of claim 4, further comprising:
if the network device is in the speed measurement mode, executing one or a combination of the following steps:
forbidding a new terminal to access the network equipment;
and disconnecting terminals, except the test terminal, of which the signal intensity is smaller than a first preset value from terminals currently accessed to the network equipment.
6. The method of claim 4, further comprising:
if the network device is in the speed measurement mode, executing one or a combination of the following steps:
if the signal intensity of the test terminal is smaller than a second preset value, adjusting the signal parameters of the network equipment to receive a speed measurement message sent by the test terminal or send a feedback message corresponding to the speed measurement message to the test terminal;
modifying the wireless bandwidth to the maximum wireless bandwidth of the network equipment;
adjusting a supply voltage of a processor of the network device to an over-frequency voltage that is greater than a rated voltage of the processor.
7. A network speed testing device is characterized in that the network speed testing device is applied to network equipment connected with a terminal, and comprises:
the sending unit is used for sending a list request message to the first speed measurement server;
the receiving unit is used for receiving the address information of the speed measuring server fed back by the first speed measuring server and generating a speed measuring server list;
the determining unit is further configured to periodically send a detection message to a speed measurement server included in the speed measurement server list, and determine a second speed measurement server from the speed measurement server list;
and the monitoring unit is used for sending the address information of the second speed measurement server to the test terminal if a list request message sent by the test terminal to the first speed measurement server is monitored, so that the test terminal can test the network speed through the second speed measurement server.
8. The apparatus of claim 7,
the sending unit is further configured to send a file request message to the second speed measurement server;
the receiving unit is further configured to receive and store the predicted speed file sent by the second speed measurement server;
the sending unit is further configured to send the predicted speed file to the test terminal after the monitoring unit sends the address information of the second speed measurement server to the test terminal.
9. The apparatus of claim 7, wherein the determining unit comprises:
the detection module is used for periodically sending detection messages to the speed measuring servers contained in the speed measuring server list;
the recording module is used for receiving a feedback message of the speed measuring server, determining delay time according to the feedback message and recording the delay time;
the calculating module is used for calculating the average delay time corresponding to the speed measuring server contained in the speed measuring server list based on the recorded delay time with the preset number;
and the determining module is used for determining a second speed measuring server from the speed measuring server list according to the average delay time, wherein the second speed measuring server is the speed measuring server with the minimum average delay time.
10. The apparatus of claim 7, further comprising:
a timing unit and a switching unit;
if the monitoring unit monitors a list request message sent by a test terminal to the first speed measurement server, switching to a speed measurement mode through a switching unit, and starting timing through a timing unit;
and if the timing unit times for more than preset time and does not monitor that the test terminal tests the speed through the second speed measurement server, exiting the speed measurement mode through the switching unit.
11. The apparatus of claim 10, further comprising:
an adjusting unit, configured to, if the network device is in the speed measurement mode, perform one or a combination of the following steps:
forbidding a new terminal to access the network equipment;
and disconnecting terminals, except the test terminal, of which the signal intensity is smaller than a first preset value from terminals currently accessed to the network equipment.
12. The apparatus of claim 10, further comprising:
an adjusting unit, configured to, if the network device is in the speed measurement mode, perform one or a combination of the following steps:
if the signal intensity of the test terminal is smaller than a second preset value, adjusting the signal parameters of the network equipment to receive a speed measurement message sent by the test terminal or send a feedback message corresponding to the speed measurement message to the test terminal;
modifying the wireless bandwidth into the maximum wireless bandwidth of the network equipment;
adjusting a supply voltage of a processor of the network device to an over-frequency voltage that is greater than a rated voltage of the processor.
CN202110343506.2A 2021-03-30 2021-03-30 Network speed testing method and device Active CN113132182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110343506.2A CN113132182B (en) 2021-03-30 2021-03-30 Network speed testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110343506.2A CN113132182B (en) 2021-03-30 2021-03-30 Network speed testing method and device

Publications (2)

Publication Number Publication Date
CN113132182A CN113132182A (en) 2021-07-16
CN113132182B true CN113132182B (en) 2022-08-30

Family

ID=76775038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110343506.2A Active CN113132182B (en) 2021-03-30 2021-03-30 Network speed testing method and device

Country Status (1)

Country Link
CN (1) CN113132182B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660009B (en) * 2021-09-29 2022-09-09 广东电网有限责任公司 Testing system and testing method for power distribution and utilization communication
CN114375001B (en) * 2021-12-24 2023-10-20 山东信通电子股份有限公司 Network speed measuring method and device
CN116170353B (en) * 2023-02-01 2023-10-24 广州通则康威智能科技有限公司 Automatic speed measurement method, system and storage medium for router down-hanging equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468263A (en) * 2014-11-18 2015-03-25 成都远为天胜科技有限公司 Broadband network speed measurement method
CN105848197A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method, device and system for measuring network speed
CN107071089B (en) * 2017-05-18 2020-09-15 腾讯科技(深圳)有限公司 Scheduling control method, device and system
CN111490908B (en) * 2019-01-29 2023-07-04 北京京东尚科信息技术有限公司 Network speed measurement method, device, equipment, medium and speed measurement system
CN112118151A (en) * 2020-08-28 2020-12-22 北京奇艺世纪科技有限公司 Network speed measuring method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113132182A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN113132182B (en) Network speed testing method and device
CN104780004B (en) The bandwidth velocity-measuring system and method for a kind of home gateway
CN106534289B (en) Automatic testing method, device and system
CN114175593B (en) Method, node and system for detecting node interruption
CN109274513A (en) A kind of data processing method, device and computer readable storage medium
CN103428748A (en) Frequency band measuring method, device and system
CN106507419A (en) The method and device of connection Wi-Fi hotspot
CN112752285B (en) Sniffing copy control equipment and method for Wi-SUN network test
CN105828354A (en) LTE network service downlink rate estimation method and LTE network service downlink rate estimation device
WO2021109481A1 (en) Logged minimization of driving test (mdt) configuration and on demand system information (si)
CN110099452B (en) Communication method and related product
CN111130948A (en) Network quality detection method and device
EP3821569B1 (en) Method and system for real-time encrypted video quality analysis
CN115134277B (en) Broadband network rate testing method and device capable of dynamically adjusting network connection number
CN117336638A (en) Method for improving signal processing capability of light cat
Hu et al. City‐Wide NB‐IoT Network Monitoring and Diagnosing
CN104853377A (en) Method and device for detecting access capability of WIFI network
CN112242937B (en) Network speed measuring method and device, electronic equipment and computer readable medium
US20030031136A1 (en) Analysis of a data transmission system
CN115174437A (en) Network connection stability detection method and system
CN109981376B (en) Pre-downloading method and system, network quality acquisition server and service server
GB2452481A (en) Categorising the speed of a mobile terminal
CN111225395B (en) Automatic WIFI optimization system and method based on mobile phone downloading speed measurement
CN112492660B (en) Network switching method, management platform and gateway
WO2024199521A1 (en) Artificial intelligence (ai) model validation method and communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant