A broadband speed measurement method, device, electronic equipment and storage medium

By obtaining the Internet protocol address of the terminal device, determining the master and slave terminal devices, and controlling the master terminal device to obtain and generate the speed measurement results, the accuracy and flexibility of broadband speed measurement for multiple terminal devices in the prior art is solved, and efficient and accurate speed measurement results are achieved.

CN115883426BActive Publication Date: 2025-05-02CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211548559.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-05
Publication Date
2025-05-02
Estimated Expiration
2042-12-05

AI Technical Summary

Technical Problem

The prior art is difficult to effectively perform broadband speed measurement on multiple terminal devices, resulting in low accuracy, poor flexibility and high cost in speed measurement results.

Method used

By obtaining the Internet protocol addresses of multiple terminal devices, the master terminal device and the slave terminal device are determined, and the master terminal device is controlled to obtain and generate speed measurement results, including the master speed measurement data and slave speed measurement data.

Benefits of technology

It realizes efficient and accurate broadband speed measurement for multiple terminal devices, reduces the cost of speed measurement, and improves the flexibility and accuracy of speed measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883426B_ABST
    Figure CN115883426B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a broadband speed measurement method, device, electronic device and storage medium, which obtains the Internet Protocol addresses of multiple terminal devices; determines the master terminal device and the slave terminal device through the Internet Protocol addresses; controls the master terminal device to obtain the master speed measurement data for the master terminal device; controls the master terminal device to obtain the slave speed measurement data for the slave terminal device through the slave terminal device; controls the master terminal device to generate the speed measurement result using the master speed measurement data and the slave speed measurement data. Thus, broadband speed measurement of multiple terminal devices is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of broadband speed measurement, and in particular to a broadband speed measurement method, a broadband speed measurement device, an electronic device and a computer-readable storage medium. Background Art

[0002] Gigabit broadband is developing rapidly, with a net increase of more than 7 million users from 2020 to 2021, and the number of users has reached 24 million in 2021. Gigabit broadband has become an important cornerstone for the digital operation of cities. At the same time, related companies have launched the "2000M" broadband for home users in 2021, officially announcing that the broadband speed of home users has exceeded 1000M. In the daily network installation and maintenance process, in order to detect the quality of network service, the network is usually tested for broadband speed.

[0003] Therefore, how to perform broadband speed measurement on multiple terminal devices has become a problem that technicians in this field need to overcome. Summary of the invention

[0004] The embodiment of the present invention provides a broadband speed measurement method, device, electronic device and computer-readable storage medium to solve the problem of how to perform broadband speed measurement on multiple terminal devices.

[0005] The embodiment of the present invention discloses a broadband speed measurement method, which may include:

[0006] Obtain Internet Protocol addresses of multiple terminal devices;

[0007] Determine a master terminal device and a slave terminal device from the plurality of terminal devices by using the Internet Protocol address;

[0008] Controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device;

[0009] Controlling the master control terminal device to obtain slave control speed measurement data for the slave control terminal device through the slave control terminal device;

[0010] The master control terminal device is controlled to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data.

[0011] Optionally, the step of controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device may include:

[0012] Generate a speed measurement instruction for the master control terminal device;

[0013] The speed measurement instruction is used to control the master control terminal device to obtain the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol, and to control the master control terminal device to obtain the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

[0014] Optionally, the step of controlling the master control terminal device to obtain slave control speed measurement data for the slave control terminal device through the slave control terminal device may include:

[0015] The master control terminal device is controlled to distribute the second speed measurement probe to the slave control terminal device; the second speed measurement probe is used to control the slave control terminal device to obtain slave control speed measurement data for the slave control terminal device through the second speed measurement probe.

[0016] Optionally, the master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, and the second bandwidth overhead data has a corresponding second timestamp, and the step of controlling the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data may include:

[0017] Generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value;

[0018] Acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve;

[0019] Based on a first preset algorithm, generating a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter;

[0020] Generate a third bandwidth overhead for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm;

[0021] Generate a fourth bandwidth overhead for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm;

[0022] determining a third bandwidth value according to the third bandwidth overhead, and determining a fourth bandwidth value according to the fourth bandwidth overhead;

[0023] The third bandwidth value and the fourth bandwidth value are used to generate a speed measurement result.

[0024] Optionally, the step of determining a master terminal device and a slave terminal device from the plurality of terminal devices by using the Internet Protocol address may include:

[0025] Obtain installation and maintenance data of multiple terminal devices;

[0026] Generate a decision matrix through the installation and maintenance data;

[0027] Determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address;

[0028] The decision matrix is ​​used to determine a slave terminal device from the other terminal devices.

[0029] Optionally, it may also include:

[0030] The slave terminal device is controlled to register with the master terminal device based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

[0031] Optionally, it may also include:

[0032] The decision matrix is ​​used to generate terminal networking information for the master control terminal device;

[0033] When the master terminal device and / or the slave terminal device is offline, the master terminal device is re-determined based on the terminal networking information.

[0034] The embodiment of the present invention further discloses a broadband speed measurement device, which may include:

[0035] A protocol address acquisition module, used to acquire Internet protocol addresses of multiple terminal devices;

[0036] A terminal device determination module, used to determine a master terminal device and a slave terminal device from a plurality of the terminal devices through the Internet Protocol addresses;

[0037] A master control speed measurement data acquisition module, used to control the master control terminal device to acquire the master control speed measurement data for the master control terminal device;

[0038] A slave control speed measurement data acquisition module, used to control the master control terminal device to acquire the slave control speed measurement data for the slave control terminal device through the slave control terminal device;

[0039] The speed measurement result generating module is used to control the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data.

[0040] Optionally, the master control speed measurement data acquisition module may include:

[0041] A speed measurement instruction generation submodule, used to generate a speed measurement instruction for the master control terminal device;

[0042] The speed probe acquisition submodule is used to control the master control terminal device to acquire the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol through the speed measurement instruction, and control the master control terminal device to acquire the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

[0043] Optionally, the slave control speed measurement data acquisition module may include:

[0044] The speed measurement probe distribution submodule is used to control the master terminal device to distribute the second speed measurement probe to the slave terminal device; the second speed measurement probe is used to control the slave terminal device to obtain slave speed measurement data for the slave terminal device through the second speed measurement probe.

[0045] Optionally, the master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, the second bandwidth overhead data has a corresponding second timestamp, and the speed measurement result generation module may include:

[0046] a speed measurement curve generating submodule, configured to generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value;

[0047] A parameter acquisition submodule, used to acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve;

[0048] A standard parameter generation submodule, configured to generate a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter based on a first preset algorithm;

[0049] A third bandwidth cost generating submodule, configured to generate a third bandwidth cost for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm;

[0050] a fourth bandwidth overhead generating submodule, configured to generate a fourth bandwidth overhead for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm;

[0051] a fourth bandwidth value determining submodule, configured to determine a third bandwidth value according to the third bandwidth overhead, and to determine a fourth bandwidth value according to the fourth bandwidth overhead;

[0052] The speed measurement result generating submodule is used to generate a speed measurement result by using the third bandwidth value and the fourth bandwidth value.

[0053] Optionally, the terminal device determination module may include:

[0054] The installation and maintenance data acquisition submodule is used to obtain the installation and maintenance data of multiple terminal devices;

[0055] A decision matrix generation submodule, used to generate a decision matrix through the installation and maintenance data;

[0056] A master control terminal device determination submodule, used to determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address;

[0057] The slave terminal device determination submodule is used to determine the slave terminal device from the other terminal devices using the decision matrix.

[0058] Optionally, it may also include:

[0059] The slave terminal device registration submodule is used to control the slave terminal device to register with the master terminal based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

[0060] Optionally, it may also include:

[0061] A terminal networking information generating submodule, used to generate terminal networking information for the master control terminal device using the decision matrix;

[0062] The master terminal device redetermining submodule is used to redetermine the master terminal device based on the terminal networking information when the master terminal device and / or the slave terminal device is offline.

[0063] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0064] The memory is used to store computer programs;

[0065] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0066] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0067] The embodiments of the present invention include the following advantages:

[0068] The embodiment of the present invention obtains the Internet Protocol addresses of multiple terminal devices; determines the master terminal device and the slave terminal device through the Internet Protocol addresses; controls the master terminal device to obtain the master speed measurement data for the master terminal device; controls the master terminal device to obtain the slave speed measurement data for the slave terminal device through the slave terminal device; controls the master terminal device to generate the speed measurement result using the master speed measurement data and the slave speed measurement data. Thus, broadband speed measurement for multiple terminal devices is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 is a flow chart of the steps of a broadband speed measurement method provided in an embodiment of the present invention;

[0070] Figure 2 A schematic diagram of a structure for a speed measurement curve provided in an embodiment of the present invention;

[0071] Figure 3 A schematic diagram of information interaction on the terminal side of a speed measurement system provided in an embodiment of the present invention;

[0072] Figure 4 A schematic diagram of information interaction on a speed measurement system platform provided in an embodiment of the present invention;

[0073] Figure 5 is a structural block diagram of a broadband speed measurement device provided in an embodiment of the present invention;

[0074] Figure 6 It is a hardware structure block diagram of an electronic device provided in each embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0076] In order to enable those skilled in the art to better understand the embodiments of the present invention, the technical terms involved in the embodiments of the present invention are explained below.

[0077] IGI algorithm: The IGI algorithm is an algorithm that can measure the available bandwidth. It uses a speed test host to send speed test packets quickly and continuously. The speed test packets are multiplexed with the network background traffic statistics during transmission. Therefore, the time interval of the speed test packets will change. Because the packet interval at the destination is affected by the transmission rate of the background traffic, the network bandwidth is calculated by calculating the background traffic size.

[0078] UDP protocol: UDP is the abbreviation of User Datagram Protocol, and its Chinese name is User Datagram Protocol. It is a connectionless transport layer protocol.

[0079] Websocket: is a protocol for full-duplex communication over a single TCP connection.

[0080] Hypertext Transfer Protocol: Also known as HTTP (Hyper Text Transfer Protocol, HTTP) is a simple request-response protocol that usually runs on top of TCP. It specifies what kind of messages a client may send to a server and what kind of responses it may get.

[0081] Internet Protocol address: also known as IP address. IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the differences in physical addresses.

[0082] PAAS platform: Platform-as-a-Service, refers to the service of providing users with application software deployment and operating environment on cloud computing infrastructure.

[0083] CI / CD: CI / CD is a method for delivering applications to customers frequently by introducing automation during the application development phase.

[0084] Oracle Database: Oracle Database, also known as Oracle RDBMS, or simply Oracle, is a relational database management system from Oracle Corporation.

[0085] Bandwidth Overhead: (Bandwidth Overhead) is a percentage parameter, which is calculated based on the audio and video stream bit rate. This additional bandwidth allocated by the user is used to retransmit lost data packets, transmit reverse control data, and handle congestion.

[0086] Bandwidth value: refers to the amount of data that can be transmitted per unit time (generally 1 second), and is an important indicator for measuring network characteristics.

[0087] Probe: A probe is a web script program that uses web programming languages ​​(ASP, PHP, ASP.NET, etc.) to detect sensitive information on a server. It is usually used to detect website directories, server operating systems, number of CPUs, session timeouts, server session variables, server application variables, component support, computing speed, disk read and write speeds, and network connection speeds, etc.

[0088] As people's daily life demands for intelligence and digitalization increase, the requirements for broadband services are also increasing. With the popularization of gigabit networks, more and more cities have begun to upgrade and launch gigabit network services. As one of the important indicators for evaluating the quality of network services, network speed is directly related to the user experience. After upgrading to gigabit network services, since the existing network hardware is generally still gigabit network ports, the traditional broadband speed test method uses multiple terminals to test multiple tributary broadbands in parallel in order to avoid the speed test results being affected by hardware. This undoubtedly increases the cost of broadband speed test and reduces the speed test efficiency. At the same time, since the traditional broadband speed test method is that the test platform sends speed test instructions to the terminal in a centralized manner, after the terminal reports the speed test results, it only performs a simple merger calculation on multiple terminal data, and does not consider the loss of each terminal. Therefore, the speed test results are low in accuracy and poor in flexibility. The current speed test method is to test the speed by calling the speed test probe to send data packets. However, when users with bandwidths above 1000M perform bandwidth speed measurement, if one of the home gateway or the Internet terminal does not have a network port above 1000M, the speed measurement result will be limited by the hardware limitation. At present, the mainstream hardware is still the 1000M network port, and the penetration rate of the network ports above 1000M, such as 2.5G network port or 10G network port, is relatively low. Therefore, the current mainstream speed measurement method cannot reflect the user's actual bandwidth rate. In response to this problem, currently only multiple Internet terminals, such as PC computers, speed measurement boxes and mobile phones, can initiate speed measurement requests at the same time, and add the speed measurement results of multiple Internet terminals as the final speed measurement result. However, the accuracy of this simple multi-terminal stacking speed measurement method is low. This simple multi-terminal stacking speed measurement method cannot solve the problems of speed measurement time difference, data synchronization and collaborative computing of a single speed measurement terminal, so this method is not highly recognized by users. In an embodiment of the present invention, the speed of the broadband is measured by determining the master terminal device and the slave terminal device to improve the accuracy and efficiency of the broadband speed measurement, while reducing the cost of the broadband speed measurement.

[0089] Reference Figure 1 , shows a flowchart of a broadband speed measurement method provided in an embodiment of the present invention, which may specifically include the following steps:

[0090] Step 101, obtaining Internet Protocol addresses of multiple terminal devices;

[0091] Step 102, determining a master terminal device and a slave terminal device from the plurality of terminal devices by using the Internet Protocol addresses;

[0092] Step 103, controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device;

[0093] Step 104, controlling the master control terminal device to obtain slave control speed measurement data for the slave control terminal device through the slave control terminal device;

[0094] Step 105: Control the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data.

[0095] In practical applications, the Internet Protocol address serves as an identifier to distinguish different terminals in the network, allowing a terminal to be accurately selected from multiple terminals.

[0096] In a specific implementation, an embodiment of the present invention can obtain Internet Protocol addresses of multiple terminal devices, and determine the master terminal device and the slave terminal device through the Internet Protocol addresses. By way of example, the multiple terminal devices may be "terminal device 1", "terminal device 2" ... "terminal device n", and the Internet Protocol addresses of "terminal device 1", "terminal device 2" ... "terminal device n" may be "192.168.1.5", "192.168.1.6" ... "192.168.1.m", and "terminal device 1" with an Internet Protocol address of "192.168.1.5" may be determined as the master terminal device, and "terminal device 2" ... "terminal device n" with Internet Protocol addresses of "192.168.1.6" ... "192.168.1.m" may be determined as slave terminal devices.

[0097] Of course, the above examples are only for illustration, and those skilled in the art may arbitrarily select terminal devices as the master terminal device and the slave terminal device, and the embodiments of the present invention do not limit this.

[0098] In actual applications, speed test data may include bandwidth values, upload rates, download rates and other information that can be used to express the network's ability to send and receive data. By setting a master-slave relationship and controlling the master terminal device to obtain data from the slave terminal device, a tree structure is formed to realize a master terminal device to one or more slave terminal devices. Compared with the existing speed test method of initiating speed test requests from multiple Internet terminals at the same time and adding the speed test results of multiple Internet terminals as the final speed test result, the speed test request process can be simplified and the speed test accuracy can be improved.

[0099] In a specific implementation, the embodiment of the present invention can control the master terminal device to obtain the master speed measurement data for the master terminal device, and control the master terminal device to obtain the slave speed measurement data for the slave terminal device through the slave terminal device. For example, when there are multiple terminal devices "terminal device 1", "terminal device 2" ... "terminal device n", the Internet Protocol addresses of "terminal device 1", "terminal device 2" ... "terminal device n" can be "192.168.1.5", "192.168.1.6" ... "192.168.1.7". 8.1.m”, where the master terminal device is “terminal device 1” and the slave terminal devices are “terminal device 2”… “terminal device n”, “terminal device 1” can be controlled to obtain the master speed measurement data of the master terminal device “terminal device 1”, and the master terminal device “terminal device 1” can be controlled to obtain the slave speed measurement data of “terminal device 2”… “terminal device n” from the slave terminal devices “terminal device 2”… “terminal device n”, and then the master terminal device is controlled to generate a speed measurement result using the master speed measurement data and the slave speed measurement data.

[0100] Of course, the above examples are only for illustration, and those skilled in the art may arbitrarily select terminal devices as the master terminal device and the slave terminal device, and the embodiments of the present invention do not limit this.

[0101] The embodiment of the present invention obtains the Internet Protocol addresses of multiple terminal devices; determines the master terminal device and the slave terminal device through the Internet Protocol addresses; controls the master terminal device to obtain the master speed measurement data for the master terminal device; controls the master terminal device to obtain the slave speed measurement data for the slave terminal device through the slave terminal device; controls the master terminal device to generate the speed measurement result using the master speed measurement data and the slave speed measurement data. Thus, broadband speed measurement for multiple terminal devices is realized.

[0102] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0103] In an optional embodiment of the present invention, the step of controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device includes:

[0104] Generate a speed measurement instruction for the master control terminal device;

[0105] The speed measurement instruction is used to control the master control terminal device to obtain the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol, and to control the master control terminal device to obtain the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

[0106] In actual applications, a probe is a Web script program, which is a script file that detects sensitive information of a server through a web programming language (ASP, PHP, ASP.NET, etc.). It is usually used to detect website directories, server operating systems, CPU numbers, Session timeouts, server Session variables, server Application variables, component support, computing speeds, disk read and write speeds, and network connection speeds, etc. The existing broadband speed test method is to manually initiate speed test requests at the same time through multiple Internet terminals (such as PCs, speed test boxes, mobile phones, etc.) to generate speed test probes. Manual operations are bound to produce large time differences, thereby affecting the final test results. By initiating speed tests in sequence from the master terminal device to the slave terminal device, the time difference caused by manual speed test requests to multiple Internet speed test terminals can be eliminated, further increasing the accuracy of broadband speed tests.

[0107] In a specific implementation, a speed measurement instruction can be generated for a master control terminal device; the speed measurement instruction is used to control the master control terminal device to obtain a first speed measurement probe and a second speed measurement probe based on the hypertext transfer protocol, and the master control terminal device is controlled to obtain master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device. Exemplarily, multiple terminal devices may be “terminal device 1”, “terminal device 2”… “terminal device n”, and the Internet Protocol addresses of “terminal device 1”, “terminal device 2”… “terminal device n” may be “192.168.1.5”, “192.168.1.6”… “192.168.1.m”, and “terminal device 1” with an Internet Protocol address of “192.168.1.5” may be determined as a master terminal device, and “terminal device 2”… “terminal device n” with Internet Protocol addresses of “192.168.1.6”… “192.168.1.m” may be determined as slave terminal devices. After determining the master terminal device and the slave terminal device, the embodiment of the present invention can generate a speed measurement instruction for the master terminal device "terminal device 1". After receiving the speed measurement instruction, the master terminal device can obtain the first speed measurement probe and the second speed measurement probe based on the hypertext transfer protocol in response to the speed measurement instruction. After the master terminal device "terminal device 1" obtains the first speed measurement probe and the second speed measurement probe, it distributes the second speed measurement probe to the slave speed measurement terminals "terminal device 2"... "terminal device n", wherein the first speed measurement probe is a speed measurement probe for "terminal device 1", and the second speed measurement probe is a speed measurement probe for "terminal device 2"... "terminal device n". "Terminal device 1" can perform speed measurement based on the first speed measurement probe and obtain the master speed measurement data for "terminal device 1".

[0108] The embodiment of the present invention generates a speed measurement instruction for a master control terminal device; controls the master control terminal device to obtain a first speed measurement probe and a second speed measurement probe based on a hypertext transfer protocol through the speed measurement instruction, and controls the master control terminal device to obtain master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device. Thus, the problem that the time difference caused by manually initiating speed measurement instructions for multiple Internet speed measurement terminals affects the speed measurement result is eliminated, and the accuracy of broadband speed measurement is further increased.

[0109] In an optional embodiment of the present invention, the step of controlling the master control terminal device to obtain slave control speed measurement data for the slave control terminal device through the slave control terminal device includes:

[0110] The master control terminal device is controlled to distribute the second speed measurement probe to the slave control terminal device; the second speed measurement probe is used to control the slave control terminal device to obtain slave control speed measurement data for the slave control terminal device through the second speed measurement probe.

[0111] In a specific implementation, multiple terminal devices may be "terminal device 1", "terminal device 2" ... "terminal device n", and the Internet Protocol addresses of "terminal device 1", "terminal device 2" ... "terminal device n" may be "192.168.1.5", "192.168.1.6" ... "192.168.1.m", and "terminal device 1" with an Internet Protocol address of "192.168.1.5" may be determined as a master terminal device, and "terminal device 2" ... "terminal device n" with Internet Protocol addresses of "192.168.1.6" ... "192.168.1.m" may be determined as slave terminal devices. After determining the master terminal device and the slave terminal device, an embodiment of the present invention may generate a control scheme for the master terminal device and the slave terminal device. For the speed measurement instruction of the master terminal device "terminal device 1", after receiving the speed measurement instruction, the master terminal device "terminal device 1" can obtain the first speed measurement probe and the second speed measurement probe based on the hypertext transfer protocol in response to the speed measurement instruction, and distribute the second speed measurement probe to the slave terminal devices "terminal device 2"... "terminal device n". After receiving the second speed measurement probe, the slave terminal device can perform speed measurement based on the second speed measurement probe. After completing the speed measurement of the slave terminal devices, the slave terminal devices "terminal device 2"... "terminal device n" can send the slave speed measurement data to the master terminal device "terminal device 1", and the master terminal device can receive the slave speed measurement data for the slave terminal devices "terminal device 2"... "terminal device n".

[0112] The embodiment of the present invention controls the master terminal device to distribute the second speed measurement probe to the slave terminal device; the second speed measurement probe is used to control the slave terminal device to obtain the slave speed measurement data for the slave terminal device through the second speed measurement probe, so that the master terminal device can obtain the slave speed measurement data for the slave terminal device while obtaining the master speed measurement data, thereby solving the problem that in the existing speed measurement method, multiple Internet test terminals are required to receive manual instructions at the same time to perform speed measurement, reducing the number of Internet test terminals used, saving speed measurement costs, and also avoiding the influence of artificial time difference caused by multiple manual speed measurement instructions on the speed measurement results, thereby improving the accuracy of broadband speed measurement.

[0113] In an optional embodiment of the present invention, the master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, and the second bandwidth overhead data has a corresponding second timestamp, and the step of controlling the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data includes:

[0114] Generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value;

[0115] Acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve;

[0116] Based on a first preset algorithm, generating a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter;

[0117] Generate a third bandwidth overhead for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm;

[0118] Generate a fourth bandwidth overhead for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm;

[0119] determining a third bandwidth value according to the third bandwidth overhead, and determining a fourth bandwidth value according to the fourth bandwidth overhead;

[0120] The third bandwidth value and the fourth bandwidth value are used to generate a speed measurement result.

[0121] In practical applications, the existing speed measurement methods are implemented based on the IGI algorithm. The bandwidth of a single terminal is calculated through the IGI algorithm. The IGI algorithm is an algorithm that can measure the available bandwidth. The speed measurement packets are sent quickly and continuously by the speed measurement host. The speed measurement packets are multiplexed with the network background traffic statistics during the transmission process. Therefore, the time interval of the speed measurement packets will change. Because the packet interval at the destination is affected by the transmission rate of the background traffic, the network bandwidth is calculated by calculating the size of the background traffic. The IGI algorithm in the existing speed measurement method only takes into account the size of the background traffic, and does not refine the terminal's delay, packet loss, jitter, etc. The bandwidth of multiple tributaries is simply summed up, and the loss of edge traffic when multiple terminals are concurrent is not considered.

[0122] In a specific implementation, the master control speed measurement data of the embodiment of the present invention may include first bandwidth overhead data and a first bandwidth value, and the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value. The first bandwidth overhead data has a corresponding first timestamp, and the second bandwidth overhead data has a corresponding second timestamp. The first bandwidth overhead data can be used to express the bandwidth overhead of the master terminal device, and the second bandwidth overhead data can be used to express the bandwidth overhead of the slave terminal device. For example, when multiple terminal devices are "terminal device 1", "terminal device 2"... "terminal device n", the Internet Protocol addresses of "terminal device 1", "terminal device 2"... "terminal device n" can be "192.168.1.5", "192.168.1.6"... "192.168.1.m", and the "terminal device 1" with an Internet Protocol address of "192.168.1.5" can be determined as the master terminal device, and the Internet Protocol address of " 192.168.1.6"... "terminal device 2"... "terminal device n" of "192.168.1.m" are determined as slave terminal devices, wherein the first bandwidth overhead of the master speed measurement data can be the "terminal device 1_bandwidth overhead" in the speed measurement data for "terminal device 1", wherein the second bandwidth overhead of the slave speed measurement data can be the "terminal device 2_bandwidth overhead"... "terminal device n_bandwidth overhead" in the speed measurement data for "terminal device 2"... "terminal device n", wherein "terminal device 1_bandwidth overhead" has a corresponding timestamp, which can be "the instant time of obtaining terminal device 1_bandwidth overhead", "terminal device 2_bandwidth overhead"... "terminal device n_bandwidth overhead" have corresponding timestamps, which can be "the instant time of obtaining terminal device 2-n_bandwidth overhead", optionally, the time interval for obtaining the bandwidth overhead for this terminal device by the same terminal device can be 200ms.

[0123] In a specific implementation, an embodiment of the present invention can generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value and the second bandwidth value; obtain delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve; generate standard parameters according to the delay parameters, packet loss parameters and jitter parameters based on the first preset algorithm; generate a third bandwidth overhead for the master terminal device according to the standard parameters and the first bandwidth value according to the second preset algorithm; generate a fourth bandwidth overhead for the slave terminal device according to the standard parameters and the second bandwidth value according to the second preset algorithm; determine a third bandwidth value according to the third bandwidth overhead, and determine a fourth bandwidth value according to the fourth bandwidth overhead; and generate a speed measurement result using the third bandwidth value and the fourth bandwidth value. Exemplarily, the speed measurement duration can be set to 15 seconds, and the bandwidth overhead of each terminal device can be recorded every 200ms. The speed measurement curve can be drawn with the bandwidth overhead as the vertical axis and the instantaneous time of obtaining each bandwidth overhead as the horizontal axis.

[0124] refer to Figure 2 , Figure 2 A structural schematic diagram of a speed measurement curve provided in an embodiment of the present invention is provided. The speed measurement curve is used to express the change of the bandwidth value of the same terminal device corresponding to different timestamps at a preset time interval. It can be known that the speed measurement result is not an approximate straight line, but a normal distribution curve at the beginning and end of the speed measurement. The error generated by the single-terminal speed measurement will increase exponentially during the multi-terminal speed measurement, and a secondary error will be caused due to the problems of clock synchronization and data fusion between the terminals. According to the speed measurement curve, the speed measurement result of each terminal is analyzed, and the speed measurement records of each terminal that conform to the model are intercepted by artificial intelligence, and automatically calibrated. The curve is recorded as t~N(μ, σ^2), where σ is related to the terminal's delay (L), packet loss (M), jitter (N) and other parameters. In the telecommunications-level standard state, delay (L0) = 5ms, packet loss (M0 = 0.001%), jitter (N0 = 1ms), according to the first preset algorithm, the standard parameters in this state are obtained, the standard parameters can be standard σ0, and the first preset algorithm can be the calculation formula of σ0, as follows:

[0125] Formula 1: σ0 / σ=L0 / L+M0 / M+N0 / N

[0126] In a multi-terminal speed measurement system, while measuring the speed, the terminal's delay, packet loss, jitter, etc. are measured, and the above function is used as a weighted average parameter of the non-stationary speed measurement period to obtain the final second preset algorithm, which can be the following compensation optimization calculation formula:

[0127] Formula 2:

[0128]

[0129] Among them, the first bandwidth value can be N(t), that is, the actual bandwidth data measured at this moment, σ=σ0 / (L0 / L+M0 / M+N0 / N), and the peak value μ is obtained as the third bandwidth cost, and μ is the bandwidth cost obtained according to the optimization algorithm at this moment. The bandwidth cost values ​​when the slope is climbing and descending are accumulated and used together with the bandwidth cost value during the stable speed measurement period as the basic data of the IGI algorithm to obtain the final speed measurement result.

[0130] The embodiment of the present invention generates a speed measurement curve according to first bandwidth overhead data, second bandwidth overhead data, first timestamp, second timestamp, first bandwidth value and second bandwidth value; obtains delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve; generates standard parameters according to delay parameters, packet loss parameters and jitter parameters based on a first preset algorithm; generates a third bandwidth overhead for a master terminal device according to the standard parameters and the first bandwidth value according to a second preset algorithm; generates a fourth bandwidth overhead for a slave terminal device according to the standard parameters and the second bandwidth value according to a second preset algorithm; determines a third bandwidth value according to the third bandwidth overhead, and determines a fourth bandwidth value according to the fourth bandwidth overhead; and generates a speed measurement result using the third bandwidth value and the fourth bandwidth value. The existing technical solution solves the problem that the speed measurement data of multiple terminals are simply stacked and calculated using the IGI algorithm, which only considers the size of the background traffic, and does not refine the delay, packet loss, jitter and other conditions of the terminal, and only simply sums up the bandwidths of multiple tributaries, and does not consider the loss of edge traffic when multiple terminals are concurrent, resulting in low accuracy of the speed measurement result, thereby improving the accuracy of broadband speed measurement.

[0131] In an optional embodiment of the present invention, the step of determining a master terminal device and a slave terminal device from a plurality of terminal devices by using the Internet Protocol address comprises:

[0132] Obtain installation and maintenance data of multiple terminal devices;

[0133] Generate a decision matrix through the installation and maintenance data;

[0134] Determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address;

[0135] The decision matrix is ​​used to determine a slave terminal device from the other terminal devices.

[0136] In a specific implementation, installation and maintenance data of multiple terminal devices can be obtained; a decision matrix can be generated through the installation and maintenance data; a master terminal device can be determined; the master terminal device has a corresponding master Internet Protocol address; the master Internet Protocol address is used to enable other terminal devices except the master terminal device to discover the master terminal device based on the master Internet Protocol address through the UDP protocol; and a slave terminal device can be determined from other terminal devices using the decision matrix.

[0137] Exemplarily, installation and maintenance data of multiple terminal devices, such as installation time data, maintenance cycle data, and installation area information, can be obtained, and a decision matrix can be generated based on the analysis of the installation and maintenance data of broadband users. For example, the data is sorted according to the order of the installation time data and the distance of the installation area information to generate a decision matrix, and the terminal devices with similar installation times in the same area are classified as decision level 1, and the terminal devices with long installation time intervals in the same area are classified as decision level 2. Of course, the above examples are only examples, and those skilled in the art can use other rules to analyze the installation and maintenance data to generate a decision matrix, and the embodiments of the present invention are not limited to this.

[0138] For example, when multiple terminal devices are "terminal device 1", "terminal device 2" ... "terminal device n", the Internet Protocol addresses of "terminal device 1", "terminal device 2" ... "terminal device n" can be "192.168.1.5", "192.168.1.6" ... "192.168.1.m", and "terminal device 1" with an Internet Protocol address of "192.168.1.5" can be determined as the main control terminal device, and the corresponding main control Internet Protocol address is "192.168.1.5". At this time, other terminal devices "terminal device 2" ... "terminal device n" except the main control terminal device "terminal device 1" can be based on the main control Internet Protocol address. The networking protocol address "192.168.1.5" discovers the master terminal device "terminal device 1" through the UDP protocol. Then, if the decision level 1 in the decision matrix is ​​used to analyze other terminal devices "terminal device 2"... "terminal device n", and it is determined that the terminal devices that meet the decision level 1 are "terminal device 2"... "terminal device n-1", then "terminal device 2"... "terminal device n-1" are determined as slave terminal devices; if the decision level 2 in the decision matrix is ​​used to analyze other terminal devices "terminal device 2"... "terminal device n", and it is determined that the terminal device that meets the decision level 2 is "terminal device n", then "terminal device n" is determined as a slave terminal device.

[0139] The embodiment of the present invention obtains installation and maintenance data of multiple terminal devices; generates a decision matrix through the installation and maintenance data; determines the master terminal device; the master terminal device has a corresponding master Internet Protocol address; the master Internet Protocol address is used to enable other terminal devices other than the master terminal device to discover the master terminal device through the UDP protocol based on the master Internet Protocol address; and uses the decision matrix to determine the slave terminal device from other terminal devices. Thus, multiple terminal devices can be flexibly networked, solving the problem that terminals cannot automatically collaborate and discover each other and cannot flexibly expand and contract.

[0140] In an optional embodiment of the present invention, the slave terminal device may be controlled to register with the master terminal device based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

[0141] In a specific implementation, the slave terminal device may be controlled to register with the master terminal device based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device. Exemplarily, when multiple terminal devices are "terminal device 1", "terminal device 2" ... "terminal device n", the Internet Protocol addresses of "terminal device 1", "terminal device 2" ... "terminal device n" can be "192.168.1.5", "192.168.1.6" ... "192.168.1.m", "terminal device 1" with an Internet Protocol address of "192.168.1.5" can be determined as the master terminal device, and the corresponding master Internet Protocol address is "192.168.1.5", and the slave terminal devices are "terminal device 2" ... "terminal device n", and the slave terminal devices "terminal device 2" ... "terminal device n" can be registered with "terminal device 1" and "192.168.1.5" through the Websocket protocol, so that "terminal device 1" and "terminal device 2" ... "terminal device n" are connected, and multiple terminal devices can exchange data information through the Websocket protocol, including sending instructions, reporting results, returning logs, notification messages, etc.

[0142] The embodiment of the present invention controls the slave terminal device to register with the master terminal based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device, realizes data interaction between multiple terminal devices, and provides support for obtaining speed measurement data of the slave terminal device through the master terminal device.

[0143] In an optional embodiment of the present invention, it also includes:

[0144] The decision matrix is ​​used to generate terminal networking information for the master control terminal device;

[0145] When the master terminal device and / or the slave terminal device is offline, the master terminal device is re-determined based on the terminal networking information.

[0146] In a specific implementation, a decision matrix may be used to generate terminal networking information for a master terminal device; when the master terminal device and / or the slave terminal device is offline, the step of determining the master terminal device is re-executed based on the terminal networking information. Exemplarily, when multiple terminal devices are "terminal device 1", "terminal device 2" ... "terminal device n", the Internet Protocol addresses of "terminal device 1", "terminal device 2", "terminal device 3" and "terminal device 4" may be "192.168.1.5", "192.168.1.6", "192.168.1.7" and "192.168.1.8", "terminal device 1" with an Internet Protocol address of "192.168.1.5" may be determined as the master terminal device according to the decision matrix, and "terminal device 2" and "terminal device 3" among the terminal devices "terminal device 2", "terminal device 3" and "terminal device 4" with a decision level of 1 may be determined as slave terminal devices according to the decision matrix, and at the same time, according to the terminal device quantity information and the decision matrix, The terminal networking information is generated based on the policy level information. The terminal networking information may be "the slave-controlled terminal devices are 2 terminal devices that meet the decision level of 1". When a terminal device is offline in "terminal device 1" and / or "terminal device 2" or "terminal device 3", for example, when "terminal device 2" is offline, the master terminal device is re-determined according to the terminal networking information "the slave-controlled terminal devices are 2 terminal devices that meet the decision level 1", and the online terminal devices are judged to be "terminal device 1", "terminal device 3" and "terminal device 4", among which "terminal device 4" meets the decision level of 1. Then, according to the terminal networking information "the slave-controlled terminal devices are 2 terminal devices that meet the decision level 1", the master terminal device is determined to be "terminal device 1", and the slave terminal devices are "terminal device 3" and "terminal device 4".

[0147] The embodiment of the present invention generates terminal networking information for a master terminal device by using a decision matrix; when the master terminal device and / or the slave terminal device is offline, the master terminal device is re-determined based on the terminal networking information. Automatic judgment and reconfiguration of the terminal device are achieved after an unexpected offline, thereby enhancing the intelligence and automation of networking allocation.

[0148] In order to enable those skilled in the art to better understand the embodiments of the present invention, the embodiments of the present invention are described below using a complete example.

[0149] The high-bandwidth speed measurement method for multi-terminal collaboration is implemented based on the IGI algorithm. The IGI algorithm can realize the accurate calculation of the bandwidth of a single terminal, and the selection of multi-terminal collaborative networking can be realized through an automatic collaborative method of flexible networking. The IGI algorithm is an algorithm that can measure the available bandwidth. The speed measurement host sends the speed measurement package quickly and continuously. The speed measurement package is multiplexed with the network background traffic statistics during the transmission process. Therefore, the time interval of the speed measurement package will change. Because the packet interval of the destination is affected by the transmission rate of the background traffic, the network bandwidth is calculated by calculating the size of the background traffic. The automatic collaborative method of flexible networking is that the speed measurement terminals discover each other and synchronize configuration information through the UDP protocol, and exchange data information through Websocket, including sending instructions, reporting results, returning logs, and notification messages. The Http protocol is used to obtain probes, speed measurement, and report results to complete the collaborative speed measurement of multiple terminals.

[0150] By studying and implementing a multi-terminal collaborative speed measurement algorithm, the data error problem caused by the time difference when a single terminal starts speed measurement is solved. By using independent algorithms to calculate and integrate the average rate, peak rate and other result data, the purpose of collaborative and accurate measurement of multiple terminals is achieved. By analyzing the IGI algorithm, it can be seen that the process of measuring bandwidth requires statistical increase and decrease of packet gaps. Assuming that the speed measurement packet flow is constant and the queue size is unchanged, the increase and decrease of this gap depends on the interval between sending packet pairs, thus affecting the measurement accuracy. By adjusting the measurement parameters in the IGI algorithm, the balance point of bandwidth measurement is found, the increase and decrease of packet gaps is reduced, and the average value is calculated through repeated measurement over a period of time, reducing errors and improving measurement accuracy. After years of accumulation, modeling and analysis of actual speed measurement data of a large number of users.

[0151] After long-term analysis, it is found that when the speed test duration is 15 seconds, the bandwidth overhead is recorded every 200ms, with the bandwidth overhead as the vertical axis and the time as the horizontal axis. The recorded speed test results are not approximate straight lines, but show a normal distribution curve at the beginning and end of the speed test (reference Figure 2 ). The error caused by the single-terminal speed measurement will increase exponentially when the multi-terminal speed measurement is performed, and the clock synchronization and data fusion problems between the terminals will cause secondary errors. Therefore, based on the calculation results obtained by the original IGI algorithm, we have obtained a further multi-terminal optimization algorithm through a large amount of data accumulation and analysis.

[0152] According to the above normal distribution curve model, the speed measurement results of each terminal are analyzed, and the speed measurement records of each terminal that conform to the model are intercepted and automatically calibrated by artificial intelligence. The curve is recorded as t~N(μ, σ^2), where σ is related to the terminal's delay (L), packet loss (M), jitter (N) and other parameters. In the telecommunications-level standard state, delay (L0) = 5ms, packet loss (M0 = 0.001%), jitter (N0 = 1ms), and the standard σ0 is obtained in this state, σ0 / σ = L0 / L+M0 / M+N0 / N. In the multi-terminal speed measurement system, we measure the terminal's delay, packet loss, jitter, etc. while measuring the speed, and use the above function as the weighted average parameter of the non-stationary speed measurement period to obtain the final compensation optimization calculation formula.

[0153] The specific algorithm is as follows:

[0154]

[0155] Among them, N(t) is the actual measured bandwidth data at that moment, σ = σ0 / (L0 / L+M0 / M+N0 / N), and the peak value μ is obtained. μ is the bandwidth overhead obtained by the optimization algorithm at this moment. The bandwidth overhead values ​​when the slope is climbing and descending are accumulated and used together with the bandwidth overhead value during the stable speed measurement period as the basic data of the IGI algorithm to obtain the final speed measurement result.

[0156] Through research, we found an automatic collaborative method for flexible networking, which solved the problem that terminals could not automatically discover each other and could not flexibly expand and contract. Based on the accumulation, analysis and modeling of broadband user installation and maintenance data, we built an end-to-end environmental data supplement algorithm that combines terminal network environment data. When a new terminal chooses to access the network, the new access terminal is coordinated and networked according to the current decision matrix. Speed ​​test terminals discover each other and synchronize configuration information by broadcasting customized information in the local area network in the order of master control first and auxiliary control later. If a terminal accidentally drops offline, it can automatically judge, rebroadcast and configure information based on the status of existing terminals in the system. The reorganized master terminal can be manually specified, or the system can make intelligent judgments and autonomously select the master terminal. The system uses Websocket to exchange encrypted data information to achieve multi-terminal collaboration. The main control terminal can control the auxiliary control terminal speed measurement group through an automatic collaboration program. The auxiliary control terminal speed measurement group can be flexibly expanded or reduced according to actual speed measurement needs, and can automatically discover and automatically distinguish between the main control and auxiliary control intelligent networking according to the actual situation of the terminal. After an accidental disconnection, it can automatically reorganize according to different situations such as the main control disconnection and the auxiliary control disconnection, etc., to meet the speed measurement needs of bandwidth above 1000M.

[0157] The speed measurement system in the embodiment of the present invention can be divided into a terminal side and a platform side, wherein:

[0158] refer to Figure 3 , Figure 3 The diagram is a schematic diagram of information interaction on the terminal side of a speed measurement system provided in an embodiment of the present invention. The speed measurement system 301 includes a terminal 302, a terminal 303 and a personal computer PC304. The personal computer PC304 may include a user operation interface, and the user operation interface may be used to display a browser loaded on the personal computer PC304. The browser may be used to display a client list, and the client list may include multiple Internet Protocol addresses IP, wherein the first Internet Protocol address IP may be the Internet Protocol address IP of the terminal 303. The terminal 302 discovers the terminal 303 through UDP, and the terminals 302, 303 and the personal computer PC304 interact with data through the Websocket protocol. The Http protocol is used to obtain probes, measure speed, report results and other functions.

[0159] refer to Figure 4 , Figure 4 This is a schematic diagram of information interaction on the platform side of a speed measurement system provided in an embodiment of the present invention. The platform side of the high-bandwidth speed measurement system with multi-terminal collaboration is divided into two parts: First, the existing cloud platform includes: L4 load balancing, web application server, Oracle database, probe server group, etc. Second, the PaaS platform includes: service governance, container engine, configuration / registration center, CI / CD, database cluster, log engine, etc.; the container engine includes: lineman authentication, broadband information acquisition, probe scheduling, resource occupation, resource release, speed measurement result calculation, docking with related third-party systems, application access, permission control, business monitoring, data collection, etc.

[0160] Exemplarily, the embodiment of the present invention can perform broadband speed measurement in the following manner.

[0161] S1. The installation and maintenance personnel start terminal 1, add the parameter --web to start the terminal plug-in, obtain the IP (for example: 192.168.1.5) after the terminal plug-in is started, output the IP to the console, the terminal application APP displays the IP to the installation and maintenance personnel, and starts the service discovery client.

[0162] S2. The installation and maintenance personnel start Terminal 2, add the parameter --web to start the terminal plug-in, and obtain the IP (e.g. 192.168.1.9) after the terminal plug-in is started. Output the IP to the console, the terminal APP displays the IP to the installation and maintenance personnel, and starts the service discovery client.

[0163] S3. The installation and maintenance personnel enter the http: / / 192.168.1.5:8080 of one of the terminals (for example, 192.168.1.5 is selected) on the PC browser to access the control homepage, and the control homepage is displayed on the browser.

[0164] S4. The installation and maintenance personnel click "Refresh" next to the speed test client list. The terminal plug-in connected to the browser starts the service discovery function. Other terminals discover 192.168.1.5 and register the speed test client to 192.168.1.5 through the Websocket protocol.

[0165] 5. The installation and maintenance personnel click to start the speed test. After receiving the instruction, the plug-in on the main control terminal (192.168.1.5) applies for a probe from the speed test service. If successful, it distributes the probe to other speed test clients.

[0166] 6. After receiving the speed test instruction, other speed test clients start speed testing. After the speed test is completed, the results are sent to the plug-in of the main control terminal.

[0167] 7. The main control terminal plug-in merges the speed test results, completes the calculation based on an independent algorithm, outputs them to the console, and reports the speed test results to the speed test service. The speed test is completed in one go.

[0168] 8. The speed test process includes fault tolerance and reorganization for various abnormal situations. (Such as abnormal disconnection of the slave test terminal, abnormal disconnection of the master test terminal, etc.)

[0169] In the embodiment of the present invention, a new automatic collaboration program is added on the terminal side, so that the speed measurement terminals can mutually discover and synchronize configuration information through the UDP protocol, and exchange data information through Websocket, including sending instructions, reporting results, returning logs, and notification messages, and obtaining probes, speed measurement, and reporting results through the Http protocol to complete the collaborative speed measurement of multiple terminals. Flexible networking of speed measurement terminals is achieved through the decision matrix in the automatic collaboration program on the terminal side. When a new terminal chooses to access the network, the new access terminal is coordinated and networked according to the current decision matrix. Speed ​​measurement terminals discover each other and synchronize configuration information through the speed measurement terminals broadcasting customized information in the order of master control first and auxiliary control later in the local area network. If a terminal is accidentally disconnected, it can be automatically judged according to the situation of the existing terminals in the system, and the information can be rebroadcast and configured. Data information is exchanged through Websocket to achieve multi-terminal collaboration. The master control terminal can control the auxiliary control terminal speed measurement group through the automatic collaboration program, and the auxiliary control terminal speed measurement group can be flexibly expanded and reduced according to actual speed measurement needs. By studying and implementing a speed measurement algorithm for multi-terminal collaboration, the data error problem caused by the time difference when a single terminal starts speed measurement is solved. By using independent algorithms to calculate and integrate the average rate, peak rate and other result data, the goal of accurate measurement for multi-terminal collaboration is achieved, thereby meeting the demand for speed measurement of bandwidth above one gigabit and improving the accuracy of communication broadband detection.

[0170] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0171] Reference Figure 5 , shows a structural block diagram of a broadband speed measurement device provided in an embodiment of the present invention, which may specifically include the following modules:

[0172] The protocol address acquisition module 501 is used to acquire the Internet protocol addresses of multiple terminal devices;

[0173] A terminal device determining module 502, configured to determine a master terminal device and a slave terminal device from a plurality of terminal devices by using the Internet Protocol addresses;

[0174] A master control speed measurement data acquisition module 503, used to control the master control terminal device to acquire the master control speed measurement data for the master control terminal device;

[0175] A slave control speed measurement data acquisition module 504, used to control the master control terminal device to obtain the slave control speed measurement data for the slave control terminal device through the slave control terminal device;

[0176] The speed measurement result generating module 505 is used to control the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data.

[0177] Optionally, the master control speed measurement data acquisition module may include:

[0178] A speed measurement instruction generation submodule, used to generate a speed measurement instruction for the master control terminal device;

[0179] The speed probe acquisition submodule is used to control the master control terminal device to acquire the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol through the speed measurement instruction, and control the master control terminal device to acquire the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

[0180] Optionally, the slave control speed measurement data acquisition module may include:

[0181] The speed measurement probe distribution submodule is used to control the master terminal device to distribute the second speed measurement probe to the slave terminal device; the second speed measurement probe is used to control the slave terminal device to obtain slave speed measurement data for the slave terminal device through the second speed measurement probe.

[0182] Optionally, the master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, the second bandwidth overhead data has a corresponding second timestamp, and the speed measurement result generation module may include:

[0183] a speed measurement curve generating submodule, configured to generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value;

[0184] A parameter acquisition submodule, used to acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve;

[0185] A standard parameter generation submodule, configured to generate a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter based on a first preset algorithm;

[0186] A third bandwidth cost generating submodule, configured to generate a third bandwidth cost for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm;

[0187] A fourth bandwidth cost generating submodule, configured to generate a fourth bandwidth cost for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm

[0188] a fourth bandwidth value determining submodule, configured to determine a third bandwidth value according to the third bandwidth overhead, and to determine a fourth bandwidth value according to the fourth bandwidth overhead;

[0189] The speed measurement result generating submodule is used to generate a speed measurement result by using the third bandwidth value and the fourth bandwidth value.

[0190] Optionally, the terminal device determination module may include:

[0191] The installation and maintenance data acquisition submodule is used to obtain the installation and maintenance data of multiple terminal devices;

[0192] A decision matrix generation submodule, used to generate a decision matrix through the installation and maintenance data;

[0193] A master control terminal device determination submodule, used to determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address;

[0194] The slave terminal device determination submodule is used to determine the slave terminal device from the other terminal devices using the decision matrix.

[0195] Optionally, it may also include:

[0196] The slave terminal device registration submodule is used to control the slave terminal device to register with the master terminal based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

[0197] Optionally, it may also include:

[0198] A terminal networking information generating submodule, used to generate terminal networking information for the master control terminal device using the decision matrix;

[0199] The master terminal device redetermining submodule is used to redetermine the master terminal device based on the terminal networking information when the master terminal device and / or the slave terminal device is offline.

[0200] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0201] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned broadband speed measurement method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0202] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the broadband speed measurement method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0203] Figure 6A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0204] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0205] It should be understood that in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 610 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 601 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.

[0206] The electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0207] The audio output unit 603 can convert the audio data received by the RF unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output it as sound. Moreover, the audio output unit 603 can also provide audio output related to a specific function performed by the electronic device 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, etc.

[0208] The input unit 604 is used to receive audio or video signals. The input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 606. The image frame processed by the graphics processor 6041 can be stored in the memory 609 (or other storage medium) or sent via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 601 in the case of a telephone call mode.

[0209] The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and / or the backlight when the electronic device 600 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 605 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0210] The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0211] The user input unit 607 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 6071 or near the touch panel 6071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 6071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 610, receives the command sent by the processor 610 and executes it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 6071, the user input unit 607 may also include other input devices 6072. Specifically, other input devices 6072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0212] Furthermore, the touch panel 6071 may be overlaid on the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it is transmitted to the processor 610 to determine the type of touch event. Then, the processor 610 provides corresponding visual output on the display panel 6061 according to the type of touch event. Figure 6 In the figure, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0213] The interface unit 608 is an interface for connecting an external device to the electronic device 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and an external device.

[0214] The memory 609 can be used to store software programs and various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 609 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0215] The processor 610 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 609 and calling data stored in the memory 609, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.

[0216] The electronic device 600 may also include a power supply 611 (such as a battery) for supplying power to each component. Preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0217] In addition, the electronic device 600 includes some functional modules not shown, which will not be described in detail here.

[0218] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0219] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0220] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0221] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0222] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0223] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0224] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0225] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0226] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0227] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A broadband speed measurement method, characterized in that: include: Obtain Internet Protocol addresses of multiple terminal devices; Determine a master terminal device and a slave terminal device from the plurality of terminal devices by using the Internet Protocol address; Controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device; Controlling the master control terminal device to obtain slave control speed measurement data for the slave control terminal device through the slave control terminal device; Controlling the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data; The master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, and the second bandwidth overhead data has a corresponding second timestamp, and the step of controlling the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data includes: Generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value; Acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve; Based on a first preset algorithm, generating a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter; Generate a third bandwidth overhead for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm; Generate a fourth bandwidth overhead for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm; determining a third bandwidth value according to the third bandwidth overhead, and determining a fourth bandwidth value according to the fourth bandwidth overhead; The third bandwidth value and the fourth bandwidth value are used to generate a speed measurement result.

2. The method according to claim 1, characterized in that The step of controlling the master control terminal device to obtain master control speed measurement data for the master control terminal device includes: Generate a speed measurement instruction for the master control terminal device; The speed measurement instruction is used to control the master control terminal device to obtain the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol, and to control the master control terminal device to obtain the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

3. The method according to claim 2, characterized in that The step of controlling the master terminal device to obtain slave speed measurement data for the slave terminal device through the slave terminal device includes: The master control terminal device is controlled to distribute the second speed measurement probe to the slave control terminal device; the second speed measurement probe is used to control the slave control terminal device to obtain slave control speed measurement data for the slave control terminal device through the second speed measurement probe.

4. The method according to claim 1, characterized in that: The step of determining a master terminal device and a slave terminal device from a plurality of terminal devices by using the Internet Protocol address comprises: Acquire installation and maintenance data of multiple terminal devices; the installation and maintenance data is data generated during installation and maintenance; Generate a decision matrix through the installation and maintenance data; the decision matrix is ​​used to classify the decision levels of the terminal equipment; Determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address; The decision matrix is ​​used to determine a slave terminal device from the other terminal devices.

5. The method according to claim 4, characterized in that Also includes: The slave terminal device is controlled to register with the master terminal device based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

6. The method according to claim 4, characterized in that Also includes: The decision matrix is ​​used to generate terminal networking information for the master control terminal device; When the master terminal device and / or the slave terminal device is offline, the master terminal device is re-determined based on the terminal networking information.

7. A broadband speed measurement device, characterized in that: include: A protocol address acquisition module, used to acquire Internet protocol addresses of multiple terminal devices; A terminal device determination module, used to determine a master terminal device and a slave terminal device from a plurality of the terminal devices through the Internet Protocol addresses; A master control speed measurement data acquisition module, used to control the master control terminal device to acquire the master control speed measurement data for the master control terminal device; A slave control speed measurement data acquisition module, used to control the master control terminal device to acquire the slave control speed measurement data for the slave control terminal device through the slave control terminal device; A speed measurement result generation module is used to control the master control terminal device to generate a speed measurement result using the master control speed measurement data and the slave control speed measurement data; the master control speed measurement data includes first bandwidth overhead data and a first bandwidth value, the slave control speed measurement data includes second bandwidth overhead data and a second bandwidth value, the first bandwidth overhead data has a corresponding first timestamp, and the second bandwidth overhead data has a corresponding second timestamp, and the speed measurement result generation module includes: a speed measurement curve generating submodule, configured to generate a speed measurement curve according to the first bandwidth overhead data, the second bandwidth overhead data, the first timestamp, the second timestamp, the first bandwidth value, and the second bandwidth value; A parameter acquisition submodule, used to acquire delay parameters, packet loss parameters and jitter parameters based on the speed measurement curve; A standard parameter generation submodule, configured to generate a standard parameter according to the delay parameter, the packet loss parameter and the jitter parameter based on a first preset algorithm; A third bandwidth cost generating submodule, configured to generate a third bandwidth cost for the master control terminal device according to the standard parameter and the first bandwidth value according to a second preset algorithm; a fourth bandwidth overhead generating submodule, configured to generate a fourth bandwidth overhead for the slave control terminal device according to the standard parameter and the second bandwidth value according to a second preset algorithm; a fourth bandwidth value determining submodule, configured to determine a third bandwidth value according to the third bandwidth overhead, and to determine a fourth bandwidth value according to the fourth bandwidth overhead; The speed measurement result generating submodule is used to generate a speed measurement result by using the third bandwidth value and the fourth bandwidth value.

8. The device according to claim 7, characterized in that The main control speed measurement data acquisition module includes: A speed measurement instruction generation submodule, used to generate a speed measurement instruction for the master control terminal device; The speed probe acquisition submodule is used to control the master control terminal device to acquire the first speed measurement probe and the second speed measurement probe based on the Hypertext Transfer Protocol through the speed measurement instruction, and control the master control terminal device to acquire the master control speed measurement data for the master control terminal device through the first speed measurement probe; the first speed measurement probe is a speed measurement probe for the master control terminal device, and the second speed measurement probe is a speed measurement probe for the slave control terminal device.

9. The device according to claim 8, characterized in that The slave control speed measurement data acquisition module includes: The speed measurement probe distribution submodule is used to control the master terminal device to distribute the second speed measurement probe to the slave terminal device; the second speed measurement probe is used to control the slave terminal device to obtain slave speed measurement data for the slave terminal device through the second speed measurement probe.

10. The device according to claim 7, characterized in that The terminal device determination module includes: The installation and maintenance data acquisition submodule is used to acquire the installation and maintenance data of multiple terminal devices; the installation and maintenance data is the data generated during installation and maintenance; A decision matrix generation submodule, used to generate a decision matrix through the installation and maintenance data; the decision matrix is ​​used to classify the decision levels of the terminal devices; A master control terminal device determination submodule, used to determine a master control terminal device; the master control terminal device has a corresponding master control Internet Protocol address; the master control Internet Protocol address is used to enable other terminal devices except the master control terminal device to discover the master control terminal device through the UDP protocol based on the master control Internet Protocol address; The slave terminal device determination submodule is used to determine the slave terminal device from the other terminal devices using the decision matrix.

11. The device according to claim 10, characterized in that Also includes: The slave terminal device registration submodule is used to control the slave terminal device to register with the master terminal based on the full-duplex communication protocol Websocket, so that the slave terminal device is connected to the master terminal device.

12. The device according to claim 10, characterized in that Also includes: A terminal networking information generating submodule, used to generate terminal networking information for the master control terminal device using the decision matrix; The master terminal device redetermining submodule is used to redetermine the master terminal device based on the terminal networking information when the master terminal device and / or the slave terminal device is offline.

13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 6 when executing the program stored in the memory.

14. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent equipment testing method and device, electronic equipment and storage medium

    CN113760750A

  • Network speed measurement method and device based on distributed architecture

    CN114430384A